|
| TaskSpace3DCost (const Robot &robot, const int frame_id) |
| Constructor. More...
|
|
| TaskSpace3DCost (const Robot &robot, const std::string &frame_name) |
| Constructor. More...
|
|
| TaskSpace3DCost (const Robot &robot, const int frame_id, const std::shared_ptr< TaskSpace3DRefBase > &ref) |
| Constructor. More...
|
|
| TaskSpace3DCost (const Robot &robot, const int frame_id, const Eigen::Vector3d &const_ref) |
| Constructor. More...
|
|
| TaskSpace3DCost (const Robot &robot, const std::string &frame_name, const std::shared_ptr< TaskSpace3DRefBase > &ref) |
| Constructor. More...
|
|
| TaskSpace3DCost (const Robot &robot, const std::string &frame_name, const Eigen::Vector3d &const_ref) |
| Constructor. More...
|
|
| TaskSpace3DCost () |
| Default constructor. More...
|
|
| ~TaskSpace3DCost () |
| Destructor. More...
|
|
| TaskSpace3DCost (const TaskSpace3DCost &)=default |
| Default copy constructor. More...
|
|
TaskSpace3DCost & | operator= (const TaskSpace3DCost &)=default |
| Default copy operator. More...
|
|
| TaskSpace3DCost (TaskSpace3DCost &&) noexcept=default |
| Default move constructor. More...
|
|
TaskSpace3DCost & | operator= (TaskSpace3DCost &&) noexcept=default |
| Default move assign operator. More...
|
|
void | set_ref (const std::shared_ptr< TaskSpace3DRefBase > &ref) |
| Sets the reference task-space position. More...
|
|
void | set_const_ref (const Eigen::Vector3d &const_ref) |
| Sets the const reference task-space position. More...
|
|
void | set_weight (const Eigen::Vector3d &weight) |
| Sets the weight vector. More...
|
|
void | set_weight_terminal (const Eigen::Vector3d &weight_terminal) |
| Sets the weight vector for the terminal stage. More...
|
|
void | set_weight_impact (const Eigen::Vector3d &weight_impact) |
| Sets the weight vector for the impact stage. More...
|
|
bool | isCostActive (const GridInfo &grid_info) const |
| Evaluate if the cost is active for given grid_info. More...
|
|
void | evalDiff (const Robot &robot, CostFunctionData &data, const GridInfo &grid_info) const |
| Evaluate the difference between the robot's task-space position status and reference. More...
|
|
double | evalStageCost (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const override |
| Computes the stage cost. More...
|
|
void | evalStageCostDerivatives (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const override |
| Computes the first-order partial derivatives of the stage cost. This function is always called just after evalStageCost(). More...
|
|
void | evalStageCostHessian (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const override |
| Computes the Hessian, i.e., the second-order partial derivatives of the stage cost. This function is always called just after evalStageCostDerivatives(). More...
|
|
double | evalTerminalCost (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const override |
| Computes the terminal cost. More...
|
|
void | evalTerminalCostDerivatives (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const override |
| Computes the first-order partial derivatives of the terminal cost. This function is always called just after evalTerminalCost(). More...
|
|
void | evalTerminalCostHessian (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const override |
| Computes the Hessian, i.e., the second-order partial derivatives of the teminal cost. This function is always called just after evalTerminalCostDerivatives(). More...
|
|
double | evalImpactCost (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const override |
| Computes the impact cost. More...
|
|
void | evalImpactCostDerivatives (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const override |
| Computes the first-order partial derivatives of the impact cost. This function is always called just after evalImpactCost(). More...
|
|
void | evalImpactCostHessian (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const override |
| Computes the Hessian, i.e., the second-order partial derivatives of the impact cost. This function is always called just after evalImpactCostDerivatives(). More...
|
|
| CostFunctionComponentBase () |
| Default constructor. More...
|
|
virtual | ~CostFunctionComponentBase () |
| Destructor. More...
|
|
| CostFunctionComponentBase (const CostFunctionComponentBase &)=default |
| Default copy constructor. More...
|
|
CostFunctionComponentBase & | operator= (const CostFunctionComponentBase &)=default |
| Default copy operator. More...
|
|
| CostFunctionComponentBase (CostFunctionComponentBase &&) noexcept=default |
| Default move constructor. More...
|
|
CostFunctionComponentBase & | operator= (CostFunctionComponentBase &&) noexcept=default |
| Default move assign operator. More...
|
|
virtual double | evalStageCost (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const =0 |
| Computes the stage cost. More...
|
|
virtual void | evalStageCostDerivatives (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const =0 |
| Computes the first-order partial derivatives of the stage cost. This function is always called just after evalStageCost(). More...
|
|
virtual void | evalStageCostHessian (Robot &robot, const ContactStatus &contact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const =0 |
| Computes the Hessian, i.e., the second-order partial derivatives of the stage cost. This function is always called just after evalStageCostDerivatives(). More...
|
|
virtual double | evalTerminalCost (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const =0 |
| Computes the terminal cost. More...
|
|
virtual void | evalTerminalCostDerivatives (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const =0 |
| Computes the first-order partial derivatives of the terminal cost. This function is always called just after evalTerminalCost(). More...
|
|
virtual void | evalTerminalCostHessian (Robot &robot, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const =0 |
| Computes the Hessian, i.e., the second-order partial derivatives of the teminal cost. This function is always called just after evalTerminalCostDerivatives(). More...
|
|
virtual double | evalImpactCost (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s) const =0 |
| Computes the impact cost. More...
|
|
virtual void | evalImpactCostDerivatives (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTResidual &kkt_residual) const =0 |
| Computes the first-order partial derivatives of the impact cost. This function is always called just after evalImpactCost(). More...
|
|
virtual void | evalImpactCostHessian (Robot &robot, const ImpactStatus &impact_status, CostFunctionData &data, const GridInfo &grid_info, const SplitSolution &s, SplitKKTMatrix &kkt_matrix) const =0 |
| Computes the Hessian, i.e., the second-order partial derivatives of the impact cost. This function is always called just after evalImpactCostDerivatives(). More...
|
|
template<typename Derived > |
std::shared_ptr< Derived > | as_shared_ptr () |
| Gets the shared ptr of this object as the specified type. If this fails in dynamic casting, throws an exception. More...
|
|
Cost on the task space position.