Commit 5f44dd57 authored by jcarpent's avatar jcarpent
Browse files

[Python] Fix bug when hpp-fcl is missing

parent 5e4ca72a
...@@ -56,11 +56,14 @@ namespace se3 ...@@ -56,11 +56,14 @@ namespace se3
.def_readonly("overrideMaterial", &GeometryObject::overrideMaterial, "Boolean that tells whether material information is stored in Geometry object") .def_readonly("overrideMaterial", &GeometryObject::overrideMaterial, "Boolean that tells whether material information is stored in Geometry object")
.def_readonly("meshTexturePath", &GeometryObject::meshTexturePath, "Absolute path to the mesh texture file") .def_readonly("meshTexturePath", &GeometryObject::meshTexturePath, "Absolute path to the mesh texture file")
#ifdef WITH_HPP_FCL
.def("CreateCapsule", &GeometryObjectPythonVisitor::maker_capsule) .def("CreateCapsule", &GeometryObjectPythonVisitor::maker_capsule)
.staticmethod("CreateCapsule") .staticmethod("CreateCapsule")
#endif WITH_HPP_FCL
; ;
} }
#ifdef WITH_HPP_FCL
static GeometryObject maker_capsule( const double radius , const double length) static GeometryObject maker_capsule( const double radius , const double length)
{ {
return GeometryObject("",FrameIndex(0),JointIndex(0), return GeometryObject("",FrameIndex(0),JointIndex(0),
...@@ -68,6 +71,7 @@ namespace se3 ...@@ -68,6 +71,7 @@ namespace se3
SE3::Identity()); SE3::Identity());
} }
#endif WITH_HPP_FCL
static void expose() static void expose()
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment