mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixed a bug when switching from BadSignaturesIgnored=false to true (if bad signatures were saved before the switch)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1070 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1438,8 +1438,8 @@ void Memory::moveToTrash(Signature * s, bool saveToDatabase)
|
|||||||
UDEBUG("id=%d", s?s->id():0);
|
UDEBUG("id=%d", s?s->id():0);
|
||||||
if(s)
|
if(s)
|
||||||
{
|
{
|
||||||
// If not saved to database or it is a bad signature, remove links!
|
// If not saved to database or it is a bad signature (not saved), remove links!
|
||||||
if(!saveToDatabase || (s->isBadSignature() && _badSignaturesIgnored))
|
if(!saveToDatabase || (!s->isSaved() && s->isBadSignature() && _badSignaturesIgnored))
|
||||||
{
|
{
|
||||||
UASSERT_MSG(this->isInSTM(s->id()),
|
UASSERT_MSG(this->isInSTM(s->id()),
|
||||||
uFormat("Deleting location (%d) outside the STM is not implemented!", s->id()).c_str());
|
uFormat("Deleting location (%d) outside the STM is not implemented!", s->id()).c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user