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  #include <hpp/fcl/serialization/geometric_shapes.h>
12 #undef HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION
13 
14 namespace pinocchio
15 {
16  namespace python
17  {
18  void exposeFCL()
19  {
20  namespace bp = boost::python;
21  bp::import("hppfcl");
22 
23  using namespace ::hpp::fcl;
24 
25  // Register implicit conversion SE3 <=> ::hpp::fcl::Transform3f
26  bp::implicitly_convertible< SE3,Transform3f >();
27  bp::implicitly_convertible< Transform3f,SE3 >();
28 
29  // Expose serialization of basic geometries to binary buffers
30  serialize<TriangleP>();
31  serialize<Sphere>();
32  serialize<Capsule>();
33  serialize<Box>();
34  serialize<Cone>();
35  serialize<Cylinder>();
36  serialize<Plane>();
37  serialize<Halfspace>();
38 
39  serialize< BVHModel<OBB> >();
40  serialize< BVHModel<RSS> >();
41  serialize< BVHModel<OBBRSS> >();
42  }
43 
44  } // namespace python
45 } // namespace pinocchio
Main pinocchio namespace.
Definition: timings.cpp:28


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:29