Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best effort EKF replay on non-replayable logs #24455

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bresch
Copy link
Member

@bresch bresch commented Mar 5, 2025

Solved Problem

When estimator replay is not enabled in SDLOG_PROFILE, the ekf2_timestamps topic is missing and the sensors are not logged at full rate. However, it could be still interesting to attempt a crude replay.

Solution

When ekf2_timestamps is not available to precisely align the data, schedule the replay on sensor_combined topic update and publish all other topics that got published between 2 updates.

Test coverage

  • Replayable log (estimator replay enabled), Left: replay result of main; Right: replay result of PR
    image

  • Non-replayable log (estimator replay disabled), Left: original; Right: replayed with this PR
    Screenshot from 2025-03-05 11-30-02

bresch added 2 commits March 5, 2025 11:31
Run at sensor_combined speed and publish all other sensors occuring
between 2 sonsor_combined samples.
This allows a crude replay in case ekf2 replay was not enabled during
the flight.
@bresch bresch added the EKF2 label Mar 5, 2025
@bresch bresch requested review from dagar and haumarco March 5, 2025 10:53
@bresch bresch self-assigned this Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant