【问题标题】:qt_visualizer tutorial pointcloud doesnt appearqt可视化教程点云不出现
【发布时间】:2021-06-09 09:28:39
【问题描述】:

我针对 VTK 8.2.0 编译了 PCL1.10.1,并尝试在我的 QT Gui 项目中开始使用 PCL,例如 pcl s qt_visualizer 教程。 https://pcl.readthedocs.io/projects/tutorials/en/latest/qt_visualizer.html#qt-visualizer

点云没有出现。渲染窗口工作。我可以更改背景颜色并添加坐标轴。 我从 doc/tutorials/content/sources/qt_visualizer 复制了代码

我使用了 cmake 3.16.3。根据

dpkg -s libboost-dev | grep 'Version'

boost 版本是 1.71.0.0ubuntu2

有什么想法吗?

【问题讨论】:

    标签: pcl


    【解决方案1】:

    变化

    typedef pcl::PointXYZRGBA PointT;
    typedef pcl::PointCloud<PointT> PointCloudT;
    

    在 pclviewer.h 中

    typedef pcl::PointCloud<pcl::PointXYZRGB> PointCloud;
    

    解决了我的问题。不知道为什么。

    【讨论】:

      猜你喜欢
      • 2017-03-11
      • 1970-01-01
      • 2012-04-23
      • 2017-11-24
      • 2013-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多