I've recently started working with dfrouter in order to get "realistic" traffic flows in the city of Madrid.
I have followed every step in the dfrouter docs in order to create the mandatory files (detector positions and flow measures). In order to locate the detectors in the network I have made my own script using
lanePos, dist = sumolib.geomhelper.polygonOffsetAndDistanceToPoint((x,y), closestLane.getShape())
to locate the closest Lane to each detector.
After doing that, dfrouter seems to work properly: it creates the vehicles.rou.xml and sumoroutes.rou.xml files and they are not empty.
However, while trying to run sumo, it does not load any vehicle. I have tried with the two following commands:
sumo -c $conf_file --ignore-route-errors
sumo --net-file ${network} --additional-files ${routes},${emitters_file}
I have to note that I am trying to implement dfrouter in a network with public transport vehicles loaded apart from the passenger vehicles, but I don't think this can be an issue because the public transport vehicles are not loaded in the
highlighted line.
Could anyone pointing out where the error is, if any?
I attach the dfrouter files and the rest of files for the simulation in this mail.
Best regards,
Alejandro Rodríguez Sánchez
PhD student
CIEMAT // Universidad Complutense de Madrid
28040 Madrid
email: alrodr25@xxxxxx