Go to the documentation of this file.
5 #ifndef __pinocchio_spatial_axis_hpp__
6 #define __pinocchio_spatial_axis_hpp__
17 template<
int axis,
typename MotionDerived>
19 {
typedef typename MotionDerived::MotionPlain
ReturnType; };
29 template<
typename Derived1,
typename Derived2>
33 template<
typename Derived>
41 template<
typename Derived1,
typename Derived2>
45 template<
typename Derived>
53 template<
typename Scalar>
58 for(Eigen::DenseIndex
i = 0;
i <
dim; ++
i)
64 template<
typename Scalar>
71 template<
typename Derived>
81 template<
typename MotionDerived>
82 typename MotionDerived::MotionPlain
85 typename MotionDerived::MotionPlain
res;
88 res.angular().setZero();
103 template<
typename Derived1,
typename Derived2>
109 if((LINEAR == 0 &&
axis<3) || (LINEAR == 3 &&
axis >= 3))
111 mout_.angular().setZero();
122 template<
typename Derived1,
typename Derived2>
128 if((LINEAR == 0 &&
axis<3) || (LINEAR == 3 &&
axis >= 3))
130 fout_.linear().setZero();
149 #endif // __pinocchio_spatial_axis_hpp__
ConstLinearType linear() const
Return the linear part of the force vector.
static void cross(const Eigen::MatrixBase< V3_in > &vin, const Eigen::MatrixBase< V3_out > &vout)
#define PINOCCHIO_EIGEN_CONST_CAST(TYPE, OBJ)
Macro for an automatic const_cast.
static traits< Derived >::ForcePlain cross(const ForceDense< Derived > &fin)
Return type of the ation of a Motion onto an object of type D.
friend MotionTpl< Scalar > operator*(const Scalar &s, const SpatialAxis &)
friend Derived & operator<<(MotionDense< Derived > &min, const SpatialAxis &)
static void cross(const MotionDense< Derived1 > &min, const MotionDense< Derived2 > &mout)
CartesianAxis< _axis%3 > CartesianAxis3
JointCollectionTpl const DataTpl< Scalar, Options, JointCollectionTpl > const Eigen::MatrixBase< Mat > & min
MotionDerived::MotionPlain ReturnType
MotionTpl< Scalar > operator*(const Scalar &s) const
static traits< Derived >::MotionPlain cross(const MotionDense< Derived > &min)
Common traits structure to fully define base classes for CRTP.
MotionDerived::MotionPlain motionAction(const MotionDense< MotionDerived > &m) const
ConstAngularType angular() const
Return the angular part of the force vector.
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Tue Feb 13 2024 03:44:00