Diagnostic task to monitor the interval between events. More...
#include <update_functions.h>
Public Member Functions | |
virtual void | run (diagnostic_updater::DiagnosticStatusWrapper &stat) |
Fills out this Task's DiagnosticStatusWrapper. More... | |
void | tick (double stamp) |
Signals an event. Timestamp stored as a double. More... | |
void | tick (const ros::Time t) |
Signals an event. More... | |
TimeStampStatus (const TimeStampStatusParam ¶ms, std::string name) | |
Constructs the TimeStampStatus with the given parameters. More... | |
TimeStampStatus (const TimeStampStatusParam ¶ms) | |
Constructs the TimeStampStatus with the given parameters. Uses a default diagnostic task name of "Timestamp Status". More... | |
TimeStampStatus () | |
Constructs the TimeStampStatus with the default parameters. Uses a default diagnostic task name of "Timestamp Status". 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... | |
virtual | ~DiagnosticTask () |
Private Member Functions | |
void | init () |
Private Attributes | |
bool | deltas_valid_ |
int | early_count_ |
int | late_count_ |
boost::mutex | lock_ |
double | max_delta_ |
double | min_delta_ |
TimeStampStatusParam | params_ |
int | zero_count_ |
bool | zero_seen_ |
Diagnostic task to monitor the interval between events.
This diagnostic task monitors the difference between consecutive events, and creates corresponding diagnostics. An error occurs if the interval between consecutive events is too large or too small. An error condition will only be reported during a single diagnostic report unless it persists. Tallies of errors are also maintained to keep track of errors in a more persistent way.
Definition at line 266 of file update_functions.h.
|
inline |
Constructs the TimeStampStatus with the given parameters.
Definition at line 285 of file update_functions.h.
|
inline |
Constructs the TimeStampStatus with the given parameters. Uses a default diagnostic task name of "Timestamp Status".
Definition at line 297 of file update_functions.h.
|
inline |
Constructs the TimeStampStatus with the default parameters. Uses a default diagnostic task name of "Timestamp Status".
Definition at line 309 of file update_functions.h.
|
inlineprivate |
Definition at line 269 of file update_functions.h.
|
virtual |
Fills out this Task's DiagnosticStatusWrapper.
Implements diagnostic_updater::DiagnosticTask.
Definition at line 5 of file timestamp_status.cpp.
|
inline |
Signals an event. Timestamp stored as a double.
stamp | The timestamp of the event that will be used in computing intervals. |
Definition at line 322 of file update_functions.h.
|
inline |
Signals an event.
t | The timestamp of the event that will be used in computing intervals. |
Definition at line 351 of file update_functions.h.
|
private |
Definition at line 366 of file update_functions.h.
|
private |
Definition at line 360 of file update_functions.h.
|
private |
Definition at line 361 of file update_functions.h.
|
private |
Definition at line 367 of file update_functions.h.
|
private |
Definition at line 364 of file update_functions.h.
|
private |
Definition at line 365 of file update_functions.h.
|
private |
Definition at line 359 of file update_functions.h.
|
private |
Definition at line 362 of file update_functions.h.
|
private |
Definition at line 363 of file update_functions.h.