Skip to content
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

Can't select "arrow" with Qt 5.12 & Ogre 1.10.12 #76

Closed
wolfv opened this issue Jul 21, 2020 · 7 comments
Closed

Can't select "arrow" with Qt 5.12 & Ogre 1.10.12 #76

wolfv opened this issue Jul 21, 2020 · 7 comments

Comments

@wolfv
Copy link

wolfv commented Jul 21, 2020

Hi, I am wondering if I am doing something stupidly wrong. I have a conda build of RViz that works quite nicely. The only remaining problem seems to be that I can't select / drag interactive markers. They do render correctly though.
It seems like the mouse interaction with the marker just doesn't work. Does someone know where to look in order to fix / debug this?

Screenshot from 2020-07-21 20-51-59

Screenshot from 2020-07-21 20-52-14

@wolfv
Copy link
Author

wolfv commented Jul 21, 2020

Screenshot from 2020-07-21 20-58-31

In moveit, the interactive marker didn't work either. Any ideas appreciated!

@rhaschke
Copy link
Contributor

Hi @wolfv, I suggest to first observe the communication on the interactive marker topics. Do you see messages there?
Does the standard release work as expected? What is different w.r.t. a "conda build"? These are just some ideas. Cannot help more in the next two weeks.

@wolfv
Copy link
Author

wolfv commented Jul 21, 2020

Thanks for the reply! No communication can be seen on the feedback, update and update_full topic (using the simple_marker, single interactive marker example).
The RVIZ debug image shows me different colors when hovering over the different elements.

The difference is that the conda build doesn't use system dependencies, but instead gets the deps from conda-forge (in this case). For example, the OGRE package: https://anaconda.org/conda-forge/ogre

I don't have access to the standard release as I am on Fedora right now, but I guess it will work as expected. I'll try to debug this further...
The part of the interactive marker that draw the arrow & handle the mouse interaction are in RViz or in this repo?

@wolfv
Copy link
Author

wolfv commented Jul 21, 2020

I have debugged a little further and it seems that this line in interaction_tool.cpp returns an empty result:

  // Pick exactly 1 pixel
  context_->getSelectionManager()->pick(event.viewport, event.x, event.y, event.x + 1, event.y + 1,
                                        results, true);

... will debug further tomorrow.

@wolfv
Copy link
Author

wolfv commented Jul 22, 2020

when i check the color values that are used in colorToHandle, I can see different values but it seems to be the grid lines and sometimes a spurious value... not what I would expect. Do you think the textures could be messed up? Maybe I should publish a full render of the click buffer to a image topic?

@wolfv
Copy link
Author

wolfv commented Jul 22, 2020

OK I just checked and with RViz 1.13.9 it was working fine so I believe this might be a regression with the latest RViz. Specifically this commit looks like it could be responsible: ros-visualization/rviz@e5ef587#diff-a671220daaa00b9dfc6ad2ed4972d385

Will try to debug this further, hope you don't mind me writing this down.

@wolfv
Copy link
Author

wolfv commented Aug 4, 2020

Fixed in rviz now

@wolfv wolfv closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants