SlideShare a Scribd company logo
1 of 36
SIMULATION OF URBAN MOBILITY (SUMO)
INSTALLATION AND OVERVIEW
Created By:
Jaskaran Preet Singh
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.
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.
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
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.
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>
• 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.
• 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>
• 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.
• 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.
• 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.
• 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.
• 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
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
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
GRID LIKE NETWORK
Fig 3.1 : Grid like network generated using NETGENERATE.
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.
SPIDER LIKE NETWORK
Fig 3.2: Spider like network generated using NETGENERATE.
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
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
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
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.
Fig. 3.4: OSM file of Chandigarh city opened in JOSM
Fig. 3.5: SUMO net file of Chandigarh city opened in sumo-gui
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
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.
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.
EXAMPLE- MAP OF CHANDIGARH CITY
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE - TRAFFIC JAM
EXAMPLE – VEHICLES TAKING ALTERNATE
ROUTE TO AVOID TRAFFIC JAM
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.

More Related Content

What's hot

Electronic Toll Collection Global Study
Electronic Toll Collection Global StudyElectronic Toll Collection Global Study
Electronic Toll Collection Global StudyJustin Hamilton
 
Intelligent Transportation System
Intelligent Transportation SystemIntelligent Transportation System
Intelligent Transportation SystemGAURAV. H .TANDON
 
Vehicle to vehicle communication
Vehicle to vehicle communicationVehicle to vehicle communication
Vehicle to vehicle communicationVijayalakshmi Joger
 
Automotive infotainment system
Automotive infotainment systemAutomotive infotainment system
Automotive infotainment systemEapen Zacharias P
 
Emergency vehicles detection and special road system ppt
Emergency vehicles detection and special road system pptEmergency vehicles detection and special road system ppt
Emergency vehicles detection and special road system pptRejetiPrathyusha
 
Toll Management Systems
Toll Management SystemsToll Management Systems
Toll Management SystemsSandy Bar
 
VEHICLE TO VEHICLE WIRELESS COMMUNICATION
VEHICLE TO VEHICLE WIRELESS COMMUNICATIONVEHICLE TO VEHICLE WIRELESS COMMUNICATION
VEHICLE TO VEHICLE WIRELESS COMMUNICATIONRahul Natarajan
 
VANETs Presentation
VANETs PresentationVANETs Presentation
VANETs PresentationiQra Rafaqat
 
collision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in carcollision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in carSai Ram Vakkalagadda
 
Vehicle tracking system
Vehicle tracking systemVehicle tracking system
Vehicle tracking systemSujit9561
 
Vehicle Detection using Camera
Vehicle Detection using CameraVehicle Detection using Camera
Vehicle Detection using CameraShubham Agrahari
 
V2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingV2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingAlison Chaiken
 
Traffic control system
Traffic control systemTraffic control system
Traffic control systemzahid6
 
Introduction to Urban Transportation Planning and History
Introduction to Urban Transportation Planning and HistoryIntroduction to Urban Transportation Planning and History
Introduction to Urban Transportation Planning and HistorySitesh Kumar Singh
 

What's hot (20)

Introduction of VANET
Introduction of VANETIntroduction of VANET
Introduction of VANET
 
Electronic Toll Collection Global Study
Electronic Toll Collection Global StudyElectronic Toll Collection Global Study
Electronic Toll Collection Global Study
 
What is IVI (In Vehicle Infotainment)?
What is IVI (In Vehicle Infotainment)?What is IVI (In Vehicle Infotainment)?
What is IVI (In Vehicle Infotainment)?
 
Intelligent Transportation System
Intelligent Transportation SystemIntelligent Transportation System
Intelligent Transportation System
 
Vehicle to vehicle communication
Vehicle to vehicle communicationVehicle to vehicle communication
Vehicle to vehicle communication
 
Automotive infotainment system
Automotive infotainment systemAutomotive infotainment system
Automotive infotainment system
 
Emergency vehicles detection and special road system ppt
Emergency vehicles detection and special road system pptEmergency vehicles detection and special road system ppt
Emergency vehicles detection and special road system ppt
 
Vanet Presentation
Vanet PresentationVanet Presentation
Vanet Presentation
 
Toll Management Systems
Toll Management SystemsToll Management Systems
Toll Management Systems
 
VEHICLE TO VEHICLE WIRELESS COMMUNICATION
VEHICLE TO VEHICLE WIRELESS COMMUNICATIONVEHICLE TO VEHICLE WIRELESS COMMUNICATION
VEHICLE TO VEHICLE WIRELESS COMMUNICATION
 
VANETs Presentation
VANETs PresentationVANETs Presentation
VANETs Presentation
 
collision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in carcollision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in car
 
VANET
VANETVANET
VANET
 
Intelligent Transportation System
Intelligent Transportation SystemIntelligent Transportation System
Intelligent Transportation System
 
Vehicle tracking system
Vehicle tracking systemVehicle tracking system
Vehicle tracking system
 
Vehicle Detection using Camera
Vehicle Detection using CameraVehicle Detection using Camera
Vehicle Detection using Camera
 
