I have downloaded the code [pointcloud_to_pcd](http://alufr-ros-pkg.googlecode.com/svn-history/r2218/branches/tidyup_robot-experimental/perception_pcl_unstable/pcl_ros/src/tools/pointcloud_to_pcd.cpp) and I am trying to compile it but I have errors.
I have created a new package ( pointcloud2occupancy) and inserted the source(pointcloud2pcd.cpp). I have modified the Cmakelists.txt file in lines:
- include_directories( ${catkin_LIBRARIES})
- add_executable(pc2og src/pointcloud2pcd.cpp)
- add_dependencies(pc2og pointcloud2occupancy_generate_messages_cpp)
- target_link_libraries(pc2og ${catkin_LIBRARIES} )
But catkin_make show this:
fatal error: pcl/io/io.h: file or directory not found. #include
I think I should insert some dependence of pcl in package.xml or cmakelists.txt, and not only the lines #include in the source cpp. But I am not sure when I have to include "the includes" in those files and when not.
Could some help me, please? Thanks in advance.
↧