Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Multiple sumo instances

Either upgrade to sumo version 0.32.0 or use traci._connections["sim1"]

2018-07-17 12:49 GMT+02:00 Thanos Tasakos <thanos.tas@xxxxxxxxx>:
Hello,
i tried to use the connections as objects, as described in the linkĀ 
traci.start(["sumo", "-c", "sim1.sumocfg"], label="sim1")
 traci.start(["sumo", "-c", "sim2.sumocfg"], label="sim2")
 conn1 = traci.getConnection("sim1")
 conn2 = traci.getConnection("sim2")
and i get this error
AttributeError: module 'traci' has no attribute 'getConnection'
I looked in the __init__.py of traci library and there is no such method implemented

Is there an error from my side?

Kind regards,
Thanos Tasakos

On Tue, Jul 17, 2018 at 12:30 AM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
You can control multiple TraCI instances from a single script either by assinging a label to each connection or by using the connections as objects.

2018-07-16 18:37 GMT+02:00 Thanos Tasakos <thanos.tas@xxxxxxxxx>:
Hello,
i want to run in parallel multiple sumo instances (servers) and connect to them using traci. Can i have multiple traci clients so that i have a 1 to 1 mapping (client to server)?
Each sumo instance is a different experiment and i want to take some statistics every x seconds from every experiment and if possible combine them. Is it possible?

Kind regards,
Thanos Tasakos

_______________________________________________
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



_______________________________________________
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



_______________________________________________
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