mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Increment map id when the memory is loaded. This fixes a bug on localization mode when odometry is already started before rtabmap node.
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1354 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -176,7 +176,7 @@ bool Memory::init(const std::string & dbUrl, bool dbOverwritten, const Parameter
|
||||
|
||||
// Last id
|
||||
_dbDriver->getLastNodeId(_idCount);
|
||||
_idMapCount = _lastSignature?_lastSignature->mapId():kIdStart;
|
||||
_idMapCount = _lastSignature?_lastSignature->mapId()+1:kIdStart;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user