mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Similarity value, shown even if there is no merge
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@739 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1642,13 +1642,12 @@ void Memory::rehearsal(Signature * signature, std::map<std::string, float> & sta
|
||||
{
|
||||
float value = iter->second;
|
||||
id = iter->first;
|
||||
if(maxSim<=value)
|
||||
{
|
||||
maxSim = value;
|
||||
}
|
||||
if(value >= _similarityThreshold)
|
||||
{
|
||||
if(maxSim<=value)
|
||||
{
|
||||
maxSim = value;
|
||||
}
|
||||
|
||||
if(_incrementalMemory)
|
||||
{
|
||||
merged.push_back(id);
|
||||
|
||||
Reference in New Issue
Block a user