18template <
typename _Scalar>
32 void forward(
const ConstVectorRef &x,
const ConstVectorRef &u,
34 void dForward(
const ConstVectorRef &x,
const ConstVectorRef &u,
38 return std::make_shared<Data>(
this);
45template <
typename Scalar>
67#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
68#include "aligator/modelling/dynamics/integrator-rk2.txx"
Base definitions for explicit integrators.
Namespace for modelling system dynamics.
xyz::polymorphic< Manifold > space_next_
Specific data struct for explicit dynamics ExplicitDynamicsModelTpl.
Data struct for ContinuousDynamicsAbstractTpl.
ODEAbstractTpl< Scalar > ODEType
ExplicitIntegratorAbstractTpl(const xyz::polymorphic< ODEType > &cont_dynamics)
ExplicitIntegratorDataTpl(const ExplicitIntegratorAbstractTpl< Scalar > *integrator)
ContinuousDynamicsDataTpl< Scalar > ODEData
ExplicitIntegratorDataTpl< Scalar > Base
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
shared_ptr< ODEData > continuous_data2
IntegratorRK2DataTpl(const IntegratorRK2Tpl< Scalar > *integrator)
Second-order Runge-Kutta integrator.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
IntegratorRK2Tpl(const xyz::polymorphic< ODEType > &cont_dynamics, const Scalar timestep)
IntegratorRK2DataTpl< Scalar > Data
shared_ptr< DynamicsDataTpl< Scalar > > createData() const
ExplicitIntegratorAbstractTpl< Scalar > Base
ExplicitDynamicsDataTpl< Scalar > BaseData
void dForward(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
Compute the Jacobians of the forward dynamics.
void forward(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
Evaluate the forward discrete dynamics.
typename Base::ODEType ODEType