V2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars TalkingV2X Communications: Getting our Cars Talking
V2X Communications: Getting our Cars Talking
 
Traffic control system
Traffic control systemTraffic control system
Traffic control system
 
Chap9
Chap9Chap9
Chap9
 
Introduction to Urban Transportation Planning and History
Introduction to Urban Transportation Planning and HistoryIntroduction to Urban Transportation Planning and History
Introduction to Urban Transportation Planning and History
 

Viewers also liked

Using geobrowsers for thematic mapping
Using geobrowsers for thematic mappingUsing geobrowsers for thematic mapping
Using geobrowsers for thematic mappingBjorn Sandvik
 
Kml Basics Chpt 2 Placemarks
Kml Basics Chpt  2   PlacemarksKml Basics Chpt  2   Placemarks
Kml Basics Chpt 2 Placemarkstcooper66
 
Kml Basics Chpt 4 Styles &amp; Icons
Kml Basics Chpt  4   Styles &amp; IconsKml Basics Chpt  4   Styles &amp; Icons
Kml Basics Chpt 4 Styles &amp; Iconstcooper66
 
Kml Basics Chpt 5 Overlays
Kml Basics Chpt  5   OverlaysKml Basics Chpt  5   Overlays
Kml Basics Chpt 5 Overlaystcooper66
 
Managing Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FMEManaging Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FMESafe Software
 
Optimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth MashupOptimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth MashupSafe Software
 
Mobile CDS - mmW / LTE Simulator - Mobile CAD
Mobile CDS - mmW / LTE Simulator - Mobile CADMobile CDS - mmW / LTE Simulator - Mobile CAD
Mobile CDS - mmW / LTE Simulator - Mobile CADDr. Edwin Hernandez
 
Create Your KML File by KML Editor
Create Your KML File by KML EditorCreate Your KML File by KML Editor
Create Your KML File by KML Editorwang yaohui
 
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial DataBecoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial DataPatrick Stotz
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometrytcooper66
 
Kml and Its Applications
Kml and Its ApplicationsKml and Its Applications
Kml and Its ApplicationsAshok Basnet
 
Kml Basics Chpt 1 Overview
Kml Basics Chpt  1   OverviewKml Basics Chpt  1   Overview
Kml Basics Chpt 1 Overviewtcooper66
 
Alex optimization guidelines - retainability huawei - rev.01
Alex    optimization guidelines - retainability huawei - rev.01Alex    optimization guidelines - retainability huawei - rev.01
Alex optimization guidelines - retainability huawei - rev.01Victor Perez
 
02 probabilistic inference in graphical models
02 probabilistic inference in graphical models02 probabilistic inference in graphical models
02 probabilistic inference in graphical modelszukun
 
Fading and Large Scale Fading
 Fading and Large Scale Fading Fading and Large Scale Fading
Fading and Large Scale Fadingvickydone
 

Viewers also liked (20)

radio propagation
radio propagationradio propagation
radio propagation
 
Using geobrowsers for thematic mapping
Using geobrowsers for thematic mappingUsing geobrowsers for thematic mapping
Using geobrowsers for thematic mapping
 
Kml Basics Chpt 2 Placemarks
Kml Basics Chpt  2   PlacemarksKml Basics Chpt  2   Placemarks
Kml Basics Chpt 2 Placemarks
 
Kml Basics Chpt 4 Styles &amp; Icons
Kml Basics Chpt  4   Styles &amp; IconsKml Basics Chpt  4   Styles &amp; Icons
Kml Basics Chpt 4 Styles &amp; Icons
 
Kml Basics Chpt 5 Overlays
Kml Basics Chpt  5   OverlaysKml Basics Chpt  5   Overlays
Kml Basics Chpt 5 Overlays
 
Managing Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FMEManaging Spatial Data for Telecommunications Using FME
Managing Spatial Data for Telecommunications Using FME
 
Optimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth MashupOptimizing Rail Data for Google Earth Mashup
Optimizing Rail Data for Google Earth Mashup
 
Mobile CDS - mmW / LTE Simulator - Mobile CAD
Mobile CDS - mmW / LTE Simulator - Mobile CADMobile CDS - mmW / LTE Simulator - Mobile CAD
Mobile CDS - mmW / LTE Simulator - Mobile CAD
 
Create Your KML File by KML Editor
Create Your KML File by KML EditorCreate Your KML File by KML Editor
Create Your KML File by KML Editor
 
Rf planning umts with atoll1
Rf planning umts with atoll1Rf planning umts with atoll1
Rf planning umts with atoll1
 
UMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for HandoversUMTS/WCDMA Call Flows for Handovers
UMTS/WCDMA Call Flows for Handovers
 
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial DataBecoming a Smarter City by Analyzing & Visualizing Spatial Data
Becoming a Smarter City by Analyzing & Visualizing Spatial Data
 
Kml Basics Chpt 3 Geometry
Kml Basics Chpt  3   GeometryKml Basics Chpt  3   Geometry
Kml Basics Chpt 3 Geometry
 
rf planning
rf planningrf planning
rf planning
 
