Hello,
right now, full bidirectional operation is only possible with trains.
You have two methods to emulate the desired behavior for cars:

1) by using opposite direction driving (
https://sumo.dlr.de/docs/Simulation/OppositeDirectionDriving.html)
  - place lots of standing cars as obstacles on the road. Vehicles will be
forced on the opposite side to pass the obstacles.
  - areas without obstacles are the detour locations.

2)
- place two edges going in opposite direction directly on top of each other
(i.e. by setting attribute spreadType="center" and giving them the reversed
geometry).
- use TraCI to detect dangerous situations
- call vehicle.setStop(...,flags=traci.constants.STOP_PARKING) to clear the
road for oncoming traffic and avoid a collision

regards,
Jakob

Am So., 17. Mai 2020 um 03:00 Uhr schrieb K M <kadrimu...@gmail.com>:

> Hello all,
>
> I have a novel situation that I need to model and I would like to know if
> it is technically possible in SUMO:
>
> I must model a one lane road which operates in both directions, i.e. the
> road does not have a lane in each direction, it is literally one lane used
> by vehicles going in opposite directions, obviously towards each other.
>
> (Just for context, the idea is to make the oncoming vehicles somehow
> (perhaps using TraCI or something) avoid colliding into each other by
> detecting each other from a distance and then one of them rerouting into a
> small pit-stop or shoulder or D-tour until it safe to get back on the road
> and continue moving forward.)
>
> Is it even technically possible to code such a road in SUMO?
>
> Thank you,
>
> Kadri
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to