vickyTwan 2023-02-22 11:00 采纳率: 60%
浏览 15
已结题

Pcl库中没有point_traits.h

跑代码一直报错
最后在电脑中locate point_traits.h后发现我的pcl中没有point_traits.h的文件,请问怎么解决?

In file included from /home/vickytwan/catkin_ws/src/plane_fit_ground_filter/include/plane_ground_filter_core.h:12,
                 from /home/vickytwan/catkin_ws/src/plane_fit_ground_filter/src/plane_ground_filter_core.cpp:1:
/opt/ros/noetic/include/pcl_ros/point_cloud.h:6:10: fatal error: pcl/point_traits.h: 没有那个文件或目录
    6 | #include <pcl/point_traits.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [plane_fit_ground_filter/CMakeFiles/plane_ground_filter_node.dir/build.make:76:plane_fit_ground_filter/CMakeFiles/plane_ground_filter_node.dir/src/plane_ground_filter_core.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
 

  • 写回答

1条回答 默认 最新

  • myenjoy_1 2023-02-22 11:24
    关注

    看看PCL的版本是多少,而且可以去安装路径下去看看PCL相关include文件是不是有的

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 3月9日
  • 已采纳回答 3月1日
  • 创建了问题 2月22日

悬赏问题

  • ¥15 对于这个复杂问题的解释说明
  • ¥50 三种调度算法报错 采用的你的方案
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败