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')
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

Constructor & Destructor Documentation

Definition at line 77 of file

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

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

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

Definition at line 81 of file

Definition at line 122 of file

Definition at line 128 of file

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

@param msg: DiagnosticArray
@return: DiagnosticStatus[]

Definition at line 213 of file

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

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

Definition at line 171 of file

def rqt_robot_monitor.util_robot_monitor.Util.get_correspondent_index (   key,
) [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

Definition at line 108 of file

Definition at line 118 of file

Definition at line 114 of file

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

Definition at line 73 of file

Definition at line 74 of file

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

Definition at line 71 of file

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

Definition at line 72 of file

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

Definition at line 52 of file

Definition at line 58 of file

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

Definition at line 54 of file

Definition at line 49 of file

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

Definition at line 56 of file

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

Definition at line 53 of file

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

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