sr_publisher.h
Go to the documentation of this file.
1 
29 #ifndef SR_HAND_SR_PUBLISHER_H
30 #define SR_HAND_SR_PUBLISHER_H
31 
32 #include <boost/smart_ptr.hpp>
33 
34 #include <ros/ros.h>
36 
37 using ros::NodeHandle;
38 using ros::Rate;
39 using ros::Publisher;
41 
42 namespace shadowrobot
43 {
54 {
55 public:
63 
65  ~SRPublisher();
66 
70  void publish();
71 
72 private:
77 
80 
87 
93  inline double toRad(double deg)
94  {
95  return deg * 3.14159265 / 180.0;
96  }
97 }; // end class ShadowhandPublisher
98 
99 } // namespace shadowrobot
100 
101 #endif // SR_HAND_SR_PUBLISHER_H
SRPublisher(boost::shared_ptr< SRArticulatedRobot > sr_art_robot)
NodeHandle node
ros node handle
Definition: sr_publisher.h:74
Publisher sr_jointstate_target_pub
The publisher which publishes the data to the \/{prefix}\/target\/joint_states topic.
Definition: sr_publisher.h:84
boost::shared_ptr< SRArticulatedRobot > sr_articulated_robot
The shadowhand object (can be either an object connected to the real robot or a virtual hand)...
Definition: sr_publisher.h:79
~SRPublisher()
Destructor.
This is a parent class for the different types of Shadowhand we can have. It makes it possible to swa...
Publisher sr_jointstate_pos_pub
The publisher which publishes the data to the \/{prefix}\/position\/joint_states topic.
Definition: sr_publisher.h:82
Rate publish_rate
the rate at which the data will be published. This can be set by a parameter in the launch file...
Definition: sr_publisher.h:76
double toRad(double deg)
Definition: sr_publisher.h:93
Publisher sr_pub
The publisher which publishes the data to the \/{prefix}\/shadowhand_data topic.
Definition: sr_publisher.h:86
This is a parent class for the different types of Shadowhand we can have. It makes it possible to swa...


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