18template <
typename _Scalar>
33 xyz::polymorphic<ODEType>
ode_;
37 return dynamic_cast<const U *
>(&*
ode_);
41 const xyz::polymorphic<ODEType> &cont_dynamics);
47template <
typename _Scalar>
65#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
66#include "aligator/modelling/dynamics/integrator-explicit.txx"
Defines a class representing ODEs.
xyz::polymorphic< Manifold > space_next_
Specific data struct for explicit dynamics ExplicitDynamicsModelTpl.
VectorXs xnext_
Model next state.
VectorXs dx_
Difference vector between current state x and xnext_.
Explicit forward dynamics model .
void computeJacobians(const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, BaseData &data) const
void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, BaseData &data) const
Data struct for ContinuousDynamicsAbstractTpl.
xyz::polymorphic< ODEType > ode_
const U * getDynamics() const
ManifoldAbstractTpl< Scalar > Manifold
ExplicitIntegratorAbstractTpl(const xyz::polymorphic< ODEType > &cont_dynamics)
shared_ptr< DynamicsDataTpl< Scalar > > createData() const
virtual ~ExplicitIntegratorAbstractTpl()=default
virtual ~ExplicitIntegratorDataTpl()=default
shared_ptr< ODEData > continuous_data
ExplicitIntegratorDataTpl(const ExplicitIntegratorAbstractTpl< Scalar > *integrator)
Base class for ODE dynamics .