Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
rqt_robot_monitor.robot_monitor.RobotMonitorWidget Class Reference
Inheritance diagram for rqt_robot_monitor.robot_monitor.RobotMonitorWidget:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_color_for_value
def on_pause
def pause
def resizeEvent
def restore_settings
def save_settings
def shutdown
def unpause

Public Attributes

 last_message_time
 num_diag_msg_received
 paused
 timeline_pane
 No effect.
 topic

Private Member Functions

def _add_statitem
def _cb
def _clear
def _get_statitem
def _get_toplv_diagnosticstatus_from_new_msg
def _notify_statitems
def _on_new_message_received
def _tree_clicked
def _tree_nodes_updated
def _update_devices_tree
def _update_flat_tree
def _update_message_state
def _update_warns_errors

Private Attributes

 _err_statusitems
 _is_stale
 _sub
 _timer
 _toplv_statusitems
 _TREE_ALL
 _TREE_ERR
 _TREE_WARN
 _warn_statusitems

Static Private Attributes

tuple _sig_clear = Signal()
tuple _sig_tree_nodes_updated = Signal(int)
int _TREE_ALL = 1
int _TREE_ERR = 3
int _TREE_WARN = 2

Detailed Description

shutdown function needs to be called when the class terminates.

RobotMonitorWidget itself doesn't store previous states. It instead
 delegates that function to TimelinePane class. 

Definition at line 51 of file robot_monitor.py.


Constructor & Destructor Documentation

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.__init__ (   self,
  context,
  topic 
)

Definition at line 69 of file robot_monitor.py.


Member Function Documentation

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._add_statitem (   self,
  statusitem,
  statitem_list,
  tree,
  headline,
  statusmsg,
  statlevel 
) [private]

Definition at line 466 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._cb (   self,
  msg,
  is_forced = False 
) [private]
@param msg: DiagnosticArray
@param is_forced: bool. Intended for non-incoming-msg trigger 
          (in particular, from child object like TimelinePane). 
@author: Isaac Saito

Definition at line 122 of file robot_monitor.py.

Definition at line 585 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._get_statitem (   self,
  item_index,
  item_list,
  tree = None,
  mode = 2 
) [private]
@param mode: 1 = remove from given list, 2 = w/o removing.
@author: Isaac Saito

Definition at line 480 of file robot_monitor.py.


Return an array that contains DiagnosticStatus only at the top level of
the given msg.
      
@param msg: DiagnosticArray 
@return array of 'status' (ie. array of DiagnosticStatus[])

Definition at line 272 of file robot_monitor.py.


@summary: Notify new message arrival to all existing InespectorWindow 
instances that are encapsulated in StatusItem instances contained 
in self._toplv_statusitems.

Definition at line 147 of file robot_monitor.py.

Copied from robot_monitor
    
\brief 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 492 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._tree_clicked (   self,
  item,
  column 
) [private]
@param item: QTreeWidgetItem
@param column: int

Definition at line 170 of file robot_monitor.py.

Definition at line 262 of file robot_monitor.py.

Update the tree from the bottom
@param diag_array: DiagnosticArray

@todo: 11/5/2012 Currently, in case some devices disappear 
     while running this program, there's no way to remove 
     those from the device-tree.

Definition at line 179 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget._update_flat_tree (   self,
  diag_arr,
  statusitems_curr_toplevel 
) [private]

Update the given flat tree (ie. tree that doesn't show children nodes - 
all of its elements will be shown on top level) with 
all the DiagnosticStatus instances contained in the given DiagnosticArray, 
regardless of the level of the device in a device category.

For both warn / error trees, StatusItem instances are newly generated.
    
@param diag_arr: a DiagnosticArray instance.
@param statusitems_curr_toplevel: list of StatusItem.
    
@author: Isaac Saito

Definition at line 355 of file robot_monitor.py.

@author: Isaac Saito (ported from robot_monitor)

Definition at line 503 of file robot_monitor.py.

Definition at line 303 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.get_color_for_value (   self,
  queue_diagnostic,
  color_index 
)
Taken from robot_monitor

Overridden.

@param color_index: int 

Definition at line 557 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.on_pause (   self,
  paused,
  diagnostic_arr 
)
Check if InspectorWindows are set. If they are, pause them.

Pay attention not to confuse with _pause func.

@param paused: bool
@param diagnostic_arr: 
 
Copied from robot_monitor.

Definition at line 321 of file robot_monitor.py.

Ignored if already being paused.

@param msg: DiagnosticArray 

Definition at line 307 of file robot_monitor.py.

Definition at line 166 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.restore_settings (   self,
  plugin_settings,
  instance_settings 
)

Definition at line 579 of file robot_monitor.py.

def rqt_robot_monitor.robot_monitor.RobotMonitorWidget.save_settings (   self,
  plugin_settings,
  instance_settings 
)

Definition at line 576 of file robot_monitor.py.

Definition at line 537 of file robot_monitor.py.

Definition at line 318 of file robot_monitor.py.


Member Data Documentation

Definition at line 69 of file robot_monitor.py.

Definition at line 70 of file robot_monitor.py.

Definition at line 59 of file robot_monitor.py.

Definition at line 60 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 69 of file robot_monitor.py.

Definition at line 61 of file robot_monitor.py.

Definition at line 262 of file robot_monitor.py.

Definition at line 63 of file robot_monitor.py.

Definition at line 262 of file robot_monitor.py.

Definition at line 62 of file robot_monitor.py.

Definition at line 262 of file robot_monitor.py.

Definition at line 69 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.

No effect.

Sorting didn't get enabled.

Definition at line 70 of file robot_monitor.py.

Definition at line 70 of file robot_monitor.py.


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


rqt_robot_monitor
Author(s): Isaac Saito, Ze'ev Klapow
autogenerated on Fri Jan 3 2014 11:56:17