List of all members.
Definition at line 34 of file virtual_arm.h.
Constructor & Destructor Documentation
Initializes the necessary mappings with a static list of names.
Definition at line 40 of file virtual_arm.cpp.
Member Function Documentation
Generates a set of random data to be published by the diagnostic publisher, but keep the position and target as they are ( those are updated by the sendupdate() function).
- A vector containing all the diagnostics for the hand (motor information, etc...)
Definition at line 268 of file virtual_arm.cpp.
In the virtual arm, getJointData() simply fetches the data from a given joint in the joints_map. As the targets and positions are up to date, there's no need of reading other values here for those two values. However, we generate random values for the other data (temperature, current, etc...)
|joint_name||The name of the joint, as specified in joints_map. |
- The information regarding this joint.
Definition at line 194 of file virtual_arm.cpp.
This function will set the target of the object to the given angle. It will also set the position to this target.
- This could be improved by implementing a control algorithm in this theoretic arm.
|joint_name||The Joint in joints_map you wish to send the target to. |
|target||The target in degree |
- 0 if success ; -1 if error
Definition at line 154 of file virtual_arm.cpp.
Set the controller parameters for a given controller name.
|contrlr_name||The name of the controller to setup. |
|ctrlr_data||The data to pass to this controller. |
- 0 if success.
Definition at line 244 of file virtual_arm.cpp.
Convert an angle in radian to an angle in degrees.
- the value in degrees.
Definition at line 109 of file virtual_arm.h.
Convert an angle in degree to an angle in radians.
- the value in rads.
Definition at line 99 of file virtual_arm.h.
The documentation for this class was generated from the following files: