Add regression tests for start pose and Frenet XY lookup - #17
Draft
cursor[bot] wants to merge 2 commits into
Draft
Add regression tests for start pose and Frenet XY lookup#17cursor[bot] wants to merge 2 commits into
cursor[bot] wants to merge 2 commits into
Conversation
Cover State.set_start/reset, BasicSim pose restore without despawn, factory c40_start_pose wiring, and convert_sd_to_xy extrapolation before the path start. Co-authored-by: Majid Khonji <majid-khonji@users.noreply.github.com>
executer.ego_state aliases pm.ego_vehicle; assert distinct plant ego via world.get_ego_state(). Co-authored-by: Majid Khonji <majid-khonji@users.noreply.github.com>
This was referenced Jul 31, 2026
Draft
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 recent merged behavior that shipped without matching tests.
Risky behavior now covered
State.set_start/reset: profile start snapshot restores full agent state (including velocity/type), not just x/y/thetaBasicSim.reset: restores ego + NPC start poses and keeps agents/controllers (does not despawn)executor_factory+c40_start_pose: world and stack ego both initialize from the profile start pose; empty list falls back to plan startTrajectoryTracker.convert_sd_to_xy: Frenetsbefore path start extrapolates along the first segment instead of snapping to wp0Test files added/updated
test/c10_perception/test_c11_state_start_reset.py(new)test/c40_execution/test_c46_basic_sim_spawn.pytest/c50_common/test_c54_trajectory_waypoint_update.pytest/c60_apps/test_c62_factory_smoke.pyWhy this reduces regression risk
These paths sit on reset/spawn, stack assembly, and Frenet geometry used by planners/controllers. Silent regressions here break simulation reset, wrong spawn velocity restore, mis-placed ego at startup, and incorrect lateral/path conversions near the trajectory start.
Validation
All 30 tests passed. No production code changes.