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

#include <joint_diagnostics.h>

Public Member Functions

 JointStats (std::string nam)
 
boost::shared_ptr< diagnostic_updater::DiagnosticStatusWrappertoDiagStat () const
 
bool update (const pr2_mechanism_msgs::JointStatistics &js)
 
 ~JointStats ()
 

Private Member Functions

void reset_vals ()
 

Private Attributes

double commanded_effort
 
bool is_calibrated
 
double max_abs_eff_val
 
double max_abs_vel_val
 
double max_pos_val
 
double measured_effort
 
double min_pos_val
 
std::string name
 
bool needs_reset
 
double odometer
 
double position
 
ros::Time updateTime
 
double velocity
 
bool violated_limits
 

Detailed Description

Tracks data from joints and publishes to diagnostics Updates with pr2_mechanism_msgs/JointStatistics data

Any joint that reports a NaN or Inf value will report an error. Any joint that is uncalibrated will report a warning.

Definition at line 108 of file joint_diagnostics.h.

Constructor & Destructor Documentation

◆ JointStats()

JointStats::JointStats ( std::string  nam)

!< Resets min/max values for next publish

Definition at line 58 of file joint_diagnostics.cpp.

◆ ~JointStats()

pr2_mechanism_diagnostics::JointStats::~JointStats ( )
inline

Definition at line 132 of file joint_diagnostics.h.

Member Function Documentation

◆ reset_vals()

void JointStats::reset_vals ( )
private

Definition at line 74 of file joint_diagnostics.cpp.

◆ toDiagStat()

Definition at line 85 of file joint_diagnostics.cpp.

◆ update()

bool JointStats::update ( const pr2_mechanism_msgs::JointStatistics &  js)

Definition at line 136 of file joint_diagnostics.cpp.

Member Data Documentation

◆ commanded_effort

double pr2_mechanism_diagnostics::JointStats::commanded_effort
private

Definition at line 119 of file joint_diagnostics.h.

◆ is_calibrated

bool pr2_mechanism_diagnostics::JointStats::is_calibrated
private

Definition at line 120 of file joint_diagnostics.h.

◆ max_abs_eff_val

double pr2_mechanism_diagnostics::JointStats::max_abs_eff_val
private

Definition at line 125 of file joint_diagnostics.h.

◆ max_abs_vel_val

double pr2_mechanism_diagnostics::JointStats::max_abs_vel_val
private

Definition at line 125 of file joint_diagnostics.h.

◆ max_pos_val

double pr2_mechanism_diagnostics::JointStats::max_pos_val
private

Definition at line 125 of file joint_diagnostics.h.

◆ measured_effort

double pr2_mechanism_diagnostics::JointStats::measured_effort
private

Definition at line 118 of file joint_diagnostics.h.

◆ min_pos_val

double pr2_mechanism_diagnostics::JointStats::min_pos_val
private

Definition at line 125 of file joint_diagnostics.h.

◆ name

std::string pr2_mechanism_diagnostics::JointStats::name
private

Definition at line 115 of file joint_diagnostics.h.

◆ needs_reset

bool pr2_mechanism_diagnostics::JointStats::needs_reset
mutableprivate

Definition at line 113 of file joint_diagnostics.h.

◆ odometer

double pr2_mechanism_diagnostics::JointStats::odometer
private

Definition at line 122 of file joint_diagnostics.h.

◆ position

double pr2_mechanism_diagnostics::JointStats::position
private

Definition at line 116 of file joint_diagnostics.h.

◆ updateTime

ros::Time pr2_mechanism_diagnostics::JointStats::updateTime
private

Definition at line 111 of file joint_diagnostics.h.

◆ velocity

double pr2_mechanism_diagnostics::JointStats::velocity
private

Definition at line 117 of file joint_diagnostics.h.

◆ violated_limits

bool pr2_mechanism_diagnostics::JointStats::violated_limits
private

Definition at line 121 of file joint_diagnostics.h.


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


pr2_mechanism_diagnostics
Author(s): Kevin Watts
autogenerated on Mon Mar 6 2023 03:49:19