Skip to content

Reject estimators the moving coop simulator cannot run - #8

Merged
Whyater merged 1 commit into
mainfrom
fix/coop-estimator-guard
Nov 4, 2026
Merged

Whyater merged 1 commit into
mainfrom
fix/coop-estimator-guard

Conversation

@Whyater

@Whyater Whyater commented Nov 4, 2026

Copy link
Copy Markdown
Owner

The moving coop simulator only keeps a real 6-state covariance for the constant-velocity (cv) estimator. With ca, ct or imm, it ran anyway: positions came from the chosen estimator, but every shared and fused track carried a placeholder identity velocity covariance, and the output was still labelled with that estimator.

CoopSwarmConfig now raises a ValueError for any estimator other than cv, with a message naming the one that was passed.

Testing

  • New sim/tests/test_coop_full_track_estimator.py: 3 of 5 tests fail on main (77be94f) and all 5 pass with the fix.
  • All 63 coop and runner tests pass.
  • Every registered coop run (d6, d7, s7-coop) uses cv; s7-coop output is byte-identical with and without the change, so no registered result moves.

Separate from #7 and based on main; the two touch different files.

@Whyater
Whyater merged commit 62693e2 into main Nov 4, 2026
2 checks passed
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.

1 participant