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

Reply via email to