mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
gui: fixed wrongly showing landmark rejected when it was not (because a loop closure was rejected at the same time)
This commit is contained in:
@@ -2907,6 +2907,7 @@ bool Rtabmap::process(
|
|||||||
{
|
{
|
||||||
UINFO("Landmark %d observed again! Seen the first time by node %d.", -iter->first, *_memory->getLandmarksIndex().find(iter->first)->second.begin());
|
UINFO("Landmark %d observed again! Seen the first time by node %d.", -iter->first, *_memory->getLandmarksIndex().find(iter->first)->second.begin());
|
||||||
landmarksDetected.insert(std::make_pair(iter->first, _memory->getLandmarksIndex().find(iter->first)->second));
|
landmarksDetected.insert(std::make_pair(iter->first, _memory->getLandmarksIndex().find(iter->first)->second));
|
||||||
|
rejectedGlobalLoopClosure = false; // If it was true, it will be set back to false if landmarks are rejected on graph optimization
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2103,6 +2103,7 @@ void MainWindow::processStats(const rtabmap::Statistics & stat)
|
|||||||
}
|
}
|
||||||
else if(landmarkId!=0)
|
else if(landmarkId!=0)
|
||||||
{
|
{
|
||||||
|
highestHypothesisId = landmarkNodeRef;
|
||||||
if(rejectedHyp)
|
if(rejectedHyp)
|
||||||
{
|
{
|
||||||
show = _preferencesDialog->imageRejectedShown();
|
show = _preferencesDialog->imageRejectedShown();
|
||||||
|
|||||||
Reference in New Issue
Block a user