Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Loading Files

Hello,
- you can use the function traci.load to restart the simulation again with arbitrary options from within your traci script
- you could also use sumolib to read the network and start traci only after the routes are built. This library is better suited to retrieve all kinds of static information from a .net.xml file. See http://sumo.dlr.de/wiki/Tools/Sumolib
- or you could start sumo without a route file and generate the vehicles with traci.vehicle.add at runtime

regards,
Jakob

2018-05-09 21:04 GMT+02:00 Pedro Matuck <pjmatuck@xxxxxxxxx>:
Hello,

I'm using Traci to generate a .rou.xml file. However, it's generated based on number of nodes and edges which I get from GetIDList methods.

To access the GetIDList, I need to start the simulation using .sumocfg file which reads a .rou.xml file. I need to create the rou.xml before load .sumocfg.

It's possible to load the network file (to access the nodes and edges information) and after some instructions start the simulation with .sumocfg file?

Thanks.

--
Pedro J. Matuck

"The hardest battle lies within."

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top