Functions | |
def | get_color_for_message |
def | get_resource_name |
def | get_status_by_name |
def | level_to_color |
def | level_to_icon |
def | level_to_text |
Variables | |
tuple | _ERR_ICON = QIcon.fromTheme('dialog-error') |
dictionary | _LEVEL_TO_COLOR |
dictionary | _LEVEL_TO_ICON = {0: _OK_ICON, 1: _WARN_ICON, 2: _ERR_ICON, 3: _STALE_ICON} |
dictionary | _LEVEL_TO_TEXT = { 0: "OK", 1: "WARNING", 2: "ERROR", 3: "STALE" } |
tuple | _OK_ICON = QIcon.fromTheme('emblem-default') |
tuple | _STALE_ICON = QIcon.fromTheme('dialog-question') |
tuple | _WARN_ICON = QIcon.fromTheme('dialog-warning') |
Get the overall (worst) color for a DiagnosticArray :param msg: DiagnosticArray
Definition at line 88 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.get_resource_name | ( | status_name | ) |
Get resource name from path :param: status_name is a string that may consists of status names that are delimited by slash. :rtype: str
Definition at line 76 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.get_status_by_name | ( | msg, | |
name | |||
) |
Definition at line 110 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.level_to_color | ( | level | ) |
Definition at line 64 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.level_to_icon | ( | level | ) |
Definition at line 58 of file util_robot_monitor.py.
def rqt_robot_monitor.util_robot_monitor.level_to_text | ( | level | ) |
Definition at line 70 of file util_robot_monitor.py.
tuple rqt_robot_monitor::util_robot_monitor::_ERR_ICON = QIcon.fromTheme('dialog-error') |
Definition at line 42 of file util_robot_monitor.py.
00001 {0: QColor(85, 178, 76), # green 00002 1: QColor(222, 213, 17), # yellow 00003 2: QColor(178, 23, 46), # red 00004 3: QColor(40, 23, 176) # blue 00005 }
Definition at line 50 of file util_robot_monitor.py.
dictionary rqt_robot_monitor::util_robot_monitor::_LEVEL_TO_ICON = {0: _OK_ICON, 1: _WARN_ICON, 2: _ERR_ICON, 3: _STALE_ICON} |
Definition at line 48 of file util_robot_monitor.py.
dictionary rqt_robot_monitor::util_robot_monitor::_LEVEL_TO_TEXT = { 0: "OK", 1: "WARNING", 2: "ERROR", 3: "STALE" } |
Definition at line 56 of file util_robot_monitor.py.
tuple rqt_robot_monitor::util_robot_monitor::_OK_ICON = QIcon.fromTheme('emblem-default') |
Definition at line 44 of file util_robot_monitor.py.
tuple rqt_robot_monitor::util_robot_monitor::_STALE_ICON = QIcon.fromTheme('dialog-question') |
Definition at line 46 of file util_robot_monitor.py.
tuple rqt_robot_monitor::util_robot_monitor::_WARN_ICON = QIcon.fromTheme('dialog-warning') |
Definition at line 43 of file util_robot_monitor.py.