Class RouteTool
Defined in File route_tool.hpp
Inheritance Relationships
Base Type
public rviz_common::Panel
Class Documentation
Here we declare our new subclass of rviz::Panel. Every panel which can be added via the Panels/Add_New_Panel menu is a subclass of rviz::Panel.
Public Functions
This class uses Qt slots and is a subclass of QObject, so it needs the Q_OBJECT macro. QWidget subclass constructors usually take a parent widget parameter (which usually defaults to 0). At the same time, pluginlib::ClassLoader creates instances by calling the default constructor (with no arguments). Taking the parameter and giving a default of 0 let’s the default constructor work and also let’s someone using the class for something else to pass in a parent widget as they normally would with Qt.
Now we declare overrides of rviz_common::Panel functions for saving and loading data from the config file. Here the data is the topic name.
Protected Attributes
Finally, we close up with protected member variables