[sumo-user] Problems when using multiprocessing in SUMO

2018-09-10 Thread Zhiqiang Hu
Hi Jakob, I need to use average SUMOs in my project,and I use traci.start([sumoBinary,"--start","-c","data/cross.sumocfg","--tripinfo-output","/home/hzq/hzq_disk2/test_A3C_tripinfo/tripinfo_%s.xml" % i_name]) to start SUMOs. And it works well,but, when I use

[sumo-user] Question about edge value retrieval

2018-08-20 Thread Zhiqiang Hu
Hi Jakob, Is there a function in edge value retrieval same as traci.vehicle.getAccumulatedWaitingTime()? Thanks in advance! Best regards, Zhiqiang ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password,

Re: [sumo-user] How to finish writing the "--tripinfo-ouput" file before using traci.close()

2018-08-17 Thread Zhiqiang Hu
/connection.py", line 98, in _sendExact raise FatalTraCIError("connection closed by SUMO") traci.exceptions.FatalTraCIError: connection closed by SUMO Best regards, Zhiqiang Zhiqiang Hu 于2018年8月17日周五 下午10:58写道: > Thanks for your time!I will try it. > > Best regards, > Z

Re: [sumo-user] How to finish writing the "--tripinfo-ouput" file before using traci.close()

2018-08-17 Thread Zhiqiang Hu
.dlr.de/wiki/Downloads#SUMO_-_Latest_Development_Version, > Windows binaries updated tomorrow) > > regards, > Jakob > > 2018-08-17 11:31 GMT+02:00 Zhiqiang Hu : > >> Hi Jakob, >> >> I have tried to use traci.load() with some dummy options like >> --tripin

Re: [sumo-user] How to finish writing the "--tripinfo-ouput" file before using traci.close()

2018-08-17 Thread Zhiqiang Hu
. just > loading a small network). > regards, > Jakob > > 2018-08-16 16:25 GMT+02:00 Zhiqiang Hu : > >> Hi Jakob, >> >> I have to read the "--tripinfo-ouput" file before I use traci.close(), >> but I found that there are some lines has not been wr

[sumo-user] How to finish writing the "--tripinfo-ouput" file before using traci.close()

2018-08-16 Thread Zhiqiang Hu
Hi Jakob, I have to read the "--tripinfo-ouput" file before I use traci.close(), but I found that there are some lines has not been written. So is there any way to get the whole file before I use traci.close()? Thanks in advamce! Best regards, Zhiqiang

[sumo-user] How to set the length of every time step?

2018-08-06 Thread Zhiqiang Hu
Hi sumo-users, I used traci to implement my simulation.Now I want to set the length of every time step differently,I would like to know which python function I can use before traci.simulationStep() to do this. Thanks in advance! Best regards, Zhiqiang

[sumo-user] How to just output the information I need?

2018-08-02 Thread Zhiqiang Hu
Hi sumo-users, I use the option --tripinfo-output to get the travel time of every vehicle,so the information I need is vehicleID and durations.So is there anyway to just output the vehicleIDs and durations?Thanks in advance! Beat regards, Zhiqiang ___

[sumo-user] Traci.simulation.getEmergencyStoppingVehiclesNumber() and traci.simulation.getEmergencyStoppingVehiclesIDList() can't work correctly

2018-07-26 Thread Zhiqiang Hu
Hi Jakob, I have cloned the latest version of SUMO from github and build it in Ubuntu 16.04.And I tried to get the emergency stops using traci.simulation.getEmergencyStoppingVehiclesIDList(),but it returned nothing as below.Then I used Traci.simulation.getEmergencyStoppingVehiclesNumber() to do

[sumo-user] Fwd: Traci's running is not smooth

2018-07-22 Thread Zhiqiang Hu
- From: Zhiqiang Hu Date: 2018年7月14日周六 下午10:36 Subject: Traci's running is not smooth To: Hi sumo-users, I am running a program using Traci to optimize the traffic light timing.In my program, I have to repeat the simulation for about 600,000 times.But,when I use SUMO without GUI

Re: [sumo-user] Traci's running is not smooth

