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(): traci.vehicle.getPosition(vehID) Am Di., 1. März 2022 um 14:59 Uhr schrieb amir kr <[email protected]>: > 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, > Amir, > _______________________________________________ > 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
