Hello, All clients must call simulationStep on their own connection to let the simulation advance. Note, that traci.start() does not return a connection object but you can retrieve it using traci.getConnection(). regards, Jakob
Am Mi., 19. Dez. 2018 um 13:42 Uhr schrieb Benedikt Schott < [email protected]>: > Dear developers, > > > > I am trying to connect multiple traci clients to sumo. Is this feature > fully supported in the current release 1.1.0? > > > > In a last step we want to combine the c++ traci client and another python > client. We have tested both, 2 python clients, 2 c++ clients, and > combinations. None of them are working in our setup so far. > > > > We are using the following workflow, however are not able to control sumo > simulation steps or access the subscription when using more than one client: > > > > 1. Set “num-clients 2” option in the config file (we also tried the > command line option) > > 2. sumoCmd = ["sumo", "-c", cfg] > connection1 = traci.start(sumoCmd, port=8813) > > traci.setOrder(1) > connection2 = traci. connect(port=8813, numRetries=10, host="localhost") > > connection2.setOrder(2) > > > > step = 0 > > while step < 1000: > > traci.simulationStep() > > step+=1 > > > > Is there anything else to do? > > > > > > Mit freundlichen Grüßen > > > > *Dr.-Ing. Benedikt Schott* > > Senior Entwickler Simulationslösungen > > ☏ +49 89 74 7377-41 > > __________________________________________________________ > > *TESIS GmbH* ▪ Baierbrunner Str. 23 ▪ D-81379 München ▪ www.tesis.de > > Geschäftsführung: Dr. Cornelius Chucholowski, Maximilian Chucholowski > > Amtsgericht München, HRB 115649 ▪ USt-Id DE-185 446 804 > > __________________________________________________________ > > > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.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://www.eclipse.org/mailman/listinfo/sumo-user
