Hi,
I am in the process of writing a plugin for rqt in C++ (yes, I did read the note that highly recommended writing in python) but I have other reasons for writing this in C++.
I'm using the rqt_image_view plugin as a reference. I noticed a couple of functions saveSettings
and restoreSettings
. The former saves all current values from the GUI into a qt_gui_cpp::Settings
object and the latter sets the GUI with values from a Settings
object.
I am not sure why these particular functions would be called? I tracked it back to the plugin_bridge.cpp
file in the qt_gui_cpp
. I'm still not sure as a plugin developer, for rqt, why would I need these functions - what state am I trying to save and restore?
Thanks.
Originally posted by 2ROS0 on ROS Answers with karma: 1133 on 2016-08-05
Post score: 2