SlideShare uma empresa Scribd logo
1 de 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.

Mais conteĂşdo relacionado

Mais procurados

Next Generation V2X Technology
Next Generation V2X TechnologyNext Generation V2X Technology
Next Generation V2X TechnologyMalik Saad
 
Intelligent transport system (ITS)
Intelligent transport system (ITS)Intelligent transport system (ITS)
Intelligent transport system (ITS)Aravind Samala
 
Intelligent transport system (its) [autosaved]
Intelligent transport system (its) [autosaved]Intelligent transport system (its) [autosaved]
Intelligent transport system (its) [autosaved]Krishna Bhola
 
Traffic Detection Systems (Transportation Engineering)
Traffic Detection Systems (Transportation Engineering)Traffic Detection Systems (Transportation Engineering)
Traffic Detection Systems (Transportation Engineering)Hossam Shafiq I
 
Vehicle to vehicle communication
Vehicle to vehicle communication  Vehicle to vehicle communication
Vehicle to vehicle communication Mohamed Zaki
 
ITS (Intelligent Teleportation System)
ITS (Intelligent Teleportation System)ITS (Intelligent Teleportation System)
ITS (Intelligent Teleportation System)OUM SAOKOSAL
 
Introduction of VANET
Introduction of VANETIntroduction of VANET
Introduction of VANETPallavi Agarwal
 
Transport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksTransport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksRushin Shah
 
Autonomous cars
Autonomous carsAutonomous cars
Autonomous carsAmal Jose
 
INTELLIGENT TRANSPORTATION SYSTEM
INTELLIGENT TRANSPORTATION SYSTEMINTELLIGENT TRANSPORTATION SYSTEM
INTELLIGENT TRANSPORTATION SYSTEMAmar Patel
 
Vehicle to vehicle communication
Vehicle to vehicle communicationVehicle to vehicle communication
Vehicle to vehicle communicationMrityunjaya Chauhan
 
Introduction to urban transportation
Introduction to urban transportationIntroduction to urban transportation
Introduction to urban transportationAli Alraouf
 
Intelligent traffic information and control system
Intelligent traffic information and control systemIntelligent traffic information and control system
Intelligent traffic information and control systemSADEED AMEEN
 

Mais procurados (20)

DSRC
DSRCDSRC
DSRC
 
VANET (BY-VEDANT)
VANET (BY-VEDANT)VANET (BY-VEDANT)
VANET (BY-VEDANT)
 
Next Generation V2X Technology
Next Generation V2X TechnologyNext Generation V2X Technology
Next Generation V2X Technology
 
Intelligent transport system (ITS)
Intelligent transport system (ITS)Intelligent transport system (ITS)
Intelligent transport system (ITS)
 
Intelligent transport system (its) [autosaved]
Intelligent transport system (its) [autosaved]Intelligent transport system (its) [autosaved]
Intelligent transport system (its) [autosaved]
 
Traffic Detection Systems (Transportation Engineering)
Traffic Detection Systems (Transportation Engineering)Traffic Detection Systems (Transportation Engineering)
Traffic Detection Systems (Transportation Engineering)
 
Vehicle to vehicle communication
Vehicle to vehicle communication  Vehicle to vehicle communication
Vehicle to vehicle communication
 
VANET
VANETVANET
VANET
 
ITS (Intelligent Teleportation System)
ITS (Intelligent Teleportation System)ITS (Intelligent Teleportation System)
ITS (Intelligent Teleportation System)
 
Vanet ppt
Vanet pptVanet ppt
Vanet ppt
 
Introduction of VANET
Introduction of VANETIntroduction of VANET
Introduction of VANET
 
Transport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networksTransport control protocols for Wireless sensor networks
Transport control protocols for Wireless sensor networks
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 
Intelligent Traffic Management
Intelligent Traffic ManagementIntelligent Traffic Management
Intelligent Traffic Management
 
Mobile Communication
Mobile CommunicationMobile Communication
Mobile Communication
 
Autonomous cars
Autonomous carsAutonomous cars
Autonomous cars
 
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
 
Introduction to urban transportation
Introduction to urban transportationIntroduction to urban transportation
Introduction to urban transportation
 
Intelligent traffic information and control system
Intelligent traffic information and control systemIntelligent traffic information and control system
Intelligent traffic information and control system
 

Destaque

radio propagation
radio propagationradio propagation
radio propagationATTO RATHORE
 
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
 
Mobile CDS LTE Simulation Demo
Mobile CDS LTE Simulation Demo Mobile CDS LTE Simulation Demo
Mobile CDS LTE Simulation Demo Dr. Edwin Hernandez
 
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
 

Destaque (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
 

Semelhante a 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
 
Osmit2009 Mapnik
Osmit2009 MapnikOsmit2009 Mapnik
Osmit2009 Mapnikluca delucchi
 
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
 
Guide to glo mosim
Guide to glo mosimGuide to glo mosim
Guide to glo mosimvigneshwaran05
 
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
 
Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2Rohini Sharma
 
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
 

Semelhante a 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
 

Último

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
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
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
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
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 

Último (20)

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
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...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
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
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 

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.