6#include <pinocchio/multibody/model.hpp>
10template <
typename Scalar>
struct CenterOfMassTranslationDataTpl;
21template <
typename _Scalar>
29 using Model = pinocchio::ModelTpl<Scalar>;
30 using SE3 = pinocchio::SE3Tpl<Scalar>;
37 const Vector3s &frame_trans)
48 return std::make_shared<Data>(
this);
55template <
typename Scalar>
57 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
59 using PinData = pinocchio::DataTpl<Scalar>;
70#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
71#include "./center-of-mass-translation.txx"
CenterOfMassTranslationDataTpl(const CenterOfMassTranslationResidualTpl< Scalar > *model)
PinData pin_data_
Pinocchio data object.
pinocchio::DataTpl< Scalar > PinData
This residual returns the Center of Mass translation for a centroidal model with state .
shared_ptr< BaseData > createData() const
Instantiate a Data object.
ALIGATOR_UNARY_FUNCTION_INTERFACE(Scalar)
void setReference(const Eigen::Ref< const Vector3s > &p_new)
const Vector3s & getReference() const
typename Base::Data BaseData
pinocchio::SE3Tpl< Scalar > SE3
void computeJacobians(const ConstVectorRef &x, BaseData &data) const
CenterOfMassTranslationResidualTpl(const int ndx, const int nu, const Model &model, const Vector3s &frame_trans)
void evaluate(const ConstVectorRef &x, BaseData &data) const
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
pinocchio::ModelTpl< Scalar > Model
Base struct for function data.
StageFunctionDataTpl< _Scalar > Data
Represents unary functions of the form , with no control (or next-state) arguments.