mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
rtabmap: fixed graph not re-optimized (if empty) after first localization on landmark
This commit is contained in:
@@ -2571,9 +2571,9 @@ bool Rtabmap::process(
|
|||||||
signaturesRetrieved.size()) // can be different map of the current one
|
signaturesRetrieved.size()) // can be different map of the current one
|
||||||
&&
|
&&
|
||||||
(_memory->isIncremental() ||
|
(_memory->isIncremental() ||
|
||||||
// In localization mode, the new node should be linked to another node or a landmark already in the graph
|
// In localization mode, the new node should be linked to another node or a landmark already in the working memory
|
||||||
graph::filterLinks(signature->getLinks(), Link::kSelfRefLink).size() ||
|
graph::filterLinks(signature->getLinks(), Link::kSelfRefLink).size() ||
|
||||||
(landmarkDetected!=0 && _optimizedPoses.find(landmarkDetected)!=_optimizedPoses.end())))
|
landmarkDetected!=0))
|
||||||
{
|
{
|
||||||
UASSERT(uContains(_optimizedPoses, signature->id()));
|
UASSERT(uContains(_optimizedPoses, signature->id()));
|
||||||
|
|
||||||
@@ -2834,7 +2834,6 @@ bool Rtabmap::process(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
UINFO("Update map correction");
|
UINFO("Update map correction");
|
||||||
std::map<int, Transform> poses = _optimizedPoses;
|
std::map<int, Transform> poses = _optimizedPoses;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user