real_arm.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010 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 
26 #ifndef SR_HAND_HAND_REAL_ARM_H
27 #define SR_HAND_HAND_REAL_ARM_H
28 
29 #include <robot/config.h>
30 #include <string>
31 #include <vector>
32 
34 
35 namespace shadowrobot
36 {
37 
38 class RealArm :
39  public SRArticulatedRobot
40 {
41 public:
45  RealArm();
46 
47  virtual ~RealArm();
48 
49  // virtual classes defined in SRArticulatedRobot
59  virtual int16_t sendupdate(std::string joint_name, double target);
60 
67  virtual JointData getJointData(std::string joint_name);
68 
69  virtual JointsMap getAllJointsData();
70 
71  virtual int16_t setContrl(std::string contrlr_name, JointControllerData ctrlr_data);
72 
73  virtual JointControllerData getContrl(std::string ctrlr_name);
74 
75  virtual int16_t setConfig(std::vector <std::string> myConfig);
76 
77  virtual void getConfig(std::string joint_name);
78 
83  virtual std::vector <DiagnosticData> getDiagnostics();
84 
85 protected:
89  void initializeMap();
90 };
91 
92 } // namespace shadowrobot
93 
94 #endif // SR_HAND_HAND_REAL_ARM_H
virtual int16_t setContrl(std::string contrlr_name, JointControllerData ctrlr_data)
Definition: real_arm.cpp:172
std::map< std::string, JointData > JointsMap
virtual JointData getJointData(std::string joint_name)
Definition: real_arm.cpp:123
virtual ~RealArm()
Definition: real_arm.cpp:60
virtual JointsMap getAllJointsData()
Definition: real_arm.cpp:158
virtual int16_t setConfig(std::vector< std::string > myConfig)
Definition: real_arm.cpp:185
This is a parent class for the different types of Shadowhand we can have. It makes it possible to swa...
virtual std::vector< DiagnosticData > getDiagnostics()
Definition: real_arm.cpp:196
virtual void getConfig(std::string joint_name)
Definition: real_arm.cpp:191
virtual int16_t sendupdate(std::string joint_name, double target)
Definition: real_arm.cpp:89
virtual JointControllerData getContrl(std::string ctrlr_name)
Definition: real_arm.cpp:178
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 Mon Feb 28 2022 23:52:24