03.1: Create networks by hand
Use
netedit to create intersections and highways
NoteNetEdit
netedit is a software installed with SUMO. It enables the manual creation of multimodal road networks including intersections, roundabouts, highways and more. Moreover, netedit lets you create traffic light states and add traffic demand.
Creating intersections
Create a traffic light intersection in netedit and generate multiple XML files:
Use netconvert to make a network file
Make sure your working directory is sumo_workshop
cd module1/02-netedit
netconvert `
--node-files=intersection.nod.xml `
--edge-files=intersection.edg.xml `
--connection-files=intersection.con.xml `
--tllogic-files=intersection.tll.xml `
--output-file=intersection.net.xml `
--no-turnarounds trueConvert an intersection to a roundabout
Specify the radius of the traffic light junction (node) in meters and then right click and select convert to roundabout from the dropdown menu.
Create a highway section with ramps
netconvert `
--node-files=highway.nod.xml `
--edge-files=highway.edg.xml `
--connection-files=highway.con.xml `
--output-file=highway.net.xml `
--no-turnarounds trueAnatomy of a SUMO network
Click on the slide below and press the ‘f’ key to make it full screen. Then press the right arrow key repeatedly to see the anatomy of a simple highway network in SUMO.