1. source.tar.gz download
2. 압축 해제
tar xvf source.tar.gz
3. make build & install
cd pcl-pcl-1.13.1 && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make -j4 install
4. CMakeLists.txt 수정
cmake_minimum_required(VERSION 3.5)
project(your_project)
find_package(PCL 1.13 REQUIRED COMPONENTS common io filters segmentation search)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(your_executable your_source_files.cpp)
target_link_libraries(
your_executable
${PCL_COMMON_LIBRARIES}
${PCL_IO_LIBRARIES}
${PCL_FILTERS_LIBRARIES}
${PCL_SEGMENTATION_LIBRARIES}
${PCL_SEARCH_LIBRARIES}
)
'ROS2' 카테고리의 다른 글
[ROS2] turtlebot3(foxy) install & compile (2) | 2023.10.18 |
---|---|
[ROS2] rclpy(foxy) osm_cartographer 운용 (1) | 2023.06.08 |
[ROS2] RPLiDAR A3M1 ROS2(foxy) package install 및 /scan topic echo test (0) | 2023.05.27 |
[ROS2] navigation2(foxy) package install & compile (1) | 2023.05.26 |
[ROS2] Raspberry PI 4 Model B(Ubuntu 20.04 Focal) ROS2 Foxy 설치 (1) | 2023.05.26 |