我正在为我的一个机器人项目浏览PCL库。我正在尝试这个八叉树变化检测程序here。我使用的是PCL1.7。我遵循本教程,当我编译代码时,我得到以下错误
error: variable ‘pcl::octree::OctreePointCloudChangeDetector<pcl::PointXYZ> octree’ has initializer but incomplete type
pcl::octree::OctreePointCloudChangeDetector<pcl::PointXYZ> octree (resolution);
^由于这个原因,我得到了其他错误,比如
‘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谁能告诉我如何解决这个问题。谢谢!
发布于 2018-10-23 17:00:58
https://github.com/PointCloudLibrary/pcl/issues/2564
这是"octree_pointcloud_changedetector.h“中的一个错误,您必须在此文件中添加#include "octree2buf_base.h”。
https://stackoverflow.com/questions/52842224
复制相似问题