Either:
- record the desired values continuously as long as the vehicle is still
part of the simulation
- let the simulation write --tripinfo-output and parse this from within
your traci script while it's being written (the file contents are
flushed/updated after every simulation step)



Am Di., 24. Mai 2022 um 15:46 Uhr schrieb Nino Michniok <mix...@gmx.de>:

> Hi everybody,
>
> I just got started with SUMO and TraCI stuff. I need the waiting time of
> vehicles similar to what “--duration-log.statistics” does but I need the
> values within the running script.
> So I tried to calculate the waiting time of vehicles that just arrived at
> their destination but this does not work because these vehicles instantly
> vanish. Has anybody an idea of how to do this?
>
> Cheers!
> Nino M
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to