A diagnostic task that monitors the frequency of an event. More...
#include <update_functions.h>

Public Member Functions | |
| void | clear () |
| Resets the statistics. More... | |
| FrequencyStatus (const FrequencyStatusParam ¶ms, std::string name) | |
| Constructs a FrequencyStatus class with the given parameters. More... | |
| FrequencyStatus (const FrequencyStatusParam ¶ms) | |
| Constructs a FrequencyStatus class with the given parameters. Uses a default diagnostic task name of "Frequency Status". More... | |
| virtual void | run (diagnostic_updater::DiagnosticStatusWrapper &stat) |
| Fills out this Task's DiagnosticStatusWrapper. More... | |
| void | tick () |
| Signals that an event has occurred. 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 Attributes | |
| int | count_ |
| int | hist_indx_ |
| boost::mutex | lock_ |
| const FrequencyStatusParam | params_ |
| std::vector< int > | seq_nums_ |
| std::vector< ros::Time > | times_ |
A diagnostic task that monitors the frequency of an event.
This diagnostic task monitors the frequency of calls to its tick method, and creates corresponding diagnostics. It will report a warning if the frequency is outside acceptable bounds, and report an error if there have been no events in the latest window.
Definition at line 103 of file update_functions.h.
|
inline |
Constructs a FrequencyStatus class with the given parameters.
Definition at line 119 of file update_functions.h.
|
inline |
Constructs a FrequencyStatus class with the given parameters. Uses a default diagnostic task name of "Frequency Status".
Definition at line 131 of file update_functions.h.
|
inline |
Resets the statistics.
Definition at line 142 of file update_functions.h.
|
inlinevirtual |
Fills out this Task's DiagnosticStatusWrapper.
Implements diagnostic_updater::DiagnosticTask.
Definition at line 167 of file update_functions.h.
|
inline |
Signals that an event has occurred.
Definition at line 160 of file update_functions.h.
|
private |
Definition at line 108 of file update_functions.h.
|
private |
Definition at line 111 of file update_functions.h.
|
private |
Definition at line 112 of file update_functions.h.
|
private |
Definition at line 106 of file update_functions.h.
|
private |
Definition at line 110 of file update_functions.h.
|
private |
Definition at line 109 of file update_functions.h.