Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Simulation of urban mobility (sumo) prest

5.170 Aufrufe

Veröffentlicht am

Veröffentlicht in: Ingenieurwesen, Technologie
  • DOWNLOAD FULL BOOKS INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • @Anah' Iita hi analitaaa you use sumo with ns2 ?
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • This is very nice, thank you so much, but how do I Randomly generated a network using NETGENERATE? like how do I start? I have never used SUMO before. I'm only using it for my research project, hence I do not even know the basics.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

Simulation of urban mobility (sumo) prest

  1. 1. SIMULATION OF URBAN MOBILITY (SUMO) INSTALLATION AND OVERVIEW Created By: Jaskaran Preet Singh
  2. 2. 1. INTRODUCTION • SUMO is an open source traffic simulation package including net import and demand modeling components. • The German Aerospace Center (DLR) started the development of SUMO back in 2001. • It involves route choice and traffic light algorithm or simulating vehicular communication.
  3. 3. 2. INSTALLING SUMO 1. Download the latest version of SUMO from the following website: http://sumo-sim.org/userdoc/Downloads.html 2. Download and install the supporting files required to build SUMO with GUI using these commands: • sudo apt-get install libgdal1-dev proj libxerces-c2-dev • sudo apt-get install libfox-1.6-dev libgl1-mesa-dev libglu1-mesa-dev 3. Decompress SUMO folder and move inside the folder using ‘cd’ command.
  4. 4. INSTALLING SUMO CONT… 4. Run the following command to configure SUMO: ./configure --with-fox-includes=/usr/include/fox-1.6 --with-gdal-includes=/usr/include/gdal --with-proj-libraries=/usr --with-gdal-libraries=/usr --with-proj-gdal 5. Run “make” command. 6. Run “sudo make install” 7. To check whether SUMO has been installed successfully run: sumo or sumo-gui
  5. 5. 3. WORKING IN SUMO • In order to create simulation in SUMO first create a road network on which vehicles can move. • The road network consists of nodes (junctions) and edges (i.e. roads that connect various junctions with each other). • Road network can be created in three ways: 1. Manually by creating your own node file, edge file and connection file. 2. Using NETGENERATE command. 3. Importing road network from non SUMO formats like OSM, VISSIM, VISUM etc.
  6. 6. 3.1. CREATING ROAD NETWORK MANUALLY • To begin with create a node file and name it as filename.nod.xml. • In the node file specify the attributes of every node namely node id, x-y coordinates, node type (priority, traffic_light etc.). <nodes> <node id="1" x="-250.0" y="0.0" type=“traffic_light”/> <node id="2" x="+250.0" y="0.0" /> <node id="3" x="+251.0" y="0.0" type=“priority”/> </nodes>
  7. 7. • After defining nodes connect nodes with each other using edges. Make a separate edge file filename.edg.xml and define various edges. • Edges are directed, thus every vehicle travelling an edge will start at the node given in “from” attribute and end at the node given in “to” attribute. <edges> <edge from="1" id="1to2" to="2" type=“a”/> <edge from="2" id="out" to="3" type=“c”/> </edges> • Here “id” is the unique id of every edge and type specify the characteristics of edge.
  8. 8. • Characteristics of each edge like number of lanes, priority of each lane within the edge, speed limit of lane can be specified in additional file with extension .type.xml or edge file itself. • Edge type file (filename.type.xml) can be written as: <types> <type id="a" priority="3" numLanes="3" speed="13.889"/> <type id="b" priority="3" numLanes="2" speed="13.889"/> <type id="c" priority="2" numLanes="3" speed="13.889"/> </types>
  9. 9. • To specify traffic movements and lane connections an additional file with extension .con.xml is required. • For example: <connections> <connection from="L2" to="L12" fromLane="0" toLane="0"/> </connections> • The above example tells that lane 0 of edge L2 is connected to lane 0 of edge L12.
  10. 10. • After creating nodes and edges use the SUMO tool NETCONVERT to create a road network. • Run following command to create a road network: netconvert --node-files=file.nod.xml --edge-files=file.edg.xml –outputfile=file.net.xml • This will generate a road network in file file.net.xml.
  11. 11. • A vehicle in SUMO consists of three parts:  vehicle type which describes the vehicle's physical properties like length, acceleration and deceleration, colour and maximum speed,  a route the vehicle shall take,  and the vehicle itself. • Both routes and vehicle types can be shared by several vehicles. • Create a route file filename.rou.xml and define routes and vehicle types in it.
  12. 12. • Definition of vehicles and there routes: <routes> <vType accel="1.0" decel="5.0" id="Car" length="2.0" maxSpeed="100.0" sigma="0.0" /> <route id="route0" edges="1to2 out"/> <vehicle depart="1" id="veh0“ route="route0" type="Car" /> </routes> • Tag vType defines the type of vehicle and its properties like id, acceleration, deceleration, length, colour, sigma (driver’s imperfection) etc. • Tag route contains the edges given in sequence order that a vehicle will follow. • Finally the vehicle tag creates a vehicle ‘veh0’ that will follow the route specified in route tag.
  13. 13. • Now glue everything together into a configuration file <configuration> <input> <net-file value=“filename.net.xml"/> <route-files value=“filename.rou.xml"/> </input> <time> <begin value="0"/> <end value="10000"/> </time> </configuration> • Now start simulation by either sumo -c filename.sumocfg or with GUI by sumo-gui -c filename.sumocfg
  14. 14. 3.2. USING NETGENERATE • Road network can also be created using tool NETGENERATE. • With NETGENERATE there is no need to make node and edge files. • Using NETGENERATE three types of networks can be created: 1. Grid like network 2. Spider like network 3. Random network
  15. 15. 3.2.1. GRID LIKE NETWORK • For creating a grid network specify the number of junctions required in x and y direction using --grid-x-number and --grid-y-number respectively. • Also specify distance between junctions using --grid-x-length and --grid-y-length. • The command for generating grid network is as follows: netgenerate --grid-net --grid-x-number=3 --grid-y-number=3 --grid-y-length=200 --grid-x- length=200 --output-file=file.net.xml
  16. 16. GRID LIKE NETWORK Fig 3.1 : Grid like network generated using NETGENERATE.
  17. 17. 3.2.2. SPIDER LIKE NETWORK • Spider-net networks are defined by the number of axes dividing them, the number of the circles they are made and the distance between the circles. • The command for generating grid network is as follows: netgenerate --spider-net --spider-arm-number=10 --spider-circle-number=10 -- spider-space-rad=100 --output-file=file.net.xml • It will generate a network file file.net.xml.
  18. 18. SPIDER LIKE NETWORK Fig 3.2: Spider like network generated using NETGENERATE.
  19. 19. 3.2.3. RANDOM NETWORK • The random network generator generates random road network. • The command for generating random network is as follows: netgenerate --rand -o file.net.xml --rand.iterations=200 Fig 3.3: Random network generated using NETGENERATE
  20. 20. 3.3. IMPORTING NON-SUMO NETWORKS • Using SUMO’s NETCONVERT tool one can import road networks from different formats. • Presently following formats are supported: 1. OpenStreetMap databases (OSM database) 2. PTV VISUM 3. PTV VISSIM 4. OpenDRIVE networks 5. MATsim networks 6. SUMO networks
  21. 21. 3.3.1. IMPORTING DATA FROM OSM • OpenStreetMap is a free editable map of the whole world. • Road network of any geographic area can be downloaded from the website www.openstreetmap.org • The data from OpenStreetMap database is saved in XML structure and the saved file has an extension .osm or .osm.xml. • This file can be converted to SUMO’s network file using “netconvert” as: netconvert --osm-files filename.osm.xml –o filename.net.xml
  22. 22. 3.3.2. EDITING OSM NETWORKS • Before converting OSM data to SUMO’s network format, the OSM data can be edited to remove unwanted features. • The OSM data can be edited using: 1. Java Open Street Map (JOSM) editor. 2. OSMOSIS editor. • Both these editors are based on Java.
  23. 23. Fig. 3.4: OSM file of Chandigarh city opened in JOSM
  24. 24. Fig. 3.5: SUMO net file of Chandigarh city opened in sumo-gui
  25. 25. 4. DEMAND MODELLING IN SUMO • After generating network description of vehicles can be added using various tools provided in SUMO. • Generally movement of vehicle can be described in two ways: 1. Trip: A trip is a vehicle movement from one place to another defined by the starting edge (street), the destination edge, and the departure time. 2. Route: A route is an expanded trip, that means, that a route definition contains not only the first and the last edge, but all edges the vehicle will pass. • Tools used for generating routes: 1. OD2TRIPS 2. DUAROUTERS 3. JTRROUTER 4. DFROUTERS
  26. 26. 1. OD2TRIPS: OD2TRIPS converts O/D (origin/destination) matrices into trips. These trips can then be converted to routes. • Origin and destination points are the districts or traffic assignment zones (TAZ) stored in SUMO network file. • It only support data from VISUM/VISSIM formats. 2. JTRROUTER: JTRROUTER is a routing applications which uses flows and turning percentages at junctions as input to generate routes. 3. DFROUTER: DFROUTER directly use the information collected by observation points to rebuild the vehicle amounts and routes. • Observation points are the detectors that observe road situation like amount of traffic or type of vehicles.
  27. 27. 4. DUAROUTER import routes or their definitions from other simulation packages and for computing routes using the Dijkstra shortest-path algorithm. • It takes trip or flow file as input and generate the route file.
  28. 28. EXAMPLE- MAP OF CHANDIGARH CITY
  29. 29. EXAMPLE
  30. 30. EXAMPLE
  31. 31. EXAMPLE
  32. 32. EXAMPLE
  33. 33. EXAMPLE
  34. 34. EXAMPLE - TRAFFIC JAM
  35. 35. EXAMPLE – VEHICLES TAKING ALTERNATE ROUTE TO AVOID TRAFFIC JAM
  36. 36. REFERENCES • Daniel Krajzewicz, Jakob Erdmann, Michael Behrisch, and Laura Bieker. "Recent Development and Applications of SUMO - Simulation of Urban MObility"; International Journal On Advances in Systems and Measurements, 5 (3&4):128-138, December 2012.

×