The mode persists for a vehicle after being set until it is changed again.
To set the mode for all vehicles upon departure you can call this code in
every simulation step:

for vehID in traci.simulation.getDepartedIDList():
  traci.vehicle.setLaneChangeMode(vehID, mode)

Am Do., 7. Mai 2020 um 01:41 Uhr schrieb Reza <[email protected]>:

> Thank you very much Jakob for your help. I was wondering to know how lane
> change mode could be applied in a specific simulation second. I know that
> it
> should be written with an if condition but do not know what is the variable
> for simulation step. I am new to coding with TraCI, sorry for asking simple
> questions.
>
> Kind regards,
> Reza.
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to