4#include <proxsuite-nlp/modelling/spaces/vector-space.hpp>
11template <
typename _Scalar>
23 proxsuite::nlp::VectorSpaceTpl<Scalar, Eigen::Dynamic>;
31 void forward(
const ConstVectorRef &x,
const ConstVectorRef &u,
33 data.xnext_ =
A_ * x +
B_ * u +
c_;
36 void dForward(
const ConstVectorRef &,
const ConstVectorRef &,
Data &)
const {}
40 std::make_shared<Data>(this->
ndx1, this->
nu, this->
nx2(), this->
ndx2);
Namespace for modelling system dynamics.
const int ndx2
Next state space dimension.
const int nu
Control dimension.
const int ndx1
State space dimension.
Specific data struct for explicit dynamics ExplicitDynamicsModelTpl.
ExplicitDynamicsModelTpl(const ManifoldPtr &space, const int nu)
Constructor requires providing the next state's manifold.
LinearDiscreteDynamicsTpl(const MatrixXs &A, const MatrixXs &B, const VectorXs &c)
Constructor with state manifold and matrices.
ExplicitDynamicsModelTpl< Scalar > Base
void dForward(const ConstVectorRef &, const ConstVectorRef &, Data &) const
Compute the Jacobians of the forward dynamics.
ExplicitDynamicsDataTpl< Scalar > Data
proxsuite::nlp::VectorSpaceTpl< Scalar, Eigen::Dynamic > VectorSpaceType
shared_ptr< DynData > createData() const
DynamicsDataTpl< Scalar > DynData
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void forward(const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const
Evaluate the forward discrete dynamics.