Public Member Functions | Private Attributes | List of all members
pr2_mechanism_diagnostics::ControllerStats Class Reference

#include <controller_diagnostics.h>

Public Member Functions

 ControllerStats (std::string nam, bool disable_warnings)
 
bool shouldDiscard () const
 
boost::shared_ptr< diagnostic_updater::DiagnosticStatusWrappertoDiagStat () 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
 

Detailed Description

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 58 of file controller_diagnostics.h.

Constructor & Destructor Documentation

◆ ControllerStats()

ControllerStats::ControllerStats ( std::string  nam,
bool  disable_warnings 
)

Definition at line 43 of file controller_diagnostics.cpp.

◆ ~ControllerStats()

pr2_mechanism_diagnostics::ControllerStats::~ControllerStats ( )
inline

Definition at line 77 of file controller_diagnostics.h.

Member Function Documentation

◆ shouldDiscard()

bool pr2_mechanism_diagnostics::ControllerStats::shouldDiscard ( ) const
inline

Definition at line 82 of file controller_diagnostics.h.

◆ toDiagStat()

boost::shared_ptr< diagnostic_updater::DiagnosticStatusWrapper > ControllerStats::toDiagStat ( ) const

Definition at line 73 of file controller_diagnostics.cpp.

◆ update()

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.

Member Data Documentation

◆ disable_warnings_

bool pr2_mechanism_diagnostics::ControllerStats::disable_warnings_
private

Definition at line 72 of file controller_diagnostics.h.

◆ last_overrun_time

ros::Time pr2_mechanism_diagnostics::ControllerStats::last_overrun_time
private

Definition at line 70 of file controller_diagnostics.h.

◆ max_time

ros::Duration pr2_mechanism_diagnostics::ControllerStats::max_time
private

Definition at line 66 of file controller_diagnostics.h.

◆ mean_time

ros::Duration pr2_mechanism_diagnostics::ControllerStats::mean_time
private

Definition at line 67 of file controller_diagnostics.h.

◆ name

std::string pr2_mechanism_diagnostics::ControllerStats::name
private

Definition at line 63 of file controller_diagnostics.h.

◆ num_overruns

int pr2_mechanism_diagnostics::ControllerStats::num_overruns
private

Definition at line 69 of file controller_diagnostics.h.

◆ running

bool pr2_mechanism_diagnostics::ControllerStats::running
private

Definition at line 65 of file controller_diagnostics.h.

◆ timestamp

ros::Time pr2_mechanism_diagnostics::ControllerStats::timestamp
private

Definition at line 64 of file controller_diagnostics.h.

◆ updateTime

ros::Time pr2_mechanism_diagnostics::ControllerStats::updateTime
private

Definition at line 61 of file controller_diagnostics.h.

◆ variance_time

ros::Duration pr2_mechanism_diagnostics::ControllerStats::variance_time
private

Definition at line 68 of file controller_diagnostics.h.


The documentation for this class was generated from the following files:


pr2_mechanism_diagnostics
Author(s): Kevin Watts
autogenerated on Tue Mar 7 2023 03:54:57