You said you are using TraaS but your client code looks like python. It
should not be necessary to mix the two.
Try to follow either one of the documented approaches
* http://traas.sourceforge.net/cms/index.php?id=examples-1
* http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python

regards,
Jakob

2016-06-11 16:39 GMT+02:00 Frederik Preuß <[email protected]>
:

> Hi,
>
> i'm new in python.
> I want to connect with Traci to a running Sumo execution. Later this
> should be a server connection, but now i tried with localhost. I have
> started the execution with TraaS with a static port.
> My code to connect looks like this:
>
> def run():
>     traci.init(PORT,1,'localhost')
>     print (traci.simulation.getCurrentTime())
>     print (traci._vehicle.VehicleDomain.getPosition('0'))
>     traci.close()
>     sys.stdout.flush()
>
> There are no exceptions.
> What am i doing wrong?
>
> Greetings
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to