Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Starting Conditions

- you can add cars via traci (traci.vehicle.add) : https://sumo.dlr.de/docs/TraCI.html
- you can write a script that generates xml inputs for the simulation (i.e. https://sumo.dlr.de/extractTest.php?path=complex/tutorial/traci_tls/plain)
- you can use ready-made scripts to generate traffic (also with specific numbers): https://sumo.dlr.de/docs/Tools/Trip.html#randomtripspy
  (and there are many more tools for traffic generation in sumo/tools)

Am Mi., 13. Nov. 2024 um 13:52 Uhr schrieb Toprak via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi,
What is the best practice to initiate a simulation with a specific number of cars. I was using an additional file and input for the first time interval the occupancy but apparently it is not working. After researching it seems like there’s no straightforward method of adding lets say 5 cars to road 1 and 2 cars to road 2 and creating routes for these cars using a script?
Regards,
Toprak
_______________________________________________
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