9 #ifndef CROCODDYL_MULTIBODY_FORCE_BASE_HPP_
10 #define CROCODDYL_MULTIBODY_FORCE_BASE_HPP_
12 #include "crocoddyl/multibody/fwd.hpp"
16 template <
typename _Scalar>
18 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
20 typedef _Scalar Scalar;
22 typedef typename MathBase::VectorXs VectorXs;
23 typedef typename MathBase::MatrixXs MatrixXs;
24 typedef typename pinocchio::DataTpl<Scalar> PinocchioData;
25 typedef typename pinocchio::SE3Tpl<Scalar> SE3;
26 typedef typename pinocchio::ForceTpl<Scalar> Force;
28 template <
template <
typename Scalar>
class Model>
32 type(model->get_type()),
34 Jc(model->get_nc(), model->get_state()->get_nv()),
37 df_dx(model->get_nc(), model->get_state()->get_ndx()),
38 df_du(model->get_nc(), model->get_nu()) {
47 pinocchio::ReferenceFrame
type;
Force fext
External spatial force at the parent joint level.
PinocchioData * pinocchio
Pinocchio data.
pinocchio::FrameIndex frame
Frame index of the contact frame.
SE3 jMf
Local frame placement of the contact frame.
pinocchio::ReferenceFrame type
Type of contact.
MatrixXs Jc
Contact Jacobian.
Force f
Contact force expressed in the coordinate defined by type.