mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
fixed similarity value stuck to 1
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@737 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1637,7 +1637,7 @@ void Memory::rehearsal(Signature * signature, std::map<std::string, float> & sta
|
||||
int id = 0;
|
||||
int nbMerged = 0;
|
||||
std::list<int> merged;
|
||||
float maxSim = 1.0f;
|
||||
float maxSim = -1.0f;
|
||||
for(std::map<int, float>::iterator iter=similarities.begin(); iter!=similarities.end(); ++iter)
|
||||
{
|
||||
float value = iter->second;
|
||||
|
||||
Reference in New Issue
Block a user