6#include <pinocchio/multibody/model.hpp>
10template <
typename Scalar>
struct CenterOfMassVelocityDataTpl;
12template <
typename _Scalar>
19 using Model = pinocchio::ModelTpl<Scalar>;
20 using SE3 = pinocchio::SE3Tpl<Scalar>;
26 const Model &model,
const Vector3s &frame_vel)
37 return std::make_shared<Data>(*
this);
44template <
typename Scalar>
46 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 using PinData = pinocchio::DataTpl<Scalar>;
53 typename math_types<Scalar>::Matrix3Xs
fJf_;
61#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
62#include "./center-of-mass-velocity.txx"
pinocchio::DataTpl< Scalar > PinData
PinData pin_data_
Pinocchio data object.
math_types< Scalar >::Matrix3Xs fJf_
Jacobian of the error.
CenterOfMassVelocityDataTpl(const CenterOfMassVelocityResidualTpl< Scalar > &model)
const Vector3s & getReference() const
shared_ptr< BaseData > createData() const
Instantiate a Data object.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void evaluate(const ConstVectorRef &x, BaseData &data) const
void setReference(const Eigen::Ref< const Vector3s > &v_new)
typename Base::Data BaseData
CenterOfMassVelocityResidualTpl(const int ndx, const int nu, const Model &model, const Vector3s &frame_vel)
pinocchio::SE3Tpl< Scalar > SE3
ALIGATOR_UNARY_FUNCTION_INTERFACE(Scalar)
pinocchio::ModelTpl< Scalar > Model
void computeJacobians(const ConstVectorRef &x, BaseData &data) const
Base struct for function data.
StageFunctionDataTpl< _Scalar > Data
Represents unary functions of the form , with no control (or next-state) arguments.