You are on page 1of 10

ADDIS ABABA INSTITUTION OF TECHNOLOGY

(AAiT)
Traffic Engineering Project
School of civil and Environmental Engineering
Section 2
1. Dagmawi Getachew …………………………UGR/0057/13
2. Haileamlak Birhan…………………………….UGR/1827/13
3. Tedy Yideg………………………………………..UGR/6180/13
4. Yonas Dawit……………………………………..UGR/4635/13

Submitted to: Mr. Ataklti


Submission date: Feb, 28 2023
Sumo project
In order to perform a very basic simulation in SUMO, it is required to have at least the
following elements (files).

 Network file
 Route file
 SUMO configuration file.

In SUMO a street network consists of nodes (junctions) and edges (streets connecting
the junctions).we will use netedit to create our basic net.

Creating intersection network


1. Search and download open street map (osm)
2. Export from open street map

3. Convert the map in to sumo network by using code “netconvert --osm-files map.osm -o
EBC.net.xml” on CMD and continue your process until we get success. Otherwise , return back and
check procedures.
4. After converting the map. We have to open sumo network file in netedit application.
5. After we open sumo network on net edit can change the number of lanes easily if you
are in the Inspect Mode and click on the relevant edge and change it directly.

6. Connecting all egdes at intersection by clicking ‘computing junctions’.

Now we click ‘select mode’ to connect junctions and all egdes


7. If you change to the ‘Connection Mode’, you are able to specify new connections
or change existing connections. This is possible by clicking on the chosen edge. As
you can see on the left side of the following picture, the different meanings of the
dyed edges are shown in the Legend.

8. Then you have to arrange the traffic signals and phase to avoids accident. Click
‘traffic signal mode’ to arrange the phase. And also to avoid congestion we have to
design the 3 lights and duration properly.
Demand Generation in netedit
Now, select the Demand supermode in netedit.

Enter Route Mode by selecting Edit->Route mode, using the shortcut R or by


clicking on the button.

Creating a route is as simple as clicking on the Edges that will compose it. When
selecting an Edge, its color will change.

 FOO Selected Edge


 FOO Possible selectable edges

After selecting all the edges that will compose the desired route, click on Create
route.
Adding a Vehicle

Finally, enter Vehicle Mode by selecting Edit->Vehicle mode, using the shortcut V or
by clicking on the button. To insert a Vehicle, just click on the beginning of the
route.

Then change ‘trip (from to edges)’ by ‘flow (from to edges’)


We can change the type of vehicle by clicking ‘type mode’ and we can also load the
amount of vehicles that pass through intersection.

Now save the Demand (route + vehicle) file . Use File -> Demand elements -> Save
demand elements (Ctrl + Shift + D).
Do not close netedit yet.

Visualizing in sumo
We will open sumo-gui from netedit. To do so, go to Edit -> Open in sumo-gui (Ctrl
+ T). This will open sumo-gui and load our recently created network and demand
files.
As soon as sumo-gui opens, let's save the SUMO configuration file (that relates the
network and demand files) . File -> Save Configuration (Ctrl + Shift + S).

Before starting the simulation, make sure that the Delay (

) is set to at
least 80 ms, otherwise, the simulation would happen very fast and we would not be
able to see our only vehicle in our tiny network.

Click on Run (Ctrl + A) to start the simulation.

You might also like