Skip to content

Commit

Permalink
Update ros-noetic-moveit-ros-planning-interface.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Feb 9, 2024
1 parent fa0e24b commit cadf82a
Showing 1 changed file with 77 additions and 13 deletions.
90 changes: 77 additions & 13 deletions patch/ros-noetic-moveit-ros-planning-interface.patch
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,6 @@ index 73f1aa3ea4..67528cf75c 100644
add_subdirectory(py_bindings_tools)
add_subdirectory(common_planning_interface_objects)
add_subdirectory(planning_scene_interface)
diff --git a/move_group_interface/CMakeLists.txt b/move_group_interface/CMakeLists.txt
index d822174bf0..c3eb1686c0 100644
--- a/move_group_interface/CMakeLists.txt
+++ b/move_group_interface/CMakeLists.txt
@@ -2,7 +2,7 @@ set(MOVEIT_LIB_NAME moveit_move_group_interface)

add_library(${MOVEIT_LIB_NAME} src/move_group_interface.cpp)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
-target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_objects moveit_planning_scene_interface ${catkin_LIBRARIES} ${Boost_LIBRARIES})
+target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_objects moveit_planning_scene_interface ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${EIGENPY_LIBRARIES})
add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS})

add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_move_group.cpp)
diff --git a/move_group_interface/include/moveit/move_group_interface/move_group_interface.h b/move_group_interface/include/moveit/move_group_interface/move_group_interface.h
index 17de157197..fdae58ab37 100644
--- a/move_group_interface/include/moveit/move_group_interface/move_group_interface.h
Expand Down Expand Up @@ -71,6 +58,32 @@ index 17de157197..fdae58ab37 100644
{
public:
/** \brief Default ROS parameter name from where to read the robot's URDF. Set to 'robot_description' */
diff --git a/move_group_interface/CMakeLists.txt b/move_group_interface/CMakeLists.txt
index d822174bf0..c95290d11c 100644
--- a/move_group_interface/CMakeLists.txt
+++ b/move_group_interface/CMakeLists.txt
@@ -6,13 +6,20 @@ target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_object
add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS})

add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_move_group.cpp)
-target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} eigenpy::eigenpy ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools)
+target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} eigenpy::eigenpy ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${EIGENPY_LIBRARIES} moveit_py_bindings_tools)
+if(NOT APPLE)
+ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES})
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif()
add_dependencies(${MOVEIT_LIB_NAME}_python ${catkin_EXPORTED_TARGETS})
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_move_group_interface PREFIX "")
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}")
if(WIN32)
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd)
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so)
endif(WIN32)

install(TARGETS ${MOVEIT_LIB_NAME}
diff --git a/py_bindings_tools/CMakeLists.txt b/py_bindings_tools/CMakeLists.txt
index 1f82d7e4dc..2f9112fb85 100644
--- a/py_bindings_tools/CMakeLists.txt
Expand Down Expand Up @@ -115,3 +128,54 @@ index 1f82d7e4dc..2f9112fb85 100644

install(TARGETS ${MOVEIT_LIB_NAME}_python
DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION})
diff --git a/planning_scene_interface/CMakeLists.txt b/planning_scene_interface/CMakeLists.txt
index 6a3b1a3f9b..d8c3055352 100644
--- a/planning_scene_interface/CMakeLists.txt
+++ b/planning_scene_interface/CMakeLists.txt
@@ -6,11 +6,18 @@ target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_object

add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_planning_scene_interface.cpp)
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
-target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools)
+target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools)
+if(NOT APPLE)
+ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES})
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif()
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_planning_scene_interface PREFIX "")
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}")
if(WIN32)
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd)
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so)
endif(WIN32)

install(TARGETS ${MOVEIT_LIB_NAME}
diff --git a/moveit_ros/planning_interface/robot_interface/CMakeLists.txt b/moveit_ros/planning_interface/robot_interface/CMakeLists.txt
index 3944155fbf..2fcc7521dd 100644
--- a/moveit_ros/planning_interface/robot_interface/CMakeLists.txt
+++ b/moveit_ros/planning_interface/robot_interface/CMakeLists.txt
@@ -1,13 +1,21 @@
set(MOVEIT_LIB_NAME moveit_robot_interface)

add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_robot_interface.cpp)
-target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES}
+target_link_libraries(${MOVEIT_LIB_NAME}_python ${catkin_LIBRARIES} ${Boost_LIBRARIES}
moveit_common_planning_interface_objects moveit_py_bindings_tools)
+if(NOT APPLE)
+ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES}
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif(NOT APPLE)
+
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_robot_interface PREFIX "")
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}")
if(WIN32)
set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd)
+else()
+ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so)
endif(WIN32)

install(TARGETS ${MOVEIT_LIB_NAME}_python

0 comments on commit cadf82a

Please sign in to comment.