This commit is contained in:
matlabbe
2022-12-11 01:12:21 -08:00
parent aa380de2a7
commit a4761ad397

View File

@@ -109,7 +109,7 @@ void segmentObstaclesFromGround(
{
Eigen::Vector4f min,max;
pcl::getMinMax3D(*cloud, *clusteredFlatSurfaces.at(i), min, max);
if(min[2]<maxGroundHeight && clusteredFlatSurfaces.size() > points)
if(min[2]<maxGroundHeight && clusteredFlatSurfaces.at(i)->size() > points)
{
points = clusteredFlatSurfaces.at(i)->size();
biggestFlatSurfaceIndex = i;