Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] getting Trajectory using Traci

Have you considered using fcd-output?
The simplest (though not the most efficient) way to retrieve data from all vehicles is by looping over the list of all ids:

for vehID in traci.vehicle.getIDList():

Am Di., 1. März 2022 um 14:59 Uhr schrieb amir kr <amirhkr1995@xxxxxxxxx>:
Hello everyone,
I want to get the position of all vehicles in each step time but when I want to use traci.vehicle.getPosition(VehID) I do not know what to put instead of VehID because I want to get the position of all vehicles. how can I fix it ?
best regards,
sumo-user mailing list
To unsubscribe from this list, visit

Back to the top