aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::ExplicitDynamicsModelTpl< Scalar > Struct Template Referenceabstract

Explicit forward dynamics model \( x_{k+1} = f(x_k, u_k) \). More...

#include <aligator/core/explicit-dynamics.hpp>

Inheritance diagram for aligator::ExplicitDynamicsModelTpl< Scalar >:
[legend]
Collaboration diagram for aligator::ExplicitDynamicsModelTpl< Scalar >:
[legend]

Public Types

using Scalar = _Scalar
 
using Base = DynamicsModelTpl<Scalar>
 
using BaseData = DynamicsDataTpl<Scalar>
 
using Data = ExplicitDynamicsDataTpl<Scalar>
 
using Manifold = ManifoldAbstractTpl<Scalar>
 
using ManifoldPtr = xyz::polymorphic<Manifold>
 
- Public Types inherited from aligator::DynamicsModelTpl< _Scalar >
using Scalar
 
using Data
 
using Manifold
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
bool isExplicit () const
 Check if this dynamics model is implicit or explicit.
 
 ExplicitDynamicsModelTpl (const ManifoldPtr &space, const int nu)
 Constructor requires providing the next state's manifold.
 
virtual ~ExplicitDynamicsModelTpl ()=default
 
virtual void forward (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0
 Evaluate the forward discrete dynamics.
 
virtual void dForward (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0
 Compute the Jacobians of the forward dynamics.
 
void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, BaseData &data) const
 
void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, BaseData &data) const
 
virtual shared_ptr< BaseDatacreateData () const
 
- Public Member Functions inherited from aligator::DynamicsModelTpl< _Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar)
 
const Manifoldspace () const
 State space for the input.
 
const Manifoldspace_next () const
 State space for the output of this dynamics model.
 
int nx1 () const
 
int nx2 () const
 
 DynamicsModelTpl (xyz::polymorphic< Manifold > space, const int nu)
 Constructor for dynamics.
 
 DynamicsModelTpl (xyz::polymorphic< Manifold > space, const int nu, xyz::polymorphic< Manifold > space_next)
 Constructor for dynamics. This constructor assumes same dimension for the current and next state.
 
virtual void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xn, Data &) const=0
 
virtual void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xn, Data &) const=0
 
virtual void computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xn, const ConstVectorRef &lbda, Data &data) const
 
virtual ~DynamicsModelTpl ()=default
 

Additional Inherited Members

- Public Attributes inherited from aligator::DynamicsModelTpl< _Scalar >
xyz::polymorphic< Manifoldspace_
 State space for the input.
 
xyz::polymorphic< Manifoldspace_next_
 State space for the output of this dynamics model.
 
const int ndx1
 State space dimension.
 
const int nu
 Control dimension.
 
const int ndx2
 Next state space dimension.
 

Detailed Description

template<typename Scalar>
struct aligator::ExplicitDynamicsModelTpl< Scalar >

Explicit forward dynamics model \( x_{k+1} = f(x_k, u_k) \).

Forward dynamics \( x_{k+1} = f(x_k, u_k) \). The corresponding residuals for multiple-shooting formulations are

\[ \bar{f}(x_k, u_k, x_{k+1}) = f(x_k, u_k) \ominus x_{k+1}. \]

Definition at line 80 of file fwd.hpp.

Member Typedef Documentation

◆ Scalar

template<typename Scalar >
using aligator::ExplicitDynamicsModelTpl< Scalar >::Scalar = _Scalar

Definition at line 22 of file explicit-dynamics.hpp.

◆ Base

Definition at line 24 of file explicit-dynamics.hpp.

◆ BaseData

template<typename Scalar >
using aligator::ExplicitDynamicsModelTpl< Scalar >::BaseData = DynamicsDataTpl<Scalar>

Definition at line 25 of file explicit-dynamics.hpp.

◆ Data

Definition at line 26 of file explicit-dynamics.hpp.

◆ Manifold

template<typename Scalar >
using aligator::ExplicitDynamicsModelTpl< Scalar >::Manifold = ManifoldAbstractTpl<Scalar>

Definition at line 27 of file explicit-dynamics.hpp.

◆ ManifoldPtr

template<typename Scalar >
using aligator::ExplicitDynamicsModelTpl< Scalar >::ManifoldPtr = xyz::polymorphic<Manifold>

Definition at line 28 of file explicit-dynamics.hpp.

Constructor & Destructor Documentation

◆ ExplicitDynamicsModelTpl()

template<typename Scalar >
aligator::ExplicitDynamicsModelTpl< Scalar >::ExplicitDynamicsModelTpl ( const ManifoldPtr & space,
const int nu )

Constructor requires providing the next state's manifold.

◆ ~ExplicitDynamicsModelTpl()

template<typename Scalar >
virtual aligator::ExplicitDynamicsModelTpl< Scalar >::~ExplicitDynamicsModelTpl ( )
virtualdefault

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename Scalar >
aligator::ExplicitDynamicsModelTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ isExplicit()

template<typename Scalar >
bool aligator::ExplicitDynamicsModelTpl< Scalar >::isExplicit ( ) const
inlinevirtual

Check if this dynamics model is implicit or explicit.

Reimplemented from aligator::DynamicsModelTpl< _Scalar >.

Definition at line 30 of file explicit-dynamics.hpp.

◆ forward()

template<typename Scalar >
virtual void aligator::ExplicitDynamicsModelTpl< Scalar >::forward ( const ConstVectorRef & x,
const ConstVectorRef & u,
Data & data ) const
pure virtual

◆ dForward()

template<typename Scalar >
virtual void aligator::ExplicitDynamicsModelTpl< Scalar >::dForward ( const ConstVectorRef & x,
const ConstVectorRef & u,
Data & data ) const
pure virtual

Compute the Jacobians of the forward dynamics.

Implemented in aligator::dynamics::IntegratorEulerTpl< _Scalar >, and aligator::python::PyExplicitDynamics< ExplicitBase >.

◆ evaluate()

template<typename Scalar >
void aligator::ExplicitDynamicsModelTpl< Scalar >::evaluate ( const ConstVectorRef & x,
const ConstVectorRef & u,
const ConstVectorRef & y,
BaseData & data ) const

◆ computeJacobians()

template<typename Scalar >
void aligator::ExplicitDynamicsModelTpl< Scalar >::computeJacobians ( const ConstVectorRef & x,
const ConstVectorRef & u,
const ConstVectorRef & y,
BaseData & data ) const

◆ createData()


The documentation for this struct was generated from the following files: