sr_virtual_tactile_sensor.hpp
Go to the documentation of this file.
1 
29 #ifndef _SR_VIRTUAL_TACTILE_SENSOR_HPP_
30 #define _SR_VIRTUAL_TACTILE_SENSOR_HPP_
31 
32 #include <ros/ros.h>
33 
34 #include <boost/thread/mutex.hpp>
35 #include <string>
36 #include <vector>
37 
39 
40 #include <sr_robot_msgs/joints_data.h>
41 #include <sr_robot_msgs/joint.h>
42 
43 namespace shadowrobot
44 {
47 {
48 public:
60  SrVirtualTactileSensor(std::string name, std::string touch_name);
61 
63 
69  virtual double get_touch_data();
70 
71 private:
73  boost::mutex touch_mutex;
74  double touch_value;
75 
79  std::vector<std::string> names_joints_linked;
85 
94  void callback(const sr_robot_msgs::joints_dataConstPtr &msg);
95 };
96 
99 {
100 public:
102 
104 };
105 } // namespace shadowrobot
106 
107 /* For the emacs weenies in the crowd.
108 Local Variables:
109  c-basic-offset: 2
110 End:
111 */
112 
113 #endif
This is a generic parent class for the tactile sensors used in the Shadow Robot Dextrous Hand...
void callback(const sr_robot_msgs::joints_dataConstPtr &msg)
SrVirtualTactileSensor(std::string name, std::string touch_name)


sr_tactile_sensors
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:46