Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tesseract_kinematics::IKFastInvKin Class Reference

IKFast Inverse Kinematics Implmentation. More...

#include <ikfast_inv_kin.h>

Inheritance diagram for tesseract_kinematics::IKFastInvKin:
Inheritance graph
[legend]

Public Types

using ConstPtr = std::shared_ptr< const IKFastInvKin >
 
using ConstUPtr = std::unique_ptr< const IKFastInvKin >
 
using Ptr = std::shared_ptr< IKFastInvKin >
 
using UPtr = std::unique_ptr< IKFastInvKin >
 
- Public Types inherited from tesseract_kinematics::InverseKinematics
using ConstPtr = std::shared_ptr< const InverseKinematics >
 
using ConstUPtr = std::unique_ptr< const InverseKinematics >
 
using Ptr = std::shared_ptr< InverseKinematics >
 
using UPtr = std::unique_ptr< InverseKinematics >
 

Public Member Functions

IKSolutions calcInvKin (const tesseract_common::TransformMap &tip_link_poses, const Eigen::Ref< const Eigen::VectorXd > &seed) const override
 Calculates joint solutions given a pose for each tip link. More...
 
InverseKinematics::UPtr clone () const override
 Clone the forward kinematics object. More...
 
std::string getBaseLinkName () const override
 Get the robot base link name. More...
 
std::vector< std::string > getJointNames () const override
 Get list of joint names for kinematic object. More...
 
std::string getSolverName () const override
 Get the name of the solver. Recommend using the name of the class. More...
 
std::vector< std::string > getTipLinkNames () const override
 Get the names of the tip links of the kinematics group. More...
 
std::string getWorkingFrame () const override
 Get the inverse kinematics working frame. More...
 
 IKFastInvKin (const IKFastInvKin &other)
 
 IKFastInvKin (IKFastInvKin &&)=default
 
 IKFastInvKin (std::string base_link_name, std::string tip_link_name, std::vector< std::string > joint_names, std::string solver_name=IKFAST_INV_KIN_CHAIN_SOLVER_NAME, std::vector< std::vector< double >> free_joint_states={})
 Construct IKFast Inverse Kinematics. More...
 
Eigen::Index numJoints () const override
 Number of joints in robot. More...
 
IKFastInvKinoperator= (const IKFastInvKin &other)
 
IKFastInvKinoperator= (IKFastInvKin &&)=default
 
 ~IKFastInvKin () override=default
 
- Public Member Functions inherited from tesseract_kinematics::InverseKinematics
 InverseKinematics ()=default
 
 InverseKinematics (const InverseKinematics &)=default
 
 InverseKinematics (InverseKinematics &&)=default
 
InverseKinematicsoperator= (const InverseKinematics &)=default
 
InverseKinematicsoperator= (InverseKinematics &&)=default
 
virtual ~InverseKinematics ()
 

Static Public Member Functions

static std::vector< std::vector< double > > generateAllFreeJointStateCombinations (const std::vector< std::vector< double >> &free_joint_samples)
 Generates all possible combinations of joint states and stores it to the free_joint_states_ class member Example: Given 2 free joints, wanting to sample the first joint at 0, 1, and 2 and the second joint at 3 and 4 the input would be [[0, 1, 2][3,4]] and it would generate [[0,3][0,4][1,3][1,4][2,3][2,4]]. More...
 

Protected Attributes

std::string base_link_name_
 Link name of first link in the kinematic object. More...
 
std::vector< std::vector< double > > free_joint_states_
 
std::vector< std::string > joint_names_
 Joint names for the kinematic object. More...
 
std::string solver_name_ { IKFAST_INV_KIN_CHAIN_SOLVER_NAME }
 Name of this solver. More...
 
std::string tip_link_name_
 Link name of last kink in the kinematic object. More...
 

Detailed Description

IKFast Inverse Kinematics Implmentation.

This along with the ikfast_inv_kin.hpp is to be used with a generated ikfast to create a tesseract implementation. Once you have created your ikfast solver of your robot all you need is to create header similar to what is shown below:

Header File: fanuc_p50ib_15_inv_kinematics.h

#include <Eigen/Geometry> #include <vector> #include <tesseract_kinematics/ikfast/ikfast_inv_kin.h>

