Score:0

ubuntu_22 : ROS2_humble :/usr/include/pcl_conversions/pcl_conversions.h:fatal error: pcl/conversions.h: No such file or directory

cn flag

Recently I started working in ROS2, while using some of pcl function I face below error.

For #include <pcl_conversions/pcl_conversions.h> I am getting the fatal error

/usr/include/pcl_conversions/pcl_conversions.h:44:10: fatal error: pcl/conversions.h: No such file or directory
   44 | #include <pcl/conversions.h>

Platform : Ubuntu 22

ros-humble-pcl-conversions 2.4.0-4jammy.20221207.034537 amd64 Provides conversions from PCL data types and ROS message types

libpcl-dev 1.12.1+dfsg-3build1 amd64 Point Cloud Library - development files

hr flag
So is the file actually missing, or is the issue that your build process is not adding `/usr/include/pcl-1.12/` to the include path?
Yogesh kumar G N avatar
cn flag
Yeah, It was one of the missing part from my try, but I added that also in CMakeList `find_package(PCL COMPONENT REQUIRED)`, AND missed this part : `include_directories( include ${PCL_INCLUDE_DIRS} )` and before `ament_package()` add this - `ament_export_include_directories(include)` Now it is working. Thank you for responding
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.