mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
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:
@@ -833,8 +833,7 @@ void Rtabmap::process()
|
|||||||
if(hypotheses.size())
|
if(hypotheses.size())
|
||||||
{
|
{
|
||||||
// Loop closure Threshold
|
// Loop closure Threshold
|
||||||
if(likelihood.at(hypotheses.front().first) > 0.0f &&
|
if(hypotheses.front().second >= _loopThr)
|
||||||
hypotheses.front().second >= _loopThr)
|
|
||||||
{
|
{
|
||||||
//============================================================
|
//============================================================
|
||||||
// Hypothesis verification for loop closure with geometric
|
// Hypothesis verification for loop closure with geometric
|
||||||
@@ -843,7 +842,8 @@ void Rtabmap::process()
|
|||||||
//============================================================
|
//============================================================
|
||||||
if(hypotheses.front().second >= _loopRatio*_highestHypothesisValue &&
|
if(hypotheses.front().second >= _loopRatio*_highestHypothesisValue &&
|
||||||
_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;
|
_lcHypothesisId = hypotheses.front().first;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user