Fixed build with pcl > 1.11.1 (#641)

This commit is contained in:
matlabbe
2020-11-14 16:52:01 -05:00
parent f9abcf9e35
commit 54e2688a1d
17 changed files with 75 additions and 49 deletions

View File

@@ -563,7 +563,7 @@ int main(int argc, char * argv[])
if(saveInDb)
{
printf("Saving mesh in db...\n");
std::vector<std::vector<std::vector<unsigned int> > > polygons;
std::vector<std::vector<std::vector<RTABMAP_PCL_INDEX> > > polygons;
polygons.push_back(util3d::convertPolygonsFromPCL(mesh->polygons));
driver->saveOptimizedMesh(
util3d::laserScanFromPointCloud(mesh->cloud, false).data(),