-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed the BULLET_ENABLE flag #489
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
set(MOVEIT_LIB_NAME moveit_collision_detection_bullet) | ||
|
||
add_library(${MOVEIT_LIB_NAME} | ||
add_library(${MOVEIT_LIB_NAME} SHARED | ||
src/bullet_integration/bullet_utils.cpp | ||
src/bullet_integration/bullet_discrete_bvh_manager.cpp | ||
src/bullet_integration/bullet_cast_bvh_manager.cpp | ||
|
@@ -25,29 +25,27 @@ target_link_libraries(${MOVEIT_LIB_NAME} | |
${BULLET_LIBRARIES} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't that only necessary for ros2 dependencies? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
no, it works for all kinds of packages as long as they provide the right variables (_LIBRARIES, _INCLUDE_DIRS, ...). |
||
) | ||
|
||
add_library(collision_detector_bullet_plugin src/collision_detector_bullet_plugin_loader.cpp) | ||
add_library(collision_detector_bullet_plugin SHARED src/collision_detector_bullet_plugin_loader.cpp) | ||
set_target_properties(collision_detector_bullet_plugin PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
ament_target_dependencies(collision_detector_bullet_plugin | ||
target_link_libraries(collision_detector_bullet_plugin PUBLIC | ||
${MOVEIT_LIB_NAME} | ||
moveit_planning_scene | ||
) | ||
ament_target_dependencies(collision_detector_bullet_plugin PUBLIC | ||
rclcpp | ||
urdf | ||
visualization_msgs | ||
pluginlib | ||
rmw_implementation | ||
) | ||
target_link_libraries(collision_detector_bullet_plugin | ||
${MOVEIT_LIB_NAME} | ||
moveit_planning_scene | ||
) | ||
|
||
install(DIRECTORY include/ DESTINATION include) | ||
install(TARGETS ${MOVEIT_LIB_NAME} EXPORT ${MOVEIT_LIB_NAME} | ||
TARGETS collision_detector_bullet_plugin EXPORT collision_detector_bullet_plugin | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the runtime destination should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I can change this |
||
) | ||
install(DIRECTORY include/ DESTINATION include) | ||
|
||
install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}) | ||
|
||
if(BUILD_TESTING) | ||
if(WIN32) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bullet needs to be listed as include depend, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I omitted it because I was mirroring the FCL setup. In fact the FCL include dependency is not in this list but I can add the Bullet one if that's what's preferred.