Rtabmap: Added deleteLastLocation() and rejectLastLoopClosure() methods

This commit is contained in:
matlabbe
2018-08-29 12:29:11 -04:00
parent 956f07785b
commit 30290c36d7
3 changed files with 102 additions and 11 deletions
+1 -1
View File
@@ -2126,7 +2126,7 @@ void Memory::moveToTrash(Signature * s, bool keepLinkedToGraph, std::list<int> *
_lastGlobalLoopClosureId = 0;
}
if( (_notLinkedNodesKeptInDb || keepLinkedToGraph) &&
if( (_notLinkedNodesKeptInDb || keepLinkedToGraph || s->isSaved()) &&
_dbDriver &&
s->id()>0 &&
(_incrementalMemory || s->isSaved()))