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

#include <pr2_mechanism_diagnostics.h>

Public Member Functions

 CtrlJntDiagnosticPublisher ()
 
bool ok () const
 
void publishDiag ()
 
 ~CtrlJntDiagnosticPublisher ()
 

Private Member Functions

void mechCallback (const pr2_mechanism_msgs::MechanismStatistics::ConstPtr &mechMsg)
 

Private Attributes

std::map< std::string, boost::shared_ptr< ControllerStats > > controller_stats
 
ros::Publisher diag_pub_
 
bool disable_controller_warnings_
 
std::map< std::string, boost::shared_ptr< JointStats > > joint_stats
 
ros::Subscriber mech_st_sub_
 
ros::NodeHandle n_
 
ros::NodeHandle pnh_
 
bool use_sim_time_
 

Detailed Description

Publishes diagnostics data from pr2_mechanism_msgs/MechanismStatistics for joints and controllers.

Definition at line 94 of file pr2_mechanism_diagnostics.h.

Constructor & Destructor Documentation

◆ CtrlJntDiagnosticPublisher()

CtrlJntDiagnosticPublisher::CtrlJntDiagnosticPublisher ( )

Definition at line 45 of file pr2_mechanism_diagnostics.cpp.

◆ ~CtrlJntDiagnosticPublisher()

pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::~CtrlJntDiagnosticPublisher ( )
inline

Definition at line 144 of file pr2_mechanism_diagnostics.h.

Member Function Documentation

◆ mechCallback()

void CtrlJntDiagnosticPublisher::mechCallback ( const pr2_mechanism_msgs::MechanismStatistics::ConstPtr &  mechMsg)
private

Definition at line 62 of file pr2_mechanism_diagnostics.cpp.

◆ ok()

bool pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::ok ( ) const
inline

Definition at line 148 of file pr2_mechanism_diagnostics.h.

◆ publishDiag()

void CtrlJntDiagnosticPublisher::publishDiag ( )

Publish diagnostics from joints, controllers

Definition at line 85 of file pr2_mechanism_diagnostics.cpp.

Member Data Documentation

◆ controller_stats

std::map<std::string, boost::shared_ptr<ControllerStats> > pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::controller_stats
private

Definition at line 130 of file pr2_mechanism_diagnostics.h.

◆ diag_pub_

ros::Publisher pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::diag_pub_
private

Definition at line 134 of file pr2_mechanism_diagnostics.h.

◆ disable_controller_warnings_

bool pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::disable_controller_warnings_
private

Definition at line 137 of file pr2_mechanism_diagnostics.h.

◆ joint_stats

std::map<std::string, boost::shared_ptr<JointStats> > pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::joint_stats
private

Definition at line 129 of file pr2_mechanism_diagnostics.h.

◆ mech_st_sub_

ros::Subscriber pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::mech_st_sub_
private

Definition at line 133 of file pr2_mechanism_diagnostics.h.

◆ n_

ros::NodeHandle pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::n_
private

Definition at line 132 of file pr2_mechanism_diagnostics.h.

◆ pnh_

ros::NodeHandle pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::pnh_
private

Definition at line 132 of file pr2_mechanism_diagnostics.h.

◆ use_sim_time_

bool pr2_mechanism_diagnostics::CtrlJntDiagnosticPublisher::use_sim_time_
private

Definition at line 136 of file pr2_mechanism_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