aligator
0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
#include <aligator/compat/crocoddyl/cost-wrap.hpp>
Public Types | |
using | Scalar = _Scalar |
using | CrocCostModel = crocoddyl::CostModelAbstractTpl<Scalar> |
using | CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
using | Base = CostAbstractTpl<Scalar> |
using | BaseData = CostDataAbstractTpl<Scalar> |
using | StateWrap = StateWrapperTpl<Scalar> |
Public Types inherited from aligator::CostAbstractTpl< _Scalar > | |
using | Scalar |
using | CostData |
using | Manifold |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
CrocCostModelWrapperTpl (boost::shared_ptr< CrocCostModel > cost) | |
Constructor from a crocoddyl cost model. | |
CrocCostModelWrapperTpl (boost::shared_ptr< CrocActionModel > action_model) | |
Constructor using a terminal action model. | |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
void | computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
void | computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
shared_ptr< BaseData > | createData () const |
Public Member Functions inherited from aligator::CostAbstractTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
int | nx () const |
int | ndx () const |
CostAbstractTpl (U &&space, const int nu) | |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Evaluate the cost function. | |
virtual void | computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Compute the cost gradients \((\ell_x, \ell_u)\). | |
virtual void | computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const |
Compute the cost Hessians \((\ell_{ij})_{i,j \in \{x,u\}}\). | |
virtual | ~CostAbstractTpl ()=default |
Public Attributes | |
boost::shared_ptr< CrocCostModel > | croc_cost_ |
boost::shared_ptr< CrocActionModel > | action_model_ |
Public Attributes inherited from aligator::CostAbstractTpl< _Scalar > | |
xyz::polymorphic< Manifold > | space |
State dimension. | |
int | nu |
Control dimension. | |
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::Scalar = _Scalar |
Definition at line 14 of file cost-wrap.hpp.
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocCostModel = crocoddyl::CostModelAbstractTpl<Scalar> |
Definition at line 16 of file cost-wrap.hpp.
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
Definition at line 17 of file cost-wrap.hpp.
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::Base = CostAbstractTpl<Scalar> |
Definition at line 18 of file cost-wrap.hpp.
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::BaseData = CostDataAbstractTpl<Scalar> |
Definition at line 19 of file cost-wrap.hpp.
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::StateWrap = StateWrapperTpl<Scalar> |
Definition at line 20 of file cost-wrap.hpp.
|
inlineexplicit |
Constructor from a crocoddyl cost model.
Definition at line 26 of file cost-wrap.hpp.
|
inlineexplicit |
Constructor using a terminal action model.
Definition at line 31 of file cost-wrap.hpp.
aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inline |
Definition at line 36 of file cost-wrap.hpp.
|
inline |
Definition at line 49 of file cost-wrap.hpp.
|
inline |
Definition at line 64 of file cost-wrap.hpp.
|
inlinevirtual |
Reimplemented from aligator::CostAbstractTpl< _Scalar >.
Definition at line 81 of file cost-wrap.hpp.
boost::shared_ptr<CrocCostModel> aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::croc_cost_ |
Definition at line 22 of file cost-wrap.hpp.
boost::shared_ptr<CrocActionModel> aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::action_model_ |
Definition at line 23 of file cost-wrap.hpp.