Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
j-petit committed Nov 21, 2019
1 parent 8e5ef5b commit 1fd192d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -24,6 +24,7 @@ env:
matrix:
- TEST="clang-format catkin_lint"
- ROS_DISTRO=melodic
- ROS_DISTRO=kinetic

matrix: # Add a separate config to the matrix, using clang as compiler
include:
Expand Down
22 changes: 15 additions & 7 deletions moveit_core/CMakeLists.txt
Expand Up @@ -21,13 +21,18 @@ endif()

find_package(Boost REQUIRED system filesystem date_time thread iostreams)
find_package(Eigen3 REQUIRED)
# TODO: Move collision detection into separate packages

# TODO: Move collision detection into separate packages
find_package(Bullet CONFIG)
if (BULLET_VERSION_STRING VERSION_GREATER "2.86")
set(MOVEIT_HAVE_BULLET 1)
# TODO: Add here all cmake code which is bullet specific
add_subdirectory(collision_detection_bullet)
if(BULLET_FOUND AND BULLET_VERSION_STRING VERSION_GREATER "2.86")
set(BULLET_ENABLE "BULLET")
set(BULLET_INCLUDE_DIRS "${BULLET_ROOT_DIR}/${BULLET_INCLUDE_DIRS}")
set(BULLET_INCLUDE_DIR "${BULLET_ROOT_DIR}/${BULLET_INCLUDE_DIR}")
set(BULLET_LIBRARY_DIRS "${BULLET_ROOT_DIR}/${BULLET_LIBRARY_DIRS}")
set(BULLET_LIBRARIES "libBulletDynamics.so;libBulletCollision.so;libLinearMath.so;libBulletSoftBody.so")
message(STATUS "Compiling with Bullet")
else()
message(STATUS "Version of Bullet too old or not available: disabling Bullet collision detection plugin")
endif()

find_package(PkgConfig REQUIRED)
Expand Down Expand Up @@ -151,7 +156,7 @@ catkin_package(
OCTOMAP
urdfdom
urdfdom_headers
BULLET
${BULLET_ENABLE}
)


Expand Down Expand Up @@ -206,7 +211,6 @@ add_subdirectory(robot_state)
add_subdirectory(robot_trajectory)
add_subdirectory(collision_detection)
add_subdirectory(collision_detection_fcl)
add_subdirectory(collision_detection_bullet)
add_subdirectory(kinematic_constraints)
add_subdirectory(planning_scene)
add_subdirectory(constraint_samplers)
Expand All @@ -217,3 +221,7 @@ add_subdirectory(distance_field)
add_subdirectory(collision_distance_field)
add_subdirectory(kinematics_metrics)
add_subdirectory(dynamics_solver)

if(BULLET_ENABLE)
add_subdirectory(collision_detection_bullet)
endif()

0 comments on commit 1fd192d

Please sign in to comment.