This project with be a reproduction of the paper:
First we need to download the street map from
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=-81.72454833984376%2C28.168875180063345%2C-80.67260742187501%2C28.788121653588966&layer=transportmap" style="border: 1px solid black"></iframe>View Larger Map
->Select a box ->Quary for turbo :
highway=motorway || highway = motorway_link
Run and Export the file in XML format else we can not later on convert to .net file for sumo
- To do this I have downloaded the json file with overpass api
- then I renamed the extension to ".osm.xml"
Open terminal and run the code. Code to convert xml file of map to net file
netconvert --osm-files berlin.osm.xml -o berlin.net.xml
The OSM file needed to creat the map and network file for the simulation are now ready.
Follow the Advanced Tutorial
note: Learn SUMO and noted in OneNotes
-
create nodes done ✅
-
creat edges [not done : dont know why] [ as per Reza Bhai it is done automatically when net edit is created]
-
creat .net file done✅
-
creat route file:
- renamed the nodes and drawn in one note✅
- Rename the edges: using net edit (each road is called edges)✅
-
created add files to collect data:
- router
- data for travel time
- loop
-
created a config file
-
creat settings file
note: Network >> Vehicle >> Model calibration >> Data Analysis I am jumping to Data Analysis but I will return to Model Calibration
sumo -c hello.sumocfg --fcd-output sumoTrace.xml
python plot_trajectories.py fcd.xml -t td -o plot.png -s
sumo -c hello.sumocfg --full-output sumofull.xml
python xml2csv.py input.xml
py path\randomTrips.py -n updated.net.xml -r updated.rou.xml -e 50 -l A
dfrouter --net-file I75_Final.net.xml --detector-files I75_loop.add --routes-output I75_route2.rou.xml --measure-files loop_file