mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
Added octomap ground is an obstacle option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user