Collision Between Vehicles in Junctions
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:
My vehicles are spawned in with the following settings: -0.4 initial impatience traci.vehicle.setSpeedMode(vehicleID,30) traci.vehicle.setSpeed(vehicleID, -1)
By setting traci.vehicle.setSpeedMode(vehicleID,30), you have chosen deliberately to allow unsafe following speeds. See the documentation of the speed mode.
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.
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?
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.
@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...
test.zip I have attached the scenario, let me know if there is anything else you need
Vehicles collide even without any speed mode changes...