pcl_ros/point_cloud.h: No such file or directory

asked 2020-07-10 00:50:56 -0500

Chao Chen gravatar image

updated 2022-01-22 16:16:18 -0500

Evgeny gravatar image

One of my source file include library pcl_ros/point_cloud.h However, the error pops up

/home/chao/catkin_ws/src/beginner_tutorials/src/pointcloudlistener.cpp:2:33: fatal error: pcl_ros/point_cloud.h: No such file or directory

My pcl_ros/point_cloud.h file locates at /usr/local/include/pcl-1.8/pcl_ros/point_cloud.h. I change the lines in my Cmakefile like below. But the error still exists. How can I fix this problem?

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  /usr/local/include/pcl-1.8
)
edit retag flag offensive close merge delete

Comments

Does your CMakeLists.txt contains find_package(PCL REQUIRED) ?

kosmastsk gravatar image kosmastsk  ( 2020-07-10 02:59:24 -0500 )edit

Yeah. It was working in another computer. But it does not work in this laptop. All I can think it's the library problem

Chao Chen gravatar image Chao Chen  ( 2020-07-10 11:19:56 -0500 )edit

How did you install it?

kosmastsk gravatar image kosmastsk  ( 2020-07-10 11:37:11 -0500 )edit