-
Notifications
You must be signed in to change notification settings - Fork 466
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
Tweak focal shape size marker depending on focal distance #1021
Tweak focal shape size marker depending on focal distance #1021
Conversation
When zooming or panning an empty world, the focal shape is often my only visual cue about what the current zoom level is. Having the focal shape scale dynamically counteracts this. A simpler approach that maintains the functionality that I use on a regular basis would be to make the size of the focal shape settable by the user. |
Or both, and a checkbox to correct for zoom level (the size should then be the size at 100% zoom) |
@VictorLamoine makes sense to me, but I also see @trainman419's point of view. How hard would it be to add an option to the display menu? Are you interested in doing that? Also, I added gif's of your before and after to your OP. |
I don't know how hard it can be because I don't know the code, but I will at least give it a try! I will try to add an option in the display menu:
For both of them we will be able to choose a size for the shape. |
@wjwwood You probably meant the I added a user option to be able to choose the shape size, I still need to add a menu allowing to choose between fixed size/zoom invariant. |
I was originally meaning the display panel, which has the displayed types and the grid and stuff like that, but I think the View panel makes more sense now that you mention it. |
Thanks! I'll have a look at it this weekend. |
There are two things that can be improved:
For the first item we need to find a way to correctly initialize the distance property value. For the second item we could probably connect the I will look at that and get back to you! |
Sounds like a plan. Let me know if I can help with questions or testing. |
All problems are solved; updating the focal shape in mouse events solves the two problems. |
Sorry for the delay, I'll just tried it out real quick and it looks great now. The only thing is that on my machine the pip is now teal or blueish. Did you change that too? |
It doesn't look like it... If I don't use the navigation tutorial to launch rviz it is yellow... That must be a different bug. |
Looks like this happens on kinetic-devel too, so it won't block this pr. Thanks again for the contribution, it's a great feature! |
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com> (cherry picked from commit 092e3efef2f907549976ffd101e5ad8100cbea3f)
…/pr-1021 Remove warning in depth_cloud_mld.cpp (backport ros-visualization#1021)
Fixes #1020
This PR adds two options:
The only problem with this PR is the initial shape size; I found no way of knowing the focal distance before the user interacts (zooms in or out) so the shape size at the start is a little bit arbitrary.Fixed size:
Zoom invariant: