Monitor panel for aggregated diagnostics (diagnostics_agg) More...
Public Member Functions | |
def | __init__ |
def | get_color_for_message |
def | get_top_level_state |
Gets the state of the "top level" diagnostics. | |
def | new_message |
processes new messages, updates tree control | |
def | on_all_item_activate |
def | on_error_item_activate |
def | on_warning_item_activate |
def | remove_viewer |
Removes StatusViewerFrame from list to update. | |
def | reset_monitor |
Clears messages at startup, or for rxbag plugin. | |
Private Member Functions | |
def | _create_tree_item |
def | _on_item_activate |
def | _on_new_message_received |
Called whenever a new message is received by the timeline. | |
def | _on_pause |
def | _set_initial_message_state |
Sets robot monitor messages status in default start configuration. | |
def | _update_error_tree |
def | _update_labels |
def | _update_message_state |
Updates status bar with status of diagnostics_agg topic. | |
def | _update_status_images |
def | _update_warning_tree |
Private Attributes | |
_empty_id | |
_frame | |
_have_message | |
_image_dict | |
_image_list | |
_is_stale | |
_last_message_time | |
_rxbag | |
_state | |
_timeline | |
_timer | |
_viewers |
Monitor panel for aggregated diagnostics (diagnostics_agg)
Displays data from DiagnosticArray diagnostics_agg in a tree structure by status name. Names are parsed by '/'. Each status name is given an icon by status (ok, warn, error, stale).
The robot monitor does not store any state, but if it does not get any updates for 3 seconds, it will mark the tree as stale.
Definition at line 189 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.__init__ | ( | self, | |
parent, | |||
rxbag = False |
|||
) |
parent | RobotMonitorFrame : Parent frame |
Definition at line 191 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._create_tree_item | ( | self, | |
item | |||
) | [private] |
Definition at line 448 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._on_item_activate | ( | self, | |
event, | |||
tree_ctrl | |||
) | [private] |
Definition at line 478 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._on_new_message_received | ( | self, | |
msg | |||
) | [private] |
Called whenever a new message is received by the timeline.
Different from new_message in that it is called even if the timeline is paused, and only when a new message is received, not when the timeline is scrubbed
Definition at line 300 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._on_pause | ( | self, | |
paused | |||
) | [private] |
Definition at line 367 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._set_initial_message_state | ( | self | ) | [private] |
Sets robot monitor messages status in default start configuration.
Definition at line 248 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._update_error_tree | ( | self | ) | [private] |
Definition at line 386 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._update_labels | ( | self | ) | [private] |
Definition at line 423 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._update_message_state | ( | self, | |
event = None |
|||
) | [private] |
Updates status bar with status of diagnostics_agg topic.
Definition at line 263 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._update_status_images | ( | self | ) | [private] |
Definition at line 414 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel._update_warning_tree | ( | self | ) | [private] |
Definition at line 400 of file robot_monitor_panel.py.
Definition at line 557 of file robot_monitor_panel.py.
Gets the state of the "top level" diagnostics.
Returns the highest value of any of the root tree items
Definition at line 531 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.new_message | ( | self, | |
msg | |||
) |
processes new messages, updates tree control
New messages clear tree under the any names in the message. Selected name, and expanded nodes will be expanded again after the tree clear.
Definition at line 330 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.on_all_item_activate | ( | self, | |
event | |||
) |
Definition at line 469 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.on_error_item_activate | ( | self, | |
event | |||
) |
Definition at line 472 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.on_warning_item_activate | ( | self, | |
event | |||
) |
Definition at line 475 of file robot_monitor_panel.py.
def robot_monitor.robot_monitor_panel.RobotMonitorPanel.remove_viewer | ( | self, | |
name | |||
) |
Removes StatusViewerFrame from list to update.
name | str : Status name to remove from dictionary |
Definition at line 465 of file robot_monitor_panel.py.
Clears messages at startup, or for rxbag plugin.
Definition at line 304 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 263 of file robot_monitor_panel.py.
Definition at line 300 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.
Definition at line 191 of file robot_monitor_panel.py.