ground segmentaiton: adjusted cluster inlier with centroid below max height of biggest cluster

This commit is contained in:
matlabbe
2018-02-18 15:30:20 -05:00
parent 07244a8a73
commit 00559ce8d6
2 changed files with 2 additions and 2 deletions

View File

@@ -3360,7 +3360,7 @@ void DatabaseViewer::update(int value,
{
cloudViewer_->addCloud("ground", util3d::laserScanToPointCloud(scan), pose, QColor(ui_->lineEdit_groundColor->text()));
}
scan = LaserScan::backwardCompatibility(localMaps.begin()->second.first.first);
scan = LaserScan::backwardCompatibility(localMaps.begin()->second.first.second);
if(scan.hasRGB())
{
cloudViewer_->addCloud("obstacles", util3d::laserScanToPointCloudRGB(scan), pose, QColor(ui_->lineEdit_obstacleColor->text()));