mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 17:47:49 +08:00
New parameter: Rtabmap/StartNewMapOnLoopClosure, when activated and creating a new map, the nodes of the new map will be ignored until a loop closure is found.
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1812 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1262,7 +1262,7 @@ std::list<int> Memory::cleanup(const std::list<int> & ignoredIds)
|
||||
std::list<int> signaturesRemoved;
|
||||
|
||||
// bad signature
|
||||
if((_lastSignature->isBadSignature() && _badSignaturesIgnored) || !_incrementalMemory)
|
||||
if(_lastSignature && ((_lastSignature->isBadSignature() && _badSignaturesIgnored) || !_incrementalMemory))
|
||||
{
|
||||
if(_lastSignature->isBadSignature())
|
||||
{
|
||||
@@ -2373,7 +2373,6 @@ bool Memory::rehearsalMerge(int oldId, int newId)
|
||||
|
||||
UDEBUG("Rehearsal merge %d and %d", oldS->id(), newS->id());
|
||||
|
||||
// During rehearsal in STM
|
||||
if(_idUpdatedToNewOneRehearsal)
|
||||
{
|
||||
// update weight
|
||||
|
||||
Reference in New Issue
Block a user