6#include <pinocchio/multibody/model.hpp>
10template <
typename Scalar>
struct CentroidalMomentumDerivativeDataTpl;
16template <
typename _Scalar>
23 using Model = pinocchio::ModelTpl<Scalar>;
24 using SE3 = pinocchio::SE3Tpl<Scalar>;
35 const int ndx,
const Model &model,
const Vector3s &gravity,
36 const std::vector<bool> &contact_states,
37 const std::vector<pinocchio::FrameIndex> &contact_ids,
38 const int force_size);
40 void evaluate(
const ConstVectorRef &x,
const ConstVectorRef &u,
47 return std::make_shared<Data>(
this);
51template <
typename Scalar>
53 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
55 using PinData = pinocchio::DataTpl<Scalar>;
56 using Matrix3Xs =
typename math_types<Scalar>::Matrix3Xs;
57 using Matrix6Xs =
typename math_types<Scalar>::Matrix6Xs;
72#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
73#include "aligator/modelling/multibody/centroidal-momentum-derivative.txx"
Base definitions for ternary functions.
CentroidalMomentumDerivativeDataTpl(const CentroidalMomentumDerivativeResidualTpl< Scalar > *model)
typename math_types< Scalar >::Matrix3Xs Matrix3Xs
PinData pin_data_
Pinocchio data object.
typename math_types< Scalar >::Matrix6Xs Matrix6Xs
Eigen::Matrix< Scalar, 3, 3 > Matrix3s
pinocchio::DataTpl< Scalar > PinData
This residual returns the derivative of centroidal momentum for a kinodynamics model.
pinocchio::SE3Tpl< Scalar > SE3
std::vector< bool > contact_states_
void computeJacobians(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
CentroidalMomentumDerivativeResidualTpl(const int ndx, const Model &model, const Vector3s &gravity, const std::vector< bool > &contact_states, const std::vector< pinocchio::FrameIndex > &contact_ids, const int force_size)
void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
shared_ptr< BaseData > createData() const
Instantiate a Data object.
pinocchio::ModelTpl< Scalar > Model
typename Base::Data BaseData
std::vector< pinocchio::FrameIndex > contact_ids_
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
Base struct for function data.
Class representing ternary functions .
StageFunctionDataTpl< Scalar > Data