mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-11 12:29:50 +08:00
Fixed #940
This commit is contained in:
@@ -109,7 +109,7 @@ void segmentObstaclesFromGround(
|
|||||||
{
|
{
|
||||||
Eigen::Vector4f min,max;
|
Eigen::Vector4f min,max;
|
||||||
pcl::getMinMax3D(*cloud, *clusteredFlatSurfaces.at(i), 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();
|
points = clusteredFlatSurfaces.at(i)->size();
|
||||||
biggestFlatSurfaceIndex = i;
|
biggestFlatSurfaceIndex = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user