feat: add per-frame 2D visualization (static demo) - #11
Merged
Conversation
src/tracking/evaluation/interactive.py
- _ggiw_to_ellipse(): GGIW extent → {ext_a, ext_b, ext_theta, x, y, vx, vy}
- run_once(): add record_frames flag; captures GT/obs/est snapshots per frame
- run_simulation_json(): include frame_data (sensor_origin + frames[]) from MC run 0
scripts/generate_demo.py
- Runs run_simulation_json for selected/all scenarios
- Writes docs/data/demo_<scenario>.json
docs/demo.html
- Canvas 2D renderer: GT rectangles (green), LiDAR points (yellow),
GGIW estimate ellipses (red), velocity arrows, sensor origin marker
- Frame slider + Play/Pause/Step/Reset controls
- Auto-fit coordinate transform with grid and axis labels
- Missed-detection badge for miss frames
- Per-scenario summary metrics strip
- Loads all scenarios from docs/data/ via fetch (falls back gracefully)
tests/tracking/test_interactive.py (+10 tests)
- frame_data present and correctly nested
- frame index sequential, GT fields valid, obs pairs finite
- est ellipse axes positive (guards eigenvalue sign bugs)
- missed frames have empty obs + missed=True flag
- record_frames=False → snapshots is None
- record_frames=True → snapshots length matches n_frames
Usage (local preview):
uv run python scripts/generate_demo.py --all
cd docs && python -m http.server 8080
# open http://localhost:8080/demo.html
https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL
YoshiRi
force-pushed
the
claude/review-repository-status-1GXDH
branch
from
May 5, 2026 14:28
74fbac0 to
f1fa3c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/tracking/evaluation/interactive.py
scripts/generate_demo.py
docs/demo.html
GGIW estimate ellipses (red), velocity arrows, sensor origin marker
tests/tracking/test_interactive.py (+10 tests)
Usage (local preview):
uv run python scripts/generate_demo.py --all
cd docs && python -m http.server 8080
open http://localhost:8080/demo.html
https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL