#include <hand_commander.hpp>
Public Member Functions | |
HandCommander () | |
void | sendCommands (std::vector< sr_robot_msgs::joint > joint_vector) |
~HandCommander () | |
Destructor. | |
Private Member Functions | |
void | initializeEthercatHand () |
Private Attributes | |
bool | ethercat_controllers_found |
shadowhandRosLib::HandType | hand_type |
NodeHandle | node_ |
ros node handle | |
Publisher | sr_hand_target_pub |
Publisher for the CAN hand targets. | |
boost::ptr_map< std::string, Publisher > | sr_hand_target_pub_map |
Publishers for the ethercat hand targets for every joint. | |
Static Private Attributes | |
static const double | TIMEOUT_TO_DETECT_CONTROLLER_MANAGER = 3.0 |
This ROS subscriber is used to issue commands to the hand / arm, from sending a set of targets, to changing the controller parameters.
Definition at line 61 of file hand_commander.hpp.
Definition at line 41 of file hand_commander.cpp.
Destructor.
Definition at line 60 of file hand_commander.cpp.
void shadowrobot::HandCommander::initializeEthercatHand | ( | ) | [private] |
init function for the ethercat hand It can be called if we know that there's an ethercat hand (pr2_controller_manager running)
Definition at line 64 of file hand_commander.cpp.
void shadowrobot::HandCommander::sendCommands | ( | std::vector< sr_robot_msgs::joint > | joint_vector | ) |
Definition at line 93 of file hand_commander.cpp.
Definition at line 80 of file hand_commander.hpp.
Definition at line 79 of file hand_commander.hpp.
NodeHandle shadowrobot::HandCommander::node_ [private] |
ros node handle
Definition at line 73 of file hand_commander.hpp.
Publisher for the CAN hand targets.
Definition at line 75 of file hand_commander.hpp.
boost::ptr_map<std::string,Publisher> shadowrobot::HandCommander::sr_hand_target_pub_map [private] |
Publishers for the ethercat hand targets for every joint.
Definition at line 77 of file hand_commander.hpp.
const double shadowrobot::HandCommander::TIMEOUT_TO_DETECT_CONTROLLER_MANAGER = 3.0 [static, private] |
Definition at line 88 of file hand_commander.hpp.