2018-07-21 Thread Zhiqiang Hu
Hi Micheal and Jakob, I have test the simulator with random action to set the phase of traffic light,but the problem is still exist.Do you have analyze what cause my problem ?This is very important to me.Thanks for your time ! Best regards, Zhiqiang Zhiqiang Hu 于2018年7月18日周三 下午4:27写道: >

Re: [sumo-user] Traci's running is not smooth

2018-07-21 Thread Zhiqiang Hu
Hi Micheal and Jakob, I have test the simulator with random action to set the phase of traffic light,but the problem is still exist.Do you have analyze what cause my problem ?This is very important to me.Thanks for your time ! Zhiqiang Hu 于2018年7月18日周三 下午4:27写道: > Hi Micheal, > I have c

Re: [sumo-user] How to get the mean travel time of the vehicles on a edge in last time step

2018-07-18 Thread Zhiqiang Hu
al data is sometimes written with a delay due to output buffering > by the operation system. > Once you close the simulation (traci.close()) all output will be written. > > regards, > Jakob > > > 2018-07-18 16:54 GMT+02:00 Zhiqiang Hu : > >> Hi Jakob, >&g

Re: [sumo-user] How to get the mean travel time of the vehicles on a edge in last time step

2018-07-18 Thread Zhiqiang Hu
Hi Jakob, When I add the option "--tripinfo-output ","tripinfo.xml" into traci.start(), I got the file tripinfo.xml. But the format is different from the demo,it is something like this:

Re: [sumo-user] How to get the mean travel time of the vehicles on a edge in last time step

2018-07-18 Thread Zhiqiang Hu
月18日周三 下午5:05写道: >> >>> traci.edge.getTraveltime >>> also consider traci.lane.getTraveltime >>> >>> 2018-07-18 10:35 GMT+02:00 Zhiqiang Hu : >>> >>>> Hi sumo-users, >>>> I am running a program using Traci to optimize the traffic light >>&

Re: [sumo-user] How to get the mean travel time of the vehicles on a edge in last time step

2018-07-18 Thread Zhiqiang Hu
Hi Jakob, If all the teleport of vehicles has done, how can I get the mean travel time of all vehicles?Thanks for your time! Best regards, Zhiqiang Jakob Erdmann 于2018年7月18日周三 下午5:05写道: > traci.edge.getTraveltime > also consider traci.lane.getTraveltime > > 2018-07-18 10:35 GMT+02

[sumo-user] How to get the mean travel time of the vehicles on a edge in last time step

2018-07-18 Thread Zhiqiang Hu
Hi sumo-users, I am running a program using Traci to optimize the traffic light timing.And I would like to know the the mean travel time of the vehicles on a edge in last time step,what function can I use?Or any function about it?Thanks in advance! Best regards, Zhiqiang

Re: [sumo-user] Traci's running is not smooth

2018-07-18 Thread Zhiqiang Hu
Hi Micheal, I have checked my algorithm these days, the algorithm is correct on the basis of the result.So, the problem I met may be the consequence of using SUMO wrongly.So, I would like to know what cause the problem and how to fix it.Thanks for your time! Best regards, Zhiqiang

Re: [sumo-user] Traci's running is not smooth

2018-07-15 Thread Zhiqiang Hu
Hi Jakob, This problem is very important to me, please reply soon.Thanks! Best regards, Zhiqiang Zhiqiang Hu 于2018年7月14日周六 下午10:36写道: > Hi sumo-users, > I am running a program using Traci to optimize the traffic light > timing.In my program, I have to repeat the simulation

Re: [sumo-user] How to use the function getCollidingVehiclesNumber()

2018-07-15 Thread Zhiqiang Hu
#SUMO_-_Latest_Development_Version > regards, > Jakob > > > 2018-07-13 14:54 GMT+02:00 Zhiqiang Hu : > >> Hi sumo-users, >> >> when I wrote "print(traci.simulation.getCollidingVehiclesNumber())" into >> my code, I got this error: >> >> Traceback (m

[sumo-user] Traci's running is not smooth

2018-07-14 Thread Zhiqiang Hu
Hi sumo-users, I am running a program using Traci to optimize the traffic light timing.In my program, I have to repeat the simulation for about 600,000 times.But,when I use SUMO without GUI to run my program,I notice that every few times later the duration of the simulation is so long