fix core dumped err when loadplugin
This commit is contained in:
@@ -62,7 +62,7 @@ add_library(costmap_2d
|
||||
# --- Link các thư viện phụ thuộc ---
|
||||
target_link_libraries(costmap_2d
|
||||
${Boost_LIBRARIES} # Boost
|
||||
std_msgs # ROS msgs
|
||||
std_msgs
|
||||
sensor_msgs
|
||||
geometry_msgs
|
||||
nav_msgs
|
||||
@@ -100,11 +100,6 @@ install(DIRECTORY include/${PROJECT_NAME}/
|
||||
DESTINATION include/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
# # --- Export CMake targets ---
|
||||
# install(EXPORT costmap_2dTargets
|
||||
# DESTINATION lib/cmake/costmap_2d
|
||||
# )
|
||||
|
||||
# --- Plugin libraries ---
|
||||
# Tạo các plugin shared library
|
||||
add_library(static_layer SHARED plugins/static_layer.cpp)
|
||||
@@ -133,7 +128,7 @@ target_link_libraries(unpreferred_layer costmap_2d static_layer ${Boost_LIBRARIE
|
||||
|
||||
|
||||
# --- Option để bật/tắt test ---
|
||||
option(BUILD_COSTMAP_TESTS "Build costmap_2d test executables" OFF)
|
||||
option(BUILD_COSTMAP_TESTS "Build costmap_2d test executables" ON)
|
||||
|
||||
if(BUILD_COSTMAP_TESTS)
|
||||
# --- Test executables ---
|
||||
|
||||
Reference in New Issue
Block a user