Mobile CDS LTE Simulation Demo
Mobile CDS LTE Simulation Demo Mobile CDS LTE Simulation Demo
Mobile CDS LTE Simulation Demo
 
Kml and Its Applications
Kml and Its ApplicationsKml and Its Applications
Kml and Its Applications
 
Kml Basics Chpt 1 Overview
Kml Basics Chpt  1   OverviewKml Basics Chpt  1   Overview
Kml Basics Chpt 1 Overview
 
Alex optimization guidelines - retainability huawei - rev.01
Alex    optimization guidelines - retainability huawei - rev.01Alex    optimization guidelines - retainability huawei - rev.01
Alex optimization guidelines - retainability huawei - rev.01
 
02 probabilistic inference in graphical models
02 probabilistic inference in graphical models02 probabilistic inference in graphical models
02 probabilistic inference in graphical models
 
Fading and Large Scale Fading
 Fading and Large Scale Fading Fading and Large Scale Fading
Fading and Large Scale Fading
 

Similar to Simulation of urban mobility (sumo) prest

SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...
SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...
SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...Anusha Chickermane
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfSamHoney6
 
Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Servicesphanleson
 
NetSim VANET User Manual
NetSim VANET User ManualNetSim VANET User Manual
NetSim VANET User ManualVishal Sharma
 
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013Takashi Yamanoue
 
Industrial Training Presentaion(Networking)
Industrial Training Presentaion(Networking)Industrial Training Presentaion(Networking)
Industrial Training Presentaion(Networking)Gaurav Uniyal
 
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap..."Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...Fwdays
 
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_control
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_controlModeling and Control Robot Arm using Gazebo, MoveIt!, ros_control
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_controlByeongKyu Ahn
 
Inside the ABC's new Media Transcoding system, Metro
Inside the ABC's new Media Transcoding system, MetroInside the ABC's new Media Transcoding system, Metro
Inside the ABC's new Media Transcoding system, MetroDaphne Chong
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in MobileSVWB
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxpoodhood49
 
Twelve ways to make your apps suck less
Twelve ways to make your apps suck lessTwelve ways to make your apps suck less
Twelve ways to make your apps suck lessFons Sonnemans
 

Similar to Simulation of urban mobility (sumo) prest (20)

Glomosim scenarios
Glomosim scenariosGlomosim scenarios
Glomosim scenarios
 
SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...
SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...
SaaSy maps - using django-tenants and geodjango to provide web-gis software-a...
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdf
 
Osmit2009 Mapnik
Osmit2009 MapnikOsmit2009 Mapnik
Osmit2009 Mapnik
 
Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Services
 
NetSim VANET User Manual
NetSim VANET User ManualNetSim VANET User Manual
NetSim VANET User Manual
 
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
 
Industrial Training Presentaion(Networking)
Industrial Training Presentaion(Networking)Industrial Training Presentaion(Networking)
Industrial Training Presentaion(Networking)
 
SUMO.pdf
SUMO.pdfSUMO.pdf
SUMO.pdf
 
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap..."Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
"Micro-frontends from A to Z. How and Why we use Micro-frontends in Namecheap...
 
Guide to glo mosim
Guide to glo mosimGuide to glo mosim
Guide to glo mosim
 
Nick harris-sic-2011
Nick harris-sic-2011Nick harris-sic-2011
Nick harris-sic-2011
 
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_control
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_controlModeling and Control Robot Arm using Gazebo, MoveIt!, ros_control
Modeling and Control Robot Arm using Gazebo, MoveIt!, ros_control
 
Inside the ABC's new Media Transcoding system, Metro
Inside the ABC's new Media Transcoding system, MetroInside the ABC's new Media Transcoding system, Metro
Inside the ABC's new Media Transcoding system, Metro
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in Mobile
 
trafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptxtrafficaaaassignmentpresentationboo.pptx
trafficaaaassignmentpresentationboo.pptx
 
Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2
 
Certification
CertificationCertification
Certification
 
Twelve ways to make your apps suck less
Twelve ways to make your apps suck lessTwelve ways to make your apps suck less
Twelve ways to make your apps suck less
 
Virtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc NetworksVirtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc Networks
 

Recently uploaded

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 

Recently uploaded (20)

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 

Simulation of urban mobility (sumo) prest

  • 1. SIMULATION OF URBAN MOBILITY (SUMO) INSTALLATION AND OVERVIEW Created By: Jaskaran Preet Singh
  • 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. 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. 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. 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. 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. • 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. • 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. • 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. • 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. • 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. • 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. • 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. 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. 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. GRID LIKE NETWORK Fig 3.1 : Grid like network generated using NETGENERATE.
  • 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. SPIDER LIKE NETWORK Fig 3.2: Spider like network generated using NETGENERATE.
  • 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. 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. 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. 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. Fig. 3.4: OSM file of Chandigarh city opened in JOSM
  • 24. Fig. 3.5: SUMO net file of Chandigarh city opened in sumo-gui
  • 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. 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. 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. EXAMPLE- MAP OF CHANDIGARH CITY
  • 35. EXAMPLE – VEHICLES TAKING ALTERNATE ROUTE TO AVOID TRAFFIC JAM
  • 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.