|
| LocalContactForceCost (const Robot &robot) |
| Constructor. More...
|
|
| LocalContactForceCost () |
| Default constructor. More...
|
|
| ~LocalContactForceCost () |
| Destructor. More...
|
|
| LocalContactForceCost (const LocalContactForceCost &)=default |
| Default copy constructor. More...
|
|
LocalContactForceCost & | operator= (const LocalContactForceCost &)=default |
| Default copy operator. More...
|
|
| LocalContactForceCost (LocalContactForceCost &&) noexcept=default |
| Default move constructor. More...
|
|
LocalContactForceCost & | operator= (LocalContactForceCost &&) noexcept=default |
| Default move assign operator. More...
|
|
void | set_f_ref (const std::vector< Eigen::Vector3d > &f_ref) |
| Sets the reference contact forces expressed in the local frames. More...
|
|
void | set_f_weight (const std::vector< Eigen::Vector3d > &f_weight) |
| Sets the weight vectors on the contact forces. More...
|
|
void | set_fi_ref (const std::vector< Eigen::Vector3d > &fi_ref) |
| Sets the reference impact forces expressed in the local frames. More...
|
|
void | set_fi_weight (const std::vector< Eigen::Vector3d > &fi_weight) |
| Sets the weight vectors on the impact forces. 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 contact forces expressed in the local frames.