Public Member Functions | |
def | __init__ |
def | message_cb |
def | resizeEvent |
def | restore_settings |
def | save_settings |
def | shutdown |
Public Attributes | |
timeline_pane | |
Static Public Attributes | |
tuple | message_updated = Signal(DiagnosticArray) |
Private Member Functions | |
def | _inspector_closed |
def | _tree_clicked |
def | _update_background_color |
def | _update_message_state |
Private Attributes | |
_current_msg | |
_err_tree | |
_inspectors | |
_is_stale | |
_original_alt_base_color | |
_original_base_color | |
_timeline | |
_timer | |
_tree | |
_warn_tree | |
Static Private Attributes | |
int | _TREE_ALL = 1 |
int | _TREE_ERR = 3 |
int | _TREE_WARN = 2 |
NOTE: RobotMonitorWidget.shutdown function needs to be called when the instance of this class terminates. RobotMonitorWidget itself doesn't store previous diagnostic states. It instead delegates that function to Timeline class.
Definition at line 51 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.__init__ | ( | self, | |
context, | |||
topic = None |
|||
) |
:param context: plugin context hook to enable adding widgets as a ROS_GUI pane, 'PluginContext' :param topic: Diagnostic topic to subscribe to 'str'
Definition at line 66 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._inspector_closed | ( | self, | |
name | |||
) | [private] |
Called when an inspector window is closed
Definition at line 176 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._tree_clicked | ( | self, | |
item, | |||
column | |||
) | [private] |
Slot to QTreeWidget.itemDoubleClicked :type item: QTreeWidgetItem :type column: int
Definition at line 181 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._update_background_color | ( | self | ) | [private] |
Update the background color based on staleness
Definition at line 218 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._update_message_state | ( | self | ) | [private] |
Update the display if it's stale
Definition at line 197 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.message_cb | ( | self, | |
msg | |||
) |
DiagnosticArray message callback
Definition at line 127 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.resizeEvent | ( | self, | |
evt | |||
) |
Overridden from QWidget
Definition at line 169 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.restore_settings | ( | self, | |
plugin_settings, | |||
instance_settings | |||
) |
Definition at line 254 of file robot_monitor.py.
def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.save_settings | ( | self, | |
plugin_settings, | |||
instance_settings | |||
) |
Definition at line 249 of file robot_monitor.py.
This needs to be called whenever this class terminates. This closes all the instances on all trees. Also unregisters ROS' subscriber, stops timer.
Definition at line 231 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
int rqt_robot_monitor::robot_monitor.RobotMonitorWidget::_TREE_ALL = 1 [static, private] |
Definition at line 60 of file robot_monitor.py.
int rqt_robot_monitor::robot_monitor.RobotMonitorWidget::_TREE_ERR = 3 [static, private] |
Definition at line 62 of file robot_monitor.py.
int rqt_robot_monitor::robot_monitor.RobotMonitorWidget::_TREE_WARN = 2 [static, private] |
Definition at line 61 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.
tuple rqt_robot_monitor::robot_monitor.RobotMonitorWidget::message_updated = Signal(DiagnosticArray) [static] |
Definition at line 64 of file robot_monitor.py.
Definition at line 70 of file robot_monitor.py.