joint-helical.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022-2023 INRIA
3 //
4 
5 #ifndef __pinocchio_multibody_joint_helical_hpp__
6 #define __pinocchio_multibody_joint_helical_hpp__
7 
14 
15 namespace pinocchio
16 {
17 
18  template<typename Scalar, int Options, int axis>
20 
21  template<typename Scalar, int Options, int axis>
23  {
25  };
26 
27  template<typename Scalar, int Options, int axis, typename MotionDerived>
29  {
31  };
32 
33  template<typename _Scalar, int _Options, int axis>
34  struct traits<MotionHelicalTpl<_Scalar, _Options, axis>>
35  {
36  typedef _Scalar Scalar;
37  enum
38  {
39  Options = _Options
40  };
41  typedef Eigen::Matrix<Scalar, 3, 1, Options> Vector3;
42  typedef Eigen::Matrix<Scalar, 6, 1, Options> Vector6;
43  typedef Eigen::Matrix<Scalar, 4, 4, Options> Matrix4;
44  typedef Eigen::Matrix<Scalar, 6, 6, Options> Matrix6;
45  typedef typename PINOCCHIO_EIGEN_REF_CONST_TYPE(Vector6) ToVectorConstReturnType;
46  typedef typename PINOCCHIO_EIGEN_REF_TYPE(Vector6) ToVectorReturnType;
49  typedef const Vector3 ConstAngularType;
50  typedef const Vector3 ConstLinearType;
55  enum
56  {
57  LINEAR = 0,
58  ANGULAR = 3
59  };
60  }; // traits MotionHelicalTpl
61 
62  template<typename Scalar, int Options, int axis>
64 
65  template<typename _Scalar, int _Options, int _axis>
66  struct traits<TransformHelicalTpl<_Scalar, _Options, _axis>>
67  {
68  enum
69  {
70  axis = _axis,
71  Options = _Options,
72  LINEAR = 0,
73  ANGULAR = 3
74  };
75  typedef _Scalar Scalar;
77  typedef Eigen::Matrix<Scalar, 3, 1, Options> Vector3;
78  typedef Eigen::Matrix<Scalar, 3, 3, Options> Matrix3;
83  typedef typename Vector3::ConstantReturnType LinearRef;
84  typedef const typename Vector3::ConstantReturnType ConstLinearRef;
87  }; // traits TransformHelicalTpl
88 
89  template<typename Scalar, int Options, int axis>
91  {
93  };
94 
95  template<typename _Scalar, int _Options, int axis>
96  struct TransformHelicalTpl : SE3Base<TransformHelicalTpl<_Scalar, _Options, axis>>
97  {
98  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
100 
103 
105  {
106  }
108  : m_sin(sin)
109  , m_cos(cos)
111  {
112  }
113 
114  PlainType plain() const
115  {
116  PlainType res(PlainType::Identity());
117  _setRotation(res.rotation());
118  res.translation()[axis] = m_displacement;
119  return res;
120  }
121 
122  operator PlainType() const
123  {
124  return plain();
125  }
126 
127  template<typename S2, int O2>
129  se3action(const SE3Tpl<S2, O2> & m) const
130  {
131  typedef typename SE3GroupAction<TransformHelicalTpl>::ReturnType ReturnType;
132  ReturnType res;
133  switch (axis)
134  {
135  case 0: {
136  res.rotation().col(0) = m.rotation().col(0);
137  res.rotation().col(1).noalias() = m_cos * m.rotation().col(1) + m_sin * m.rotation().col(2);
138  res.rotation().col(2).noalias() = res.rotation().col(0).cross(res.rotation().col(1));
139  break;
140  }
141  case 1: {
142  res.rotation().col(2).noalias() = m_cos * m.rotation().col(2) + m_sin * m.rotation().col(0);
143  res.rotation().col(1) = m.rotation().col(1);
144  res.rotation().col(0).noalias() = res.rotation().col(1).cross(res.rotation().col(2));
145  break;
146  }
147  case 2: {
148  res.rotation().col(0).noalias() = m_cos * m.rotation().col(0) + m_sin * m.rotation().col(1);
149  res.rotation().col(1).noalias() = res.rotation().col(2).cross(res.rotation().col(0));
150  res.rotation().col(2) = m.rotation().col(2);
151  break;
152  }
153  default: {
154  assert(false && "must never happen");
155  break;
156  }
157  }
158  res.translation() = m.translation();
159  res.translation()[axis] += m_displacement;
160  return res;
161  }
162 
163  const Scalar & sin() const
164  {
165  return m_sin;
166  }
168  {
169  return m_sin;
170  }
171 
172  const Scalar & cos() const
173  {
174  return m_cos;
175  }
177  {
178  return m_cos;
179  }
180 
181  const Scalar & displacement() const
182  {
183  return m_displacement;
184  }
186  {
187  return m_displacement;
188  }
189 
190  template<typename Scalar1, typename Scalar2, typename Scalar3>
191  void setValues(const Scalar1 & sin, const Scalar2 & cos, const Scalar3 & displacement)
192  {
193  m_sin = sin;
194  m_cos = cos;
196  }
197 
198  LinearType translation() const
199  {
200  return CartesianAxis3Linear() * displacement();
201  }
202  AngularType rotation() const
203  {
204  AngularType m(AngularType::Identity());
205  _setRotation(m);
206  return m;
207  }
208 
209  bool isEqual(const TransformHelicalTpl & other) const
210  {
211  return internal::comparison_eq(m_cos, other.m_cos)
214  }
215 
216  protected:
218  inline void _setRotation(typename PlainType::AngularRef & rot) const
219  {
220  switch (axis)
221  {
222  case 0: {
223  rot.coeffRef(1, 1) = m_cos;
224  rot.coeffRef(1, 2) = -m_sin;
225  rot.coeffRef(2, 1) = m_sin;
226  rot.coeffRef(2, 2) = m_cos;
227  break;
228  }
229  case 1: {
230  rot.coeffRef(0, 0) = m_cos;
231  rot.coeffRef(0, 2) = m_sin;
232  rot.coeffRef(2, 0) = -m_sin;
233  rot.coeffRef(2, 2) = m_cos;
234  break;
235  }
236  case 2: {
237  rot.coeffRef(0, 0) = m_cos;
238  rot.coeffRef(0, 1) = -m_sin;
239  rot.coeffRef(1, 0) = m_sin;
240  rot.coeffRef(1, 1) = m_cos;
241  break;
242  }
243  default: {
244  assert(false && "must never happen");
245  break;
246  }
247  }
248  }
249  }; // struct TransformHelicalTpl
250 
251  template<typename _Scalar, int _Options, int axis>
252  struct MotionHelicalTpl : MotionBase<MotionHelicalTpl<_Scalar, _Options, axis>>
253  {
254  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
255 
261 
263  {
264  }
265 
266  MotionHelicalTpl(const Scalar & w, const Scalar & v)
267  : m_w(w)
268  , m_v(v)
269  {
270  }
271 
272  inline PlainReturnType plain() const
273  {
274  return PlainReturnType(CartesianAxis3Linear() * m_v, CartesianAxis3Angular() * m_w);
275  }
276 
277  template<typename OtherScalar>
278  MotionHelicalTpl __mult__(const OtherScalar & alpha) const
279  {
280  return MotionHelicalTpl(alpha * m_w, alpha * m_v);
281  }
282 
283  template<typename MotionDerived>
285  {
286  for (Eigen::DenseIndex k = 0; k < 3; ++k)
287  {
288  m.angular()[k] = k == axis ? m_w : (Scalar)0;
289  m.linear()[k] = k == axis ? m_v : (Scalar)0;
290  }
291  }
292 
293  template<typename MotionDerived>
294  inline void addTo(MotionDense<MotionDerived> & v) const
295  {
296  typedef typename MotionDense<MotionDerived>::Scalar OtherScalar;
297  v.angular()[axis] += (OtherScalar)m_w;
298  v.linear()[axis] += (OtherScalar)m_v;
299  }
300 
301  template<typename S2, int O2, typename D2>
302  inline void se3Action_impl(const SE3Tpl<S2, O2> & m, MotionDense<D2> & v) const
303  {
304  v.angular().noalias() = m.rotation().col(axis) * m_w;
305  v.linear().noalias() = m.translation().cross(v.angular()) + m_v * (m.rotation().col(axis));
306  }
307 
308  template<typename S2, int O2>
309  MotionPlain se3Action_impl(const SE3Tpl<S2, O2> & m) const
310  {
311 
312  MotionPlain res;
313  se3Action_impl(m, res);
314  return res;
315  }
316 
317  template<typename S2, int O2, typename D2>
319  {
320  // Linear
321  CartesianAxis3Linear::alphaCross(m_w, m.translation(), v.angular());
322  v.linear().noalias() =
323  m.rotation().transpose() * v.angular() + m_v * (m.rotation().transpose().col(axis));
324 
325  // Angular
326  v.angular().noalias() = m.rotation().transpose().col(axis) * m_w;
327  }
328 
329  template<typename S2, int O2>
330  MotionPlain se3ActionInverse_impl(const SE3Tpl<S2, O2> & m) const
331  {
332  MotionPlain res;
334  return res;
335  }
336 
337  template<typename M1, typename M2>
338  EIGEN_STRONG_INLINE void motionAction(const MotionDense<M1> & v, MotionDense<M2> & mout) const
339  {
340  // Linear
341  CartesianAxis3Linear::alphaCross(-m_w, v.linear(), mout.linear());
342  CartesianAxis3Linear::alphaCross(-m_v, v.angular(), mout.angular());
343  mout.linear() += mout.angular();
344  // Angular
345  CartesianAxis3Angular::alphaCross(-m_w, v.angular(), mout.angular());
346  }
347 
348  template<typename M1>
349  MotionPlain motionAction(const MotionDense<M1> & v) const
350  {
351  MotionPlain res;
352  motionAction(v, res);
353  return res;
354  }
355 
357  {
358  return m_w;
359  }
360  const Scalar & angularRate() const
361  {
362  return m_w;
363  }
364 
366  {
367  return m_v;
368  }
369  const Scalar & linearRate() const
370  {
371  return m_v;
372  }
373 
374  bool isEqual_impl(const MotionHelicalTpl & other) const
375  {
376  return internal::comparison_eq(m_w, other.m_w) && internal::comparison_eq(m_v, other.m_v);
377  }
378 
379  protected:
381  }; // struct MotionHelicalTpl
382  template<typename S1, int O1, int axis, typename MotionDerived>
383  typename MotionDerived::MotionPlain
385  {
386  typename MotionDerived::MotionPlain res(m2);
387  res += m1;
388  return res;
389  }
390 
391  template<typename MotionDerived, typename S2, int O2, int axis>
392  EIGEN_STRONG_INLINE typename MotionDerived::MotionPlain
394  {
395  return m2.motionAction(m1);
396  }
397 
398  template<typename Scalar, int Options, int axis>
400 
401  template<typename Scalar, int Options, int axis>
403  {
404  typedef Eigen::Matrix<Scalar, 6, 1, Options> ReturnType;
405  };
406 
407  template<typename Scalar, int Options, int axis, typename MotionDerived>
409  {
410  typedef Eigen::Matrix<Scalar, 6, 1, Options> ReturnType;
411  };
412 
413  template<typename Scalar, int Options, int axis, typename ForceDerived>
415  {
416  typedef typename Eigen::Matrix<Scalar, 1, 1> ReturnType;
417  };
418 
419  template<typename Scalar, int Options, int axis, typename ForceSet>
421  {
422  typedef typename Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> ReturnType;
423  };
424 
425  template<typename _Scalar, int _Options, int axis>
426  struct traits<JointMotionSubspaceHelicalTpl<_Scalar, _Options, axis>>
427  {
428  typedef _Scalar Scalar;
429  enum
430  {
431  Options = _Options
432  };
433  enum
434  {
435  LINEAR = 0,
436  ANGULAR = 3
437  };
438 
440  typedef Eigen::Matrix<Scalar, 1, 1, Options> JointForce;
441  typedef Eigen::Matrix<Scalar, 6, 1, Options> DenseBase;
442  typedef Eigen::Matrix<Scalar, 1, 1, Options> ReducedSquaredMatrix;
443 
446 
447  typedef typename ReducedSquaredMatrix::IdentityReturnType StDiagonalMatrixSOperationReturnType;
448  }; // traits JointMotionSubspaceHelicalTpl
449 
450  template<class ConstraintDerived>
452  {
453  typedef
454  typename Eigen::Matrix<typename ConstraintDerived::Scalar, 1, 1, ConstraintDerived::Options>
456  };
457 
458  template<typename _Scalar, int _Options, int axis>
460  : JointMotionSubspaceBase<JointMotionSubspaceHelicalTpl<_Scalar, _Options, axis>>
461  {
462  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
463 
465  enum
466  {
467  NV = 1
468  };
469 
472 
475 
477  {
478  }
479 
481  : m_pitch(h)
482  {
483  }
484 
485  template<typename Vector1Like>
486  JointMotion __mult__(const Eigen::MatrixBase<Vector1Like> & v) const
487  {
488  EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(Vector1Like, 1);
489  assert(v.size() == 1);
490  return JointMotion(v[0], v[0] * m_pitch);
491  }
492 
493  template<typename S1, int O1>
495  se3Action(const SE3Tpl<S1, O1> & m) const
496  {
498  ReturnType res;
499  res.template segment<3>(LINEAR) =
500  m.translation().cross(m.rotation().col(axis)) + m_pitch * (m.rotation().col(axis));
501  res.template segment<3>(ANGULAR) = m.rotation().col(axis);
502  return res;
503  }
504 
505  template<typename S1, int O1>
508  {
510  typedef typename AxisAngular::CartesianAxis3 CartesianAxis3;
511  ReturnType res;
512  res.template segment<3>(LINEAR).noalias() =
513  m.rotation().transpose() * CartesianAxis3::cross(m.translation())
514  + m.rotation().transpose().col(axis) * m_pitch;
515  res.template segment<3>(ANGULAR) = m.rotation().transpose().col(axis);
516  return res;
517  }
518 
519  int nv_impl() const
520  {
521  return NV;
522  }
523 
524  // For force T
525  struct TransposeConst : JointMotionSubspaceTransposeBase<JointMotionSubspaceHelicalTpl>
526  {
529  : ref(ref)
530  {
531  }
532 
533  template<typename ForceDerived>
536  {
537  return Eigen::Matrix<Scalar, 1, 1>(f.angular()(axis) + f.linear()(axis) * ref.m_pitch);
538  }
539 
541  template<typename Derived>
543  operator*(const Eigen::MatrixBase<Derived> & F) const
544  {
545  assert(F.rows() == 6);
546  return F.row(ANGULAR + axis) + F.row(LINEAR + axis) * ref.m_pitch;
547  }
548  }; // struct TransposeConst
549 
551  {
552  return TransposeConst(*this);
553  }
554 
555  /* CRBA joint operators
556  * - ForceSet::Block = ForceSet
557  * - ForceSet operator* (Inertia Y,Constraint S)
558  * - MatrixBase operator* (Constraint::Transpose S, ForceSet::Block)
559  * - SE3::act(ForceSet::Block)
560  */
561  DenseBase matrix_impl() const
562  {
563  DenseBase S;
565  v << AxisAngular();
566  S(LINEAR + axis) = m_pitch;
567  return S;
568  }
569 
570  template<typename MotionDerived>
573  {
575  ReturnType;
576  ReturnType res;
577  // Linear
578  CartesianAxis3Linear::cross(-m.linear(), res.template segment<3>(LINEAR));
579  CartesianAxis3Linear::alphaCross(-m_pitch, m.angular(), res.template segment<3>(ANGULAR));
580  res.template segment<3>(LINEAR) += res.template segment<3>(ANGULAR);
581 
582  // Angular
583  CartesianAxis3Angular::cross(-m.angular(), res.template segment<3>(ANGULAR));
584  return res;
585  }
586 
588  {
589  return true;
590  }
591 
592  Scalar & h()
593  {
594  return m_pitch;
595  }
596  const Scalar & h() const
597  {
598  return m_pitch;
599  }
600 
601  protected:
603  }; // struct JointMotionSubspaceHelicalTpl
604 
605  template<typename _Scalar, int _Options, int _axis>
606  Eigen::Matrix<_Scalar, 1, 1, _Options> operator*(
608  S_transpose,
610  {
611  Eigen::Matrix<_Scalar, 1, 1, _Options> res;
612  res(0) = 1.0 + S_transpose.ref.h() * S.h();
613  return res;
614  }
615 
616  template<typename _Scalar, int _Options, int _axis>
618  {
619  typedef _Scalar Scalar;
620 
621  enum
622  {
623  Options = _Options,
624  axis = _axis
625  };
626  };
627 
628  template<typename S1, int O1, typename S2, int O2, int axis>
630  {
631  typedef Eigen::Matrix<S2, 6, 1, O2> ReturnType;
632  };
633 
634  /* [CRBA] ForceSet operator* (Inertia Y,Constraint S) */
635  namespace impl
636  {
637  template<typename S1, int O1, typename S2, int O2>
639  {
643  static inline ReturnType run(const Inertia & Y, const Constraint & constraint)
644  {
645  ReturnType res;
646  const S2 & m_pitch = constraint.h();
647 
648  /* Y(:,3) = ( 0,-z, y, I00+yy+zz, I01-xy , I02-xz ) */
649  /* Y(:,0) = ( 1,0, 0, 0 , z , -y ) */
650  const S1 &m = Y.mass(), &x = Y.lever()[0], &y = Y.lever()[1], &z = Y.lever()[2];
651  const typename Inertia::Symmetric3 & I = Y.inertia();
652 
653  res << m * m_pitch, -m * z, m * y, I(0, 0) + m * (y * y + z * z),
654  I(0, 1) - m * x * y + m * z * m_pitch, I(0, 2) - m * x * z - m * y * m_pitch;
655 
656  return res;
657  }
658  };
659 
660  template<typename S1, int O1, typename S2, int O2>
662  {
666  static inline ReturnType run(const Inertia & Y, const Constraint & constraint)
667  {
668  ReturnType res;
669  const S2 & m_pitch = constraint.h();
670 
671  /* Y(:,4) = ( z, 0,-x, I10-xy , I11+xx+zz, I12-yz ) */
672  /* Y(:,1) = ( 0,1, 0, -z , 0 , x) */
673  const S1 &m = Y.mass(), &x = Y.lever()[0], &y = Y.lever()[1], &z = Y.lever()[2];
674  const typename Inertia::Symmetric3 & I = Y.inertia();
675 
676  res << m * z, m * m_pitch, -m * x, I(1, 0) - m * x * y - m * z * m_pitch,
677  I(1, 1) + m * (x * x + z * z), I(1, 2) - m * y * z + m * x * m_pitch;
678 
679  return res;
680  }
681  };
682 
683  template<typename S1, int O1, typename S2, int O2>
685  {
689  static inline ReturnType run(const Inertia & Y, const Constraint & constraint)
690  {
691  ReturnType res;
692  const S2 & m_pitch = constraint.h();
693 
694  /* Y(:,5) = (-y, x, 0, I20-xz , I21-yz , I22+xx+yy) */
695  /* Y(:,2) = ( 0,0, 1, y , -x , 0) */
696  const S1 &m = Y.mass(), &x = Y.lever()[0], &y = Y.lever()[1], &z = Y.lever()[2];
697  const typename Inertia::Symmetric3 & I = Y.inertia();
698 
699  res << -m * y, m * x, m * m_pitch, I(2, 0) - m * x * z + m * y * m_pitch,
700  I(2, 1) - m * y * z - m * x * m_pitch, I(2, 2) + m * (x * x + y * y);
701 
702  return res;
703  }
704  };
705  } // namespace impl
706 
707  template<typename M6Like, typename S2, int O2, int axis>
708  struct MultiplicationOp<Eigen::MatrixBase<M6Like>, JointMotionSubspaceHelicalTpl<S2, O2, axis>>
709  {
710  typedef Eigen::Matrix<S2, 6, 1> ReturnType;
711  };
712 
713  /* [ABA] operator* (Inertia Y,Constraint S) */
714  namespace impl
715  {
716  template<typename M6Like, typename Scalar, int Options, int axis>
718  Eigen::MatrixBase<M6Like>,
719  JointMotionSubspaceHelicalTpl<Scalar, Options, axis>>
720  {
722  typedef Eigen::Matrix<Scalar, 6, 1> ReturnType;
723  static inline ReturnType
724  run(const Eigen::MatrixBase<M6Like> & Y, const Constraint & constraint)
725  {
726  EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(M6Like, 6, 6);
727  return (Y.col(Inertia::ANGULAR + axis) + Y.col(Inertia::LINEAR + axis) * constraint.h());
728  }
729  };
730  } // namespace impl
731 
732  template<typename _Scalar, int _Options, int axis>
733  struct traits<JointHelicalTpl<_Scalar, _Options, axis>>
734  {
735  enum
736  {
737  NQ = 1,
738  NV = 1
739  };
740  typedef _Scalar Scalar;
741  enum
742  {
743  Options = _Options
744  };
751 
752  // [ABA]
753  typedef Eigen::Matrix<Scalar, 6, NV, Options> U_t;
754  typedef Eigen::Matrix<Scalar, NV, NV, Options> D_t;
755  typedef Eigen::Matrix<Scalar, 6, NV, Options> UD_t;
756 
757  typedef Eigen::Matrix<Scalar, NQ, 1, Options> ConfigVector_t;
758  typedef Eigen::Matrix<Scalar, NV, 1, Options> TangentVector_t;
759 
761  };
762 
763  template<typename _Scalar, int _Options, int axis>
764  struct traits<JointDataHelicalTpl<_Scalar, _Options, axis>>
765  {
767  typedef _Scalar Scalar;
768  };
769 
770  template<typename _Scalar, int _Options, int axis>
771  struct traits<JointModelHelicalTpl<_Scalar, _Options, axis>>
772  {
774  typedef _Scalar Scalar;
775  };
776 
777  template<typename _Scalar, int _Options, int axis>
778  struct JointDataHelicalTpl : public JointDataBase<JointDataHelicalTpl<_Scalar, _Options, axis>>
779  {
780  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
784 
785  ConfigVector_t joint_q;
786  TangentVector_t joint_v;
787 
788  Constraint_t S;
789  Transformation_t M;
790  Motion_t v;
791  Bias_t c;
792 
793  // [ABA] specific data
794  U_t U;
795  D_t Dinv;
796  UD_t UDinv;
797  D_t StU;
798 
800  : joint_q(ConfigVector_t::Zero())
801  , joint_v(TangentVector_t::Zero())
802  , S((Scalar)0)
803  , M((Scalar)0, (Scalar)1, (Scalar)0)
804  , v((Scalar)0, (Scalar)0)
805  , U(U_t::Zero())
806  , Dinv(D_t::Zero())
807  , UDinv(UD_t::Zero())
808  , StU(D_t::Zero())
809  {
810  }
811 
812  static std::string classname()
813  {
814  return std::string("JointDataH") + axisLabel<axis>();
815  }
816  std::string shortname() const
817  {
818  return classname();
819  }
820 
821  }; // struct JointDataHelicalTpl
822 
823  template<typename NewScalar, typename Scalar, int Options, int axis>
825  {
827  };
828 
829  template<typename _Scalar, int _Options, int axis>
830  struct JointModelHelicalTpl : public JointModelBase<JointModelHelicalTpl<_Scalar, _Options, axis>>
831  {
832  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
835 
837  using Base::id;
838  using Base::idx_q;
839  using Base::idx_v;
840  using Base::setIndexes;
841 
842  typedef Eigen::Matrix<Scalar, 3, 1, _Options> Vector3;
843 
844  JointDataDerived createData() const
845  {
846  return JointDataDerived();
847  }
848 
850  {
851  }
852 
853  explicit JointModelHelicalTpl(const Scalar & h)
854  : m_pitch(h)
855  {
856  }
857 
858  const std::vector<bool> hasConfigurationLimit() const
859  {
860  return {true, true};
861  }
862 
863  const std::vector<bool> hasConfigurationLimitInTangent() const
864  {
865  return {true, true};
866  }
867 
868  template<typename ConfigVector>
869  EIGEN_DONT_INLINE void
870  calc(JointDataDerived & data, const typename Eigen::MatrixBase<ConfigVector> & qs) const
871  {
872  data.joint_q[0] = qs[idx_q()];
873  Scalar ca, sa;
874  SINCOS(data.joint_q[0], &sa, &ca);
875  data.M.setValues(sa, ca, data.joint_q[0] * m_pitch);
876  data.S.h() = m_pitch;
877  }
878 
879  template<typename TangentVector>
880  EIGEN_DONT_INLINE void
881  calc(JointDataDerived & data, const Blank, const typename Eigen::MatrixBase<TangentVector> & vs)
882  const
883  {
884  data.joint_v[0] = vs[idx_v()];
885  data.v.angularRate() = data.joint_v[0];
886  data.v.linearRate() = data.joint_v[0] * m_pitch;
887  }
888 
889  template<typename ConfigVector, typename TangentVector>
890  EIGEN_DONT_INLINE void calc(
891  JointDataDerived & data,
892  const typename Eigen::MatrixBase<ConfigVector> & qs,
893  const typename Eigen::MatrixBase<TangentVector> & vs) const
894  {
895  calc(data, qs.derived());
896 
897  data.joint_v[0] = vs[idx_v()];
898  data.v.angularRate() = data.joint_v[0];
899  data.v.linearRate() = data.joint_v[0] * m_pitch;
900  }
901 
902  template<typename VectorLike, typename Matrix6Like>
903  void calc_aba(
904  JointDataDerived & data,
905  const Eigen::MatrixBase<VectorLike> & armature,
906  const Eigen::MatrixBase<Matrix6Like> & I,
907  const bool update_I) const
908  {
909  data.U = I.col(Inertia::ANGULAR + axis) + m_pitch * I.col(Inertia::LINEAR + axis);
910  data.StU[0] =
911  data.U(Inertia::ANGULAR + axis) + m_pitch * data.U(Inertia::LINEAR + axis) + armature[0];
912  data.Dinv[0] = Scalar(1) / data.StU[0];
913  data.UDinv.noalias() = data.U * data.Dinv;
914 
915  if (update_I)
916  PINOCCHIO_EIGEN_CONST_CAST(Matrix6Like, I).noalias() -= data.UDinv * data.U.transpose();
917  }
918 
919  static std::string classname()
920  {
921  return std::string("JointModelH") + axisLabel<axis>();
922  }
923  std::string shortname() const
924  {
925  return classname();
926  }
927 
929  {
930  switch (axis)
931  {
932  case 0:
933  return Vector3::UnitX();
934  case 1:
935  return Vector3::UnitY();
936  case 2:
937  return Vector3::UnitZ();
938  default:
939  assert(false && "must never happen");
940  break;
941  }
942  }
943 
945  template<typename NewScalar>
947  {
950  res.setIndexes(id(), idx_q(), idx_v());
951  return res;
952  }
953 
955 
956  }; // struct JointModelHelicalTpl
957 
961 
965 
969 
970 } // namespace pinocchio
971 
972 #include <boost/type_traits.hpp>
973 
974 namespace boost
975 {
976  template<typename Scalar, int Options, int axis>
977  struct has_nothrow_constructor<::pinocchio::JointModelHelicalTpl<Scalar, Options, axis>>
978  : public integral_constant<bool, true>
979  {
980  };
981 
982  template<typename Scalar, int Options, int axis>
983  struct has_nothrow_copy<::pinocchio::JointModelHelicalTpl<Scalar, Options, axis>>
984  : public integral_constant<bool, true>
985  {
986  };
987 
988  template<typename Scalar, int Options, int axis>
989  struct has_nothrow_constructor<::pinocchio::JointDataHelicalTpl<Scalar, Options, axis>>
990  : public integral_constant<bool, true>
991  {
992  };
993 
994  template<typename Scalar, int Options, int axis>
995  struct has_nothrow_copy<::pinocchio::JointDataHelicalTpl<Scalar, Options, axis>>
996  : public integral_constant<bool, true>
997  {
998  };
999 } // namespace boost
1000 
1001 #endif // ifndef __pinocchio_multibody_joint_helical_hpp__
pinocchio::MultiplicationOp< Eigen::MatrixBase< M6Like >, JointMotionSubspaceHelicalTpl< S2, O2, axis > >::ReturnType
Eigen::Matrix< S2, 6, 1 > ReturnType
Definition: joint-helical.hpp:710
pinocchio::MotionHelicalTpl::CartesianAxis3Angular
AxisAngular::CartesianAxis3 CartesianAxis3Angular
Definition: joint-helical.hpp:258
pinocchio::TransposeConstraintActionConstraint::ReturnType
Eigen::Matrix< typename ConstraintDerived::Scalar, 1, 1, ConstraintDerived::Options > ReturnType
Definition: joint-helical.hpp:455
pinocchio::JointModelHelicalTpl::hasConfigurationLimitInTangent
const std::vector< bool > hasConfigurationLimitInTangent() const
Definition: joint-helical.hpp:863
pinocchio::InertiaTpl
Definition: spatial/fwd.hpp:58
pinocchio::JointHX
JointHelicalTpl< context::Scalar, context::Options, 0 > JointHX
Definition: joint-helical.hpp:958
pinocchio::JointDataHY
JointDataHelicalTpl< context::Scalar, context::Options, 1 > JointDataHY
Definition: joint-helical.hpp:963
pinocchio::JointHelicalTpl
Definition: joint-helical.hpp:617
pinocchio::TransformHelicalTpl::m_cos
Scalar m_cos
Definition: joint-helical.hpp:217
pinocchio::MotionHelicalTpl::MotionHelicalTpl
MotionHelicalTpl()
Definition: joint-helical.hpp:262
pinocchio::JointMotionSubspaceHelicalTpl::transpose
TransposeConst transpose() const
Definition: joint-helical.hpp:550
PINOCCHIO_JOINT_DATA_BASE_ACCESSOR_DEFAULT_RETURN_TYPE
#define PINOCCHIO_JOINT_DATA_BASE_ACCESSOR_DEFAULT_RETURN_TYPE
Definition: joint-data-base.hpp:137
pinocchio::MotionAlgebraAction< MotionHelicalTpl< Scalar, Options, axis >, MotionDerived >::ReturnType
MotionTpl< Scalar, Options > ReturnType
Definition: joint-helical.hpp:30
sincos.hpp
pinocchio::TransformHelicalTpl::m_sin
Scalar m_sin
Definition: joint-helical.hpp:217
pinocchio::TransformHelicalTpl::m_displacement
Scalar m_displacement
Definition: joint-helical.hpp:217
pinocchio::JointMotionSubspaceHelicalTpl::AxisAngular
SpatialAxis< ANGULAR+axis > AxisAngular
Definition: joint-helical.hpp:470
pinocchio::ConstraintForceOp< JointMotionSubspaceHelicalTpl< Scalar, Options, axis >, ForceDerived >::ReturnType
Eigen::Matrix< Scalar, 1, 1 > ReturnType
Definition: joint-helical.hpp:416
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::LinearRef
Vector3::ConstantReturnType LinearRef
Definition: joint-helical.hpp:83
Eigen
pinocchio::MultiplicationOp
Forward declaration of the multiplication operation return type. Should be overloaded,...
Definition: binary-op.hpp:15
pinocchio::TransformHelicalTpl::setValues
void setValues(const Scalar1 &sin, const Scalar2 &cos, const Scalar3 &displacement)
Definition: joint-helical.hpp:191
test-cpp2pybind11.m
m
Definition: test-cpp2pybind11.py:25
pinocchio::JointDataHelicalTpl::M
Transformation_t M
Definition: joint-helical.hpp:789
pinocchio::ConstraintForceSetOp< JointMotionSubspaceHelicalTpl< Scalar, Options, axis >, ForceSet >::ReturnType
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > ReturnType
Definition: joint-helical.hpp:422
pinocchio::MotionHelicalTpl::se3Action_impl
MotionPlain se3Action_impl(const SE3Tpl< S2, O2 > &m) const
Definition: joint-helical.hpp:309
pinocchio::MotionHelicalTpl::CartesianAxis3Linear
AxisLinear::CartesianAxis3 CartesianAxis3Linear
Definition: joint-helical.hpp:260
pinocchio::JointModelHelicalTpl
Definition: multibody/joint/fwd.hpp:60
pinocchio::JointMotionSubspaceHelicalTpl::AxisLinear
SpatialAxis< ANGULAR+axis > AxisLinear
Definition: joint-helical.hpp:471
pinocchio::JointDataHelicalTpl::JointDataHelicalTpl
JointDataHelicalTpl()
Definition: joint-helical.hpp:799
pinocchio::JointHelicalTpl::Options
@ Options
Definition: joint-helical.hpp:623
pinocchio::JointMotionSubspaceHelicalTpl::isEqual
bool isEqual(const JointMotionSubspaceHelicalTpl &) const
Definition: joint-helical.hpp:587
pinocchio::JointDataHelicalTpl::v
Motion_t v
Definition: joint-helical.hpp:790
pinocchio::TransformHelicalTpl::AxisLinear
SpatialAxis< axis+LINEAR > AxisLinear
Definition: joint-helical.hpp:101
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::Motion_t
MotionHelicalTpl< Scalar, Options, axis > Motion_t
Definition: joint-helical.hpp:749
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::Vector3
Eigen::Matrix< Scalar, 3, 1, Options > Vector3
Definition: joint-helical.hpp:41
pinocchio::CartesianAxis::cross
static void cross(const Eigen::MatrixBase< V3_in > &vin, const Eigen::MatrixBase< V3_out > &vout)
pinocchio::JointModelHX
JointModelHelicalTpl< context::Scalar, context::Options, 0 > JointModelHX
Definition: joint-helical.hpp:960
pinocchio::idx_q
int idx_q(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through JointIdxQVisitor to get the index in the full model configuration space...
pinocchio::TransformHelicalTpl::cos
Scalar & cos()
Definition: joint-helical.hpp:176
pinocchio::JointModelBase
Definition: joint-model-base.hpp:75
pinocchio::JointDataHelicalTpl::classname
static std::string classname()
Definition: joint-helical.hpp:812
pinocchio::TransformHelicalTpl::translation
LinearType translation() const
Definition: joint-helical.hpp:198
pinocchio::ConstraintForceOp
Return type of the Constraint::Transpose * Force operation.
Definition: joint-motion-subspace-base.hpp:46
pinocchio::idx_v
int idx_v(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through JointIdxVVisitor to get the index in the full model tangent space corre...
pinocchio::JointModelHelicalTpl::calc_aba
void calc_aba(JointDataDerived &data, const Eigen::MatrixBase< VectorLike > &armature, const Eigen::MatrixBase< Matrix6Like > &I, const bool update_I) const
Definition: joint-helical.hpp:903
pinocchio::Options
Options
Definition: joint-configuration.hpp:1082
y
y
pinocchio::MotionHelicalTpl::linearRate
Scalar & linearRate()
Definition: joint-helical.hpp:365
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::JointModelDerived
JointModelHelicalTpl< Scalar, Options, axis > JointModelDerived
Definition: joint-helical.hpp:746
pinocchio::JointMotionSubspaceBase
Definition: joint-motion-subspace-base.hpp:59
PINOCCHIO_EIGEN_CONST_CAST
#define PINOCCHIO_EIGEN_CONST_CAST(TYPE, OBJ)
Macro for an automatic const_cast.
Definition: eigen-macros.hpp:51
pinocchio::JointMotionSubspaceHelicalTpl::TransposeConst::operator*
ConstraintForceOp< JointMotionSubspaceHelicalTpl, ForceDerived >::ReturnType operator*(const ForceDense< ForceDerived > &f) const
Definition: joint-helical.hpp:535
pinocchio::JointHelicalTpl::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:619
pinocchio::SE3Tpl< Scalar, Options >
pinocchio::JointMotionSubspaceHelicalTpl::JointMotionSubspaceHelicalTpl
JointMotionSubspaceHelicalTpl(const Scalar &h)
Definition: joint-helical.hpp:480
pinocchio::SE3GroupAction::ReturnType
D ReturnType
Definition: spatial/se3.hpp:41
pinocchio::JointDataBase
Definition: joint-data-base.hpp:161
pinocchio::MotionAlgebraAction< JointMotionSubspaceHelicalTpl< Scalar, Options, axis >, MotionDerived >::ReturnType
Eigen::Matrix< Scalar, 6, 1, Options > ReturnType
Definition: joint-helical.hpp:410
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 1 > >::run
static ReturnType run(const Inertia &Y, const Constraint &constraint)
Definition: joint-helical.hpp:666
pinocchio::PINOCCHIO_EIGEN_REF_CONST_TYPE
PINOCCHIO_EIGEN_REF_CONST_TYPE(Matrix6Like) operator*(const Eigen
Definition: joint-free-flyer.hpp:144
pinocchio::JointModelHY
JointModelHelicalTpl< context::Scalar, context::Options, 1 > JointModelHY
Definition: joint-helical.hpp:964
pinocchio::JointDataHZ
JointDataHelicalTpl< context::Scalar, context::Options, 2 > JointDataHZ
Definition: joint-helical.hpp:967
setup.data
data
Definition: cmake/cython/setup.in.py:48
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::JointDataDerived
JointDataHelicalTpl< Scalar, Options, axis > JointDataDerived
Definition: joint-helical.hpp:745
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::LinearType
Vector3 LinearType
Definition: joint-helical.hpp:82
inertia.hpp
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::StDiagonalMatrixSOperationReturnType
ReducedSquaredMatrix::IdentityReturnType StDiagonalMatrixSOperationReturnType
Definition: joint-helical.hpp:447
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::ActionMatrixType
Matrix6 ActionMatrixType
Definition: joint-helical.hpp:51
pinocchio::MotionDense
Definition: context/casadi.hpp:36
pinocchio::python::Scalar
context::Scalar Scalar
Definition: admm-solver.cpp:29
pinocchio::JointModelHelicalTpl::Base
JointModelBase< JointModelHelicalTpl > Base
Definition: joint-helical.hpp:836
pinocchio::JointModelHelicalTpl::classname
static std::string classname()
Definition: joint-helical.hpp:919
pinocchio::MotionHelicalTpl::linearRate
const Scalar & linearRate() const
Definition: joint-helical.hpp:369
pinocchio::operator+
MotionDerived::MotionPlain operator+(const MotionHelicalUnalignedTpl< S1, O1 > &m1, const MotionDense< MotionDerived > &m2)
Definition: joint-helical-unaligned.hpp:211
pinocchio::JointDataHelicalTpl
Definition: multibody/joint/fwd.hpp:62
boost
pinocchio::TransformHelicalTpl::isEqual
bool isEqual(const TransformHelicalTpl &other) const
Definition: joint-helical.hpp:209
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::AngularType
Matrix3 AngularType
Definition: joint-helical.hpp:79
pinocchio::JointMotionSubspaceHelicalTpl
Definition: joint-helical.hpp:399
pinocchio::ConstraintForceOp::ReturnType
ReturnTypeNotDefined ReturnType
Definition: joint-motion-subspace-base.hpp:48
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::Bias_t
MotionZeroTpl< Scalar, Options > Bias_t
Definition: joint-helical.hpp:750
pinocchio::JointModelBase::setIndexes
void setIndexes(JointIndex id, int q, int v)
Definition: joint-model-base.hpp:186
pinocchio::JointDataHelicalTpl::UDinv
UD_t UDinv
Definition: joint-helical.hpp:796
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::Vector3
Eigen::Matrix< Scalar, 3, 1, Options > Vector3
Definition: joint-helical.hpp:77
pinocchio::JointDataHelicalTpl::PINOCCHIO_JOINT_DATA_TYPEDEF_TEMPLATE
PINOCCHIO_JOINT_DATA_TYPEDEF_TEMPLATE(JointDerived)
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::PlainType
SE3Tpl< Scalar, Options > PlainType
Definition: joint-helical.hpp:76
pinocchio::res
ReturnType res
Definition: spatial/classic-acceleration.hpp:57
pinocchio::JointMotionSubspaceHelicalTpl::CartesianAxis3Linear
AxisLinear::CartesianAxis3 CartesianAxis3Linear
Definition: joint-helical.hpp:474
pinocchio::TransformHelicalTpl::PINOCCHIO_SE3_TYPEDEF_TPL
EIGEN_MAKE_ALIGNED_OPERATOR_NEW PINOCCHIO_SE3_TYPEDEF_TPL(TransformHelicalTpl)
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::TangentVector_t
Eigen::Matrix< Scalar, NV, 1, Options > TangentVector_t
Definition: joint-helical.hpp:758
pinocchio::SINCOS
void SINCOS(const S1 &a, S2 *sa, S3 *ca)
Computes sin/cos values of a given input scalar.
Definition: sincos.hpp:27
pinocchio::JointModelHelicalTpl::getMotionAxis
Vector3 getMotionAxis() const
Definition: joint-helical.hpp:928
pinocchio::MotionHelicalTpl::se3Action_impl
void se3Action_impl(const SE3Tpl< S2, O2 > &m, MotionDense< D2 > &v) const
Definition: joint-helical.hpp:302
pinocchio::MotionAlgebraAction
Return type of the ation of a Motion onto an object of type D.
Definition: spatial/motion.hpp:45
pinocchio::JointModelHelicalTpl::shortname
std::string shortname() const
Definition: joint-helical.hpp:923
pinocchio::operator*
TridiagonalSymmetricMatrixApplyOnTheLeftReturnType< LhsMatrixType, TridiagonalSymmetricMatrixTpl< S, O > > operator*(const Eigen::MatrixBase< LhsMatrixType > &lhs, const TridiagonalSymmetricMatrixTpl< S, O > &rhs)
Definition: math/tridiagonal-matrix.hpp:319
pinocchio::MotionHelicalTpl::m_v
Scalar m_v
Definition: joint-helical.hpp:380
pinocchio::impl::LhsMultiplicationOp
Definition: binary-op.hpp:20
pinocchio::JointDataHelicalTpl::shortname
std::string shortname() const
Definition: joint-helical.hpp:816
autodiff-rnea.f
f
Definition: autodiff-rnea.py:24
pinocchio::Blank
Blank type.
Definition: fwd.hpp:76
pinocchio::JointHelicalTpl::axis
@ axis
Definition: joint-helical.hpp:624
pinocchio::TransformHelicalTpl::rotation
AngularType rotation() const
Definition: joint-helical.hpp:202
pinocchio::MotionDense::linear
ConstLinearType linear() const
Definition: motion-base.hpp:36
pinocchio::TransformHelicalTpl::_setRotation
void _setRotation(typename PlainType::AngularRef &rot) const
Definition: joint-helical.hpp:218
pinocchio::JointDataHelicalTpl::S
Constraint_t S
Definition: joint-helical.hpp:788
pinocchio::JointModelHelicalTpl::createData
JointDataDerived createData() const
Definition: joint-helical.hpp:844
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 0 > >::Inertia
InertiaTpl< S1, O1 > Inertia
Definition: joint-helical.hpp:640
pinocchio::SE3GroupAction
Definition: spatial/se3.hpp:39
pinocchio::MotionHelicalTpl::AxisAngular
SpatialAxis< axis+ANGULAR > AxisAngular
Definition: joint-helical.hpp:257
pinocchio::MotionZeroTpl
Definition: context/casadi.hpp:23
PINOCCHIO_JOINT_DATA_BASE_DEFAULT_ACCESSOR
#define PINOCCHIO_JOINT_DATA_BASE_DEFAULT_ACCESSOR
Definition: joint-data-base.hpp:55
pinocchio::MotionAlgebraAction::ReturnType
D ReturnType
Definition: spatial/motion.hpp:47
pinocchio::JointModelHelicalTpl::PINOCCHIO_JOINT_TYPEDEF_TEMPLATE
PINOCCHIO_JOINT_TYPEDEF_TEMPLATE(JointDerived)
pinocchio::impl::LhsMultiplicationOp< Eigen::MatrixBase< M6Like >, JointMotionSubspaceHelicalTpl< Scalar, Options, axis > >::run
static ReturnType run(const Eigen::MatrixBase< M6Like > &Y, const Constraint &constraint)
Definition: joint-helical.hpp:724
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:75
pinocchio::SE3GroupAction< MotionHelicalTpl< Scalar, Options, axis > >::ReturnType
MotionTpl< Scalar, Options > ReturnType
Definition: joint-helical.hpp:24
pinocchio::TransformHelicalTpl::CartesianAxis3Linear
AxisLinear::CartesianAxis3 CartesianAxis3Linear
Definition: joint-helical.hpp:102
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 1 > >::Constraint
JointMotionSubspaceHelicalTpl< S2, O2, 1 > Constraint
Definition: joint-helical.hpp:664
pinocchio::MotionHelicalTpl::angularRate
const Scalar & angularRate() const
Definition: joint-helical.hpp:360
pinocchio::python::context::Symmetric3
Symmetric3Tpl< Scalar, Options > Symmetric3
Definition: bindings/python/context/generic.hpp:59
pinocchio::SE3GroupAction< JointMotionSubspaceHelicalTpl< Scalar, Options, axis > >::ReturnType
Eigen::Matrix< Scalar, 6, 1, Options > ReturnType
Definition: joint-helical.hpp:404
pinocchio::TransformHelicalTpl::plain
PlainType plain() const
Definition: joint-helical.hpp:114
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 0 > >::ReturnType
MultiplicationOp< Inertia, Constraint >::ReturnType ReturnType
Definition: joint-helical.hpp:642
pinocchio::MotionHelicalTpl::__mult__
MotionHelicalTpl __mult__(const OtherScalar &alpha) const
Definition: joint-helical.hpp:278
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:36
pinocchio::TransformHelicalTpl::sin
Scalar & sin()
Definition: joint-helical.hpp:167
pinocchio::ConstraintForceSetOp::ReturnType
ReturnTypeNotDefined ReturnType
Definition: joint-motion-subspace-base.hpp:55
simulation-contact-dynamics.S
S
Definition: simulation-contact-dynamics.py:80
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::HomogeneousMatrixType
Matrix4 HomogeneousMatrixType
Definition: joint-helical.hpp:54
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::JointMotion
MotionHelicalTpl< Scalar, Options, axis > JointMotion
Definition: joint-helical.hpp:439
pinocchio::MotionHelicalTpl::MotionHelicalTpl
MotionHelicalTpl(const Scalar &w, const Scalar &v)
Definition: joint-helical.hpp:266
reachable-workspace-with-collisions.alpha
float alpha
Definition: reachable-workspace-with-collisions.py:162
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::AngularType
Vector3 AngularType
Definition: joint-helical.hpp:47
pinocchio::JointMotionSubspaceHelicalTpl::m_pitch
Scalar m_pitch
Definition: joint-helical.hpp:602
pinocchio::JointHZ
JointHelicalTpl< context::Scalar, context::Options, 2 > JointHZ
Definition: joint-helical.hpp:966
pinocchio::TransformHelicalTpl::displacement
Scalar & displacement()
Definition: joint-helical.hpp:185
pinocchio::JointMotionSubspaceHelicalTpl::TransposeConst::ref
const JointMotionSubspaceHelicalTpl & ref
Definition: joint-helical.hpp:527
pinocchio::JointMotionSubspaceHelicalTpl::TransposeConst
Definition: joint-helical.hpp:525
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::ConstLinearType
const typedef Vector3 ConstLinearType
Definition: joint-helical.hpp:50
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 1 > >::Inertia
InertiaTpl< S1, O1 > Inertia
Definition: joint-helical.hpp:663
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 0 > >::Constraint
JointMotionSubspaceHelicalTpl< S2, O2, 0 > Constraint
Definition: joint-helical.hpp:641
pinocchio::JointMotionSubspaceHelicalTpl::se3ActionInverse
SE3GroupAction< JointMotionSubspaceHelicalTpl >::ReturnType se3ActionInverse(const SE3Tpl< S1, O1 > &m) const
Definition: joint-helical.hpp:507
pinocchio::MotionHelicalTpl::MOTION_TYPEDEF_TPL
EIGEN_MAKE_ALIGNED_OPERATOR_NEW MOTION_TYPEDEF_TPL(MotionHelicalTpl)
pinocchio::TransformHelicalTpl
Definition: joint-helical.hpp:63
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::Matrix4
Eigen::Matrix< Scalar, 4, 4, Options > Matrix4
Definition: joint-helical.hpp:43
pinocchio::JointModelHelicalTpl::JointDerived
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef JointHelicalTpl< _Scalar, _Options, axis > JointDerived
Definition: joint-helical.hpp:833
pinocchio::JointMotionSubspaceHelicalTpl::h
const Scalar & h() const
Definition: joint-helical.hpp:596
pinocchio::JointMotionSubspaceHelicalTpl::motionAction
MotionAlgebraAction< JointMotionSubspaceHelicalTpl, MotionDerived >::ReturnType motionAction(const MotionDense< MotionDerived > &m) const
Definition: joint-helical.hpp:572
pinocchio::JointHY
JointHelicalTpl< context::Scalar, context::Options, 1 > JointHY
Definition: joint-helical.hpp:962
pinocchio::JointModelHelicalTpl::Vector3
Eigen::Matrix< Scalar, 3, 1, _Options > Vector3
Definition: joint-helical.hpp:842
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::MatrixReturnType
DenseBase MatrixReturnType
Definition: joint-helical.hpp:444
axis-label.hpp
pinocchio::TransformHelicalTpl::sin
const Scalar & sin() const
Definition: joint-helical.hpp:163
pinocchio::JointDataHelicalTpl::joint_q
PINOCCHIO_JOINT_DATA_BASE_DEFAULT_ACCESSOR ConfigVector_t joint_q
Definition: joint-helical.hpp:785
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 2 > >::Inertia
InertiaTpl< S1, O1 > Inertia
Definition: joint-helical.hpp:686
pinocchio::JointModelHelicalTpl::hasConfigurationLimit
const std::vector< bool > hasConfigurationLimit() const
Definition: joint-helical.hpp:858
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::ConstMatrixReturnType
const typedef DenseBase ConstMatrixReturnType
Definition: joint-helical.hpp:445
joint-base.hpp
pinocchio::CastType< NewScalar, JointModelHelicalTpl< Scalar, Options, axis > >::type
JointModelHelicalTpl< NewScalar, Options, axis > type
Definition: joint-helical.hpp:826
x
x
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::Vector6
Eigen::Matrix< Scalar, 6, 1, Options > Vector6
Definition: joint-helical.hpp:42
pinocchio::MotionHelicalTpl::motionAction
EIGEN_STRONG_INLINE void motionAction(const MotionDense< M1 > &v, MotionDense< M2 > &mout) const
Definition: joint-helical.hpp:338
pinocchio::MotionHelicalTpl::isEqual_impl
bool isEqual_impl(const MotionHelicalTpl &other) const
Definition: joint-helical.hpp:374
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::AngularRef
Matrix3 AngularRef
Definition: joint-helical.hpp:80
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::ConstAngularType
const typedef Vector3 ConstAngularType
Definition: joint-helical.hpp:49
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 1 > >::ReturnType
MultiplicationOp< Inertia, Constraint >::ReturnType ReturnType
Definition: joint-helical.hpp:665
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::ConstAngularRef
Matrix3 ConstAngularRef
Definition: joint-helical.hpp:81
pinocchio::JointDataHelicalTpl::joint_v
TangentVector_t joint_v
Definition: joint-helical.hpp:786
axis
axis
ur5x4.w
w
Definition: ur5x4.py:50
pinocchio::MotionHelicalTpl::addTo
void addTo(MotionDense< MotionDerived > &v) const
Definition: joint-helical.hpp:294
pinocchio::MotionHelicalTpl::se3ActionInverse_impl
void se3ActionInverse_impl(const SE3Tpl< S2, O2 > &m, MotionDense< D2 > &v) const
Definition: joint-helical.hpp:318
pinocchio::MotionHelicalTpl::m_w
Scalar m_w
Definition: joint-helical.hpp:380
pinocchio::JointModelHZ
JointModelHelicalTpl< context::Scalar, context::Options, 2 > JointModelHZ
Definition: joint-helical.hpp:968
pinocchio::TransformHelicalTpl::TransformHelicalTpl
TransformHelicalTpl(const Scalar &sin, const Scalar &cos, const Scalar &displacement)
Definition: joint-helical.hpp:107
pinocchio::JointMotionSubspaceHelicalTpl::NV
@ NV
Definition: joint-helical.hpp:467
pinocchio::MotionHelicalTpl::setTo
void setTo(MotionDense< MotionDerived > &m) const
Definition: joint-helical.hpp:284
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::MotionPlain
MotionTpl< Scalar, Options > MotionPlain
Definition: joint-helical.hpp:52
pinocchio::TransformHelicalTpl::cos
const Scalar & cos() const
Definition: joint-helical.hpp:172
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::ActionMatrixType
traits< PlainType >::ActionMatrixType ActionMatrixType
Definition: joint-helical.hpp:85
ur5x4.h
h
Definition: ur5x4.py:50
pinocchio::JointDataHelicalTpl::U
U_t U
Definition: joint-helical.hpp:794
pinocchio::JointMotionSubspaceHelicalTpl::TransposeConst::TransposeConst
TransposeConst(const JointMotionSubspaceHelicalTpl &ref)
Definition: joint-helical.hpp:528
pinocchio::JointModelHelicalTpl::calc
EIGEN_DONT_INLINE void calc(JointDataDerived &data, const typename Eigen::MatrixBase< ConfigVector > &qs, const typename Eigen::MatrixBase< TangentVector > &vs) const
Definition: joint-helical.hpp:890
pinocchio::JointMotionSubspaceHelicalTpl::nv_impl
int nv_impl() const
Definition: joint-helical.hpp:519
pinocchio::JointModelHelicalTpl::cast
JointModelHelicalTpl< NewScalar, Options, axis > cast() const
Definition: joint-helical.hpp:946
pinocchio::MotionHelicalTpl::motionAction
MotionPlain motionAction(const MotionDense< M1 > &v) const
Definition: joint-helical.hpp:349
pinocchio::JointModelBase::idx_v
int idx_v() const
Definition: joint-model-base.hpp:164
pinocchio::ForceSetTpl
Definition: force-set.hpp:14
pinocchio::v
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > const Eigen::MatrixBase< TangentVectorType > & v
Definition: joint-configuration.hpp:1084
pinocchio::internal::comparison_eq
bool comparison_eq(const LhsType &lhs_value, const RhsType &rhs_value)
Definition: utils/static-if.hpp:120
pinocchio::MotionHelicalTpl::AxisLinear
SpatialAxis< axis+LINEAR > AxisLinear
Definition: joint-helical.hpp:259
pinocchio::JointMotionSubspaceHelicalTpl::CartesianAxis3Angular
AxisAngular::CartesianAxis3 CartesianAxis3Angular
Definition: joint-helical.hpp:473
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 2 > >::Constraint
JointMotionSubspaceHelicalTpl< S2, O2, 2 > Constraint
Definition: joint-helical.hpp:687
pinocchio::ConstraintForceSetOp
Return type of the Constraint::Transpose * ForceSet operation.
Definition: joint-motion-subspace-base.hpp:53
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::LinearType
Vector3 LinearType
Definition: joint-helical.hpp:48
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::JointForce
Eigen::Matrix< Scalar, 1, 1, Options > JointForce
Definition: joint-helical.hpp:440
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::Matrix6
Eigen::Matrix< Scalar, 6, 6, Options > Matrix6
Definition: joint-helical.hpp:44
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::ConfigVector_t
Eigen::Matrix< Scalar, NQ, 1, Options > ConfigVector_t
Definition: joint-helical.hpp:757
pinocchio::traits< JointModelHelicalTpl< _Scalar, _Options, axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:774
joint-motion-subspace.hpp
pinocchio::SE3Base
Base class for rigid transformation.
Definition: se3-base.hpp:30
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 2 > >::ReturnType
MultiplicationOp< Inertia, Constraint >::ReturnType ReturnType
Definition: joint-helical.hpp:688
pinocchio::JointModelBase::idx_q
int idx_q() const
Definition: joint-model-base.hpp:160
pinocchio::impl::LhsMultiplicationOp< Eigen::MatrixBase< M6Like >, JointMotionSubspaceHelicalTpl< Scalar, Options, axis > >::ReturnType
Eigen::Matrix< Scalar, 6, 1 > ReturnType
Definition: joint-helical.hpp:722
pinocchio::impl::LhsMultiplicationOp< Eigen::MatrixBase< M6Like >, JointMotionSubspaceHelicalTpl< Scalar, Options, axis > >::Constraint
JointMotionSubspaceHelicalTpl< Scalar, Options, axis > Constraint
Definition: joint-helical.hpp:721
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:740
pinocchio::ForceDense
Definition: context/casadi.hpp:34
pinocchio::JointMotionSubspaceHelicalTpl::JointMotionSubspaceHelicalTpl
JointMotionSubspaceHelicalTpl()
Definition: joint-helical.hpp:476
spatial-axis.hpp
pinocchio::JointModelHelicalTpl::calc
EIGEN_DONT_INLINE void calc(JointDataDerived &data, const Blank, const typename Eigen::MatrixBase< TangentVector > &vs) const
Definition: joint-helical.hpp:881
pinocchio::JointModelHelicalTpl::m_pitch
Scalar m_pitch
Definition: joint-helical.hpp:954
pinocchio::cross
void cross(const Eigen::MatrixBase< Vector3 > &v, const Eigen::MatrixBase< Matrix3xIn > &Min, const Eigen::MatrixBase< Matrix3xOut > &Mout)
Applies the cross product onto the columns of M.
Definition: skew.hpp:228
pinocchio::MotionHelicalTpl::se3ActionInverse_impl
MotionPlain se3ActionInverse_impl(const SE3Tpl< S2, O2 > &m) const
Definition: joint-helical.hpp:330
pinocchio::JointMotionSubspaceHelicalTpl::matrix_impl
DenseBase matrix_impl() const
Definition: joint-helical.hpp:561
pinocchio::MotionHelicalTpl::angularRate
Scalar & angularRate()
Definition: joint-helical.hpp:356
pinocchio::TransformHelicalTpl::displacement
const Scalar & displacement() const
Definition: joint-helical.hpp:181
pinocchio::TransformHelicalTpl::TransformHelicalTpl
TransformHelicalTpl()
Definition: joint-helical.hpp:104
pinocchio::operator^
EIGEN_STRONG_INLINE MotionDerived::MotionPlain operator^(const MotionDense< MotionDerived > &m1, const MotionHelicalUnalignedTpl< S2, O2 > &m2)
Definition: joint-helical-unaligned.hpp:220
pinocchio::JointMotionSubspaceHelicalTpl::TransposeConst::operator*
ConstraintForceSetOp< JointMotionSubspaceHelicalTpl, Derived >::ReturnType operator*(const Eigen::MatrixBase< Derived > &F) const
[CRBA] MatrixBase operator* (Constraint::Transpose S, ForceSet::Block)
Definition: joint-helical.hpp:543
pinocchio::JointDataHelicalTpl::StU
D_t StU
Definition: joint-helical.hpp:797
pinocchio::traits< JointDataHelicalTpl< _Scalar, _Options, axis > >::JointDerived
JointHelicalTpl< _Scalar, _Options, axis > JointDerived
Definition: joint-helical.hpp:766
PINOCCHIO_CONSTRAINT_TYPEDEF_TPL
#define PINOCCHIO_CONSTRAINT_TYPEDEF_TPL(DERIVED)
Definition: joint-motion-subspace-base.hpp:36
Y
Y
pinocchio::JointModelHelicalTpl::JointModelHelicalTpl
JointModelHelicalTpl()
Definition: joint-helical.hpp:849
pinocchio::JointModelHelicalTpl::JointModelHelicalTpl
JointModelHelicalTpl(const Scalar &h)
Definition: joint-helical.hpp:853
pinocchio::traits
Common traits structure to fully define base classes for CRTP.
Definition: fwd.hpp:71
pinocchio::JointDataHelicalTpl::c
Bias_t c
Definition: joint-helical.hpp:791
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::ReducedSquaredMatrix
Eigen::Matrix< Scalar, 1, 1, Options > ReducedSquaredMatrix
Definition: joint-helical.hpp:442
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 0 > >::run
static ReturnType run(const Inertia &Y, const Constraint &constraint)
Definition: joint-helical.hpp:643
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::DenseBase
Eigen::Matrix< Scalar, 6, 1, Options > DenseBase
Definition: joint-helical.hpp:441
pinocchio::traits< JointMotionSubspaceHelicalTpl< _Scalar, _Options, axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:428
pinocchio::TransformHelicalTpl::se3action
SE3GroupAction< TransformHelicalTpl >::ReturnType se3action(const SE3Tpl< S2, O2 > &m) const
Definition: joint-helical.hpp:129
pinocchio::MultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, axis > >::ReturnType
Eigen::Matrix< S2, 6, 1, O2 > ReturnType
Definition: joint-helical.hpp:631
pinocchio::JointDataHX
JointDataHelicalTpl< context::Scalar, context::Options, 0 > JointDataHX
Definition: joint-helical.hpp:959
pinocchio::MotionHelicalTpl
Definition: joint-helical.hpp:19
pinocchio::traits< MotionHelicalTpl< _Scalar, _Options, axis > >::PlainReturnType
MotionPlain PlainReturnType
Definition: joint-helical.hpp:53
PINOCCHIO_EIGEN_REF_TYPE
#define PINOCCHIO_EIGEN_REF_TYPE(D)
Definition: eigen-macros.hpp:32
pinocchio::MotionHelicalTpl::plain
PlainReturnType plain() const
Definition: joint-helical.hpp:272
pinocchio::traits< JointDataHelicalTpl< _Scalar, _Options, axis > >::Scalar
_Scalar Scalar
Definition: joint-helical.hpp:767
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::UD_t
Eigen::Matrix< Scalar, 6, NV, Options > UD_t
Definition: joint-helical.hpp:755
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::HomogeneousMatrixType
traits< PlainType >::HomogeneousMatrixType HomogeneousMatrixType
Definition: joint-helical.hpp:86
pinocchio::JointMotionSubspaceTransposeBase
Definition: joint-motion-subspace-base.hpp:185
pinocchio::MotionTpl< Scalar, Options >
pinocchio::CastType
Type of the cast of a class C templated by Scalar and Options, to a new NewScalar type....
Definition: fwd.hpp:99
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::ConstLinearRef
const typedef Vector3::ConstantReturnType ConstLinearRef
Definition: joint-helical.hpp:84
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::Transformation_t
TransformHelicalTpl< Scalar, Options, axis > Transformation_t
Definition: joint-helical.hpp:748
dcrba.NV
NV
Definition: dcrba.py:536
pinocchio::JointModelHelicalTpl::calc
EIGEN_DONT_INLINE void calc(JointDataDerived &data, const typename Eigen::MatrixBase< ConfigVector > &qs) const
Definition: joint-helical.hpp:870
pinocchio::JointMotionSubspaceHelicalTpl::se3Action
SE3GroupAction< JointMotionSubspaceHelicalTpl >::ReturnType se3Action(const SE3Tpl< S1, O1 > &m) const
Definition: joint-helical.hpp:495
dpendulum.NQ
int NQ
Definition: dpendulum.py:9
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::D_t
Eigen::Matrix< Scalar, NV, NV, Options > D_t
Definition: joint-helical.hpp:754
meshcat-viewer.qs
qs
Definition: meshcat-viewer.py:128
pinocchio::MotionRef
Definition: context/casadi.hpp:38
pinocchio::SpatialAxis
Definition: spatial-axis.hpp:16
pinocchio::TransposeConstraintActionConstraint
Definition: joint-helical.hpp:451
pinocchio::JointMotionSubspaceHelicalTpl::__mult__
JointMotion __mult__(const Eigen::MatrixBase< Vector1Like > &v) const
Definition: joint-helical.hpp:486
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::U_t
Eigen::Matrix< Scalar, 6, NV, Options > U_t
Definition: joint-helical.hpp:753
pinocchio::JointDataHelicalTpl::JointDerived
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef JointHelicalTpl< _Scalar, _Options, axis > JointDerived
Definition: joint-helical.hpp:781
pinocchio::impl::LhsMultiplicationOp< InertiaTpl< S1, O1 >, JointMotionSubspaceHelicalTpl< S2, O2, 2 > >::run
static ReturnType run(const Inertia &Y, const Constraint &constraint)
Definition: joint-helical.hpp:689
pinocchio::traits< JointHelicalTpl< _Scalar, _Options, axis > >::Constraint_t
JointMotionSubspaceHelicalTpl< Scalar, Options, axis > Constraint_t
Definition: joint-helical.hpp:747
pinocchio::MotionDense::angular
ConstAngularType angular() const
Definition: motion-base.hpp:32
pinocchio::ScalarCast
Cast scalar type from type FROM to type TO.
Definition: fwd.hpp:105
pinocchio::SE3GroupAction< TransformHelicalTpl< Scalar, Options, axis > >::ReturnType
traits< TransformHelicalTpl< Scalar, Options, axis > >::PlainType ReturnType
Definition: joint-helical.hpp:92
pinocchio::CartesianAxis::alphaCross
static void alphaCross(const Scalar &s, const Eigen::MatrixBase< V3_in > &vin, const Eigen::MatrixBase< V3_out > &vout)
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27
pinocchio::traits< TransformHelicalTpl< _Scalar, _Options, _axis > >::Matrix3
Eigen::Matrix< Scalar, 3, 3, Options > Matrix3
Definition: joint-helical.hpp:78
pinocchio::JointMotionSubspaceHelicalTpl::h
Scalar & h()
Definition: joint-helical.hpp:592
pinocchio::traits< JointModelHelicalTpl< _Scalar, _Options, axis > >::JointDerived
JointHelicalTpl< _Scalar, _Options, axis > JointDerived
Definition: joint-helical.hpp:773
pinocchio::JointModelBase::id
JointIndex id() const
Definition: joint-model-base.hpp:168
pinocchio::JointDataHelicalTpl::Dinv
D_t Dinv
Definition: joint-helical.hpp:795
pinocchio::CartesianAxis
Definition: cartesian-axis.hpp:14


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:10