Add regression tests for velocity collision glue, Kalman tracks, and OpenDRIVE geometry - #29
Draft
cursor[bot] wants to merge 1 commit into
Draft
Add regression tests for velocity collision glue, Kalman tracks, and OpenDRIVE geometry#29cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
…OpenDRIVE geometry Cover VelocityLocalPlanner obstacle_polygons hot-path wiring, KalmanTracker ID/association lifecycle, and previously untested arc/spiral/lane-offset parsing. Co-authored-by: Majid Khonji <majid-khonji@users.noreply.github.com>
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.
Summary
Adds focused regression coverage for high-risk paths that remained untested on
dev, while avoiding duplication of open drafts #17/#20/#22/#23/#24/#25/#26/#27/#28.Risky behavior now covered
VelocityLocalPlanner.profile_trajectoryobstacle_polygons glue: with agents,check_collisionreceives precomputed polygons (and precompute getstotal_time/ thresholds / inflation, not latticebeside_*windows); without agents the kwarg staysNoneand precompute is skippedKalmanTrackerassociation lifecycle: persistent track IDs across frames with positive velocity estimate; detections beyondgate_distancespawn new IDs; tracks prune aftermax_missed;Noneperception model raises_get_lane_offset_at_sselects the latest applicable polynomial segmentTest files added/updated
test/c20_planning/test_c27_local_behavioral_and_velocity_planners.pytest/c10_perception/test_c15_kalman_tracker.py(new)test/c10_perception/test_c18_hdmap_parser.pyWhy these tests materially reduce regression risk
Velocity profiling is the default local-plan speed path; dropping
obstacle_polygonssilently changes collision semantics vs predictor-gated precompute. Kalman association owns persistent agent IDs and estimated velocity used by prediction/planning. Arc/offset parsing feeds HD-map centerlines—wrong geometry corrupts global plans on curved roads.Validation
All 33 tests passed. No production code changes.