Added parameter selection of actionsByTime or not (default true)

Now if parameter databaseCleaned is false, "all" signatures are saved, otherwise, only those with no parent loop closure


git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@84 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-06-08 20:00:14 +00:00
parent 7407657b23
commit edf8bbb735
6 changed files with 50 additions and 13 deletions
+1 -1
View File
@@ -963,7 +963,7 @@ void Memory::moveToTrash(Signature * s)
_dbDriver &&
!s->isBadSignature() &&
s->id()>0 &&
(s->getLoopClosureId() == 0 || s->isSaved()))
((s->getLoopClosureId() == 0 || s->isSaved()) || !_databaseCleaned))
{
_dbDriver->asyncSave(s);
}