Hello,
To run the simulation with traci, you need to call the method
traci.simulationStep() repeatedly in your script.
regards,
Jakob

2017-05-26 11:10 GMT+02:00 羅先豪 <[email protected]>:

> Hello,
>
> I just tried to write a very simple program to run sumo with python.
> Here's the final part of the script:
>
> sumoBinary = "D:/sumo/bin/sumo-gui"
> generate_addfile()
> traci.start([sumoBinary, "-c", "005.sumocfg"])
>
> "generate_addfile()" helps me open a new additional file with some car
> flows been written.
>
> The program did generate a new addfile and open sumo-gui automatically,
> but it doesn't work when I press "start". And there's no error message.
> However, I can directly open the sumo-gui to run the simulation without
> python (but with the addfile just made by it).
>
> I wonder why did this happen...?
>
> Thanks!
>
> Al Lo
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to