expose-fcl.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017-2021 CNRS INRIA
3 //
4 
8 
9 #define HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION
10  #include <hpp/fcl/serialization/BVH_model.h>
11 #undef HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION
12 
13 namespace pinocchio
14 {
15  namespace python
16  {
17  void exposeFCL()
18  {
19  namespace bp = boost::python;
20  bp::import("hppfcl");
21 
22  using namespace ::hpp::fcl;
23 
24  // Register implicit conversion SE3 <=> ::hpp::fcl::Transform3f
25  bp::implicitly_convertible< SE3,Transform3f >();
26  bp::implicitly_convertible< Transform3f,SE3 >();
27 
28  // Expose serialization of basic geometries to binary buffers
29  serialize< BVHModel<OBB> >();
30  serialize< BVHModel<RSS> >();
31  serialize< BVHModel<OBBRSS> >();
32  }
33 
34  } // namespace python
35 } // namespace pinocchio
Main pinocchio namespace.
Definition: timings.cpp:30


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