mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 20:09:51 +08:00
Don't do neighbor refining if fast movement has been detected
This commit is contained in:
@@ -1437,7 +1437,8 @@ bool Rtabmap::process(
|
|||||||
signature->getLinks().size() &&
|
signature->getLinks().size() &&
|
||||||
signature->getLinks().begin()->second.type() == Link::kNeighbor &&
|
signature->getLinks().begin()->second.type() == Link::kNeighbor &&
|
||||||
_memory->isIncremental() && // ignore pose matching in localization mode
|
_memory->isIncremental() && // ignore pose matching in localization mode
|
||||||
rehearsedId == 0) // don't do it if rehearsal happened
|
rehearsedId == 0 && // don't do it if rehearsal happened
|
||||||
|
!tooFastMovement) // ignore if too fast movement has been detected
|
||||||
{
|
{
|
||||||
int oldId = signature->getLinks().begin()->first;
|
int oldId = signature->getLinks().begin()->first;
|
||||||
const Signature * oldS = _memory->getSignature(oldId);
|
const Signature * oldS = _memory->getSignature(oldId);
|
||||||
|
|||||||
Reference in New Issue
Block a user