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

| Public Member Functions | |
| void | clear () | 
| Resets the statistics.  More... | |
| const tue::LoopTimer & | getTimer () const | 
| Expose const reference to loop timer. No call to the const timer will be able to influence the behaviour of this class.  More... | |
| LoopUsageStatus (const diagnostic_updater::FrequencyStatusParam ¶ms) | |
| Constructs a LoopUsageStatus class with the given parameters. Uses a default diagnostic task name of "Loop Usage Status".  More... | |
| LoopUsageStatus (const diagnostic_updater::FrequencyStatusParam ¶ms, std::string name) | |
| Constructs a LoopUsageStatus class with the given parameters.  More... | |
| virtual void | run (diagnostic_updater::DiagnosticStatusWrapper &stat) | 
| Fills out this Task's DiagnosticStatusWrapper.  More... | |
| void | start () | 
| Signals that a start event has occurred.  More... | |
| void | stop () | 
| Signals that a stop event has occurred.  More... | |
| Private Attributes | |
| long double | duration_ | 
| std::vector< long double > | durations_ | 
| int | hist_indx_ | 
| boost::mutex | lock_ | 
| const diagnostic_updater::FrequencyStatusParam | params_ | 
| std::vector< int > | seq_nums_ | 
| long double | start_ | 
| std::vector< long double > | starts_ | 
| tue::LoopTimer | timer_ | 
A diagnostic task that monitors the frequency of an event.
This diagnostic task monitors the frequency and usage of a loop 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. Heavily inspired by diagnostic_updater::FrequencyStatus
Definition at line 27 of file loop_usage_status.h.
| 
 | inline | 
Constructs a LoopUsageStatus class with the given parameters.
Definition at line 46 of file loop_usage_status.h.
| 
 | inline | 
Constructs a LoopUsageStatus class with the given parameters. Uses a default diagnostic task name of "Loop Usage Status".
Definition at line 58 of file loop_usage_status.h.
| 
 | inline | 
Resets the statistics.
Definition at line 74 of file loop_usage_status.h.
| 
 | inline | 
Expose const reference to loop timer. No call to the const timer will be able to influence the behaviour of this class.
Definition at line 69 of file loop_usage_status.h.
| 
 | inlinevirtual | 
Fills out this Task's DiagnosticStatusWrapper.
Definition at line 108 of file loop_usage_status.h.
| 
 | inline | 
Signals that a start event has occurred.
Definition at line 90 of file loop_usage_status.h.
| 
 | inline | 
Signals that a stop event has occurred.
Definition at line 99 of file loop_usage_status.h.
| 
 | private | 
Definition at line 38 of file loop_usage_status.h.
| 
 | private | 
Definition at line 34 of file loop_usage_status.h.
| 
 | private | 
Definition at line 36 of file loop_usage_status.h.
| 
 | private | 
Definition at line 40 of file loop_usage_status.h.
| 
 | private | 
Definition at line 30 of file loop_usage_status.h.
| 
 | private | 
Definition at line 35 of file loop_usage_status.h.
| 
 | private | 
Definition at line 37 of file loop_usage_status.h.
| 
 | private | 
Definition at line 33 of file loop_usage_status.h.
| 
 | private | 
Definition at line 32 of file loop_usage_status.h.
 1.8.17
 1.8.17