Consider adding a final stop (with parking=true) to each vehicle that keeps it in the simulation after reaching the destination.
Am Mi., 22. Juli 2020 um 13:36 Uhr schrieb Laura Bieker < [email protected]>: > Hello Marcel, > > you could use also use he function getDepartedIDList ( > https://sumo.dlr.de/pydoc/traci._simulation.html#SimulationDomain-getDepartedIDList) > to receive the Vehicle IDs which were inserted into the simulation and > change then the parameter for these vehicles and maybe back if you only > want this for a specific period of time. > > Best regards, > Laura > > Am Di., 21. Juli 2020 um 09:58 Uhr schrieb marcelreppi < > [email protected]>: > >> Hello, >> >> I wanted to add a parameter to vehicles that have arrived based on a >> certain >> condition using TraCI so that it shows up in the routes-info output. >> However, when I iterate through traci.simulation.getArrivedIDList() and >> try >> to add a parameter I get an error because the vehicle was already removed >> from the simulation. >> >> Is there a way to access these vehicles one step before they arrive? >> Or would it be possible to move the actual removal of the vehicles to the >> following simulation step? >> >> Thank you very much! >> >> Best regards >> Marcel >> >> >> >> -- >> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ >> _______________________________________________ >> 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 >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
