Public Member Functions | Private Attributes | Static Private Attributes | List of all members
shadowrobot::SRDiagnosticer Class Reference

#include <sr_diagnosticer.h>

Public Member Functions

void publish ()
 
 SRDiagnosticer (boost::shared_ptr< SRArticulatedRobot > sr_art_robot, hardware_types hw_type)
 
 ~SRDiagnosticer ()
 Destructor. More...
 

Private Attributes

hardware_types hardware_type
 store the hardware_type for this diagnosticer. More...
 
NodeHandle n_tilde
 
NodeHandle node
 ros node handle More...
 
Rate publish_rate
 the rate at which the data will be published. This can be set by a parameter in the launch file. More...
 
boost::shared_ptr< SRArticulatedRobotsr_articulated_robot
 The shadowhand object (can be either an object connected to the real robot or a virtual hand). More...
 
Publisher sr_diagnostics_pub
 The publisher which publishes the data to the \/diagnostics topic. More...
 

Static Private Attributes

static const double palm_msg_rate_const = 4000.0
 const to convert the rate data to Hz More...
 
static const double palm_numb_msg_const = 9.0
 const to convert the rate data to Hz More...
 

Detailed Description

Definition at line 62 of file sr_diagnosticer.h.

Constructor & Destructor Documentation

shadowrobot::SRDiagnosticer::SRDiagnosticer ( boost::shared_ptr< SRArticulatedRobot sr_art_robot,
hardware_types  hw_type 
)

Constructor initializing the ROS node, and setting the topic to which it publishes. The frequency at which this node will publish data is set by a parameter, read from ROS parameter server.

Parameters
sr_art_robotA SRArticulatedRobot object, where the information to be published comes from.
hw_typeThe type of hardware we are publishing diagnostics about.

Definition at line 63 of file sr_diagnosticer.cpp.

shadowrobot::SRDiagnosticer::~SRDiagnosticer ( )

Destructor.

Definition at line 79 of file sr_diagnosticer.cpp.

Member Function Documentation

void shadowrobot::SRDiagnosticer::publish ( )

The callback method which is called at a given frequency. Gets the data from the shadowhand / shadowarm object.

Definition at line 88 of file sr_diagnosticer.cpp.

Member Data Documentation

hardware_types shadowrobot::SRDiagnosticer::hardware_type
private

store the hardware_type for this diagnosticer.

Definition at line 100 of file sr_diagnosticer.h.

NodeHandle shadowrobot::SRDiagnosticer::n_tilde
private

Definition at line 92 of file sr_diagnosticer.h.

NodeHandle shadowrobot::SRDiagnosticer::node
private

ros node handle

Definition at line 92 of file sr_diagnosticer.h.

const double shadowrobot::SRDiagnosticer::palm_msg_rate_const = 4000.0
staticprivate

const to convert the rate data to Hz

Definition at line 86 of file sr_diagnosticer.h.

const double shadowrobot::SRDiagnosticer::palm_numb_msg_const = 9.0
staticprivate

const to convert the rate data to Hz

Definition at line 84 of file sr_diagnosticer.h.

Rate shadowrobot::SRDiagnosticer::publish_rate
private

the rate at which the data will be published. This can be set by a parameter in the launch file.

Definition at line 94 of file sr_diagnosticer.h.

boost::shared_ptr<SRArticulatedRobot> shadowrobot::SRDiagnosticer::sr_articulated_robot
private

The shadowhand object (can be either an object connected to the real robot or a virtual hand).

Definition at line 89 of file sr_diagnosticer.h.

Publisher shadowrobot::SRDiagnosticer::sr_diagnostics_pub
private

The publisher which publishes the data to the \/diagnostics topic.

Definition at line 97 of file sr_diagnosticer.h.


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


sr_hand
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:53