mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed holes in 2d occupancy grids created from scans. Fixed grid map in 3D view not updated.
This commit is contained in:
@@ -1148,9 +1148,9 @@ bool CloudViewer::addOccupancyGridMap(
|
||||
float ySize = float(map8U.rows) * resolution;
|
||||
|
||||
UDEBUG("resolution=%f, xSize=%f, ySize=%f, xMin=%f, yMin=%f", resolution, xSize, ySize, xMin, yMin);
|
||||
if(_visualizer->getCloudActorMap()->find("map") == _visualizer->getCloudActorMap()->end())
|
||||
if(_visualizer->getCloudActorMap()->find("map") != _visualizer->getCloudActorMap()->end())
|
||||
{
|
||||
_visualizer->removeShape("map");
|
||||
_visualizer->removePointCloud("map");
|
||||
}
|
||||
|
||||
if(xSize > 0.0f && ySize > 0.0f)
|
||||
|
||||
Reference in New Issue
Block a user