Public Member Functions | Static Public Member Functions | Static Public Attributes | 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_grn_resource_name
def get_parent_name
def remove_parent_name
def update_status_images

Static Public Attributes

dictionary COLOR_DICT
dictionary IMG_DICT = {0: _OK_ICON, 1: _WARN_ICON, 2: _ERR_ICON, 3: _STALE_ICON}

Static Private Member Functions

def _get_color_for_message

Static Private Attributes

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')
tuple _OK_ICON = QIcon.fromTheme('emblem-default')
tuple _STALE_ICON = QIcon.fromTheme('dialog-question')
tuple _WARN_ICON = QIcon.fromTheme('dialog-warning')

Detailed Description

Definition at line 40 of file

Constructor & Destructor Documentation

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

Definition at line 122 of file

Definition at line 113 of file

Definition at line 117 of file

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

:type msg: DiagnosticArray
:rtype: DiagnosticStatus[]

Definition at line 179 of file

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

:type key: String.
:type list_statitem: DiagnosticsStatus
:rtype: StatusItem

Definition at line 158 of file

:param: status_name is a string that may consists of status names that
are delimited by slash.
:rtype: str

Definition at line 94 of file

Definition at line 109 of file

Definition at line 105 of file

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

:type status: DiagnosticStatus
:type node: StatusItem
:author: Isaac Saito

Definition at line 74 of file

Member Data Documentation

Definition at line 67 of file

Definition at line 68 of file

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

Definition at line 65 of file

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

Definition at line 66 of file

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

Definition at line 46 of file

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

Definition at line 48 of file

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

Definition at line 50 of file

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

Definition at line 47 of file

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 54 of file

Definition at line 52 of file

Definition at line 43 of file

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

Author(s): Isaac Saito, Ze'ev Klapow, Kevin Watts, Josh Faust
autogenerated on Mon Oct 6 2014 07:16:09