#include <sr_diagnosticer.h>
Public Member Functions | |
void | publish () |
SRDiagnosticer (boost::shared_ptr< SRArticulatedRobot > sr_art_robot, hardware_types hw_type) | |
~SRDiagnosticer () | |
Destructor. | |
Private Attributes | |
hardware_types | hardware_type |
store the hardware_type for this diagnosticer. | |
NodeHandle | n_tilde |
NodeHandle | node |
ros node handle | |
Rate | publish_rate |
the rate at which the data will be published. This can be set by a parameter in the launch file. | |
boost::shared_ptr < SRArticulatedRobot > | sr_articulated_robot |
The shadowhand object (can be either an object connected to the real robot or a virtual hand). | |
Publisher | sr_diagnostics_pub |
The publisher which publishes the data to the \/diagnostics topic. | |
Static Private Attributes | |
static const double | palm_msg_rate_const = 4000.0 |
const to convert the rate data to Hz | |
static const double | palm_numb_msg_const = 9.0 |
const to convert the rate data to Hz |
Definition at line 60 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.
sh | 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 61 of file sr_diagnosticer.cpp.
shadowrobot::SRDiagnosticer::~SRDiagnosticer | ( | ) |
Destructor.
Definition at line 77 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 86 of file sr_diagnosticer.cpp.
store the hardware_type for this diagnosticer.
Definition at line 98 of file sr_diagnosticer.h.
NodeHandle shadowrobot::SRDiagnosticer::n_tilde [private] |
Definition at line 90 of file sr_diagnosticer.h.
NodeHandle shadowrobot::SRDiagnosticer::node [private] |
ros node handle
Definition at line 90 of file sr_diagnosticer.h.
const double shadowrobot::SRDiagnosticer::palm_msg_rate_const = 4000.0 [static, private] |
const to convert the rate data to Hz
Definition at line 84 of file sr_diagnosticer.h.
const double shadowrobot::SRDiagnosticer::palm_numb_msg_const = 9.0 [static, private] |
const to convert the rate data to Hz
Definition at line 82 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 92 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 87 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 95 of file sr_diagnosticer.h.