Public Member Functions | Private Member Functions | Private Attributes
robot_monitor.robot_monitor_panel.RobotMonitorPanel Class Reference

Monitor panel for aggregated diagnostics (diagnostics_agg) More...

Inheritance diagram for robot_monitor.robot_monitor_panel.RobotMonitorPanel:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

def robot_monitor.robot_monitor_panel.RobotMonitorPanel.__init__ (   self,
  parent,
  rxbag = False 
)
Parameters:
parentRobotMonitorFrame : Parent frame

Definition at line 191 of file robot_monitor_panel.py.


Member Function Documentation

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.

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.

Sets robot monitor messages status in default start configuration.

Definition at line 252 of file robot_monitor_panel.py.

Definition at line 390 of file robot_monitor_panel.py.

Definition at line 425 of file robot_monitor_panel.py.

Updates status bar with status of diagnostics_agg topic.

Definition at line 267 of file robot_monitor_panel.py.

Definition at line 416 of file robot_monitor_panel.py.

Definition at line 403 of file robot_monitor_panel.py.

Definition at line 245 of file robot_monitor_panel.py.

Definition at line 559 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

Returns:
-1 = No diagnostics yet, 0 = OK, 1 = Warning, 2 = Error, 3 = All Stale

Definition at line 533 of file robot_monitor_panel.py.

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.

Definition at line 471 of file robot_monitor_panel.py.

Definition at line 474 of file robot_monitor_panel.py.

Definition at line 477 of file robot_monitor_panel.py.

Removes StatusViewerFrame from list to update.

Parameters:
namestr : Status name to remove from dictionary

Definition at line 467 of file robot_monitor_panel.py.

Clears messages at startup, or for rxbag plugin.

Definition at line 308 of file robot_monitor_panel.py.


Member Data Documentation

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 267 of file robot_monitor_panel.py.

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.


The documentation for this class was generated from the following file:


robot_monitor
Author(s): Kevin Watts (watts@willowgarage.com), Josh Faust (jfaust@willowgarage.com)
autogenerated on Sat Dec 28 2013 16:53:42