Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Inquiry about Bus Bay Modelling

- if the bus bay has a different edge, use edge priority attribute as Pedro correctly described. The absolute values don't matter. The edge with a higher numerical value gets right-of-way
- if the bus bay is another lane on the same edge then the lane with the higher index will get priority by default. To change this you can set connection attribute pass=true for the connection from the lower-index lane
- your second image shows a zipper junction where both connections have equal priority and merging is according to first-come-first-served / alternating. In all other cases, vehicles will try to change lanes to avoid the low-priority connection. This results in the "vertical shift" you observed because the default simulation settings use instant lane change. Either
  - prevent lane changing from the bus bay to the through-lane using attribute changeLeft/changeRight https://sumo.dlr.de/docs/Networks/PlainXML.html#lane-specific_definitions (this will force the bus to yield at the low-priority connection
  - or use settings for smooth lane change https://sumo.dlr.de/docs/Simulation/SublaneModel.html 

regards,
Jakob

Am Mi., 4. März 2026 um 21:58 Uhr schrieb Pedro Oliveira via sumo-user <sumo-user@xxxxxxxxxxx>:
In the last case, I believe it's possible to resolve by changing the priority orders. The bus lane has a white stop line, while the car lane has a gray stop line, indicating that buses have priority.

In the intersection modeling, you can set the edge of the road to 0 for cars and -1 for buses.

In the other two cases, I don't know how to help.

Sds,

Pedro Oliveira

Em qua., 4 de mar. de 2026 às 15:06, Kelvin via sumo-user <sumo-user@xxxxxxxxxxx> escreveu:
Dear Developers,

I'm currently working on a project modelling bus bay operations. However, I encounter some issues and would seek help.

As shown below, I try to model the bus bay by setting an edge with two lanes. The simulation of entering the bus bay is fine but when the bus leaves the bus bay, it shifts vertically to the through lane instead of having a smooth trajectory from the bus bay to the through lane.
image.png

Then, I try to model using a bus lane and a short priority junction at the end of the bus bay. However, no matter how I set which lane is major or minor, the buses don't wait for a gap.
image.png

Currently, I model the bus bay as a separate edge. The bus "shifting" problem is solved but the buses still don't give way to passenger cars first.
image.png

May I know how I should code to prevent buses shifting when they merge at junctions, and force buses to give way to passenger cars? Also, if I want to model bus priority, how can I force passenger cars to give way to buses?

Many thanks!

Best regards,
Kelvin
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Não contém vírus.www.avast.com
_______________________________________________
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