mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Reset bayes filter when new map is triggered
This commit is contained in:
@@ -651,6 +651,11 @@ int Rtabmap::triggerNewMap()
|
|||||||
_mapCorrection.setIdentity();
|
_mapCorrection.setIdentity();
|
||||||
_mapCorrectionBackup.setNull();
|
_mapCorrectionBackup.setNull();
|
||||||
|
|
||||||
|
if(_bayesFilter)
|
||||||
|
{
|
||||||
|
_bayesFilter->reset();
|
||||||
|
}
|
||||||
|
|
||||||
//Verify if there are nodes that were merged through graph reduction
|
//Verify if there are nodes that were merged through graph reduction
|
||||||
if(reducedIds.size() && _path.size())
|
if(reducedIds.size() && _path.size())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user