Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Driving between two lanes

how about:  if veh_ln_pos >= 50 and traci.vehicle.getLateralLanePosition(veh_id) == 0:


Am Mi., 27. Mai 2020 um 16:44 Uhr schrieb Reza <Haghani.m.r@xxxxxxxxx>:
Thank you very much. I really appreciate your help. I did not understand how
I should call the changeSublane(veh_id, 1.6) command once. When I put it
under the condition "If veh_ln_pos == 50," it does not do anything. And,
when I put it under the condition "if veh_ln_pos >= 50," it will call the
command repeatedly as you said. I was wondering to know how I should do it.

Best,
Reza.



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
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