We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fd2f2 commit 6c1b346Copy full SHA for 6c1b346
1 file changed
CMakeLists.txt
@@ -22,6 +22,14 @@ add_subdirectory(visualizers/rviz_interface)
22
message(STATUS "Generating ROS2 messages from IDL files...")
23
set (DLS2_ROS2_INTERFACE_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dls2_ros2_interface/ros2_ws/src)
24
set (DLS2_ROS2_INTERFACE_DIR ${DLS2_ROS2_INTERFACE_SRC_DIR}/dls2_interface)
25
+
26
27
+# remove .msg files from the ROS2 interface src directory to avoid conflicts with the newly generated ones
28
+file(GLOB DLS_MSG_FILES CONFIGURE_DEPENDS "${DLS2_ROS2_INTERFACE_DIR}/msg/*.msg")
29
+foreach(msg_file IN LISTS DLS_MSG_FILES)
30
+ file(REMOVE ${msg_file})
31
+endforeach()
32
33
file(GLOB DLS_IDL_FILES CONFIGURE_DEPENDS "${DLS_MESSAGE_FOLDER}/idls/*.idl")
34
foreach(idl_file IN LISTS DLS_IDL_FILES)
35
execute_process(
0 commit comments