首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >八叉树更改检测初始值设定项但不完整的类型错误

八叉树更改检测初始值设定项但不完整的类型错误
EN

Stack Overflow用户
提问于 2018-10-17 02:54:42
回答 1查看 214关注 0票数 0

我正在为我的一个机器人项目浏览PCL库。我正在尝试这个八叉树变化检测程序here。我使用的是PCL1.7。我遵循本教程,当我编译代码时,我得到以下错误

代码语言:javascript
复制
error: variable ‘pcl::octree::OctreePointCloudChangeDetector<pcl::PointXYZ> octree’ has initializer but incomplete type
       pcl::octree::OctreePointCloudChangeDetector<pcl::PointXYZ> octree (resolution);

                                                                                ^

由于这个原因,我得到了其他错误,比如

代码语言:javascript
复制
‘Octree2BufBase’ was not declared in this scope
         LeafContainerT, BranchContainerT, Octree2BufBase<LeafContainerT, Branch

wrong number of template arguments (5, should be at least 1)
 ontainerT, BranchContainerT, Octree2BufBase<LeafContainerT, BranchContainerT> >       

                                                                      ^

 expected ‘{’ before ‘>’ token
 ontainerT, BranchContainerT, Octree2BufBase<LeafContainerT, BranchContainerT> >
                                                                               ^

expected unqualified-id before ‘>’ token

谁能告诉我如何解决这个问题。谢谢!

EN

回答 1

Stack Overflow用户

发布于 2018-10-23 17:00:58

https://github.com/PointCloudLibrary/pcl/issues/2564

这是"octree_pointcloud_changedetector.h“中的一个错误,您必须在此文件中添加#include "octree2buf_base.h”。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52842224

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档