ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In ROS Indigo, if you want to use the standalone version of PCL, add following to include PCL headers before the ROS's default find packages:
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
roscpp
:
:
laser_geometry
)
add_executable(xyz src/xyz.cpp)
target_link_libraries(xyz ${PCL_LIBRARIES} ${catkin_LIBRARIES})
in addition to modifying your build and run dependencies in package.xml as per your requirements like pcl_msgs sensor_msgs ..