|
aligator 0.19.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
|
Wrapper for the CostDataAbstractTpl class and its children. More...
#include </home/runner/work/aligator/aligator/bindings/python/include/aligator/python/costs.hpp>
Public Types | |
| using | Scalar = context::Scalar |
| using | T = context::CostAbstract |
| using | CostData = CostDataAbstractTpl<Scalar> |
| Public Types inherited from aligator::CostAbstractTpl< Scalar > | |
| using | Scalar |
| using | CostData |
| using | Manifold |
| Public Types inherited from aligator::python::PolymorphicWrapper< PyCostFunction, context::CostAbstract > | |
| using | PyBase |
| using | Base |
Public Member Functions | |
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
| void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override |
| Evaluate the cost function. | |
| void | computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override |
| Compute the cost gradients \((\ell_x, \ell_u)\). | |
| void | computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override |
| Compute the cost Hessians \((\ell_{ij})_{i,j \in \{x,u\}}\). | |
| shared_ptr< CostData > | createData () const override |
| shared_ptr< CostData > | default_createData () const |
| CostAbstractTpl (U &&space, const int nu) | |
| 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 | ~CostAbstractTpl ()=default |
| Public Member Functions inherited from aligator::python::PolymorphicWrapper< PyCostFunction, context::CostAbstract > | |
| PolymorphicWrapper ()=default | |
| PolymorphicWrapper & | operator= (const PolymorphicWrapper &o) |
Additional Inherited Members | |
| Public Attributes inherited from aligator::CostAbstractTpl< Scalar > | |
| xyz::polymorphic< Manifold > | space |
| State dimension. | |
| int | nu |
| Control dimension. | |
Wrapper for the CostDataAbstractTpl class and its children.
| aligator::python::PyCostFunction::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inlineoverridevirtual |
Evaluate the cost function.
Reimplemented from aligator::CostAbstractTpl< Scalar >.
|
inlineoverridevirtual |
Compute the cost gradients \((\ell_x, \ell_u)\).
Reimplemented from aligator::CostAbstractTpl< Scalar >.
|
inlineoverridevirtual |
Compute the cost Hessians \((\ell_{ij})_{i,j \in \{x,u\}}\).
Reimplemented from aligator::CostAbstractTpl< Scalar >.
|
inlineoverridevirtual |
Reimplemented from aligator::CostAbstractTpl< Scalar >.
|
inline |
|
inline |
Definition at line 28 of file cost-abstract.hpp.