mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-07 02:27:47 +08:00
OctoMap: aligned 2D projection map with OctoMap
This commit is contained in:
@@ -300,9 +300,7 @@ cv::Mat create2DMapFromOccupancyLocalMaps(
|
||||
//Get map size
|
||||
float margin = cellSize*10.0f;
|
||||
xMin = minX-margin;
|
||||
xMin -= cellSize/2.0f;
|
||||
yMin = minY-margin;
|
||||
yMin += cellSize/2.0f;
|
||||
float xMax = maxX+margin;
|
||||
float yMax = maxY+margin;
|
||||
if(fabs((yMax - yMin) / cellSize) > 30000 || // Max 1.5Km/1.5Km at 5 cm/cell -> 900MB
|
||||
|
||||
Reference in New Issue
Block a user