mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +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
|
// Last id
|
||||||
_dbDriver->getLastNodeId(_idCount);
|
_dbDriver->getLastNodeId(_idCount);
|
||||||
_idMapCount = _lastSignature?_lastSignature->mapId():kIdStart;
|
_idMapCount = _lastSignature?_lastSignature->mapId()+1:kIdStart;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user