Functions | |
def | get_color_for_message (msg) |
def | get_resource_name (status_name) |
def | get_status_by_name (msg, name) |
def | level_to_color (level) |
def | level_to_icon (level) |
def | level_to_text (level) |
Variables | |
_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" } |
_OK_ICON = QIcon.fromTheme('emblem-default') | |
_STALE_ICON = QIcon.fromTheme('dialog-question') | |
_WARN_ICON = QIcon.fromTheme('dialog-warning') | |
def rqt_robot_monitor.util_robot_monitor.get_color_for_message | ( | msg | ) |
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.
|
private |
Definition at line 42 of file util_robot_monitor.py.
|
private |
Definition at line 50 of file util_robot_monitor.py.
|
private |
Definition at line 48 of file util_robot_monitor.py.
|
private |
Definition at line 56 of file util_robot_monitor.py.
|
private |
Definition at line 44 of file util_robot_monitor.py.
|
private |
Definition at line 46 of file util_robot_monitor.py.
|
private |
Definition at line 43 of file util_robot_monitor.py.