fcl-pinocchio-conversions.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2016 CNRS
3 //
4 
5 #ifndef __pinocchio_fcl_convertion_hpp__
6 #define __pinocchio_fcl_convertion_hpp__
7 
8 #include <hpp/fcl/math/transform.h>
9 #include "pinocchio/spatial/se3.hpp"
10 
11 namespace pinocchio
12 {
13  inline hpp::fcl::Transform3f toFclTransform3f(const SE3 & m)
14  {
15  return hpp::fcl::Transform3f(m.rotation(), m.translation());
16  }
17 
18  inline SE3 toPinocchioSE3(const hpp::fcl::Transform3f & tf)
19  {
20  return SE3(tf.getRotation(), tf.getTranslation());
21  }
22 
23 } // namespace pinocchio
24 
25 #endif // ifndef __pinocchio_fcl_convertion_hpp__
SE3 toPinocchioSE3(const hpp::fcl::Transform3f &tf)
ConstLinearRef translation() const
Definition: se3-base.hpp:38
hpp::fcl::Transform3f toFclTransform3f(const SE3 &m)
Main pinocchio namespace.
Definition: timings.cpp:30
SE3Tpl< double, 0 > SE3
ConstAngularRef rotation() const
Definition: se3-base.hpp:37


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:02