Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] use moveto with edge instead of lane

A simple solution that should work in networks without special lanes (sidewalk, bike, bus, etc) would be to call moveTo(vehID, edgeID + "_0" , 0)
You could also call vehicle.getBestLanes(). The "best" lane for the vehicle would be the one where offset (offset from best lane) is 0.


Am Di., 31. März 2020 um 17:08 Uhr schrieb Kevin Malena <kevin.malena@xxxxxxxxxxxxxxxx>:

Hey guys,


is there a way to use traci.vehicle.moveto with an edge instead of a lane. For me it is sufficient to „teleport“ the vehicle to the „best“ lane. (Since the best lane seems to be saved somewhere)

I know some walkarounds like removing the vehicle and adding a new one with the new route starting at the specific edge, but since the Traci commands are time consuming I try to reduce them.


I need this function to implement a specific teleport using real inductionloop signals in front of TLS.

When there is no real detection but an detection within the simulation I want to force that teleport.


Thanks for the help!





sumo-user mailing list
To unsubscribe from this list, visit

Back to the top