Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emergency braking after ignoring junction blocker #11324

Open
namdre opened this issue Aug 11, 2022 · 1 comment
Open

emergency braking after ignoring junction blocker #11324

namdre opened this issue Aug 11, 2022 · 1 comment

Comments

@namdre
Copy link
Contributor

namdre commented Aug 11, 2022

similar to #11184 but for Krauss/IDM (as noted in #11242)

the code branch for negative gaps causes a discontinuity in behavior

https://github.com/eclipse/sumo/blob/23be5b3f255ef7812f8273bc092a966f27ea351f/src/microsim/MSVehicle.cpp#L2906

@namdre namdre self-assigned this Aug 11, 2022
namdre added a commit that referenced this issue Aug 11, 2022
@namdre namdre added the p:minor label Aug 15, 2022
@namdre
Copy link
Contributor Author

namdre commented Aug 15, 2022

The linked code is fine. What instead happens is this:

  1. veh1.3 is blocked while still partially on the junction
  2. veh1.4 enters the junction and also becomes blocked more 20+ seconds
  3. 0 enters the junction and ignores veh1.4 due to the threshold
  4. veh1.3 and then veh1.4 startsto move again
  5. veh1.4 retains right of way over 0 due to being on the junction first
  6. 0 suddenly "notices" veh1.4 and brakes hard

A possible solution might be to adapt right-of-way rules once a vehicle was stuck on the junction for the threshold duration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant