mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
rtabmap::triggerNewMap(): reverting commit d9716590b1 to clear optimized poses so that occupancy grid is cleared when triggering a new map. MapCorrection is kept not cleared to support Tango switching mapping<->localization mode without jumping.
This commit is contained in:
@@ -688,6 +688,9 @@ int Rtabmap::triggerNewMap()
|
||||
std::map<int, int> reducedIds;
|
||||
mapId = _memory->incrementMapId(&reducedIds);
|
||||
UINFO("New map triggered, new map = %d", mapId);
|
||||
_optimizedPoses.clear();
|
||||
_constraints.clear();
|
||||
_lastLocalizationNodeId = 0;
|
||||
|
||||
if(_bayesFilter)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user