#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< SRArticulatedRobot > | sr_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... | |
Definition at line 62 of file sr_diagnosticer.h.
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.
sr_art_robot | A SRArticulatedRobot object, where the information to be published comes from. |
hw_type | The 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.
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.
|
private |
store the hardware_type for this diagnosticer.
Definition at line 100 of file sr_diagnosticer.h.
|
private |
Definition at line 92 of file sr_diagnosticer.h.
|
private |
ros node handle
Definition at line 92 of file sr_diagnosticer.h.
|
staticprivate |
const to convert the rate data to Hz
Definition at line 86 of file sr_diagnosticer.h.
|
staticprivate |
const to convert the rate data to Hz
Definition at line 84 of file sr_diagnosticer.h.
|
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.
|
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.
|
private |
The publisher which publishes the data to the \/diagnostics topic.
Definition at line 97 of file sr_diagnosticer.h.