Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO actors persisting in each time step?

There are different ways to accomplish what you request. See https://sumo.dlr.de/docs/FAQ.html#how_do_i_maintain_a_constant_number_of_vehicles_in_the_net

Am Fr., 30. Mai 2025 um 23:54 Uhr schrieb Rami Wilson via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello,

I am trying to use SUMO to run a multimodal simulation with vehicles and pedestrians. I have had success with this so far, but due to the constraints of our project, we need all actors to persist in each timestep for the length of the simulation.

When using randomtrips and traci to run the simulation, the current output looks something like this:

(with 10 vehicles and 10 pedestrians)

Timestep 0.0
Vehicle 1
Vehicle 2
Person 1
Timestep 1.0
Vehicle 1
Vehicle 2 
Vehicle 3
Person 1
Person 2
...

Timestep 50.0
Vehicle 10
Person 10

Actor entries and exits are staggered, and each time step can have any number of actor updates. However, I was hoping I can get an output that is like this:

Timestep 0.0
Vehicle 1
Vehicle 2
...
Vehicle 10
Person 1
Person 2
...
Person 10
Timestep 1.0
Vehicle 1
Vehicle 2
...
Vehicle 10
Person 1
Person 2
...
Person 10

And so on..

I understand this is due to when actors enter / exit the simulation, but is there any way to force the output to include the same amount of actor updates for each time step? Is there a way to force all vehicles to enter and exit the simulation at the same time? Not sure if this should be done while generating routes or when actually running SUMO.

Thank you for this great project!
_______________________________________________
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