|
https://github.com/introlab/rtabmap_ros/issues/100Quoted from matlabbe
jacksonkr wrote
...
When calling reset_odom, rtabmap will start a new map, hiding the old one until a loop closure is found with the previous map. If you don't want rtabmap to start a new map when odometry is reset and wait until a first loop closure is found, you can set Rtabmap/StartNewMapOnLoopClosure to true.
If parameter Odom/ResetCountdown is set to 1 (default 0=disabled), odometry will automatically reset one frame after being lost, i.e., it has the same effect than calling reset_odom service.
In summary, by setting Rtabmap/StartNewMapOnLoopClosure=true (in rtabmap node) and Odom/ResetCountdown=1 (in rgbd_odometry node), odometry will be automatically reset when lost and rtabmap will wait to localize with a previous location before continuing mapping.
cheers
|