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} |
int | SECONDS_TIMELINE = 30 |
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') |
Definition at line 40 of file util_robot_monitor.py.
Definition at line 70 of file util_robot_monitor.py.
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 util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.gen_headline_status_green | ( | diagnostic_status | ) | [static] |
Definition at line 113 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.gen_headline_warn_or_err | ( | diagnostic_status | ) | [static] |
Definition at line 117 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.get_children | ( | name, | |
diag_array | |||
) | [static] |
:type msg: DiagnosticArray :rtype: DiagnosticStatus[]
Definition at line 179 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.get_correspondent | ( | key, | |
list_statitem | |||
) | [static] |
:type key: String. :type list_statitem: DiagnosticsStatus :rtype: StatusItem
Definition at line 158 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.get_grn_resource_name | ( | status_name | ) | [static] |
: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 util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.get_parent_name | ( | status_name | ) | [static] |
Definition at line 109 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.remove_parent_name | ( | status_name | ) | [static] |
Definition at line 105 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.Util.update_status_images | ( | diagnostic_status, | |
statusitem | |||
) | [static] |
Taken from robot_monitor.robot_monitor_panel.py. :type status: DiagnosticStatus :type node: StatusItem :author: Isaac Saito
Definition at line 74 of file util_robot_monitor.py.
string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_INDEX = 'index' [static, private] |
Definition at line 67 of file util_robot_monitor.py.
string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_STATITEM = 'statitem' [static, private] |
Definition at line 68 of file util_robot_monitor.py.
string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_TIMES_ERROR = 'times_errors' [static, private] |
Definition at line 65 of file util_robot_monitor.py.
string rqt_robot_monitor::util_robot_monitor.Util::_DICTKEY_TIMES_WARN = 'times_warnings' [static, private] |
Definition at line 66 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 46 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 48 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 50 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 47 of file util_robot_monitor.py.
dictionary rqt_robot_monitor::util_robot_monitor.Util::COLOR_DICT [static] |
{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 util_robot_monitor.py.
dictionary rqt_robot_monitor::util_robot_monitor.Util::IMG_DICT = {0: _OK_ICON, 1: _WARN_ICON, 2: _ERR_ICON, 3: _STALE_ICON} [static] |
Definition at line 52 of file util_robot_monitor.py.
int rqt_robot_monitor::util_robot_monitor.Util::SECONDS_TIMELINE = 30 [static] |
Definition at line 43 of file util_robot_monitor.py.