aligator
0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Base class for ODE dynamics \( \dot{x} = f(x, u) \). More...
#include <aligator/modelling/dynamics/ode-abstract.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = ContinuousDynamicsAbstractTpl<Scalar> |
using | Data = ContinuousDynamicsDataTpl<Scalar> |
Public Types inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
using | Scalar |
using | Manifold |
using | ManifoldPtr |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
virtual | ~ODEAbstractTpl ()=default |
virtual void | forward (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0 |
Evaluate the ODE vector field: this returns the value of \(\dot{x}\). | |
virtual void | dForward (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0 |
Evaluate the vector field Jacobians. | |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const override |
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const override |
Public Member Functions inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
int | ndx () const |
int | nu () const |
const Manifold & | space () const |
Return a reference to the state space. | |
ContinuousDynamicsAbstractTpl (ManifoldPtr space, const int nu) | |
virtual | ~ContinuousDynamicsAbstractTpl ()=default |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const=0 |
Evaluate the vector field at a point \((x, u)\). | |
virtual void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const=0 |
Differentiate the vector field. | |
virtual shared_ptr< Data > | createData () const |
Create a data holder instance. | |
Public Attributes | |
const int | nu_ |
Control space dimension. | |
ManifoldPtr | space_ |
State space. | |
Public Attributes inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
ManifoldPtr | space_ |
State space. | |
const int | nu_ |
Control space dimension. | |
Base class for ODE dynamics \( \dot{x} = f(x, u) \).
Formulated as a DAE (for ContinuousDynamicsAbstractTpl), this class models
\[ f(x, u) - \dot{x}. \]
Definition at line 15 of file ode-abstract.hpp.
using aligator::dynamics::ODEAbstractTpl< _Scalar >::Scalar = _Scalar |
Definition at line 16 of file ode-abstract.hpp.
using aligator::dynamics::ODEAbstractTpl< _Scalar >::Base = ContinuousDynamicsAbstractTpl<Scalar> |
Definition at line 19 of file ode-abstract.hpp.
using aligator::dynamics::ODEAbstractTpl< _Scalar >::Data = ContinuousDynamicsDataTpl<Scalar> |
Definition at line 20 of file ode-abstract.hpp.
|
virtualdefault |
aligator::dynamics::ODEAbstractTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
pure virtual |
Evaluate the ODE vector field: this returns the value of \(\dot{x}\).
Implemented in aligator::dynamics::CentroidalFwdDynamicsTpl< Scalar >, aligator::dynamics::ContinuousCentroidalFwdDynamicsTpl< Scalar >, aligator::dynamics::LinearODETpl< _Scalar >, aligator::dynamics::MultibodyConstraintFwdDynamicsTpl< _Scalar >, and aligator::python::PyODEAbstract< T >.
|
pure virtual |
Evaluate the vector field Jacobians.
Implemented in aligator::dynamics::CentroidalFwdDynamicsTpl< Scalar >, aligator::dynamics::ContinuousCentroidalFwdDynamicsTpl< Scalar >, aligator::dynamics::LinearODETpl< _Scalar >, aligator::dynamics::MultibodyConstraintFwdDynamicsTpl< _Scalar >, and aligator::python::PyODEAbstract< T >.
|
override |
Declare overrides
|
override |
const int aligator::dynamics::ContinuousDynamicsAbstractTpl< Scalar >::nu_ |
Control space dimension.
Definition at line 29 of file continuous-dynamics-abstract.hpp.
ManifoldPtr aligator::dynamics::ContinuousDynamicsAbstractTpl< Scalar >::space_ |
State space.
Definition at line 27 of file continuous-dynamics-abstract.hpp.