简体   繁体   English

无法在QVTKWidget中将点云添加到PCL Visualizer

[英]Unable to add a point cloud to PCL Visualizer in QVTKWidget

I am trying to add a point cloud to a pcl::visualization::PCLVisualizer . 我正在尝试将点云添加到pcl::visualization::PCLVisualizer I have followed exactly what is shown in this post: How to visualize a sequence of TOF-Sensor data in PCL (with Qt)? 我完全按照这篇文章中显示的内容进行操作: 如何在PCL(带有Qt)中可视化一系列TOF传感器数据? ?

However when I try to add a point cloud in the constructor, it fails an assertion somewhere in Boost: 但是,当我尝试在构造函数中添加点云时,它在Boost的某处断言失败:

external.linux/include/boost/unordered/detail/table.hpp:387: std::size_t boost::unordered::detail::table<Types>::min_buckets_for_size(std::size_t) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const std::basic_string<char>, pcl::visualization::CloudActor> >, std::basic_string<char>, boost::hash<std::basic_string<char> >, std::equal_to<std::basic_string<char> > >, std::size_t = long unsigned int]: Assertion `this->mlf_ != 0' failed.

I have no idea, what this about. 我不知道这是怎么回事。 Any help please? 有什么帮助吗?

So I think I have figure out what that problem was. 所以我想我已经弄清楚了那个问题是什么。 I have VTK and PCL built from source that were compiled with Boost 1.46 (system install). 我有从Boost 1.46(系统安装)编译的源代码构建的VTK和PCL。 In my project, however everything is linked to Boost 1.48. 但是,在我的项目中,所有内容都与Boost 1.48相关联。 Thus PCL was compiled with a different boost version than what it was linking with. 因此,PCL使用与其链接的版本不同的boost版本进行编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM