ros-visualization/rviz

Display panel visual issues with custom Rviz plugin

Closed this issue · 2 comments

Describe your issue here and explain how to reproduce it.

Your environment

  • OS Version: e.g. Ubuntu 20.04
  • ROS Distro: Noetic
  • RViz, Qt, OGRE, OpenGl version as printed by rviz:
         [ INFO] [1632142194.609172053] [${node}]: rviz version 1.14.8
         [ INFO] [1632142194.609218414] [${node}]: compiled against Qt version 5.12.8
         [ INFO] [1632142194.609231265] [${node}]: compiled against OGRE version 1.9.0 (Ghadamon)
         [ INFO] [1632142194.622424657] [/fake/rviz]: Forcing OpenGl version 0.
    
  • If source build, which git commit? N/A

Hi,

I've been writing a custom Rviz plugin and noticed some weird visuals with the Display panel when one of the plugin's panels is active. As shown in the screenshot below, it seems like the Display panel doesn't update fully when interacted with unless I scroll, at which point any updates render correctly.

rviz_visual

It's not shown in the screenshot, but it also happens when expanding tabs e.g. I click on the arrow to the left of the tab, nothing seems to happen, then when I scroll the Display panel updates with the tab expanded.

The plugin I'm developing doesn't interact with the Display panel at all besides adding some Marker displays. It also only happens when the panel for my plugin is active. If I close it, the issue goes away. If I reopen it, it starts happening again.

Any help would be much appreciated!

Does the issue occur only if your plugin adds/removes Marker displays? Or even if there is no interaction at all?
In the former case, I would assume that the model/view isn't updated although you change the underlying data structure?
How do you actually interact with the Display panel? Are you using VisualizationManager::addDisplay()?

Closing due to missing feedback. Feel free to re-open and provide the requested feedback.