Go to the documentation of this file.
26 #ifndef TESSERACT_KINEMATICS_KDL_INV_KIN_CHAIN_LMA_H
27 #define TESSERACT_KINEMATICS_KDL_INV_KIN_CHAIN_LMA_H
30 #include <kdl/chainiksolverpos_lma.hpp>
49 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
52 using Ptr = std::shared_ptr<KDLInvKinChainLMA>;
53 using ConstPtr = std::shared_ptr<const KDLInvKinChainLMA>;
54 using UPtr = std::unique_ptr<KDLInvKinChainLMA>;
55 using ConstUPtr = std::unique_ptr<const KDLInvKinChainLMA>;
67 std::array<double, 6>
task_weights{ 1.0, 1.0, 1.0, 0.1, 0.1, 0.1 };
88 const std::string& base_link,
89 const std::string& tip_link,
101 const std::vector<std::pair<std::string, std::string> >& chains,
106 const Eigen::Ref<const Eigen::VectorXd>& seed)
const override final;
108 std::vector<std::string>
getJointNames() const override final;
109 Eigen::Index
numJoints() const override final;
125 const Eigen::Ref<const Eigen::VectorXd>& seed,
126 int segment_num = -1)
const;
130 #endif // TESSERACT_KINEMATICS_KDL_INV_KIN_CHAIN_LMA_H
KDLInvKinChainLMA(const KDLInvKinChainLMA &other)
Config kdl_config_
KDL configuration data parsed from YAML.
std::vector< std::string > getTipLinkNames() const override final
Get the names of the tip links of the kinematics group.
AlignedMap< std::string, Eigen::Isometry3d > TransformMap
std::unique_ptr< const InverseKinematics > ConstUPtr
std::shared_ptr< const InverseKinematics > ConstPtr
Inverse kinematics functions.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
~KDLInvKinChainLMA() override=default
std::string getSolverName() const override final
Get the name of the solver. Recommend using the name of the class.
std::unique_ptr< KDLInvKinChainLMA > UPtr
std::string getWorkingFrame() const override final
Get the inverse kinematics working frame.
std::unique_ptr< InverseKinematics > UPtr
Eigen::Index numJoints() const override final
Number of joints in robot.
IKSolutions calcInvKinHelper(const Eigen::Isometry3d &pose, const Eigen::Ref< const Eigen::VectorXd > &seed, int segment_num=-1) const
calcFwdKin helper function
KDL Inverse kinematic chain implementation.
KDLChainData kdl_data_
KDL data parsed from Scene Graph.
static const std::string KDL_INV_KIN_CHAIN_LMA_SOLVER_NAME
std::array< double, 6 > task_weights
Inverse kinematics functions.
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
std::mutex mutex_
KDL is not thread safe due to mutable variables in Joint Class.
IKSolutions calcInvKin(const tesseract_common::TransformMap &tip_link_poses, const Eigen::Ref< const Eigen::VectorXd > &seed) const override final
Calculates joint solutions given a pose for each tip link.
InverseKinematics::UPtr clone() const override final
Clone the forward kinematics object.
std::shared_ptr< InverseKinematics > Ptr
std::unique_ptr< KDL::ChainIkSolverPos_LMA > ik_solver_
KDL Inverse kinematic solver.
Tesseract KDL utility functions.
std::string solver_name_
Name of this solver.
std::vector< std::string > getJointNames() const override final
Get list of joint names for kinematic object.
KDLInvKinChainLMA & operator=(const KDLInvKinChainLMA &other)
std::vector< Eigen::VectorXd > IKSolutions
The inverse kinematics solutions container.
std::string getBaseLinkName() const override final
Get the robot base link name.