sr_real_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_REAL_TACTILE_SENSOR_HPP_
30 #define _SR_REAL_TACTILE_SENSOR_HPP_
31 
32 #include <ros/ros.h>
33 
34 #include <string>
35 
36 // our robot code
37 #include <robot/robot.h>
38 #include <robot/hand.h>
39 #include <robot/hand_protocol.h>
40 
42 
43 namespace shadowrobot
44 {
47 {
48 public:
49  SrRealTactileSensor(std::string name, std::string touch_name);
50 
51  virtual ~SrRealTactileSensor();
52 
58  virtual double get_touch_data();
59 
60 private:
61  struct sensor sensor_touch;
62  int res_touch;
63 };
64 
67 {
68 public:
70 
72 };
73 } // namespace shadowrobot
74 
75 /* For the emacs weenies in the crowd.
76 Local Variables:
77  c-basic-offset: 2
78 End:
79 */
80 
81 #endif
This is a generic parent class for the tactile sensors used in the Shadow Robot Dextrous Hand...
SrRealTactileSensor(std::string name, std::string touch_name)


sr_tactile_sensors
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:52:14