#include <controller_diagnostics.h>
Public Member Functions | |
ControllerStats (std::string nam, bool disable_warnings) | |
bool | shouldDiscard () const |
boost::shared_ptr< diagnostic_updater::DiagnosticStatusWrapper > | toDiagStat () const |
bool | update (const pr2_mechanism_msgs::ControllerStatistics &cs) |
~ControllerStats () | |
Private Attributes | |
bool | disable_warnings_ |
ros::Time | last_overrun_time |
ros::Duration | max_time |
ros::Duration | mean_time |
std::string | name |
int | num_overruns |
bool | running |
ros::Time | timestamp |
ros::Time | updateTime |
ros::Duration | variance_time |
Tracks data from controllers and publishes to diagnostics Updates with pr2_mechanism_msgs/ControllerStatistics data
Controllers that don't update in more than 3 seconds will be discarded. Controllers that have overran the 1000us limit will report a warning for the 30 seconds after the most recent overrun.
Definition at line 90 of file controller_diagnostics.h.
ControllerStats::ControllerStats | ( | std::string | nam, |
bool | disable_warnings | ||
) |
Definition at line 43 of file controller_diagnostics.cpp.
|
inline |
Definition at line 141 of file controller_diagnostics.h.
|
inline |
Definition at line 146 of file controller_diagnostics.h.
boost::shared_ptr< diagnostic_updater::DiagnosticStatusWrapper > ControllerStats::toDiagStat | ( | ) | const |
Definition at line 73 of file controller_diagnostics.cpp.
bool ControllerStats::update | ( | const pr2_mechanism_msgs::ControllerStatistics & | cs | ) |
! True if we should discard stale controller value
Definition at line 52 of file controller_diagnostics.cpp.
|
private |
Definition at line 136 of file controller_diagnostics.h.
|
private |
Definition at line 134 of file controller_diagnostics.h.
|
private |
Definition at line 130 of file controller_diagnostics.h.
|
private |
Definition at line 131 of file controller_diagnostics.h.
|
private |
Definition at line 127 of file controller_diagnostics.h.
|
private |
Definition at line 133 of file controller_diagnostics.h.
|
private |
Definition at line 129 of file controller_diagnostics.h.
|
private |
Definition at line 128 of file controller_diagnostics.h.
|
private |
Definition at line 125 of file controller_diagnostics.h.
|
private |
Definition at line 132 of file controller_diagnostics.h.