Hello, to ensure that only valid trips are produced by randomTrips.py, set the option --validate. randomTrips.py is the reommended way to generated random traffic. If you have further issues with it's operations, just ask. To calculate average vehicle distances, run the simulation with option --duration-log.statistics. To obtain individual distances, run the simulation with the option --tripinfo-output regards, Jakob
2017-08-12 7:50 GMT+02:00 Selva Ganesha via sumo-user < sumo-user@lists.sourceforge.net>: > Good day, > > Typically I use randomTrips.py to generate random traffic onto any map. > However, when observing and plotting information of vehicle id="0", SUMO > registers an error saying the edges are not connected for the vehicles' > (several vehicles) paths. > > Attached is the error I receive and it is continuous for many vehicles. Is > there another way to generate random traffic rather than manually keying in > the information to the .rou file? 200 to 400 vehicles is quite time > consuming. > > Another query is, how do I calculate distance the vehicle has traveled from > the starting point? Something similar to an odometer will do or if there is > a method to measure the distance between edges or both? I have tried using > traci.vehicle.getDistance(testVehicle) but it was not successful. > > Your help is very much appreciated. > > Cheers, > G > > ------------------------------------------------------------ > ------------------ > 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 > sumo-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sumo-user > > ------------------------------------------------------------------------------ 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 sumo-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user