#include <real_shadowhand.h>
Public Member Functions | |
virtual JointsMap | getAllJointsData () |
virtual void | getConfig (std::string joint_name) |
virtual JointControllerData | getContrl (std::string contrlr_name) |
virtual std::vector < DiagnosticData > | getDiagnostics () |
virtual JointData | getJointData (std::string joint_name) |
RealShadowhand () | |
virtual short | sendupdate (std::string joint_name, double target) |
virtual short | setConfig (std::vector< std::string > myConfig) |
virtual short | setContrl (std::string contrlr_name, JointControllerData ctrlr_data) |
~RealShadowhand () | |
Destructor. | |
Protected Member Functions | |
void | initializeMap () |
The real shadowhand class is a class used to access the C code of the Dextrous Hand.
Definition at line 39 of file real_shadowhand.h.
shadowrobot::RealShadowhand::RealShadowhand | ( | ) |
Constructor for the real Shadowhand: initialize the connection to the robot and also initialize the joint_map containing the mapping between joint_names and their data.
Definition at line 31 of file real_shadowhand.cpp.
shadowrobot::RealShadowhand::~RealShadowhand | ( | ) |
Destructor.
Definition at line 51 of file real_shadowhand.cpp.
SRArticulatedRobot::JointsMap shadowrobot::RealShadowhand::getAllJointsData | ( | ) | [virtual] |
Get the data for all the joints.
Implements shadowrobot::SRArticulatedRobot.
Definition at line 193 of file real_shadowhand.cpp.
void shadowrobot::RealShadowhand::getConfig | ( | std::string | joint_name | ) | [virtual] |
Get the config of the palm
joint_name |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 283 of file real_shadowhand.cpp.
JointControllerData shadowrobot::RealShadowhand::getContrl | ( | std::string | contrlr_name | ) | [virtual] |
Get the controller parameters for a given controller name.
contrlr_name | the name of the controller. |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 246 of file real_shadowhand.cpp.
std::vector< DiagnosticData > shadowrobot::RealShadowhand::getDiagnostics | ( | ) | [virtual] |
Get the diagnostics for the whole articulated robot.
Implements shadowrobot::SRArticulatedRobot.
Definition at line 305 of file real_shadowhand.cpp.
JointData shadowrobot::RealShadowhand::getJointData | ( | std::string | joint_name | ) | [virtual] |
Get the joint data for a specific joint.
joint_name | The name of the joint, as specified in joints_map. |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 148 of file real_shadowhand.cpp.
void shadowrobot::RealShadowhand::initializeMap | ( | ) | [protected] |
the parameters for the motors
Definition at line 55 of file real_shadowhand.cpp.
short shadowrobot::RealShadowhand::sendupdate | ( | std::string | joint_name, | |
double | target | |||
) | [virtual] |
Send a new target to a given joint on the robot. The command will be issued to the robot which will move if the controllers are started and tuned. The target is truncated to the correct range.
joint_name | The Joint in joints_map you wish to send the target to. | |
target | The target in degree |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 118 of file real_shadowhand.cpp.
short shadowrobot::RealShadowhand::setConfig | ( | std::vector< std::string > | myConfig | ) | [virtual] |
Set the config of the palm
myConfig |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 264 of file real_shadowhand.cpp.
short shadowrobot::RealShadowhand::setContrl | ( | std::string | contrlr_name, | |
JointControllerData | ctrlr_data | |||
) | [virtual] |
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. |
Implements shadowrobot::SRArticulatedRobot.
Definition at line 205 of file real_shadowhand.cpp.