sr_gazebo_virtual_tactile_sensor.hpp
Go to the documentation of this file.
1 
29 #ifndef _SR_GAZEBO_VIRTUAL_TACTILE_SENSOR_HPP_
30 #define _SR_GAZEBO_VIRTUAL_TACTILE_SENSOR_HPP_
31 
32 #include <ros/ros.h>
33 
34 #include <boost/thread/mutex.hpp>
35 #include <string>
36 
38 
39 #include <gazebo_msgs/ContactsState.h>
40 
41 namespace shadowrobot
42 {
45 {
46 public:
47  SrGazeboVirtualTactileSensor(std::string name, std::string gazebo_topic);
48 
50 
51 protected:
57  virtual double get_touch_data();
58 
59 private:
61  boost::mutex touch_mutex;
62  double touch_value;
64 
66 
73  void callback(const gazebo_msgs::ContactsState &msg);
74 };
75 
78 {
79 public:
81 
83 };
84 } // namespace shadowrobot
85 
86 /* For the emacs weenies in the crowd.
87 Local Variables:
88  c-basic-offset: 2
89 End:
90 */
91 
92 #endif
This is a generic parent class for the tactile sensors used in the Shadow Robot Dextrous Hand...
SrGazeboVirtualTactileSensor(std::string name, std::string gazebo_topic)
void callback(const gazebo_msgs::ContactsState &msg)


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