compile pcl code pointcloud_to_pcd

asked 2015-05-14 08:18:57 -0600

marilia15 gravatar image

updated 2015-05-14 08:19:56 -0600

I have downloaded the code pointcloud_to_pcd 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 <pcl io="" io.h="">

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.

edit retag flag offensive close merge delete