Functions | Variables
rqt_robot_monitor.util_robot_monitor Namespace Reference

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

Function Documentation

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.

Variable Documentation

rqt_robot_monitor.util_robot_monitor._ERR_ICON = QIcon.fromTheme('dialog-error')
private

Definition at line 42 of file util_robot_monitor.py.

dictionary rqt_robot_monitor.util_robot_monitor._LEVEL_TO_COLOR
private
Initial value:
1 = {0: QColor(85, 178, 76), # green
2  1: QColor(222, 213, 17), # yellow
3  2: QColor(178, 23, 46), # red
4  3: QColor(40, 23, 176) # blue
5  }

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}
private

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" }
private

Definition at line 56 of file util_robot_monitor.py.

rqt_robot_monitor.util_robot_monitor._OK_ICON = QIcon.fromTheme('emblem-default')
private

Definition at line 44 of file util_robot_monitor.py.

rqt_robot_monitor.util_robot_monitor._STALE_ICON = QIcon.fromTheme('dialog-question')
private

Definition at line 46 of file util_robot_monitor.py.

rqt_robot_monitor.util_robot_monitor._WARN_ICON = QIcon.fromTheme('dialog-warning')
private

Definition at line 43 of file util_robot_monitor.py.



rqt_robot_monitor
Author(s): Austin Hendrix, Isaac Saito, Ze'ev Klapow, Kevin Watts, Josh Faust
autogenerated on Thu Jun 4 2020 03:46:53