real_arm.h
Go to the documentation of this file.
1 
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 Tue Oct 13 2020 03:55:53