Choreonoid
1.8
|
#include <CustomJointPathBase.h>
Public Member Functions | |
CustomJointPathBase (Link *baseLink, Link *endLink) | |
bool | checkLinkPath (const std::string &from, const std::string &to, bool &out_isReversed) const |
void | setCustomInverseKinematics (InverseKinematicsFunc func, bool isReversed=false) |
InverseKinematicsFunc | customInverseKinematics () const |
bool | isReversed () const |
virtual bool | calcInverseKinematics (const Isometry3 &T) override |
virtual bool | hasCustomIK () const override |
template<typename iterator > | |
void | copyJointDisplacements (iterator q_iter) |
![]() | |
JointPath () | |
JointPath (Link *base, Link *end) | |
JointPath (Link *end) | |
JointPath (const JointPath &org)=delete | |
JointPath & | operator= (const JointPath &rhs)=delete |
bool | empty () const |
int | size () const |
int | numJoints () const |
Link * | joint (int index) const |
Link * | operator[] (int index) const |
Link * | baseLink () const |
Link * | endLink () const |
bool | isJointDownward (int index) const |
const std::vector< Link * > & | joints () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
LinkPath & | linkPath () |
const LinkPath & | linkPath () const |
void | calcForwardKinematics (bool calcVelocity=false, bool calcAcceleration=false) const |
int | indexOf (const Link *link) const |
bool | isCustomIkDisabled () const |
void | setCustomIkDisabled (bool on) |
bool | isBestEffortIkMode () const |
void | setBestEffortIkMode (bool on) |
void | setNumericalIkMaxIkError (double e) |
void | setNumericalIkDeltaScale (double s) |
void | setNumericalIkMaxIterations (int n) |
void | setNumericalIkDampingConstant (double lambda) |
void | customizeTarget (int numTargetElements, std::function< double(VectorXd &out_error)> errorFunc, std::function< void(MatrixXd &out_Jacobian)> jacobianFunc) |
bool | calcInverseKinematics () |
JointPath & | storeCurrentPosition () |
JointPath & | setBaseLinkGoal (const Isometry3 &T) |
virtual bool | calcRemainingPartForwardKinematicsForInverseKinematics () override |
int | numIterations () const |
std::string | name () const |
void | setName (const std::string &name) |
bool | calcInverseKinematics (const Vector3 &p, const Matrix3 &R) |
bool | calcInverseKinematics (const Vector3 &base_p, const Matrix3 &base_R, const Vector3 &end_p, const Matrix3 &end_R) |
void | calcJacobian (Eigen::MatrixXd &out_J) const |
bool | hasAnalyticalIK () const |
void | setNumericalIKenabled (bool on) |
bool | isNumericalIkEnabled () const |
bool | isBestEffortIKmode () const |
void | setBestEffortIKmode (bool on) |
void | setNumericalIKmaxIKerror (double e) |
void | setNumericalIKdeltaScale (double s) |
void | setNumericalIKmaxIterations (int n) |
void | setNumericalIKdampingConstant (double lambda) |
void | setNumericalIkTruncateRatio (double r) |
![]() | |
virtual | ~InverseKinematics () |
bool | calcInverseKinematics (const Vector3 &p, const Matrix3 &R) |
deprecated More... | |
Additional Inherited Members | |
![]() | |
typedef LinkTraverse::iterator | iterator |
typedef LinkTraverse::const_iterator | const_iterator |
![]() | |
static std::shared_ptr< JointPath > | getCustomPath (Body *body, Link *baseLink, Link *endLink) |
static double | numericalIkDefaultDeltaScale () |
static int | numericalIkDefaultMaxIterations () |
static double | numericalIkDefaultMaxIkError () |
static double | numericalIkDefaultDampingConstant () |
static double | numericalIKdefaultDeltaScale () |
static int | numericalIKdefaultMaxIterations () |
static double | numericalIKdefaultMaxIKerror () |
static double | numericalIKdefaultDampingConstant () |
static double | numericalIkDefaultTruncateRatio () |
This class can be used as a base class of a custom joint path class whose instance is provided by CustomJointPathHandler. Using this class will make the implementation of a custom joint path class easier in most cases, but you don't necessarily have to use this class to implement a custom joint path class. See "sample/GRobotPlugin/GRobotHandler.cpp" as a sample of using this class.
|
overridevirtual |
Reimplemented from cnoid::JointPath.
bool CustomJointPathBase::checkLinkPath | ( | const std::string & | from, |
const std::string & | to, | ||
bool & | out_isReversed | ||
) | const |
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from cnoid::JointPath.
|
inline |
void CustomJointPathBase::setCustomInverseKinematics | ( | InverseKinematicsFunc | func, |
bool | isReversed = false |
||
) |