Skip to content

Improve ball filter stability - #2767

Draft
schmidma wants to merge 3 commits into
HULKs:mainfrom
schmidma:ball-filter-stability
Draft

Improve ball filter stability#2767
schmidma wants to merge 3 commits into
HULKs:mainfrom
schmidma:ball-filter-stability

Conversation

@schmidma

@schmidma schmidma commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix ball filter association and velocity covariance handling.
  • Use a chi-square 95% threshold for maximum matching cost.
  • Add debug-only camera-matrix cache and projected-ball diagnostics for timing issues.

Motivation

Ball estimates were unstable under head motion. This keeps the filter math consistent and exposes timestamp/cache evidence without changing cache APIs or behavior.

Implementation

  • Include percept covariance in hypothesis/percept Mahalanobis matching.
  • Keep moving/resting covariance updates in the correct state dimensions.
  • Log camera-matrix nearest lookup time deltas, cache window, estimated capacity, head orientation, and projected percept positions at debug level only.

Verification

  • cargo nextest run -p ball_filter
  • cargo test --doc -p ball_filter
  • cargo clippy -p ball_filter --all-targets -- -D warnings

@github-project-automation github-project-automation Bot moved this to In Progress in Development Jul 3, 2026
@schmidma schmidma self-assigned this Jul 3, 2026
@schmidma
schmidma force-pushed the ball-filter-stability branch from 7110b08 to 8006106 Compare July 4, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant