mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
Cleanup gui
Fixed crash when a new location (B merged with previous location A through rehearsal) and then loop on a location already merged with the location A (which is not anymore in WM) Updated rejected hypothesis tag git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@299 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -855,6 +855,10 @@ void Rtabmap::process()
|
||||
timeHypothesesValidation = timer.ticks();
|
||||
ULOGGER_INFO("timeHypothesesValidation=%f",timeHypothesesValidation);
|
||||
}
|
||||
else if(hypotheses.front().second < _loopRatio*_highestHypothesisValue)
|
||||
{
|
||||
rejectedHypothesis = true;
|
||||
}
|
||||
|
||||
//============================================================
|
||||
// Retrieval id update
|
||||
@@ -862,6 +866,7 @@ void Rtabmap::process()
|
||||
std::list<std::pair<int, float> > hyp;
|
||||
// using likelihood (only if in reactivated ids)
|
||||
this->selectHypotheses(likelihood, hyp, false);
|
||||
int lastReactivatedId = _reactivateId;
|
||||
if(std::find(reactivatedIds.begin(),reactivatedIds.end(), hyp.front().first) != reactivatedIds.end())
|
||||
{
|
||||
_reactivateId = hyp.front().first;
|
||||
@@ -887,7 +892,7 @@ void Rtabmap::process()
|
||||
}
|
||||
else if(std::find(reactivatedIds.begin(),reactivatedIds.end(), hypotheses.front().first) != reactivatedIds.end())
|
||||
{
|
||||
if(signaturesReactivated<2 || hypotheses.front().second < _loopRatio*_highestHypothesisValue)
|
||||
if(signaturesReactivated<_maxRetrieved || (hypotheses.front().first == lastReactivatedId && rejectedHypothesis))
|
||||
{
|
||||
// We are loosing the next loop closures (it
|
||||
// can be temporary occlusions/bad images),
|
||||
|
||||
Reference in New Issue
Block a user