sumo icon indicating copy to clipboard operation
sumo copied to clipboard

collision stop

Open MarMar-s opened this issue 1 year ago • 7 comments

Hello,

I am trying to simulate collisions on the road and have set the collision.stoptime value to 30 seconds to observe queues forming due to the collisions. However, in the simulation, I notice that vehicles mostly go through the collided cars instead of stopping behind them. I have attached a short video of the simulation for your reference. I would be grateful for any assistance you can provide.

Thank you in advance for your reply.

https://github.com/eclipse-sumo/sumo/assets/102868910/37c929eb-a27d-4fdd-97b9-e4447e2f410b

MarMar-s avatar Jun 03 '24 14:06 MarMar-s

Are the vehicles configured such they would be able to brake in time (e.g. vehicle type attribute tau, decel) before hitting the vehicle in front? If yes, then feel free to provide a small example scenario.

m-kro avatar Jun 03 '24 14:06 m-kro

Here, to see the effect of limited visibility, I ignore leaders who have a distance of more than 20 meters from their followers using Traci.

MarMar-s avatar Jun 03 '24 15:06 MarMar-s

are you using setSpeedMode to override safety features?

namdre avatar Jun 04 '24 06:06 namdre

No, I just use traci.vehicle.setParameter(vehicle, "carFollowModel.ignoreIDs", leader) to ignore leaders when they have a distance of more than 20 meters from their follower.

MarMar-s avatar Jun 04 '24 08:06 MarMar-s

possible reasons for collision:

  • removal from ignoreIDs is not working
  • even when vehicle are no longer ignored, 20m is not enough to brake safely when there is a high speed difference

You can use sumo-gui to check whether the vehicles start to react and brake at distances below 20m (color-by-acceleration might help)

namdre avatar Jun 04 '24 10:06 namdre

Thank you very much for your time and your reply. I will check it out.

I would like to know if you mean that this may be the reason why other vehicles cross the collided vehicles? I mean that I want the road to be blocked by the collision, but the vehicles pass through it.

MarMar-s avatar Jun 04 '24 10:06 MarMar-s

This does sound as if the "ignoreIDs" feature is still active.

namdre avatar Jun 04 '24 12:06 namdre

Closing due to lack of feedback

m-kro avatar Aug 21 '24 12:08 m-kro