22 September 2014

Simulation of Urban Mobility (SUMO) in Ubuntu 12.04

This post will tell you how to install SUMO 0.12.3 version in Ubuntu 12.04 LTS. Also this post will tell you how to use MOVE for generating VANETs Simulation scenario.

OS Used: Ubuntu 12.04 LTS (64 bit)
Sumo Version : 0.12.3
MOVE.jar (For this to work, Java runtime environment to be installed)
(Also MOVE.jar will support only SUMO 0.12.3). The latest version of SUMO (at the time of writing this post) is sumo 0.21.

Points to be noted:

  • Its always better to use the latest software, but to begin with SUMO needs XMl files are roads, edges, vehicle routes, etc. So MOVE.jar file is just helping in creating the xml files needed by SUMO. But the recent versions of SUMO (0.21) and etc, the XML files are to be generated manually by means of any external xml editors or simply using gedit or vim.
  • Also, the Ubuntu package manager comes default with sumo and sumo-gui command (that can be installed using the command sudo apt-get install sumo , but the python scripts like randomTrips.py, traceExporter.py etc may not work for creating the routes, vehicles, etc. So compiling from the source is the best option for  installing SUMO in Ubuntu.
Steps to install sumo-0.12.3 in Ubuntu 12.04
2. Download MOVE.jar from this location: http://lens1.csie.ncku.edu.tw/MOVE/download.php
2. Execute the following commands one by one 
$] sudo apt-get update
$] sudo apt-get install build-essential autoconf automake libxmu-dev default-jre g++-4.4 libproj-dev libgdal-dev libxerces-c2-dev libfox-1.6-dev
$] export CC=gcc-4.4 CXX=g++-4.4 
$] ./configure
$] make
$] sudo make install
See the screenshot below for successful installation of sumo and sumo-gui. Now you can create the simulations using MOVE and SUMO. 
sumo
sumo

sumo-gui
sumo-gui
Installation of MOVE
MOVE is a software that runs using java run time and helpful in creating the xml files for SUMO. This can be running using the command 
$] java -jar MOVE.jar
Here is the screenshot of all the three windows for MOVE.
move
MOVE
Thats all about the MOVE installation. My next post will be about the creation of xml files using MOVE and to generate traffic files for NS2.

Please pour in your comments for SUMO or MOVE installation. I have created a Virtual image OS for running the SUMO, MOVE and NS2 (if anybody wants the Virtual Image separately, contact me through the comment section or through google plus. I may send you the DVD by Courier after paying the nominal charges)

T S Pradeep Kumar