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.51k stars 1.42k forks source link

collision stop #14967

Closed MarMar-s closed 1 month ago

MarMar-s commented 4 months ago

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

m-kro commented 4 months ago

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.

MarMar-s commented 4 months ago

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.

namdre commented 4 months ago

are you using setSpeedMode to override safety features?

MarMar-s commented 4 months ago

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.

namdre commented 4 months ago

possible reasons for collision:

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

MarMar-s commented 4 months ago

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.

namdre commented 4 months ago

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

m-kro commented 1 month ago

Closing due to lack of feedback