Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to change the lane direction in simulation

The only way to achieve this is by preparing both lanes/edges beforehand:
- an extra lane in the forward direction that is forbidden initialize (disallow="all"),
- an edge in the opposite direction that is geometrically on top of that lane.
At some point in the simulation you can change permissions on the lane as well as the opposite edge (allow the lane and disallowing the edge).
- at a fixded time via xml (rerouter/closingLaneReroute)
- on any condition via TraCI (traci.lane.setAllowed/setDisallowed)

regards,
Jakob

Am Do., 11. Juni 2020 um 09:22 Uhr schrieb Zhang Jackie <zhangzuoting@xxxxxxxxx>:
Hi Jakob,

Thanks for your help.
I know the opposite lane is allowed to use by the option --opposite.guess,

However, I want to know if I can change the lane direction in the simulation, for example,
from 10s to 50s, the lane direction of A1B1_0 is upstream, and in rest time, its direction is downstream.
Can I control the direction by function or something else, especially be triggered by some condition, like the density of the vehicles on the
lane.

Hope to hear from you soon.

Jakob Erdmann <namdre.sumo@xxxxxxxxx> 于2020年6月11日周四 下午2:47写道:
set option --opposites.guess when building the network or reprocessing it:

netconvert -s old.net.xml --opposites.guess -o new.net.xml

Am Do., 11. Juni 2020 um 05:32 Uhr schrieb Zhang Jackie <zhangzuoting@xxxxxxxxx>:
Hi All,

I'd like to ask that, if there's a way to change the lane direction after the simulation started. 
For example, in the grid network shown as below, 2 lanes for dual direction edges.
Vehicle flows move from 1 to 2, but the opposite lanes are empty, in the case, the vehicles can change to opposite lanes after the lanes changes directions.

How to set it? Thanks a lot.
image.png
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top