Public Member Functions | Public Attributes | Private Member Functions
diagnostic_updater._diagnostic_updater.Updater Class Reference
Inheritance diagram for diagnostic_updater._diagnostic_updater.Updater:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def addedTaskCallback
def broadcast
def force_update
def publish
def setHardwareID
def update

Public Attributes

 hwid
 last_time
 last_time_period_checked
 period
 publisher
 verbose
 warn_nohwid_done

Private Member Functions

def _check_diagnostic_period

Detailed Description

Manages a list of diagnostic tasks, and calls them in a rate-limited manner.

This class manages a list of diagnostic tasks. Its update function
should be called frequently. At some predetermined rate, the update
function will cause all the diagnostic tasks to run, and will collate
and publish the resulting diagnostics. The publication rate is
determined by the "~diagnostic_period" ros parameter.

The class also allows an update to be forced when something significant
has happened, and allows a single message to be broadcast on all the
diagnostics if normal operation of the node is suspended for some
reason.

Definition at line 211 of file _diagnostic_updater.py.


Constructor & Destructor Documentation

Constructs an updater class.

Reimplemented from diagnostic_updater._diagnostic_updater.DiagnosticTaskVector.

Definition at line 226 of file _diagnostic_updater.py.


Member Function Documentation

Recheck the diagnostic_period on the parameter server.

Definition at line 306 of file _diagnostic_updater.py.

Allows an action to be taken when a task is added. The Updater class
uses this to immediately publish a diagnostic that says that the node
is loading.

Reimplemented from diagnostic_updater._diagnostic_updater.DiagnosticTaskVector.

Definition at line 336 of file _diagnostic_updater.py.

Outputs a message on all the known DiagnosticStatus.

Useful if something drastic is happening such as shutdown or a self-test.

@param lvl Level of the diagnostic being output.
@param msg Status message to output.

Definition at line 284 of file _diagnostic_updater.py.

Forces the diagnostics to update.

Useful if the node has undergone a drastic state change that should be
published immediately.

Definition at line 247 of file _diagnostic_updater.py.

Publishes a single diagnostic status or a vector of diagnostic statuses.

Definition at line 323 of file _diagnostic_updater.py.

Definition at line 303 of file _diagnostic_updater.py.

Causes the diagnostics to update if the inter-update interval
has been exceeded.

Definition at line 239 of file _diagnostic_updater.py.


Member Data Documentation

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.

Definition at line 226 of file _diagnostic_updater.py.


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


diagnostic_updater
Author(s): Kevin Watts, Brice Rebsamen , Jeremy Leibs, Blaise Gassend
autogenerated on Mon Aug 14 2017 02:52:20