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


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