[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Add vehicle depart position format
|
The string parameters in vehicle.add use the same syntax as the xml attributes of the same name. Sending departPos="25" should place the vehicle on position 25. Negative values are allowed and count backwards from the end of the lane.
Dear list,
In my traci python program I am using traci.vehicle.add[1] to add
vehicles. I would like to add a vehicle in the middle of an edge, but
I am not sure what is the format of the departPos formal parameter.
Its type is string and its default value is 'base'; how can I put a
vehicle in the middle of an edge? Or at its end?
I tried to put the distance in meters from the the edge source, but it
has apparently no effect.
As usual, a properly linked "RTM answer" is welcome and thanks.
Cheers,
Paolo
[1]
https://sumo.dlr.de/pydoc/traci._vehicle.html#VehicleDomain-add
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user