ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
792 stars 459 forks source link

rviz saves the config and then opens it, the previously added Panel loading does not meet expectations #1769

Closed ysl-design closed 1 year ago

ysl-design commented 1 year ago

Describe your issue here and explain how to reproduce it.

I added 3 Camera plugins and 1 Image plugin to the rviz, then added 2 Views panels, image and then selected “Save” when closing rviz to save the added plugins. image Start rviz again, the two Views Panels are expected to be in the original lower left corner, but the actual situation is that they are gone, and the Views check box in the Panels drop-down menu is unchecked. Other Panels have the same phenomenon. I would like to ask what is the reason why Panels cannot save the location. image

Your environment

rhaschke commented 1 year ago

I cannot reproduce that problem. For me, views restore their position as expected. Please try updating to the latest rviz release (1.14.19) and report back (providing your full .rviz config) if the problem persists.

ysl-design commented 1 year ago

Sorry, the steps described before are a little less, I will re-describe 1.I added 3 Camera plugins and 1 Image plugin to the rviz, then added 2 Views panels, 2.and then selected “Save” when closing rviz to save the added plugins. 3.Start rviz again, the Views panel is indeed there, and then delete the Views Panel through the "Delete Panel" image There are 3 Views here because one is added by rviz by default 4.Add two new Views Panels 5.Again, close rviz, choose “Save” image 6.Start rviz again,the problem appears. I updated the latest version of rviz and the problem still exists. My config file is as follows 1.zip

rhaschke commented 1 year ago

I can confirm that all views panels are lost after deleting a single one.

rhaschke commented 1 year ago

Actually, the behavior is more intricate: If you add additional Views panels and then remove one of those non-default ones, the removed one will not show up after reloading anymore (as expected), but also the default one will not show up anymore. In contrast, if you remove the default Views panel (the last one in all those lists), all other Views panels will show up correctly. I don't have time to investigate this very artificial problem in more depth. Just don't add and remove additional Views panels. It doesn't make sense to have more than one anyway :wink:

The difference in .rviz files is just within the QMainWindowState.