Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
rosdiagnostic.rosdiagnostic.RosDiagnostics Class Reference
Inheritance diagram for rosdiagnostic.rosdiagnostic.RosDiagnostics:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, options)
 

Static Public Attributes

dictionary DIAG_MSG_LVL_STR_COLOR
 
dictionary DIAG_MSG_LVL_STR_NOCOLOR
 

Private Member Functions

def _diag_callback (self, msg)
 
def _get_leaf_statuses (self, statuses)
 
def _get_non_leaf_statuses (self, statuses)
 
def _get_ns (self, name)
 
def _print_begin_banner (self, msg)
 
def _print_end_banner (self, msg)
 
def _print_status (self, diag, ts)
 

Private Attributes

 _lvl_strings_map
 
 _options
 

Detailed Description

Definition at line 71 of file rosdiagnostic.py.

Constructor & Destructor Documentation

def rosdiagnostic.rosdiagnostic.RosDiagnostics.__init__ (   self,
  options 
)

Definition at line 87 of file rosdiagnostic.py.

Member Function Documentation

def rosdiagnostic.rosdiagnostic.RosDiagnostics._diag_callback (   self,
  msg 
)
private

Definition at line 115 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._get_leaf_statuses (   self,
  statuses 
)
private

Definition at line 99 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._get_non_leaf_statuses (   self,
  statuses 
)
private

Definition at line 96 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._get_ns (   self,
  name 
)
private

Definition at line 92 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._print_begin_banner (   self,
  msg 
)
private

Definition at line 103 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._print_end_banner (   self,
  msg 
)
private

Definition at line 110 of file rosdiagnostic.py.

def rosdiagnostic.rosdiagnostic.RosDiagnostics._print_status (   self,
  diag,
  ts 
)
private

Definition at line 123 of file rosdiagnostic.py.

Member Data Documentation

rosdiagnostic.rosdiagnostic.RosDiagnostics._lvl_strings_map
private

Definition at line 88 of file rosdiagnostic.py.

rosdiagnostic.rosdiagnostic.RosDiagnostics._options
private

Definition at line 89 of file rosdiagnostic.py.

dictionary rosdiagnostic.rosdiagnostic.RosDiagnostics.DIAG_MSG_LVL_STR_COLOR
static
Initial value:
1 = {
2  DiagnosticStatus.OK: '\033[92m OK \033[0m',
3  DiagnosticStatus.WARN: '\033[93mWARN \033[0m',
4  DiagnosticStatus.ERROR: '\033[91mERROR\033[0m',
5  DiagnosticStatus.STALE: '\033[94mSTALE\033[0m',
6  }

Definition at line 80 of file rosdiagnostic.py.

dictionary rosdiagnostic.rosdiagnostic.RosDiagnostics.DIAG_MSG_LVL_STR_NOCOLOR
static
Initial value:
1 = {
2  DiagnosticStatus.OK: ' OK ',
3  DiagnosticStatus.WARN: 'WARN ',
4  DiagnosticStatus.ERROR: 'ERROR',
5  DiagnosticStatus.STALE: 'STALE',
6  }

Definition at line 73 of file rosdiagnostic.py.


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


rosdiagnostic
Author(s): Guillaume Autran
autogenerated on Wed Mar 27 2019 03:02:25