6#include <pinocchio/multibody/model.hpp>
10template <
typename Scalar>
struct DCMPositionDataTpl;
12template <
typename _Scalar>
19 using Model = pinocchio::ModelTpl<Scalar>;
20 using SE3 = pinocchio::SE3Tpl<Scalar>;
26 const Vector3s &dcm_ref,
const double alpha)
39 return std::make_shared<Data>(*
this);
47template <
typename Scalar>
49 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
51 using PinData = pinocchio::DataTpl<Scalar>;
56 typename math_types<Scalar>::Matrix3Xs
fJf_;
63#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
64#include "./dcm-position.txx"
math_types< Scalar >::Matrix3Xs fJf_
Jacobian of the error.
pinocchio::DataTpl< Scalar > PinData
PinData pin_data_
Pinocchio data object.
DCMPositionDataTpl(const DCMPositionResidualTpl< Scalar > &model)
ALIGATOR_UNARY_FUNCTION_INTERFACE(Scalar)
typename Base::Data BaseData
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
DCMPositionResidualTpl(const int ndx, const int nu, const Model &model, const Vector3s &dcm_ref, const double alpha)
pinocchio::ModelTpl< Scalar > Model
pinocchio::SE3Tpl< Scalar > SE3
void computeJacobians(const ConstVectorRef &x, BaseData &data) const
void setReference(const Eigen::Ref< const Vector3s > &new_ref)
shared_ptr< BaseData > createData() const
Instantiate a Data object.
void evaluate(const ConstVectorRef &x, BaseData &data) const
const Vector3s & getReference() const
Base struct for function data.
StageFunctionDataTpl< _Scalar > Data
Represents unary functions of the form , with no control (or next-state) arguments.