mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-14 23:40:20 +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;
|
float value = iter->second;
|
||||||
id = iter->first;
|
id = iter->first;
|
||||||
|
if(maxSim<=value)
|
||||||
|
{
|
||||||
|
maxSim = value;
|
||||||
|
}
|
||||||
if(value >= _similarityThreshold)
|
if(value >= _similarityThreshold)
|
||||||
{
|
{
|
||||||
if(maxSim<=value)
|
|
||||||
{
|
|
||||||
maxSim = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(_incrementalMemory)
|
if(_incrementalMemory)
|
||||||
{
|
{
|
||||||
merged.push_back(id);
|
merged.push_back(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user