ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ros2 foxy pcl/conversions.h not found

asked 2023-02-19 08:23:01 -0600

lfrg95 gravatar image

I'm using ROS2 foxy (desktop install) and i am trying to include pcl_conversions. I get an error message from pcl_conversions.h saying:

/opt/ros/foxy/include/pcl_conversions/pcl_conversions.h:46:10: fatal error: pcl/conversions.h: No such file or directory
   46 | #include <pcl/conversions.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

I have included pcl_ros and PCL as required packages in my CMakeList, and I have checked for missing dependencies with rosdep using

rosdep install -i --from-path src --rosdistro foxy -y

and it says all required rosdeps are installed successfully. I am new to ros and I can't find information on what pcl package I need to install. Would greatly appreciate help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-20 06:30:06 -0600

GeorgNo gravatar image

You need to also link it against pcl_conversions.

find_package(pcl_conversions REQUIRED)
ament_target_dependencies(node 
   ...
   "pcl_conversions"
)

should do the trick

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-02-19 08:23:01 -0600

Seen: 900 times

Last updated: Feb 20 '23