qt_visualizer教程点云没有出现

问题描述 投票:0回答:1

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

点云未出现。渲染窗口起作用了。我可以更改背景颜色并添加坐标轴。

enter image description here

我从 doc/tutorials/content/sources/qt_visualizer 复制了代码

我使用了cmake 3.16.3。根据

dpkg -s libboost-dev | grep 'Version'

boost版本是1.71.0.0ubuntu2

有什么想法吗?

c++ qt user-interface point-cloud-library
1个回答
0
投票

改变

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

在 pclviewer.h 中

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

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

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.