[sumo-user] Disconnect with Traci

2018-07-10 Thread 胡志强
Dear sumo-users: I am doing a traffic light program to optimize the timing of traffic light by using Traci.But I met a problem,I need to simulate the process again and again,then,I got this error: Could not connect to TraCI server at localhost:55141 [Errno 111] Connection refused

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread Menno van der Woude
Hi Zhiqiang, it seems like SUMO is not running, since the the client cannot connect to the TCP server. Make sure you start SUMO with the --remote-port option as described here: http://sumo.dlr.de/wiki/TraCI#SUMO_startup. If you need to simulate many runs, you will have to automate starting

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread 胡志强
Hi Menno, At the beginning ,it works well,but some time later,it may disconnect with the sever.So ,what's the possible reasons? Best regards, Zhiqiang Menno van der Woude 于2018年7月10日周二 下午8:44写道: > Hi Zhiqiang, > > it seems like SUMO is not running, since the the client cannot connect > to the

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread 胡志强
At the beginning ,it works well,but some time later,it may disconnect with the sever.So ,what's the possible reasons? Best regards, Zhiqiang Menno van der Woude 于2018年7月10日周二 下午8:44写道: > Hi Zhiqiang, > > it seems like SUMO is not running, since the the client cannot connect > to the TCP

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread 胡志强
Hi, My SUMO version is 0.32.0,and I write a loop to simulate for many times, I start SUMO like this: for i in range(2): traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg", "--tripinfo-output", "tripinfo.xml"]) ... ... traci.close() At the

[sumo-user] The reason about disconnect with Traci

2018-07-10 Thread 胡志强
Hi, My SUMO version is 0.32.0,and I write a loop to simulate for many times, I start SUMO like this: for i in range(2): traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg", "--tripinfo-output", "tripinfo.xml"]) ... ... traci.close() At the

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread Jakob Erdmann
- Possibly the simulation cannot start in time because the computer is still busy from closing the previous simulations. You could add the option numTries=100 to traci.start() to diagnose this - Possibly, the simulation cannot start successfully because your computer is out of memory (which might

Re: [sumo-user] Change definition of TLS in runtime

2018-07-10 Thread Jose Monreal Bailey
Hi Jakob, How could I load the new definition and continue from the same spot it was? The steps would be: load tlLogic definition into junction saveState Reload simulation ? How do I achieve each one of these? Best regards, José On Tue, 10 Jul 2018 at 15:39, Jakob Erdmann wrote: > This is

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread Jakob Erdmann
traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg", "--tripinfo-output", "tripinfo.xml"], numTries=100) 2018-07-10 16:46 GMT+02:00 胡志强 : > Hi, > Could you please tell me how add the option numTries=100 to traci.start()? > > Best regards, > Zhiqiang > > Jakob

Re: [sumo-user] Change definition of TLS in runtime

2018-07-10 Thread Jose Monreal Bailey
Thanks Jakob. At the end I am going to control the phase manually, I think it's the best approach for my problem. Best regards, Jose On Tue, 10 Jul 2018 at 18:50, Jakob Erdmann wrote: > I would not necessary suggest that you take the save/load approach. If you > control the traffic light via

Re: [sumo-user] Disconnect with Traci

2018-07-10 Thread 胡志强
Hi Jakob, Thank you,it works.But the problem is also exist,it retries for 101 times then closed and I'm sure that my computer's memory is enough.And I also occurred the error that "connection closed by SUMO",If you want more details,tell me. Best regards, Zhiqiang Jakob Erdmann 于2018年7月11日周三