class documentation
class DiagnosticTaskVector:
Known subclasses: niryo_libraries.diagnostic_updater._diagnostic_updater.Updater
Internal use only.
Base class for diagnostic_updater::Updater and self_test::Dispatcher. The class manages a collection of diagnostic updaters. It contains the common functionality used for producing diagnostic updates and for self-tests.
Class |
|
Class used to represent a diagnostic task internally in DiagnosticTaskVector. |
Method | __init__ |
Undocumented |
Method | add |
Add a task to the DiagnosticTaskVector. |
Method | added |
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. |
Method | remove |
Removes a task based on its name. |
Instance Variable | lock |
Undocumented |
Instance Variable | tasks |
Undocumented |
Add a task to the DiagnosticTaskVector.
Usage: add(task): where task is a DiagnosticTask add(name, fn): add a DiagnosticTask embodied by a name and function
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.