I am using planner to plan vehicle routes, i create plan every X seconds (usually 20), for that i need vehicles loaded before they enter network (e.g. from time 0 to 20). For now i accomplish this by parsing the routes.rou.xml file, but i would like to be able to do this using TraCI.
I read at: https://sumo.dlr.de/docs/Simulation/VehicleInsertion.html, that vehicles are loaded in chunks, but by setting "--route-steps 0" i can load all vehicles at once (all of them are in traci.simulation.getLoadedIDList()
at time step 0), which is not ideal for longer simulation with thousands of cars, but even with the vehicles loaded, I am unable to find any function to retrieve their time of departure. At: https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html#Device_and_LaneChangeModel_Parameter_Retrieval_0x7e I didnt find any variable corresponding to departure time of vehicle and traci.vehicle.getParameter(vehicle_id, 'depart')
returns empty string.
So i would like to know how to either force SUMO to load vehicles every X seconds (time steps), or find time of departure of vehicle (found by their id) using TraCI.