Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Lane change duration

Yes. The vehicle will try to move to that lane and then stay on it for the next 10 seconds and attempts for reaching the target lane are made in every action step until that point (i.e. every second).

Am Do., 17. Feb. 2022 um 18:02 Uhr schrieb Hriday Sanghvi via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello all,

Does the command:

traci.vehicle.changeLane(vehID="v", laneIndex=0, duration=10)

mean that vehicle with ID "v" will try to change lane to lane 0 for the next 10 seconds - until traci.vehicle.couldChangeLane(vehID="v", direction=+1) evaluates to True? So if an action is taken by the vehicle at every second, it means it will try to change lane for the next 10 steps (or 10 seconds, since every simulation step = 1s by default).
 
Thank you.

Sincerely,
Hriday.
_______________________________________________
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