Pavlos Basaras wrote: > what i want to do is call mypython.py and start everything
I still did not understand what you mean by "calling" an XML file (it is just plain text, not a program). If you want your python script to use Veins' sumo-launchd.py to start SUMO, you can do this as follows: - Instead of starting SUMO, start sumo-launchd.py [1] - Modify your script to connect to sumo-launchd.py instead of SUMO - Modify your script to send, as its first TraCI message, command id 0x75, with two strings as parameters. The first string needs to be "sumo-launchd.launch.xml", the second the contents of the XML launch configuration explained on [2]. This will cause sumo-launchd.py to start SUMO and proxy connections between your script and the running SUMO instance. If you want to see source code that already does that, you can find it on [3]. Best, Christoph [1] https://github.com/sommer/mixim-sommer/blob/veins-2.2/sumo-launchd.py [2] http://veins.car2x.org/documentation/sumo-launchd/ [3] https://github.com/sommer/mixim-sommer/blob/veins-2.2/src/modules/mobility/traci/TraCIScenarioManagerLaunchd.cc#L89 -- Dr.-Ing. Christoph Sommer Institute of Computer Science University of Innsbruck, Austria Phone: +43 512 507-53285 / Fax: -53079 http://ccs.uibk.ac.at/~sommer/ ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
