class documentation
class CompositeDiagnosticTask(DiagnosticTask):
Known subclasses: niryo_libraries.diagnostic_updater._publisher.HeaderlessTopicDiagnostic
Constructor: CompositeDiagnosticTask(name)
Merges CompositeDiagnosticTask into a single DiagnosticTask.
The CompositeDiagnosticTask allows multiple DiagnosticTask instances to be combined into a single task that produces a single DiagnosticStatusWrapped. The output of the combination has the max of the status levels, and a concatenation of the non-zero-level messages.
For instance, this could be used to combine the calibration and offset data from an IMU driver.
Method | __init__ |
Constructs a CompositeDiagnosticTask with the given name. |
Method | add |
Adds a child CompositeDiagnosticTask. |
Method | run |
Runs each child and merges their outputs. |
Instance Variable | tasks |
Undocumented |
Inherited from DiagnosticTask
:
Method | get |
Returns the name of the DiagnosticTask. |
Instance Variable | name |
Undocumented |