sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Collision Between Vehicles in Junctions

Open LekYang opened this issue 1 year ago • 6 comments

I came across a previous post stating that collisions in junctions shouldn't naturally occur. However, in my simulations, I'm observing these collisions occasionally and I'm unsure which settings might be causing this issue. Therefore, I'm seeking clarification on potential settings that could unintentionally lead to vehicle collisions.

here are more simulations settings: image

My vehicles are spawned in with the following settings: -0.4 initial impatience traci.vehicle.setSpeedMode(vehicleID,30) traci.vehicle.setSpeed(vehicleID, -1)

LekYang avatar Jan 06 '24 07:01 LekYang

By setting traci.vehicle.setSpeedMode(vehicleID,30), you have chosen deliberately to allow unsafe following speeds. See the documentation of the speed mode.

m-kro avatar Jan 08 '24 08:01 m-kro

From the documentation, it is highlighted bold "disregard". If my understanding is correct, If enabled, the vehicle might disregard right-of-way rules for vehicles already inside the intersection. that is why i disable it. image

Anyways, I have tried setting speed mode to 31 and 30 and it still leads to collisions. I think the collision happened because one of the vehicles was already attempting to cross the intersection but had started braking due to a vehicle blocking it's path. I believe the other vehicle might have misinterpreted this action as a sign that the first vehicle wasn't crossing, which ultimately led to the collision. Could this behavior be caused by impatience? image

LekYang avatar Jan 08 '24 09:01 LekYang

Please run your simulation again without setting speed mode at all. If you still encounter collisions, you can attach an archive with your scenario data here for us to check.

m-kro avatar Jan 08 '24 10:01 m-kro

@LekYang Do you still have the problem or can we close here? Please provide us with the scenario to reproduce it ourselves in case you still struggle...

m-kro avatar Jan 17 '24 09:01 m-kro

test.zip I have attached the scenario, let me know if there is anything else you need

LekYang avatar Jan 18 '24 01:01 LekYang

Vehicles collide even without any speed mode changes...

m-kro avatar Jan 23 '24 15:01 m-kro