mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-09 19:39:50 +08:00
Fixed Odom/ResetCountdown not resetting anymore if next frame is also bad.
This commit is contained in:
@@ -915,6 +915,7 @@ Transform Odometry::process(SensorData & data, const Transform & guessIn, Odomet
|
|||||||
{
|
{
|
||||||
UWARN("Odometry automatically reset to latest pose!");
|
UWARN("Odometry automatically reset to latest pose!");
|
||||||
this->reset(_pose);
|
this->reset(_pose);
|
||||||
|
_resetCurrentCount = _resetCountdown;
|
||||||
if(info)
|
if(info)
|
||||||
{
|
{
|
||||||
*info = OdometryInfo();
|
*info = OdometryInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user