ROSEndEffector
ROS End-Effector package: provides a ROS-based set of standard interfaces to command robotics end-effectors in an agnostic fashion.
|
Class representing and End-Effector. More...
#include <EEInterface.h>
Public Types | |
typedef std::shared_ptr< EEInterface > | Ptr |
typedef std::shared_ptr< const EEInterface > | ConstPtr |
Public Member Functions | |
EEInterface (const ROSEE::Parser &p) | |
virtual | ~EEInterface () |
const std::vector< std::string > & | getFingers () |
getter for the fingers name in the current End-Effector More... | |
bool | isFinger (std::string finger_name) |
check is the requested finger exists More... | |
const std::vector< std::string > & | getActuatedJoints () |
getter for the actuated joints of the end-effector More... | |
bool | getActuatedJointsInFinger (std::string finger_name, std::vector< std::string > &actuated_joints) |
getter for the actuated joints of a finger More... | |
int | getActuatedJointsNum () |
getter for the number of actuated joints in the end-effector More... | |
int | getActuatedJointsNumInFinger (std::string finger_name) |
getter for the number of actuated joints in the requested finger More... | |
Eigen::VectorXd | getUpperPositionLimits () |
getter for the upper position limits of EE joints as specified in the URDF More... | |
Eigen::VectorXd | getLowerPositionLimits () |
getter for the lower position limits of EE joints as specified in the URDF More... | |
bool | getInternalIdsForFinger (std::string finger_name, std::vector< int > &internal_ids) |
getter for the internal ids (position in the EEInterface vectors) of joints in a certain finger More... | |
bool | getInternalIdForJoint (std::string joint_name, int &internal_id) |
getter for the internal id of a certain joint More... | |
int | getFingersNumber () |
getter for the number of fingers in the End-Effector More... | |
std::string | getName () |
getter for the EE name More... | |
Private Attributes | |
std::map< std::string, std::vector< std::string > > | _ee_description |
std::map< std::string, urdf::JointConstSharedPtr > | _urdf_joint_map |
std::map< std::string, std::vector< int > > | _finger_joints_internal_id_map |
std::map< std::string, int > | _joints_internal_id_map |
std::vector< std::string > | _fingers_names |
std::vector< std::string > | _actuated_joints |
Eigen::VectorXd | _upper_limits |
Eigen::VectorXd | _lower_limits |
std::string | _ee_name |
int | _joints_num = 0 |
Class representing and End-Effector.
Definition at line 36 of file EEInterface.h.
typedef std::shared_ptr<const EEInterface> ROSEE::EEInterface::ConstPtr |
Definition at line 41 of file EEInterface.h.
typedef std::shared_ptr<EEInterface> ROSEE::EEInterface::Ptr |
Definition at line 40 of file EEInterface.h.
ROSEE::EEInterface::EEInterface | ( | const ROSEE::Parser & | p | ) |
Definition at line 20 of file EEInterface.cpp.
|
virtual |
Definition at line 160 of file EEInterface.cpp.
const std::vector< std::string > & ROSEE::EEInterface::getActuatedJoints | ( | ) |
getter for the actuated joints of the end-effector
Definition at line 122 of file EEInterface.cpp.
bool ROSEE::EEInterface::getActuatedJointsInFinger | ( | std::string | finger_name, |
std::vector< std::string > & | actuated_joints | ||
) |
getter for the actuated joints of a finger
finger_name | the name of the finger where to retrieve actuated joints |
actuated_joints | [out] will be filled with the actuated joints of the finger |
Definition at line 128 of file EEInterface.cpp.
int ROSEE::EEInterface::getActuatedJointsNum | ( | ) |
getter for the number of actuated joints in the end-effector
Definition at line 139 of file EEInterface.cpp.
int ROSEE::EEInterface::getActuatedJointsNumInFinger | ( | std::string | finger_name | ) |
getter for the number of actuated joints in the requested finger
finger_name | the name of the finger where to retrieve the number of actuated joints |
Definition at line 144 of file EEInterface.cpp.
const std::vector< std::string > & ROSEE::EEInterface::getFingers | ( | ) |
getter for the fingers name in the current End-Effector
Definition at line 110 of file EEInterface.cpp.
int ROSEE::EEInterface::getFingersNumber | ( | ) |
getter for the number of fingers in the End-Effector
Definition at line 154 of file EEInterface.cpp.
bool ROSEE::EEInterface::getInternalIdForJoint | ( | std::string | joint_name, |
int & | internal_id | ||
) |
getter for the internal id of a certain joint
joint_name | the name of the requested joint |
internal_id | the internal id of the requested joint |
Definition at line 85 of file EEInterface.cpp.
bool ROSEE::EEInterface::getInternalIdsForFinger | ( | std::string | finger_name, |
std::vector< int > & | internal_ids | ||
) |
getter for the internal ids (position in the EEInterface vectors) of joints in a certain finger
finger_name | the name of the requested finger |
internal_ids | the internal ids of the joints in the requested finger |
Definition at line 98 of file EEInterface.cpp.
Eigen::VectorXd ROSEE::EEInterface::getLowerPositionLimits | ( | ) |
getter for the lower position limits of EE joints as specified in the URDF
Definition at line 75 of file EEInterface.cpp.
std::string ROSEE::EEInterface::getName | ( | ) |
getter for the EE name
Definition at line 69 of file EEInterface.cpp.
Eigen::VectorXd ROSEE::EEInterface::getUpperPositionLimits | ( | ) |
getter for the upper position limits of EE joints as specified in the URDF
Definition at line 80 of file EEInterface.cpp.
bool ROSEE::EEInterface::isFinger | ( | std::string | finger_name | ) |
check is the requested finger exists
finger_name | name of the finger to check |
Definition at line 115 of file EEInterface.cpp.
|
private |
Definition at line 149 of file EEInterface.h.
|
private |
Definition at line 142 of file EEInterface.h.
|
private |
Definition at line 153 of file EEInterface.h.
|
private |
Definition at line 145 of file EEInterface.h.
|
private |
Definition at line 149 of file EEInterface.h.
|
private |
Definition at line 147 of file EEInterface.h.
|
private |
Definition at line 155 of file EEInterface.h.
|
private |
Definition at line 151 of file EEInterface.h.
|
private |
Definition at line 151 of file EEInterface.h.
|
private |
Definition at line 143 of file EEInterface.h.