$search
Monitor panel for aggregated diagnostics (diagnostics_agg). More...
Public Member Functions | |
def | __init__ |
def | Close |
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 450 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_on_item_activate | ( | self, | ||
event, | ||||
tree_ctrl | ||||
) | [private] |
Definition at line 480 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 304 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_on_pause | ( | self, | ||
paused | ||||
) | [private] |
Definition at line 371 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 252 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_update_error_tree | ( | self | ) | [private] |
Definition at line 390 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_update_labels | ( | self | ) | [private] |
Definition at line 425 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 267 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_update_status_images | ( | self | ) | [private] |
Definition at line 416 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::_update_warning_tree | ( | self | ) | [private] |
Definition at line 403 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::Close | ( | self | ) |
Definition at line 245 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::get_color_for_message | ( | self, | ||
msg | ||||
) |
Definition at line 559 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::get_top_level_state | ( | self | ) |
Gets the state of the "top level" diagnostics.
Returns the highest value of any of the root tree items
Definition at line 533 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 334 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::on_all_item_activate | ( | self, | ||
event | ||||
) |
Definition at line 471 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::on_error_item_activate | ( | self, | ||
event | ||||
) |
Definition at line 474 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::on_warning_item_activate | ( | self, | ||
event | ||||
) |
Definition at line 477 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 467 of file robot_monitor_panel.py.
def robot_monitor::robot_monitor_panel::RobotMonitorPanel::reset_monitor | ( | self | ) |
Clears messages at startup, or for rxbag plugin.
Definition at line 308 of file robot_monitor_panel.py.
Definition at line 230 of file robot_monitor_panel.py.
Definition at line 194 of file robot_monitor_panel.py.
Definition at line 229 of file robot_monitor_panel.py.
Definition at line 218 of file robot_monitor_panel.py.
Definition at line 215 of file robot_monitor_panel.py.
Definition at line 277 of file robot_monitor_panel.py.
Definition at line 305 of file robot_monitor_panel.py.
Definition at line 195 of file robot_monitor_panel.py.
Definition at line 226 of file robot_monitor_panel.py.
Definition at line 238 of file robot_monitor_panel.py.
Definition at line 234 of file robot_monitor_panel.py.
Definition at line 224 of file robot_monitor_panel.py.