Skip to content

Commit

Permalink
Sync refactor with ros2 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jan 8, 2024
1 parent 6d8e65c commit 81e61bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rtabmap_util/src/MapsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,7 @@ std::map<int, rtabmap::Transform> MapsManager::updateMapCaches(
}
else
{
viewPoint = data.gridViewPoint();
localMaps_.add(iter->first, ground, obstacles, emptyCells, localMapMaker_->getCellSize(), viewPoint);
localMaps_.add(iter->first, ground, obstacles, emptyCells, data.gridCellSize(), data.gridViewPoint());
}
}
else
Expand Down Expand Up @@ -669,8 +668,7 @@ std::map<int, rtabmap::Transform> MapsManager::updateMapCaches(
}
else
{
viewPoint = data.gridViewPoint();
localMaps_.add(iter->first, ground, obstacles, emptyCells, localMapMaker_->getCellSize(), viewPoint);
localMaps_.add(iter->first, ground, obstacles, emptyCells, data.gridCellSize(), data.gridViewPoint());
}

// put back
Expand Down

0 comments on commit 81e61bb

Please sign in to comment.