Go to the documentation of this file.
17 #ifndef __ROSEE_PARSER_MOVEIT_H
18 #define __ROSEE_PARSER_MOVEIT_H
40 typedef std::shared_ptr<ParserMoveIt>
Ptr;
41 typedef std::shared_ptr<const ParserMoveIt>
ConstPtr;
138 std::vector < std::string >
getGroupOfLink ( std::string linkName );
145 bool groupIsChain (
const std::string groupName )
const;
374 #endif // __ROSEE_PARSER_MOVEIT_H
std::map< std::string, std::string > getMimicNLJointsOfFather(std::string mimicNLFatherName) const
std::map< std::string, std::vector< std::string > > fingertipsOfJointMap
The map with as key the name of the actuated joint and as value all the fingertips which pose can be ...
robot_model::RobotModelPtr robot_model
bool checkIfContinuosJoint(const std::string jointName) const
check if the passed joint is continuos (i.e. a revolute one with sum of bounds greater than 2*PI)
std::shared_ptr< const ParserMoveIt > ConstPtr
void lookForPassiveJoints()
This function looks for all passive joints, defined so in the srdf file.
void lookForDescendants()
Function to explore the kinematic tree from each actuated joint. It stores each descendants links and...
std::map< std::string, std::string > getFingertipOfFingerMap() const
std::map< std::string, std::string > fingerOfFingertipMap
The map with as key the name of the finger (defined in srdf file) and as value the fingertip (the las...
std::map< std::string, std::map< std::string, std::string > > getMimicNLJointsOfFatherMap() const
std::map< std::string, std::string > getFingerOfFingertipMap() const
std::vector< std::string > fingertipNames
std::vector< double > getBiggerBoundFromZero(std::string jointName) const
For each DOF of a joint, find the limit which is farther from 0 position.
std::map< std::string, std::vector< const moveit::core::LinkModel * > > getDescendantLinksOfJoint() const
getter for descendandsLinksOfJoint. "Descendants" is intended in a slightly different way respect to ...
std::map< std::string, std::vector< std::string > > jointsOfFingertipMap
The map with as key the name of the fingertip and as value all the joints (actuated) that can modify ...
std::vector< double > getSmallerBoundFromZero(std::string jointName) const
For each DOF of a joint, find the limit which is nearer from 0 position.
std::map< std::string, std::map< std::string, std::string > > mimicNLJointsOfFatherMap
inverse map of previous, even if the function is replicated, this is anyway useful,...
void lookJointsTipsCorrelation()
Here, we find for each tip, which are all the joints (active) that can modifies its position It is ea...
std::vector< std::string > getPassiveJointNames() const
getter for all the passive joints (defined in this way in the srdf file) Not all the not-actuated joi...
std::vector< std::string > activeJointNames
robot_model::RobotModelPtr getCopyModel() const
This function reload another model, same as the one loaded in init but this one can be modified exter...
std::vector< std::string > getGroupOfLink(std::string linkName)
This function explores all groups of srdf and says to which ones the linkName belongs to....
std::map< std::string, std::vector< const moveit::core::JointModel * > > getDescendantJointsOfJoint() const
getter for descendandsJointsOfJoint. "Descendants" is intended in a slightly different way respect to...
unsigned int getNExclusiveJointsOfTip(std::string tipName, bool continuosIncluded) const
Given a fingertip link, this function return the number of the joint that affect only the position of...
unsigned int getNFingers() const
std::map< std::string, std::vector< const moveit::core::LinkModel * > > descendantLinksOfJoint
Map containing info about descendants links of a joint see lookForDescendants function for more info.
std::vector< std::string > getFingertipNames() const
std::pair< std::string, std::string > getMimicNLFatherOfJoint(std::string mimicNLJointName) const
gets for the maps of non linear mimic joints
std::string getFirstActuatedParentJoint(std::string linkName, bool includeContinuos) const
starting from the given link, we explore the parents joint, until we found the first actuated....
std::map< std::string, std::string > fingertipOfFingerMap
The map with as key the name of the fingertip (the last (not virtual) link of a finger) and as value ...
std::map< std::string, std::pair< std::string, std::string > > getMimicNLFatherOfJointMap() const
std::map< std::string, std::pair< std::string, std::string > > mimicNLFatherOfJointMap
This map contain as key the name of the mimic joint which position follows a non linear relationship ...
std::string getHandName() const
void lookForFingertips(bool verbose=true)
This function explore the robot_model (which was built from urdf and srdf files), and fills the finge...
std::string getFingerOfFingertip(std::string tipName) const
This function returns the name of the finger which the passed tipName belongs to.
std::string getMimicNLJointOfFather(std::string mimicNLFatherName, std::string mimicNLJointName) const
std::vector< const moveit::core::JointModel * > activeJointModels
void lookForActiveJoints()
This function look for all active joints in the model (i.e. not mimic, not fixed, not passive) There ...
void getRealDescendantLinkModelsRecursive(const moveit::core::LinkModel *link, std::vector< const moveit::core::LinkModel * > &linksVect, const moveit::core::JointModel *joint, std::vector< const moveit::core::JointModel * > &jointsVect) const
Recursive function, support for lookForDescendants, to explore the urdf tree.
std::vector< const moveit::core::JointModel * > getActiveJointModels() const
getter for all active (actuated) joints. The analogous moveit function returns also the "passive" one...
std::map< std::string, std::vector< const moveit::core::JointModel * > > descendantJointsOfJoint
Map containing info about descendants joints of a joint see lookForDescendants function for more info...
std::string robot_description
class to parse urdf and srdf with moveit classes and to give information about the model parsed
std::string getFirstActuatedJointInFinger(std::string linkName) const
Given the linkName, this function returns the actuated joint that is a parent of this link and it is ...
std::map< std::string, std::vector< std::string > > getJointsOfFingertipMap() const
std::shared_ptr< ParserMoveIt > Ptr
bool groupIsChain(const std::string groupName) const
check if a group (defined in srdf file) is a chain. See groupIsChain ( moveit::core::JointModelGroup*...
void parseNonLinearMimicRelations(std::string xml)
bool init(std::string robot_description, bool verbose=true)
Init the parser, fill the structures.
std::map< std::string, std::vector< std::string > > getFingertipsOfJointMap() const
std::string getFingertipOfFinger(std::string fingerName) const
This function returns the name of the fingertip that belongs to the passed fingerName.
const robot_model::RobotModelPtr getRobotModel() const
the robot model can't be modified, if you want it to modify, use getCopyModel to get a copy.
std::vector< std::string > getActiveJointNames() const
getter for all active (actuated) joints' names. The analogous moveit function returns also the "passi...
std::vector< std::string > passiveJointNames
end-effector
Author(s): Luca Muratore
, Davide Torielli , Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:26