aligator
0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Dynamics model: describes system dynamics through an implicit relation \(f(x,u,x') = 0\). More...
#include <aligator/core/dynamics.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = StageFunctionTpl<Scalar> |
using | Data = DynamicsDataTpl<Scalar> |
using | Manifold = ManifoldAbstractTpl<Scalar> |
using | ManifoldPtr = shared_ptr<Manifold> |
![]() | |
using | Scalar = _Scalar |
using | Data = StageFunctionDataTpl<Scalar> |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
const Manifold & | space () const |
State space for the input. | |
const Manifold & | space_next () const |
State space for the output of this dynamics model. | |
virtual bool | is_explicit () const |
Check if this dynamics model is implicit or explicit. | |
int | nx1 () const |
int | nx2 () const |
DynamicsModelTpl (ManifoldPtr space, const int nu) | |
Constructor for dynamics. | |
DynamicsModelTpl (ManifoldPtr space, const int nu, ManifoldPtr space2) | |
Constructor for dynamics. This constructor assumes same dimension for the current and next state. | |
![]() | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
StageFunctionTpl (const int ndx1, const int nu, const int ndx2, const int nr) | |
StageFunctionTpl (const int ndx, const int nu, const int nr) | |
Constructor where ndx2 = ndx1. | |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, Data &data) const =0 |
Evaluate the function. | |
virtual void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, Data &data) const =0 |
Compute Jacobians of this function. | |
virtual void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, const ConstVectorRef &lbda, Data &data) const |
Compute the vector-hessian products of this function. | |
virtual | ~StageFunctionTpl ()=default |
virtual shared_ptr< Data > | createData () const |
Instantiate a Data object. | |
Public Attributes | |
ManifoldPtr | space_ |
State space for the input. | |
ManifoldPtr | space_next_ |
State space for the output of this dynamics model. | |
![]() | |
const int | ndx1 |
Current state dimension. | |
const int | nu |
Control dimension. | |
const int | ndx2 |
Next state dimension. | |
const int | nr |
Function codimension. | |
Dynamics model: describes system dynamics through an implicit relation \(f(x,u,x') = 0\).
A dynamics model is a function \(f(x,u,x')\) that must be set to zero, describing the dynamics mapping \((x, u) \mapsto x'\). DynamicsModelTpl::nr is assumed to be equal to DynamicsModelTpl::ndx2.
Definition at line 18 of file dynamics.hpp.
using aligator::DynamicsModelTpl< _Scalar >::Scalar = _Scalar |
Definition at line 19 of file dynamics.hpp.
using aligator::DynamicsModelTpl< _Scalar >::Base = StageFunctionTpl<Scalar> |
Definition at line 21 of file dynamics.hpp.
using aligator::DynamicsModelTpl< _Scalar >::Data = DynamicsDataTpl<Scalar> |
Definition at line 22 of file dynamics.hpp.
using aligator::DynamicsModelTpl< _Scalar >::Manifold = ManifoldAbstractTpl<Scalar> |
Definition at line 23 of file dynamics.hpp.
using aligator::DynamicsModelTpl< _Scalar >::ManifoldPtr = shared_ptr<Manifold> |
Definition at line 24 of file dynamics.hpp.
aligator::DynamicsModelTpl< _Scalar >::DynamicsModelTpl | ( | ManifoldPtr | space, |
const int | nu ) |
Constructor for dynamics.
space | State space. |
nu | Control dimension |
ndx2 | Next state space dimension. |
aligator::DynamicsModelTpl< _Scalar >::DynamicsModelTpl | ( | ManifoldPtr | space, |
const int | nu, | ||
ManifoldPtr | space2 ) |
Constructor for dynamics. This constructor assumes same dimension for the current and next state.
space | State space for the current, and next node. |
nu | Control dimension |
aligator::DynamicsModelTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inline |
State space for the input.
Definition at line 32 of file dynamics.hpp.
|
inline |
State space for the output of this dynamics model.
Definition at line 34 of file dynamics.hpp.
|
inlinevirtual |
Check if this dynamics model is implicit or explicit.
Reimplemented in aligator::ExplicitDynamicsModelTpl< _Scalar >.
Definition at line 36 of file dynamics.hpp.
|
inline |
Definition at line 38 of file dynamics.hpp.
|
inline |
Definition at line 39 of file dynamics.hpp.
ManifoldPtr aligator::DynamicsModelTpl< _Scalar >::space_ |
State space for the input.
Definition at line 27 of file dynamics.hpp.
ManifoldPtr aligator::DynamicsModelTpl< _Scalar >::space_next_ |
State space for the output of this dynamics model.
Definition at line 29 of file dynamics.hpp.