-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to move/rotate shapes (reliably) #147
Comments
Thank you for the bug report and the video. I can't reproduce the issue locally either in a Ubuntu Bionic host or inside a Docker container. My guess is that the mouse position is not being properly mapped to the 3D scene due to some resolution mismatch. |
Is there anything else I can do to help? The mouse position seems to be ok when selecting shapes (https://youtu.be/Uzj_vx-EwzA), and when interacting with the sidebar UI. Gazebo (classic) also runs ok inside the same docker container. I can add models move them etc. Other ROS GUI tools like Rviz, and rqt seem to work as well. I can make a few videos if you'd like. I wanted to compile ignition gazebo on 19.10 without docker, but Ogre seems to build and install some dependencies from source that might conflict with what I'm already using for some other development, I can't risk it right now... I will try to compile again on 20.04 once ignition gazebo and it's dependencies are available. |
I just tried debs inside a 20.04 Docker container and I can't reproduce the issue there either (physics is not working yet though, we need a new release with gazebo-release/gz-physics2-release#4).
Interesting, that does seem to indicate that the mouse positions are hitting the correct place on the scene.
I can't think of anything else. Maybe @iche033 has some ideas? |
I just tested this but was unable to reproduce either. @EvilPictureBook what graphics card and driver are you using? Do you have a high dpi display? |
I'm using a 4k monitor, with Nvidia 1060, proprietary driver version: 440.82 from http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu. Turns out I have an old laptop with 18.04 around, so I'll try installing on that tomorrow too. If this is a Docker or my config issue and not a bug in Gazebo I don't want to take up your time with it, but just in case it's helpful this is my Dockerfile:
I'm launching it with...:
|
I was able to install and use the binary distribution on regular 18.04 without docker (haven't tried compiling from source yet). So it's probably something to do with docker and GUI apps or my config. If I figure it out I'll post an update. Thank you. |
Sorry for the delay. I finally have a bit more time, and I'd like to test this on 20.04, and close the issue if everything works (since then it's probably a docker issue). So I was wondering if it's possible yet to install gazebo on 20.04 (if this should go into a separate issue I'd be happy to start one). (1) (2) EDIT: I think I will wait for an update to install instructions for 20.04 . . . and close this issue since it seems to work outside of docker on 18.04 Thanks for all the help! Looking forward to trying this on 20.04. |
@chapulina Sorry since this is ROS related I'm not sure if this is the right place to post this issue, but since it's so similar to the one I started with I thought I'd start here. If this is not the right place for it, please let me know and I'll move it. I tried the ign gazebo release that comes with ROS Noetic and I'm seeing very similar issues: https://youtu.be/BxEcnsSzNlo I installed:
|
It looks like although you're going through ROS, the issue is still on Ignition, so this should be the right place. I still don't have any tips on how to fix it though. |
Is there any way I can help more? Any information (driver/system) / debug output / or for me to try to compile anything and see how it goes, I'm happy to try it. Also if there are any new instructions for building from source on 20.04, I can do that and post if the issue persists. |
It sounds like it's not a high DPI issue, because you're being able to select the entities correctly. Have you tried clicking all around the arrows to see if they're selected if you click slightly outside them? I'm not sure how else to debug it besides having you compile |
@EvilPictureBook , you may want to give #291 a try just in case it's a DPI issue. |
Sorry for another long delay (and an update to my account name). Tested today with the ros2 release, and compiling from source on 20.04. (No Docker, 4k, Nvidia proprietary 450 drivers) The issue persists. I tried enabling/disabling fractional scaling, and setting I added print outs to the section of code you suggested. The reported axis seems to always be [0,0,0], and it never makes it to the print (4). Video: https://youtu.be/Pt9_yrCSx3M My section of code:
Print outs:
|
I remember @jennuine mentioned that fractional scaling has to be enabled and the scaling factor needs to be at 100% for things to work properly. Just checking, do you have more than one monitor with different size / resolution plugged in? |
Just one monitor. I had fractional scaling on at 100% for a few reboots now with no changes. |
@dignakov Do you mind to try this PR gazebosim/gz-rendering#221 ? |
@ahcorde Thanks for the link, and sorry for not getting to it sooner. The PR does not seem to fix my issue. It still acts as in the videos from before. I compiled using the instructions here: https://ignitionrobotics.org/docs/edifice/install_ubuntu_src, with PR gazebosim/gz-rendering#221 checked out for In case this is useful:
|
Unable to move / rotate issue reproduced as per the @dignakov original. Following the shapes tutorial, on attempting to translate an object, moving a model only works if one of x,y,z is constrained (key pressed). Otherwise, the mouse pointer just moves the camera view of the world. I cannot get a model to rotate - even when keys are pressed. [The simulation then seems to fail depending on which model is selected by the transform tool - I think this might be a separate issue] |
I'm still seeing the same issue on Fortress (on my main computer as above, no docker no virtualization, proprietary nvidia drivers), and on a laptop running with nvidia RTX 2060 proprietary drivers as well.
Both systems are Ubuntu 20.04, both with proprietary nvidia drivers. Laptop has a 1080p monitor (unlike the desktop which has a 4k monitor since I know that came up, and I did try the fixes recommended above). If I can help debug this please let me know what else I can do. I really would like to switch from Gazebo Classic to Ignition, but I can't seem to get it to run. |
@dignakov, can you give this patch a try? diff --git a/ogre2/src/Ogre2Camera.cc b/ogre2/src/Ogre2Camera.cc
index 86d1d7b9..b5043a52 100644
--- a/ogre2/src/Ogre2Camera.cc
+++ b/ogre2/src/Ogre2Camera.cc
@@ -259,7 +259,7 @@ VisualPtr Ogre2Camera::VisualAt(const ignition::math::Vector2i &_mousePos)
this->ImageWidth(), this->ImageHeight());
}
- float ratio = screenScalingFactor();
+ float ratio = 1.0f;
ignition::math::Vector2i mousePos(
static_cast<int>(std::rint(ratio * _mousePos.X())),
static_cast<int>(std::rint(ratio * _mousePos.Y()))); |
I have noticed that I can consistently grab the rotation or translation handles (arrows, rings) iff I mouse down on a spot where the handle is drawn on top of some other object -- any other object -- and the handle appears in a solid color. I can't grab the parts of the handle that are semi-transparent. I'm not sure if this is intended. I am running the latest stable Garden built from source on a 20.04 box. I am not running in Docker.
|
I'm having the same issue. As shown in the video, I'm not able to select the transform tool if there is no object in the background. Kazam_screencast_00015.mp4I'm building garden from source. |
I have the same issue, and it also happens when using the rotate mode. |
I just tested on Garden and the issue shown in the video in #147 (comment) still exists. |
should be fixed by gazebosim/gz-rendering#800 |
A couple of PRs addressing mouse interaction issues were merged:
Please re-open or create a new issue if you're still facing mouse translation/rotation issues. |
I'm having trouble moving/rotating shapes with Transform Control.
If I just click on the arrows they mostly don't engage and I end up moving the camera around the scene. Occasionally and incorrect arrow (direction) engages. (https://youtu.be/WbWLZBDpXgQ)
Translation seems to work if I hold x/y/z, but rotation still does not.
I'm running Ubuntu 18.04 docker image (Ubuntu 19.10 host). I compiled ignition gazebo today from source (3.1.0). I also tried installing binary (3.0.0), and I can't move the shapes at all in that version.
The text was updated successfully, but these errors were encountered: