Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Loading the scenario or simulation using TraCI

Hello,
I was trying to only load (not start the simulation) the simulation network or scenario using TraCI, particularly the following code (ref- https://sumo.dlr.de/daily/pydoc/traci.main.html). 

try:
        traci.load(['-c', 'run.sumo.cfg']) #only loads the simulation or scenario, not starts
        print("TraCI program loads the network successfully")
    except:
        print("TraCI program is unable to load the network")

Unfortunately, it always prints the exception part, that is, the program fails to load the network.

Can anyone let me know how to only load the network, not start is through TraCI?

regards,
Dillip Rout 

Back to the top