autodiff/cppad/algorithm/aba.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019-2020 INRIA CNRS
3 //
4 
5 #ifndef __pinocchio_autodiff_cppad_algorithm_aba_hpp__
6 #define __pinocchio_autodiff_cppad_algorithm_aba_hpp__
7 
8 namespace pinocchio
9 {
10  namespace internal
11  {
12 
13  // Fwd def
14  template<typename _Scalar>
15  struct SE3actOn;
16 
18  template<typename _Scalar>
19  struct SE3actOn<CppAD::AD<_Scalar>>
20  {
21  typedef CppAD::AD<_Scalar> Scalar;
22 
23  template<int Options, typename Matrix6Type>
24  static typename PINOCCHIO_EIGEN_PLAIN_TYPE(Matrix6Type)
25  run(const SE3Tpl<Scalar, Options> & M, const Eigen::MatrixBase<Matrix6Type> & I)
26  {
28 
29  typedef typename PINOCCHIO_EIGEN_PLAIN_TYPE(Matrix6Type) ReturnType;
30 
31  typename SE3::ActionMatrixType dual_action_matrix(M.toDualActionMatrix());
32  typename SE3::ActionMatrixType action_matrix(M.toActionMatrixInverse());
33  ReturnType intermediate_result = dual_action_matrix * I;
34  ReturnType res = intermediate_result * action_matrix;
35  return res;
36  }
37  };
38  } // namespace internal
39 } // namespace pinocchio
40 
41 #endif // __pinocchio_autodiff_cppad_algorithm_aba_hpp__
Eigen
pinocchio::internal::SE3actOn< CppAD::AD< _Scalar > >::Scalar
CppAD::AD< _Scalar > Scalar
Definition: autodiff/cppad/algorithm/aba.hpp:21
omniidl_be_python_with_docstring.run
def run(tree, args)
Definition: cmake/hpp/idl/omniidl_be_python_with_docstring.py:140
pinocchio::Options
Options
Definition: joint-configuration.hpp:1082
pinocchio::SE3Tpl
Definition: context/casadi.hpp:29
pinocchio::res
ReturnType res
Definition: spatial/classic-acceleration.hpp:57
CppAD
Definition: autodiff/cppad.hpp:146
pinocchio::internal::SE3actOn< CppAD::AD< _Scalar > >::res
return res
Definition: autodiff/cppad/algorithm/aba.hpp:35
pinocchio::internal::SE3actOn
Definition: autodiff/cppad/algorithm/aba.hpp:15
M
M
pinocchio::PINOCCHIO_EIGEN_PLAIN_TYPE
PINOCCHIO_EIGEN_PLAIN_TYPE(ConfigVectorType) integrate(const ModelTpl< Scalar
Integrate a configuration vector for the specified model for a tangent vector during one unit time.
pinocchio::SE3
SE3Tpl< context::Scalar, context::Options > SE3
Definition: spatial/fwd.hpp:64
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


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