Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘Octree2BufBase’ was not declared in this scope #2564

Closed
RogerAylagas opened this issue Oct 17, 2018 · 1 comment
Closed

error: ‘Octree2BufBase’ was not declared in this scope #2564

RogerAylagas opened this issue Oct 17, 2018 · 1 comment

Comments

@RogerAylagas
Copy link

RogerAylagas commented Oct 17, 2018

Your Environment

  • Operating System and version: Ubuntu 16.04
  • Compiler: Cmake
  • PCL Version: 1.7.0

Context

I am trying to initialize an OctreePointCloudChangeDetector with the following code:

#include <pcl/point_cloud.h>
#include <pcl/octree/octree_pointcloud_changedetector.h>
#include <pcl/octree/octree_pointcloud_density.h>
#include <pcl/octree/octree2buf_base.h>
#include <iostream>
#include <vector>
#include <ctime>


int
main (int argc, char** argv)
{
  srand ((unsigned int) time (NULL));

  // Octree resolution - side length of octree voxels
  float resolution = 32.0f;

  // Instantiate octree-based point cloud change detection class
  pcl::octree::OctreePointCloudChangeDetector<pcl::PointXYZ> octree (resolution);
}

But while compiling this error appears:

/usr/include/pcl-1.7/pcl/octree/octree_pointcloud_changedetector.h:64:43: error: ‘Octree2BufBase’ was not declared in this scope
LeafContainerT, BranchContainerT, Octree2BufBase<LeafContainerT, BranchContainerT>>

I think the issue might be caused by a wrong initialization of the object but I don't know how to initialize it.
Can you help me with the issue?? Thank you

@RogerAylagas
Copy link
Author

In usr/include/pcl-1.7/pcl/octree the header "octree_pointcloud_changedetector.h" misses an include of the header octree2buf_base.h

CHANGELOG (in "octree_pointcloud_changedetector.h") -> add #include "octree2buf_base.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant