mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Remove landmark links when a node is deleted (and removed from the graph) #441
This commit is contained in:
@@ -2343,6 +2343,7 @@ void Memory::moveToTrash(Signature * s, bool keepLinkedToGraph, std::list<int> *
|
||||
|
||||
}
|
||||
s->removeLinks(); // remove all links
|
||||
s->removeLandmarks(); // remove all landmarks
|
||||
s->setWeight(0);
|
||||
s->setLabel(""); // reset label
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user