Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
rqt_robot_monitor.util_robot_monitor.Util Class Reference

List of all members.

Public Member Functions

def __init__

Static Public Member Functions

def gen_headline_status_green
def gen_headline_warn_or_err
def get_children
def get_correspondent
def get_correspondent_index
def get_nice_name
def get_parent_name
def remove_parent_name

Static Private Member Functions

def _get_color_for_message
def _update_status_images

Static Private Attributes

dictionary _COLOR_DICT
string _DICTKEY_INDEX = 'index'
string _DICTKEY_STATITEM = 'statitem'
string _DICTKEY_TIMES_ERROR = 'times_errors'
string _DICTKEY_TIMES_WARN = 'times_warnings'
tuple _ERR_ICON = QIcon.fromTheme('dialog-error')
dictionary _IMG_DICT = {0: _OK_ICON, 1: _WARN_ICON, 2: _ERR_ICON, 3: _STALE_ICON}
tuple _OK_ICON = QIcon.fromTheme('emblem-default')
int _SECONDS_TIMELINE = 30
tuple _STALE_ICON = QIcon.fromTheme('dialog-question')
tuple _WARN_ICON = QIcon.fromTheme('dialog-warning')

Detailed Description


@todo: Utils and common configs are mixed in this class.

Definition at line 43 of file util_robot_monitor.py.


Constructor & Destructor Documentation

Definition at line 77 of file util_robot_monitor.py.


Member Function Documentation

def rqt_robot_monitor.util_robot_monitor.Util._get_color_for_message (   msg,
  mode = 0 
) [static, private]

@param msg: Either DiagnosticArray or DiagnosticsStatus.
@param mode: int. When 0, this func will iterate msg to find 
     DiagnosticsStatus.level and put it into a dict.
     When 1, this func finds DiagnosticsStatus.level from msg
     without iteration (thus, msg is expected to be
     DiagnosticsStatus instance). 
 
Copied from robot_monitor.

Definition at line 133 of file util_robot_monitor.py.

def rqt_robot_monitor.util_robot_monitor.Util._update_status_images (   diagnostic_status,
  statusitem 
) [static, private]
Taken from robot_monitor.robot_monitor_panel.py.

@param status: DiagnosticStatus         
@param node: StatusItem 
@author: Isaac Saito 

Definition at line 81 of file util_robot_monitor.py.

Definition at line 122 of file util_robot_monitor.py.

Definition at line 128 of file util_robot_monitor.py.

def rqt_robot_monitor.util_robot_monitor.Util.get_children (   name,
  diag_array 
) [static]

@param msg: DiagnosticArray
@return: DiagnosticStatus[]

Definition at line 213 of file util_robot_monitor.py.

def rqt_robot_monitor.util_robot_monitor.Util.get_correspondent (   key,
  list_statitem 
) [static]

@param key: String.  
@param list_statitem: DiagnosticsStatus
@return: StatusItem

Definition at line 171 of file util_robot_monitor.py.

def rqt_robot_monitor.util_robot_monitor.Util.get_correspondent_index (   key,
  statusitems 
) [static]
@deprecated: Use get_correspondent

@param key: string
@param statusitems: DiagnosticStatus[]
@return: int of index that key is found in array. -1 if not found

Definition at line 191 of file util_robot_monitor.py.

Definition at line 108 of file util_robot_monitor.py.

Definition at line 118 of file util_robot_monitor.py.

Definition at line 114 of file util_robot_monitor.py.


Member Data Documentation

Initial value:
{0: QColor(85, 178, 76),
                   1: QColor(222, 213, 17),
                   2: QColor(178, 23, 46),
                   3: QColor(40, 23, 176)
                   }

Definition at line 60 of file util_robot_monitor.py.

Definition at line 73 of file util_robot_monitor.py.

Definition at line 74 of file util_robot_monitor.py.

string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_TIMES_ERROR = 'times_errors' [static, private]

Definition at line 71 of file util_robot_monitor.py.

string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_TIMES_WARN = 'times_warnings' [static, private]

Definition at line 72 of file util_robot_monitor.py.

tuple rqt_robot_monitor::util_robot_monitor.Util::_ERR_ICON = QIcon.fromTheme('dialog-error') [static, private]

Definition at line 52 of file util_robot_monitor.py.

Definition at line 58 of file util_robot_monitor.py.

tuple rqt_robot_monitor::util_robot_monitor.Util::_OK_ICON = QIcon.fromTheme('emblem-default') [static, private]

Definition at line 54 of file util_robot_monitor.py.

Definition at line 49 of file util_robot_monitor.py.

tuple rqt_robot_monitor::util_robot_monitor.Util::_STALE_ICON = QIcon.fromTheme('dialog-question') [static, private]

Definition at line 56 of file util_robot_monitor.py.

tuple rqt_robot_monitor::util_robot_monitor.Util::_WARN_ICON = QIcon.fromTheme('dialog-warning') [static, private]

Definition at line 53 of file util_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