Skip to content

fix: increment multiple keypoints if needed#667

Open
fusion-gen wants to merge 4 commits intomainfrom
fusion-gen/interpolator-fix
Open

fix: increment multiple keypoints if needed#667
fusion-gen wants to merge 4 commits intomainfrom
fusion-gen/interpolator-fix

Conversation

@fusion-gen
Copy link
Copy Markdown
Contributor

Why are we doing this?

Not too relevant for this year, but incrementing by one keypoint at a time can cause breakage when there is an abundance of keypoints over a short period of time. Additionally, the maximum distance from chase points was changed to 3 so that we won't have to deal with any freezing logic in the interpolator for now.

Whats changing?

Questions/notes for reviewers

How this was tested

  • unit tests added
  • tested on robot

@fusion-gen fusion-gen requested a review from a team as a code owner March 28, 2026 20:53
Copilot AI review requested due to automatic review settings March 28, 2026 20:53
Copy link
Copy Markdown
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

Updates SimpleTimeInterpolator to better handle scenarios where the interpolator needs to advance across multiple keypoints within a single cycle, and relaxes the chase-point “freeze” threshold to reduce freezing behavior.

Changes:

  • Increase default maximumDistanceFromChasePointInMeters from 0.3 to 3.
  • Make InterpolationResult a static nested class and simplify empty-list checks with isEmpty().
  • Replace single-step keypoint advancement with a loop that can advance across multiple keypoints in one call.

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

@Team488 Team488 deleted a comment from Copilot AI Mar 28, 2026
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.

3 participants