Skip to content

Improve H2H LapTimer and collision recovery behavior#22

Merged
Tinker-Twins merged 4 commits into
Tinker-Twins:AutoDRIVE-Simulatorfrom
jooncheol:h2h-sidebyside
Jul 17, 2026
Merged

Improve H2H LapTimer and collision recovery behavior#22
Tinker-Twins merged 4 commits into
Tinker-Twins:AutoDRIVE-Simulatorfrom
jooncheol:h2h-sidebyside

Conversation

@jooncheol

@jooncheol jooncheol commented Jul 2, 2026

Copy link
Copy Markdown

first 3 commits are bug fix in H2H mode
last commit is applying the respawning behavior that put two cars side by side at the last check point near by the collision point instead of respawning two cars on different last check point.

(In case of using AutoDRIVE RCT, the penalty is given to faulty car by filtering the steer/trottle command for N seconds so that the victim car can take the compensation. Also the penalty given car start from collision point as near as possible. This is the reason why respawning two cars side by side at the same check point does make sense.)

  1. f0ac596 -> bug fix of respawning of 2nd car in H2H mode
  2. cf6ee60 -> big fix of checking finish line of 2nd car
  3. 343b332 -> bug fix of v2's front camera image resolution by comment out of original code (Maybe better remove the comment out codes)
  4. b2910b6 -> a bit complicate but it has the proposal of putting two cars side by side by calculating the car width and also prevents repeated collision during the respawning time.

This PR doesn't have impact on single time trial mode racing.

jooncheol added 4 commits July 3, 2026 00:30
Handle vehicle-to-vehicle collisions by respawning the collision pair
side by side at the selected checkpoint. Add a grace period to avoid
immediate repeat vehicle and racetrack collision handling.
@Tinker-Twins Tinker-Twins self-assigned this Jul 17, 2026
@Tinker-Twins Tinker-Twins added the enhancement New feature or request label Jul 17, 2026
@Tinker-Twins Tinker-Twins reopened this Jul 17, 2026
@Tinker-Twins

Copy link
Copy Markdown
Owner

Thanks a lot for the contribution, @jooncheol! We have reviewed your commits, and PR #22 looks good to be merged upstream. Cheers!

@Tinker-Twins
Tinker-Twins merged commit 2c77c1e into Tinker-Twins:AutoDRIVE-Simulator Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants