-
Notifications
You must be signed in to change notification settings - Fork 470
Description
I see the filters do not react to ROS time jumping back. Would it be possible to add a (configurable) threshold on the size of the jump, and when the jump is larger than the threshold, the filter would automatically re-initialize? This would be especially helpful when debugging on a bag file that is played in a loop.
I've checked the interface provided by the Madgwick filter, and there's no public method that would allow complete reset of the filter from downstream code. I could call setOrientation() to at least reset the orientation, but initialized_ would remain true. Maybe just adding a reset() method would suffice, and then whoever cares about the time jumps could implement the automatic reset downstream.
Should I create a PR adding the reset() methods, or is there another preferred solution to this issue?