Ask Your Question
0

perception pcl

asked 2011-05-17 04:58:49 -0600

kang gravatar image

updated 2011-09-03 15:26:43 -0600

kwc gravatar image

Hi,

Currently I am trying tutorial for PCL as described in http://www.pointclouds.org/documentat...

But, as in perception_pcl package in ros I could not find file named "FindPCL.cmake".

Perhaps, someone could give some enlightenment here. I am still a bit confused how to use pcl in ros.

Thanks in advanced.

Kang

edit retag flag offensive close merge delete

Comments

In general it's best to add more detail to your headline. Try something like "Perception_pcl can't find FindPCL.cmake"
Asomerville gravatar imageAsomerville ( 2011-05-18 09:54:10 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
4

answered 2011-05-17 14:49:47 -0600

Eric Perko gravatar image

The tutorial you linked above is for using standalone PCL in your own CMake based project. It is not for using PCL within ROS.

If you are looking for how to use PCL in your own ROS nodes, see the pcl_ros docs. In a nutshell, create a package as usual (this is described in the beginner tutorials elsewhere on ros.org), add a dependency on the pcl_ros package and then you should be able to include pcl headers into your package.

If you are trying to use standalone PCL in your own CMake based project outside of ROS and are having trouble, you should send an email to the pcl-users mailing list detailing the issues you are having.

edit flag offensive delete link more
1

answered 2015-06-16 22:39:47 -0600

ShubhamVerma gravatar image

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 ..

edit flag offensive delete link more
0

answered 2011-05-17 13:47:42 -0600

Shark gravatar image

From my experience, those tutorials are a bit outdated. I've used some other tutorials on the site, but they miss certain essential things that I had to discover on my own. I.e. you need to create a manifest.xml folder when creating your own package, but the tutorials on the site never mention it.

I'd assume that's the likely culprit. Also, the PCL library changes very rapidly and has changed a lot, and the file this tutorial referenced might have been long moved/integrated/etc. into something else.

Unfortunately, I'm not in expert in this area, but from my own hacking code, this is what I'm discovered about the PCL Tutorials.

-Shark

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-05-17 04:58:49 -0600

Seen: 710 times

Last updated: Jun 16 '15