Skip to content

Commit

Permalink
Fix building with FCL built without Octomap (#1292)
Browse files Browse the repository at this point in the history
* Fix building with FCL built without Octomap

* Update changelog
  • Loading branch information
jslee02 authored Apr 24, 2019
1 parent f041a97 commit 92bcd7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

* Fixed BoxedLcpConstraintSolver is not API compatible with 6.7: [#1291](https://github.com/dartsim/dart/pull/1291)

* Build

* Fixed building with FCL built without Octomap: [#1292](https://github.com/dartsim/dart/pull/1292)

#### Compilers Tested

* Linux
Expand Down
12 changes: 6 additions & 6 deletions dart/collision/fcl/BackwardCompatibility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@

#include <fcl/broadphase/broadphase_dynamic_AABB_tree.h>

#if HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#if HAVE_OCTOMAP && FCL_HAVE_OCTOMAP
#if FCL_VERSION_AT_LEAST(0,6,0)
#include <fcl/geometry/octree/octree.h>
#else
#include <fcl/octree.h>
#endif // FCL_VERSION_AT_LEAST(0,6,0)
#endif // HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#endif // HAVE_OCTOMAP && FCL_HAVE_OCTOMAP

#if FCL_VERSION_AT_LEAST(0,5,0)
#include <memory>
Expand Down Expand Up @@ -121,9 +121,9 @@ using Cylinder = ::fcl::Cylinder<double>;
using Ellipsoid = ::fcl::Ellipsoid<double>;
using Halfspace = ::fcl::Halfspace<double>;
using Sphere = ::fcl::Sphere<double>;
#if HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#if HAVE_OCTOMAP && FCL_HAVE_OCTOMAP
using OcTree = ::fcl::OcTree<double>;
#endif // HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#endif // HAVE_OCTOMAP && FCL_HAVE_OCTOMAP
// Collision objects
using CollisionObject = ::fcl::CollisionObject<double>;
using CollisionGeometry = ::fcl::CollisionGeometry<double>;
Expand All @@ -145,9 +145,9 @@ using Box = ::fcl::Box;
using Cylinder = ::fcl::Cylinder;
using Halfspace = ::fcl::Halfspace;
using Sphere = ::fcl::Sphere;
#if HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#if HAVE_OCTOMAP && FCL_HAVE_OCTOMAP
using OcTree = ::fcl::OcTree;
#endif // HAVE_OCTOMAP && defined(FCL_HAVE_OCTOMAP)
#endif // HAVE_OCTOMAP && FCL_HAVE_OCTOMAP
// Collision objects
using CollisionObject = ::fcl::CollisionObject;
using CollisionGeometry = ::fcl::CollisionGeometry;
Expand Down

0 comments on commit 92bcd7a

Please sign in to comment.