The InverseKinematics::Objective Function is simply used to merge the objective and null space objective functions that are being held by an InverseKinematics module.
More...
#include <InverseKinematics.hpp>
|
| Objective (InverseKinematics *_ik) |
| Constructor.
|
|
virtual | ~Objective ()=default |
| Virtual destructor.
|
|
optimizer::FunctionPtr | clone (InverseKinematics *_newIK) const override |
| Enable this function to be cloned to a new IK module.
|
|
double | eval (const Eigen::VectorXd &_x) override |
| Evaluates and returns the objective function at the point x.
|
|
void | evalGradient (const Eigen::VectorXd &_x, Eigen::Map< Eigen::VectorXd > _grad) override |
| Evaluates and returns the objective function at the point x.
|
|
virtual void | setName (const std::string &newName) |
| Sets the name of this Function.
|
|
const std::string & | getName () const |
| Returns the name of this Function.
|
|
void | evalGradient (const Eigen::VectorXd &_x, Eigen::VectorXd &_grad) |
| Evaluates and return the objective function at the point x.
|
|
virtual void | evalHessian (const Eigen::VectorXd &_x, Eigen::Map< Eigen::VectorXd, Eigen::RowMajor > _Hess) |
| Evaluates and return the objective function at the point x.
|
|
The InverseKinematics::Objective Function is simply used to merge the objective and null space objective functions that are being held by an InverseKinematics module.
This class is not meant to be extended or instantiated by a user. Call InverseKinematics::resetProblem() to set the objective of the module's Problem to an InverseKinematics::Objective.
◆ Objective()
◆ ~Objective()
virtual dart::dynamics::InverseKinematics::Objective::~Objective |
( |
| ) |
|
|
virtualdefault |
◆ clone()
◆ createShared()
template<typename... Args>
Create shared instance of this class
◆ eval()
double dart::dynamics::InverseKinematics::Objective::eval |
( |
const Eigen::VectorXd & |
x | ) |
|
|
overridevirtual |
◆ evalGradient() [1/2]
void dart::dynamics::InverseKinematics::Objective::evalGradient |
( |
const Eigen::VectorXd & |
_x, |
|
|
Eigen::Map< Eigen::VectorXd > |
_grad |
|
) |
| |
|
overridevirtual |
◆ evalGradient() [2/2]
void dart::optimizer::Function::evalGradient |
( |
const Eigen::VectorXd & |
_x, |
|
|
Eigen::VectorXd & |
_grad |
|
) |
| |
|
inherited |
◆ evalHessian()
void dart::optimizer::Function::evalHessian |
( |
const Eigen::VectorXd & |
_x, |
|
|
Eigen::Map< Eigen::VectorXd, Eigen::RowMajor > |
_Hess |
|
) |
| |
|
virtualinherited |
◆ getName()
const std::string & dart::optimizer::Function::getName |
( |
| ) |
const |
|
inherited |
◆ setName()
void dart::optimizer::Function::setName |
( |
const std::string & |
newName | ) |
|
|
virtualinherited |
◆ mGradCache
Eigen::VectorXd dart::dynamics::InverseKinematics::Objective::mGradCache |
|
protected |
◆ mIK
◆ mName
std::string dart::optimizer::Function::mName |
|
protectedinherited |
◆ mNullSpaceCache
Eigen::MatrixXd dart::dynamics::InverseKinematics::Objective::mNullSpaceCache |
|
protected |
Cache for the null space.
◆ mSVDCache
Eigen::JacobiSVD<math::Jacobian> dart::dynamics::InverseKinematics::Objective::mSVDCache |
|
protected |
Cache for the null space SVD.