Skip to content

Conversation

@contagon
Copy link
Owner

@contagon contagon commented Oct 23, 2025

Rather than always reporting a pose at a fixed timestamp after a call to add_lidar, this PR adds in a pose "buffer" to allow pipelines to push back a pose estimate at any time (ie not exactly when a scan is received, in add_imu, etc) allowing a lot more flexibility and proper handling of timestamped data.

Ran a few small tests over all pipelines to verify, they all had identical results to before.

Still todo:

  • Verify rerun setup still works
  • Try on a few longer test samples
  • Add checks to make sure created trajectories are sequential

@contagon contagon requested a review from Copilot October 29, 2025 15:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the pipeline API to support asynchronous pose estimation by replacing the synchronous pose() method with recent_estimates() that returns stamped pose estimates. This enables pipelines to output poses that may not correspond to the most recent scan timestamp.

Key changes:

  • Replaced Pipeline::pose() with Pipeline::recent_estimates() to return buffered stamped pose estimates
  • Split visualization logging into separate log_pose() and log_scan() methods
  • Updated all pipeline implementations to use the new buffering mechanism via push_back_estimate()

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cpp/evalio/pipeline.h Added recent_estimates() method and push_back_estimate() helper to base Pipeline class
cpp/bindings/pipeline.h Updated Python bindings to expose recent_estimates() instead of pose()
cpp/bindings/pipelines/*.h Updated all pipeline implementations to call push_back_estimate() instead of implementing pose()
python/evalio/rerun.py Split visualization into log_pose() and log_scan(), updated new_pipe() signature
python/evalio/cli/run.py Updated to iterate over recent_estimates() and call separate logging methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@contagon contagon merged commit b011e93 into main Nov 12, 2025
14 checks passed
contagon added a commit that referenced this pull request Nov 12, 2025
BREAKING CHANGE: The Pipeline class interface has changed slightly. `add_lidar` now has no return, and `pose` method has been removed. In place of these is a new `save` method for saving poses and features asynchronously with no overhead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants