Added octomap ground is an obstacle option

This commit is contained in:
matlabbe
2016-07-16 10:57:59 -04:00
parent b4b7b6f455
commit f161609a24
4 changed files with 53 additions and 15 deletions
+5
View File
@@ -2646,6 +2646,11 @@ void MainWindow::createAndAddProjectionMap(
groundCloud = util3d::transformPointCloud(groundCloud, tinv);
obstaclesCloud = util3d::transformPointCloud(obstaclesCloud, tinv);
}
if(_preferencesDialog->isOctomapGroundAnObstacle())
{
*obstaclesCloud += *groundCloud;
groundCloud->clear();
}
_octomap->addToCache(nodeId, groundCloud, obstaclesCloud);
}
#endif