namespace fanuc_p50ib_15_ikfast_wrapper { class FanucP50iBInvKinematics : public tesseract_kinematics::IKFastInvKin { public: FanucP50iBInvKinematics(const std::string base_link_name, const std::string tip_link_name, const std::vector<std::string> joint_names, const std::string name) };

Cpp File:

#include <tesseract_kinematics/ikfast/impl/ikfast_inv_kin.hpp> #include <fanuc_p50ib_15_ikfast_wrapper/impl/fanuc_p50ib_15_ikfast.hpp> #include <fanuc_p50ib_15_ikfast_wrapper/tesseract_fanuc_p50ib_kinematics.h>

namespace fanuc_p50ib_15_ikfast_wrapper { FanucP50iBInvKinematics::FanucP50iBInvKinematics(const std::string base_link_name, const std::string tip_link_name, const std::vector<std::string> joint_names const std::string name) : FanucP50iBInvKinematics(base_link_name, tip_link_name, joint_names, name, joint_limits) {} }

Definition at line 77 of file ikfast_inv_kin.h.

Member Typedef Documentation

◆ ConstPtr

Definition at line 85 of file ikfast_inv_kin.h.

◆ ConstUPtr

Definition at line 87 of file ikfast_inv_kin.h.

◆ Ptr

Definition at line 84 of file ikfast_inv_kin.h.

◆ UPtr

Definition at line 86 of file ikfast_inv_kin.h.

Constructor & Destructor Documentation

◆ ~IKFastInvKin()

tesseract_kinematics::IKFastInvKin::~IKFastInvKin ( )
overridedefault

◆ IKFastInvKin() [1/3]

tesseract_kinematics::IKFastInvKin::IKFastInvKin ( const IKFastInvKin other)
inline

Definition at line 56 of file ikfast_inv_kin.hpp.

◆ IKFastInvKin() [2/3]

tesseract_kinematics::IKFastInvKin::IKFastInvKin ( IKFastInvKin &&  )
default

◆ IKFastInvKin() [3/3]

tesseract_kinematics::IKFastInvKin::IKFastInvKin ( std::string  base_link_name,
std::string  tip_link_name,
std::vector< std::string >  joint_names,
std::string  solver_name = IKFAST_INV_KIN_CHAIN_SOLVER_NAME,
std::vector< std::vector< double >>  free_joint_states = {} 
)
inline

Construct IKFast Inverse Kinematics.

Parameters
base_link_nameThe name of the base link for the kinematic chain
tip_link_nameThe name of the tip link for the kinematic chain
joint_namesThe joint names for the kinematic chain
solver_nameThe solver name of the kinematic chain

Definition at line 41 of file ikfast_inv_kin.hpp.

Member Function Documentation

◆ calcInvKin()

IKSolutions tesseract_kinematics::IKFastInvKin::calcInvKin ( const tesseract_common::TransformMap tip_link_poses,
const Eigen::Ref< const Eigen::VectorXd > &  seed 
) const
inlineoverridevirtual

Calculates joint solutions given a pose for each tip link.

This interface supports IK for both kinematic chains that have a single tool tip link and kinematic chains that have multiple tip links. For example, consider a robot with external part positioner: a pose can be specified to be relative to the tip link of the robot or the tip link of the positioner is to support a pose relative to a active link. For example a robot with an external positioner where the pose is relative to the tip link of the positioner.

Note
Redundant joint solutions can be provided by the utility function getRedundantSolutions
Parameters
tip_link_posesA map of poses corresponding to each tip link provided in getTipLinkNames and relative to the working frame of the kinematics group for which to solve inverse kinematics
seedVector of seed joint angles (size must match number of joints in kinematic object)
Returns
A vector of solutions, If empty it failed to find a solution (including uninitialized)

Implements tesseract_kinematics::InverseKinematics.

Definition at line 69 of file ikfast_inv_kin.hpp.

◆ clone()

InverseKinematics::UPtr tesseract_kinematics::IKFastInvKin::clone ( ) const
inlineoverridevirtual

Clone the forward kinematics object.

Implements tesseract_kinematics::InverseKinematics.

Definition at line 54 of file ikfast_inv_kin.hpp.

◆ generateAllFreeJointStateCombinations()

std::vector< std::vector< double > > tesseract_kinematics::IKFastInvKin::generateAllFreeJointStateCombinations ( const std::vector< std::vector< double >> &  free_joint_samples)
inlinestatic

Generates all possible combinations of joint states and stores it to the free_joint_states_ class member Example: Given 2 free joints, wanting to sample the first joint at 0, 1, and 2 and the second joint at 3 and 4 the input would be [[0, 1, 2][3,4]] and it would generate [[0,3][0,4][1,3][1,4][2,3][2,4]].

Parameters
free_joint_samplesA vector of vectors in which the lower level vectors each represent all of a single joint's possible positions to be sampled
Returns

Definition at line 150 of file ikfast_inv_kin.hpp.

◆ getBaseLinkName()

std::string tesseract_kinematics::IKFastInvKin::getBaseLinkName ( ) const
inlineoverridevirtual

Get the robot base link name.

Implements tesseract_kinematics::InverseKinematics.

Definition at line 144 of file ikfast_inv_kin.hpp.

◆ getJointNames()

std::vector< std::string > tesseract_kinematics::IKFastInvKin::getJointNames ( ) const
inlineoverridevirtual

Get list of joint names for kinematic object.

Returns
A vector of joint names, joint_list_

Implements tesseract_kinematics::InverseKinematics.

Definition at line 143 of file ikfast_inv_kin.hpp.

◆ getSolverName()

std::string tesseract_kinematics::IKFastInvKin::getSolverName ( ) const
inlineoverridevirtual

Get the name of the solver. Recommend using the name of the class.

Implements tesseract_kinematics::InverseKinematics.

Definition at line 147 of file ikfast_inv_kin.hpp.

◆ getTipLinkNames()

std::vector< std::string > tesseract_kinematics::IKFastInvKin::getTipLinkNames ( ) const
inlineoverridevirtual

Get the names of the tip links of the kinematics group.

In the case of a kinematic chain, this returns one tip link; in the case of a kinematic tree this returns the tip link for each branch of the tree.

Implements tesseract_kinematics::InverseKinematics.

Definition at line 146 of file ikfast_inv_kin.hpp.

◆ getWorkingFrame()

std::string tesseract_kinematics::IKFastInvKin::getWorkingFrame ( ) const
inlineoverridevirtual

Get the inverse kinematics working frame.

This is the frame of reference in which all poses given to the calcInvKin function should be defined

Implements tesseract_kinematics::InverseKinematics.

Definition at line 145 of file ikfast_inv_kin.hpp.

◆ numJoints()

Eigen::Index tesseract_kinematics::IKFastInvKin::numJoints ( ) const
inlineoverridevirtual

Number of joints in robot.

Returns
Number of joints in robot

Implements tesseract_kinematics::InverseKinematics.

Definition at line 142 of file ikfast_inv_kin.hpp.

◆ operator=() [1/2]

IKFastInvKin & tesseract_kinematics::IKFastInvKin::operator= ( const IKFastInvKin other)
inline

Definition at line 58 of file ikfast_inv_kin.hpp.

◆ operator=() [2/2]

IKFastInvKin& tesseract_kinematics::IKFastInvKin::operator= ( IKFastInvKin &&  )
default

Member Data Documentation

◆ base_link_name_

std::string tesseract_kinematics::IKFastInvKin::base_link_name_
protected

Link name of first link in the kinematic object.

Definition at line 131 of file ikfast_inv_kin.h.

◆ free_joint_states_

std::vector<std::vector<double> > tesseract_kinematics::IKFastInvKin::free_joint_states_
protected

Definition at line 137 of file ikfast_inv_kin.h.

◆ joint_names_

std::vector<std::string> tesseract_kinematics::IKFastInvKin::joint_names_
protected

Joint names for the kinematic object.

Definition at line 133 of file ikfast_inv_kin.h.

◆ solver_name_

std::string tesseract_kinematics::IKFastInvKin::solver_name_ { IKFAST_INV_KIN_CHAIN_SOLVER_NAME }
protected

Name of this solver.

combinations of free joints to sample when computing IK Example: Given 3 free joints, a valid input would be [[0,0,0][0,0,1][-1,0,1][0,2,0]]

Definition at line 134 of file ikfast_inv_kin.h.

◆ tip_link_name_

std::string tesseract_kinematics::IKFastInvKin::tip_link_name_
protected

Link name of last kink in the kinematic object.

Definition at line 132 of file ikfast_inv_kin.h.


The documentation for this class was generated from the following files:


tesseract_kinematics
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:14