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