Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to add overtaking in SUMO

Never modify a .net.xml file directly.
To support opposite direction driving in a network, run:
netconvert -s old.net.xml --opposites.guess -o new.net.xml
You can also set lane attribute 'opposite' in netedit.

Am Do., 3. Feb. 2022 um 14:26 Uhr schrieb Ifezue Obiako <vincentobiako@xxxxxxxxx>:
Would the line of code for opposite lane driving look something like what is depicted below if it were implemented in a .net file?

image.png

On Thu, Feb 3, 2022 at 6:03 AM Ifezue Obiako <vincentobiako@xxxxxxxxx> wrote:
Hello Everyone

I currently have a .net file that I am thinking about adding overtaking behavior. The idea is when one bus comes from behind another bus on a different bus route but at the same stop I would like the bus behind to overtake the other if the other bus is taking too long. Is there a way for the bus behind to overtake the leading bus (i.e., teleporting ahead of the leading bus)?

I have looked at the documentation on opposite-direction driving, but it seems like you can only explicitly call "neigh" in an .edge.xml file rather than a .net file. The reason why I asked if it is possible to do this in a .net file is because I already have a functioning .net file established and I would like to edit it from there.

For reference, my .net and additional files are attached to this email. The place I was trying to add overtaking is at lane -467228692#3_1, where the lane 467228692#3_1 is used to overtake at the bus stop.

Thank you in advance for your help
Ifezue 
_______________________________________________
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