mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Rtabmap::triggerNewMap() now does nothing in localization mode to make sure optimized map doesn't get regenerated
This commit is contained in:
@@ -697,6 +697,13 @@ int Rtabmap::triggerNewMap()
|
||||
int mapId = -1;
|
||||
if(_memory)
|
||||
{
|
||||
if(!_memory->isIncremental())
|
||||
{
|
||||
UWARN("Memory is not incremental (%s=false), ignoring creating a new map as we "
|
||||
"should be already processing new nodes in a new session.",
|
||||
Parameters::kMemIncrementalMemory().c_str());
|
||||
return mapId;
|
||||
}
|
||||
std::map<int, int> reducedIds;
|
||||
mapId = _memory->incrementMapId(&reducedIds);
|
||||
UINFO("New map triggered, new map = %d", mapId);
|
||||
|
||||
Reference in New Issue
Block a user