update for ROS

This commit is contained in:
2026-01-07 17:03:07 +07:00
parent ec6d5746e3
commit 76b563ad4d
5 changed files with 14 additions and 8 deletions

View File

@@ -44,6 +44,7 @@ catkin_package(
geometry_msgs
loc_core
nav_2d_utils
robot_nav_2d_utils
move_base_core
robot_cpp
roscpp
@@ -106,12 +107,12 @@ add_dependencies(${PROJECT_NAME}_node
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)
# Fix circular RPATH dependency: disable automatic RPATH detection to avoid cycle warnings
# Libraries will be found via LD_LIBRARY_PATH or system paths
# Configure RPATH to find libraries in devel space
# Use ORIGIN to find libraries relative to executable location
set_target_properties(${PROJECT_NAME}_node PROPERTIES
SKIP_BUILD_RPATH TRUE
BUILD_WITH_INSTALL_RPATH FALSE
INSTALL_RPATH_USE_LINK_PATH FALSE
INSTALL_RPATH_USE_LINK_PATH TRUE
BUILD_RPATH "${CATKIN_DEVEL_PREFIX}/lib"
)
# add_dependencies(vda_5050_api_test