mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
updated how weight is updated when moving
This commit is contained in:
@@ -2906,11 +2906,10 @@ void Memory::rehearsal(Signature * signature, Statistics * stats)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if the robot has moved, increase only weight of the previous
|
// if the robot has moved, increase only weight of the new one
|
||||||
// signature because they are not merged
|
signature->setWeight(signature->getWeight()+1);
|
||||||
sB->setWeight(sB->getWeight()+1);
|
UINFO("Only updated weight to %d of %d (old=%d) because the robot has moved. (d=%f a=%f)",
|
||||||
UINFO("Only updated weight to %d of %d (new=%d) because the robot has moved. (d=%f a=%f)",
|
signature->getWeight(), signature->id(), sB->id(), _rehearsalMaxDistance, _rehearsalMaxAngle);
|
||||||
sB->getWeight(), sB->id(), signature->id(), _rehearsalMaxDistance, _rehearsalMaxAngle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(this->rehearsalMerge(id, signature->id()))
|
else if(this->rehearsalMerge(id, signature->id()))
|
||||||
|
|||||||
Reference in New Issue
Block a user