Don't trigger new map in localization mode when identity odom is detected

This commit is contained in:
matlabbe
2015-12-01 12:34:34 -05:00
parent 4e9ba66555
commit 4d97ba80d6

View File

@@ -904,7 +904,7 @@ bool Rtabmap::process(
"Image %d is ignored!", data.id());
return false;
}
else
else if(_memory->isIncremental()) // only in mapping mode
{
// Detect if the odometry is reset. If yes, trigger a new map.
if(_memory->getLastWorkingSignature())