Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to retrieve these numbers using traci?

I'm sorry let me rephrase, how do I retrieve the loaded, departed and arrived? Do you mean to use traci.simulation.get_load()?

On Thu, Feb 10, 2022, 9:48 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
it's the sum of the values retrieved in every simulation step.


Am Do., 10. Feb. 2022 um 14:37 Uhr schrieb Nao Tomori <jeremiahferrer26@xxxxxxxxx>:
How to do I tally the departed loaded and arrived?

On Thu, Feb 10, 2022, 9:28 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
insertion-backlogged: simulation.getPendingVehicles
running: vehicle.getIDCount()

for other counts, you can only retrieve the number of changes in the last step and must tally the sum yourself:
simulation.getLoadedNumber
simulation.getDepartedNumber
simulation.getArrivedNumber

you cannot retrieve discarded vehicles.

Am Do., 10. Feb. 2022 um 13:08 Uhr schrieb Starlight Charlotte <jeremiahferrer26@xxxxxxxxx>:

 

How do I retrieve these numbers using traci?

 

I’ve tried using traci.simulation.getLoadedNumber() it appeared as 4 then 0 after that

 

 

Sent from Mail for Windows

 


Virus-free. www.avast.com
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top