Added rejected tag when sim=0

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@296 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-07-20 00:18:42 +00:00
parent bcbd35d368
commit 9fe16dd504

View File

@@ -833,8 +833,7 @@ void Rtabmap::process()
if(hypotheses.size())
{
// Loop closure Threshold
if(likelihood.at(hypotheses.front().first) > 0.0f &&
hypotheses.front().second >= _loopThr)
if(hypotheses.front().second >= _loopThr)
{
//============================================================
// Hypothesis verification for loop closure with geometric
@@ -843,7 +842,8 @@ void Rtabmap::process()
//============================================================
if(hypotheses.front().second >= _loopRatio*_highestHypothesisValue &&
_highestHypothesisValue &&
_vhStrategy->verify(signature, _memory->getSignature(hypotheses.front().first)))
_vhStrategy->verify(signature, _memory->getSignature(hypotheses.front().first)) &&
likelihood.at(hypotheses.front().first) > 0.0f)
{
_lcHypothesisId = hypotheses.front().first;
}