eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.58k stars 1.44k forks source link

multiple vehicles target the same parking space #10007

Open namdre opened 2 years ago

namdre commented 2 years ago

The concept of "reservations" is currently used for vehicles that are already on the parkingArea lane. When the parkingArea has onRoad=true, the vehicles may enter the target lane very late (with a final lane change) and reservations do not work. This lead to multiple vehicles targeting the same empty space. Once the first vehicle reaches that space, the vehicle behind is stuck and potentially blocks the egress of other vehicles from their parking spaces.

see tests/sumo/extended/stops/parkingArea_onRoad/long_lots

namdre commented 2 years ago

see tests/sumo/extended/stops/parkingArea_onRoad/congestion

AimanKhan1997 commented 7 months ago

Hey, I wanted to know what is the current status of this bug and if there are any suggested workarounds till the bug is fixed?

namdre commented 7 months ago

as a workaround you could forbid lane changing towards the parking lane, this would force vehicles to enter the lane early. See https://sumo.dlr.de/docs/Networks/PlainXML.html#lane-specific_definitions for attribute explanation. the changes can be done with netedit

AimanKhan1997 commented 7 months ago

Thanks a lot for your quick reply. I don't know if that would help in my case. For my case I am simulating behaviour of charging pods that can charge other vehicles when the charge is requested. I want these vehicles to stay parked until charge is requested. I am having an issue where the charging pod (yellow vehicles) fills the parking lot from behind, even though there space available in front. SUMO still considers the vehicle as waiting even though the vehicle in front leaves. The simulator then reroutes the charging pod to another parking lot even though there is already space available at this parking area as shown in the video. Let me know if you have any other suggestions to solve this issue. Let me know if you need more information,

Thanks again for your quick reply and effort.

https://github.com/eclipse-sumo/sumo/assets/72418210/f0c2c672-b637-4e56-8b36-ea798b61d9e7

namdre commented 7 months ago

if you don't want to simulate the extra road capacity that comes from using/not using the parking lane, consider using a "normal" off-road parking area on a road with two lanes. This is more robust than the on-road parking implementation.

AimanKhan1997 commented 7 months ago

I see, is it possible to combine charging stations with off-road parking as I also want the electric vehicles to charge while they are parked?

namdre commented 7 months ago

Yes. That should work. Let me know if it doesn't. (comments from @m-kro welcome)

AimanKhan1997 commented 6 months ago

Yes, it works. Thanks a lot for your help.

namdre commented 6 months ago

the original bug is still there, only the (unrelated) question was answered.