sr_gazebo_virtual_tactile_sensor.hpp
Go to the documentation of this file.
1 /*
2 * Copyright 2011 Shadow Robot Company Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 
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 Mon Feb 28 2022 23:52:14