7template <
typename Scalar>
struct LinearMomentumDataTpl;
18template <
typename _Scalar>
38 return std::make_shared<Data>(
this);
45template <
typename Scalar>
47 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
55#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
56#include "aligator/modelling/centroidal/linear-momentum.txx"
LinearMomentumDataTpl(const LinearMomentumResidualTpl< Scalar > *model)
This residual returns the linear momentum for a centroidal model with state .
void computeJacobians(const ConstVectorRef &, BaseData &data) const
typename Base::Data BaseData
void evaluate(const ConstVectorRef &x, BaseData &data) const
shared_ptr< BaseData > createData() const
Instantiate a Data object.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
LinearMomentumResidualTpl(const int ndx, const int nu, const Vector3s &h_ref)
const Vector3s & getReference() const
void setReference(const Eigen::Ref< const Vector3s > &h_new)
ALIGATOR_UNARY_FUNCTION_INTERFACE(Scalar)
Base struct for function data.
StageFunctionDataTpl< _Scalar > Data
Represents unary functions of the form , with no control (or next-state) arguments.