Reset bayes filter when new map is triggered

This commit is contained in:
matlabbe
2017-09-29 13:28:17 -04:00
parent 7e0c17c5aa
commit 9abd925ab7

View File

@@ -651,6 +651,11 @@ int Rtabmap::triggerNewMap()
_mapCorrection.setIdentity();
_mapCorrectionBackup.setNull();
if(_bayesFilter)
{
_bayesFilter->reset();
}
//Verify if there are nodes that were merged through graph reduction
if(reducedIds.size() && _path.size())
{