Hello, you can use libsumo to avoid the socket communication overhead: http://sumo.dlr.de/wiki/Libsumo To make this work you need to use the latest development version. regards, Jakob
2018-08-01 10:13 GMT+02:00 徐晨翔 via sumo-user < [email protected]>: > Dear SUMO users > > Does anyone knows how to read data via Python TraCI in a high frequency? > > While I was using SUMO's python TraCI to build my own program, I found > that reading data through TraCI costs a lot of time. I tried to read all > vehicle's position in the net while running the simulation, but when the > number of vehicles in the net grows, the time needed to get those data > increased as well. My computer can at most read 20 vehicles' data per step > while still keeping a satisfying high simulation frequency. > > I just know two ways to get vehicles' position via TraCI. One is using > getPosition and the other is using getSubscriptionResults which turns out > to be a little more efficient but still not satisfying enough. So I wander > if there is a more efficient way to read a mass of data from SUMO. Hope > someone can answer it. > > Best wishes > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/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
