The MyViz class is the main container widget. More...
Public Member Functions | |
def | __init__ |
MyViz Constructor ^^^^^^^^^^^^^^^^^. | |
def | onControlModeChanged |
def | onCreate |
def | onDestroy |
def | onEmergencyStop |
def | onPause |
def | onResume |
def | onTranslate |
def | onUserChanged |
Public Attributes | |
frame | |
rviz.VisualizationFrame is the main container widget of the regular RViz application, with menus, a toolbar, a status bar, and many docked subpanels. | |
grid_display | |
Since the config file is part of the source code for this example, we know that the first display in the list is the grid we want to control. | |
manager | |
The "splash path" is the full path of an image file which gets shown during loading. |
def airbus_plugin_rviz.plugin.PluginRviz.__init__ | ( | self, | |
context | |||
) |
def airbus_plugin_rviz.plugin.PluginRviz.onControlModeChanged | ( | self, | |
mode | |||
) |
def airbus_plugin_rviz.plugin.PluginRviz.onCreate | ( | self, | |
param | |||
) |
def airbus_plugin_rviz.plugin.PluginRviz.onDestroy | ( | self | ) |
def airbus_plugin_rviz.plugin.PluginRviz.onEmergencyStop | ( | self, | |
state | |||
) |
def airbus_plugin_rviz.plugin.PluginRviz.onPause | ( | self | ) |
def airbus_plugin_rviz.plugin.PluginRviz.onResume | ( | self | ) |
def airbus_plugin_rviz.plugin.PluginRviz.onTranslate | ( | self, | |
lng | |||
) |
def airbus_plugin_rviz.plugin.PluginRviz.onUserChanged | ( | self, | |
user_info | |||
) |
rviz.VisualizationFrame is the main container widget of the regular RViz application, with menus, a toolbar, a status bar, and many docked subpanels.
In this example, we disable everything so that the only thing visible is the 3D render window.
The "splash path" is the full path of an image file which gets shown during loading.
Setting it to the empty string suppresses that behavior. VisualizationFrame.initialize() must be called before VisualizationFrame.load(). In fact it must be called before most interactions with RViz classes because it instantiates and initializes the VisualizationManager, which is the central class of RViz. The reader reads config file data into the config object. VisualizationFrame reads its data from the config object. You can also store any other application data you like in the config object. Here we read the window title from the map key called "Title", which has been added by hand to the config file. Here we disable the menu bar (from the top), status bar (from the bottom), and the "hide-docks" buttons, which are the tall skinny buttons on the left and right sides of the main render window. frame.getManager() returns the VisualizationManager instance, which is a very central class. It has pointers to other manager objects and is generally required to make any changes in an rviz instance.