mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Rtabmap: do localization if a landmark already in graph is detected
This commit is contained in:
@@ -2570,7 +2570,10 @@ bool Rtabmap::process(
|
|||||||
landmarkDetected!=0 ||
|
landmarkDetected!=0 ||
|
||||||
signaturesRetrieved.size()) // can be different map of the current one
|
signaturesRetrieved.size()) // can be different map of the current one
|
||||||
&&
|
&&
|
||||||
(_memory->isIncremental() || graph::filterLinks(signature->getLinks(), Link::kSelfRefLink).size())) // In localization mode, the new node should be linked
|
(_memory->isIncremental() ||
|
||||||
|
// In localization mode, the new node should be linked to another node or a landmark already in the graph
|
||||||
|
graph::filterLinks(signature->getLinks(), Link::kSelfRefLink).size() ||
|
||||||
|
(landmarkDetected!=0 && _optimizedPoses.find(landmarkDetected)!=_optimizedPoses.end())))
|
||||||
{
|
{
|
||||||
UASSERT(uContains(_optimizedPoses, signature->id()));
|
UASSERT(uContains(_optimizedPoses, signature->id()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user