Either upgrade to sumo version 0.32.0 or use traci._connections["sim1"]
2018-07-17 12:49 GMT+02:00 Thanos Tasakos <[email protected]>: > 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 <[email protected]> > 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. >> See http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python# >> Controlling_parallel_simulations_from_the_same_TraCI_script >> >> 2018-07-16 18:37 GMT+02:00 Thanos Tasakos <[email protected]>: >> >>> 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 >>> [email protected] >>> 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 >> [email protected] >> 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 > [email protected] > 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 [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
