From 69a889cd996f25a2b31825835cd829734547cedb Mon Sep 17 00:00:00 2001 From: Moji Shi Date: Wed, 27 Aug 2025 14:00:39 +0000 Subject: [PATCH 1/2] Fix error: add pcl lib to target_link_libraries --- perception_aware_planner/exploration_manager/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perception_aware_planner/exploration_manager/CMakeLists.txt b/perception_aware_planner/exploration_manager/CMakeLists.txt index 130fe5b..08d58a4 100755 --- a/perception_aware_planner/exploration_manager/CMakeLists.txt +++ b/perception_aware_planner/exploration_manager/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_BUILD_TYPE Debug) find_package(Eigen3 REQUIRED) -find_package(PCL 1.7 REQUIRED) +find_package(PCL REQUIRED) find_package(catkin REQUIRED COMPONENTS roscpp @@ -34,6 +34,9 @@ include_directories( ${PCL_INCLUDE_DIRS} ) +link_directories(${PCL_LIBRARY_DIRS}) +add_definitions(${PCL_DEFINITIONS}) + add_executable(exploration_node src/exploration_node.cpp src/perception_aware_exploration_fsm.cpp @@ -42,5 +45,6 @@ add_executable(exploration_node ) target_link_libraries(exploration_node ${catkin_LIBRARIES} + # ${PCL_LIBRARIES} # -ldw ) \ No newline at end of file From 9af2949b14cb05fb0388186f5147bea507b3069a Mon Sep 17 00:00:00 2001 From: Moji Shi Date: Wed, 27 Aug 2025 16:12:25 +0200 Subject: [PATCH 2/2] Fix error: add pcl lib to target_link_libraries --- perception_aware_planner/exploration_manager/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perception_aware_planner/exploration_manager/CMakeLists.txt b/perception_aware_planner/exploration_manager/CMakeLists.txt index 08d58a4..f16254a 100755 --- a/perception_aware_planner/exploration_manager/CMakeLists.txt +++ b/perception_aware_planner/exploration_manager/CMakeLists.txt @@ -45,6 +45,6 @@ add_executable(exploration_node ) target_link_libraries(exploration_node ${catkin_LIBRARIES} - # ${PCL_LIBRARIES} + ${PCL_LIBRARIES} # -ldw - ) \ No newline at end of file + )