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