-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port moveit_core/utils to ROS 2 (#68)
* Port moveit_core/utils to ROS 2 * moveit_core/utils adapt to logging #21 * moveit_core utils - xmlrpc_casts.cpp will not be used anymore since XML-RPC is not supported in ROS 2 * moveit_core utils - fixing CmakeLists.txt * moveit_core utils - restoring addLinkCollision headers
- Loading branch information
Showing
6 changed files
with
53 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,43 @@ | ||
set(MOVEIT_LIB_NAME moveit_utils) | ||
|
||
add_library(${MOVEIT_LIB_NAME} | ||
add_library(${MOVEIT_LIB_NAME} SHARED | ||
src/lexical_casts.cpp | ||
src/xmlrpc_casts.cpp | ||
) | ||
target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) | ||
|
||
include_directories(include) | ||
ament_target_dependencies(${MOVEIT_LIB_NAME} visualization_msgs) | ||
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
|
||
install(TARGETS ${MOVEIT_LIB_NAME} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
LIBRARY DESTINATION "lib" | ||
ARCHIVE DESTINATION "lib") | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gtest REQUIRED) | ||
find_package(moveit_resources REQUIRED) | ||
set(MOVEIT_TEST_LIB_NAME moveit_test_utils) | ||
add_library(${MOVEIT_TEST_LIB_NAME} | ||
src/robot_model_test_utils.cpp) | ||
|
||
add_dependencies(${MOVEIT_TEST_LIB_NAME} ${catkin_EXPORTED_TARGETS}) | ||
|
||
find_package(moveit_resources REQUIRED) | ||
include_directories(${moveit_resources_INCLUDE_DIRS}) | ||
include_directories(${moveit_resources_INCLUDE_DIRS}) | ||
|
||
target_link_libraries(${MOVEIT_TEST_LIB_NAME} ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${urdfdom_headers_LIBRARIES} ${Boost_LIBRARIES}) | ||
target_link_libraries(${MOVEIT_TEST_LIB_NAME} | ||
${Boost_LIBRARIES} | ||
${urdf_LIBRARIES} | ||
${srdfdom_LIBRARIES} | ||
${urdfdom_LIBRARIES} | ||
${urdfdom_headers_LIBRARIES} | ||
) | ||
|
||
set_target_properties(${MOVEIT_TEST_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
|
||
install(TARGETS ${MOVEIT_TEST_LIB_NAME} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
endif() | ||
ament_export_libraries(${MOVEIT_TEST_LIB_NAME} ${MOVEIT_LIB_NAME}) | ||
ament_export_include_directories(include) | ||
|
||
install(TARGETS | ||
${MOVEIT_TEST_LIB_NAME} | ||
LIBRARY DESTINATION "lib" | ||
ARCHIVE DESTINATION "lib") | ||
endif() | ||
|
||
install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}) | ||
install(DIRECTORY include/ DESTINATION "include") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.