A class to facilitate making diagnostics for a topic using a FrequencyStatus and TimeStampStatus. More...
Public Member Functions
|virtual void||tick ()|
|virtual void||tick (const ros::Time &stamp)|
|Collects statistics and publishes the message. More...|
|TopicDiagnostic (std::string name, diagnostic_updater::Updater &diag, const diagnostic_updater::FrequencyStatusParam &freq, const diagnostic_updater::TimeStampStatusParam &stamp)|
|Constructs a TopicDiagnostic. More...|
|Public Member Functions inherited from diagnostic_updater::HeaderlessTopicDiagnostic|
|virtual void||clear_window ()|
|Clears the frequency statistics. More...|
|HeaderlessTopicDiagnostic (std::string name, diagnostic_updater::Updater &diag, const diagnostic_updater::FrequencyStatusParam &freq)|
|Constructs a HeaderlessTopicDiagnostic. More...|
|Public Member Functions inherited from diagnostic_updater::CompositeDiagnosticTask|
|void||addTask (DiagnosticTask *t)|
|Adds a child CompositeDiagnosticTask. More...|
|CompositeDiagnosticTask (const std::string name)|
|Constructs a CompositeDiagnosticTask with the given name. More...|
|virtual void||run (DiagnosticStatusWrapper &stat)|
|Runs each child and merges their outputs. More...|
|Public Member Functions inherited from diagnostic_updater::DiagnosticTask|
|DiagnosticTask (const std::string name)|
|Constructs a DiagnosticTask setting its name in the process. More...|
|const std::string &||getName ()|
|Returns the name of the DiagnosticTask. More...|
A class to facilitate making diagnostics for a topic using a FrequencyStatus and TimeStampStatus.
Definition at line 143 of file publisher.h.
Constructs a TopicDiagnostic.
|name||The name of the topic that is being diagnosed.|
|diag||The diagnostic_updater that the CompositeDiagnosticTask should add itself to.|
|freq||The parameters for the FrequencyStatus class that will be computing statistics.|
|stamp||The parameters for the TimeStampStatus class that will be computing statistics.|
Definition at line 161 of file publisher.h.
Definition at line 172 of file publisher.h.
This method should never be called on a TopicDiagnostic as a timestamp is needed to collect the timestamp diagnostics. It is defined here to prevent the inherited tick method from being used accidentally.
Reimplemented from diagnostic_updater::HeaderlessTopicDiagnostic.
Definition at line 180 of file publisher.h.
Collects statistics and publishes the message.
|stamp||Timestamp to use for interval computation by the TimeStampStatus class.|
Definition at line 188 of file publisher.h.
Definition at line 195 of file publisher.h.