Skip to content

Damiano/cosim steering setter - #599

Open
01Dami23 wants to merge 2 commits into
Emerge-Lab:10_bernhard_devfrom
01Dami23:damiano/cosim-steering-setter
Open

01Dami23 wants to merge 2 commits into
Emerge-Lab:10_bernhard_devfrom
01Dami23:damiano/cosim-steering-setter

Conversation

@01Dami23

@01Dami23 01Dami23 commented Oct 1, 2026

Copy link
Copy Markdown

set_agent_states derives both the steering angle and the lateral acceleration from one yaw rate, with the speed floored at 1 m/s. Above 1 m/s that is exact. Below it, one number cannot carry both: a stopped car that still holds its wheels turned reads steering 0. The next step then starts from the wrong steering, under the 0.6 rad/s rate limit.

  • c_set_agent_states takes an optional steering array. When given, the angle is kept and accel_lat = v² · tan(steering) / wheelbase, as in c_step's jerk dynamics. NULL keeps today's behaviour, so the CARLA and nuPlan co-sim are unchanged.
  • vec_set_agent_states and Drive.set_agent_states(..., steering=None) pass it through. A non-finite steering is rejected.
  • New test test_set_agent_states_steering_is_state_below_1mps; existing setter tests updated for the new argument.

Needed by the AlpaSim co-sim, whose own integrator tracks the steering angle as state.

@01Dami23
01Dami23 force-pushed the damiano/cosim-steering-setter branch from d050d07 to 75643bc Compare October 1, 2026 15:13

This branch has not been deployed

No deployments
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