98. SUMO Coding Inquiry - dataandcrowd/GlasgowLEZ_SUMO GitHub Wiki

Things that worked

  • Generating various types of vehicles and letting them move randomly
  • Generating pedestrians and letting them move randomly
  • Adding sidewalks

1. Problem with sidewalks

  • Sidewalks, or pavements in the UK context, are not created automatically
side
  • As a result, pedestrians walk together with vehicles which causes collisions and traffic jams.

glagsowlez

2. Problem with vehicles reaching the end of network

스크린샷 2023-06-26 14 57 08
  • Some vehicles come back after reaching the edge of the road network

Pedestrians from Trains

How to simulate train movement and unload pedestrians

Zebra Crossing

Do I need to create zebra crossings manually?

SUMO Codes

More information about my coding development can be found at this link.

## Learning how to code in SUMO: Progress ### 1. Generate the network file (glasgow.net.xml) using the netconvert
netconvert --osm-files glasgow.osm -o glasgow.net.xml --junctions.join --roundabouts.guess --osm.elevation --tls.guess --osm.sidewalks 

2. Import polygons from OSM-data and produces a sumo-polygon file

polyconvert --net-file glasgow.net.xml --osm-files glasgow.osm --type-file typemap.xml -o glasgow.poly.xml 

3. Generate the pedestrian traffic demand

python randomTrips.py -n glasgow.net.xml -r bus_routes.rou.xml  -o bus_trips.xml -e 600 -p 30 --vehicle-class bus --trip-attributes="accel=\"0.8\""
python randomTrips.py -n glasgow.net.xml -r truck_routes.rou.xml  -o truck_trips.xml -e 600 -p 15 --vehicle-class truck --trip-attributes="color=\"179,223,183\""
python randomTrips.py -n glasgow.net.xml -r delivery_routes.rou.xml  -o delivery_trips.xml -e 600 -p 30 --vehicle-class delivery --trip-attributes="color=\"115,211,230\""
python randomTrips.py -n glasgow.net.xml -r trailer_routes.rou.xml  -o trailer_trips.xml -e 600 -p 150 --vehicle-class trailer --trip-attributes="color=\"223,179,180\" accel=\"0.5\""
python randomTrips.py -n glasgow.net.xml -r passenger_routes.rou.xml  -o passenger_trips.xml -e 600 -p 0.1 --vehicle-class passenger --trip-attributes="color=\"255,255,255\""
python randomTrips.py -n glasgow.net.xml -r ped_routes.rou.xml  -o ped_trips.xml -e 600 -p 5 --pedestrians
⚠️ **GitHub.com Fallback** ⚠️