Skip to content

Reset the filter on ROS time jumping back #164

@peci1

Description

@peci1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions