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

Hello  Jakob,

 

i didn’t know all the features of the bestlanes traci call…

I will add it to my subscription and then the moveto will work fine because I will know where to move to J

 

Thank you very much!

 

Cheers,

Kevin

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Jakob Erdmann
Gesendet: Dienstag, 31. März 2020 19:36
An: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: 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.

 

regards,

Jakob

 

 

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!

 

Cheers,

Kevin

 

_______________________________________________
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