Skip to content

Add speed-conditioned dynamics limits - #574

Merged
vcharraut merged 13 commits into
3.0from
vcha/add-cond-speed
Aug 27, 2026
Merged

Add speed-conditioned dynamics limits#574
vcharraut merged 13 commits into
3.0from
vcha/add-cond-speed

Conversation

@vcharraut

@vcharraut vcharraut commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What

  • Add a per-agent speed-conditioning coefficient.
  • Scale classic and jerk dynamics’ forward-speed limits by that coefficient.
  • Separate nominal forward, absolute forward, and backward speed constants.
  • Normalize speed observations against the absolute 60 m/s limit.
  • Keep IDM capped at the nominal 40 m/s limit.
  • Update dynamics tests and notebook coefficient labels.

Why

Speed conditioning allows agents to learn different driving behaviors based on their assigned maximum speed. Separate constants clarify the distinction between the nominal dynamics limit, the maximum conditioned limit, and reverse-speed handling.

Notes

  • Speed conditioning defaults to 1.0 when reward randomization is disabled.
  • Randomized limits range from approximately 26.7 m/s to 60 m/s.

@vcharraut vcharraut changed the title Add speed conditioning and update speed constants Add speed-conditioned dynamics limits Aug 25, 2026
@vcharraut
vcharraut marked this pull request as ready for review August 25, 2026 16:35
Comment thread pufferlib/pufferl.py Outdated
@Kait0

Kait0 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

otherwise looks good. Needs a healthy run to double check.

@Victorbares Victorbares left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vcharraut
vcharraut merged commit fab665f into 3.0 Aug 27, 2026
12 checks passed
@vcharraut
vcharraut deleted the vcha/add-cond-speed branch August 27, 2026 07:35
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.

3 participants