Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.
/ swift-gissumo Public archive

A Swift implementation of a middleware to integrate mobility from SUMO and geography from GIS

License

Notifications You must be signed in to change notification settings

abreis/swift-gissumo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift-GISSUMO

Swift-GISSUMO is an event-driven vehicular simulator, coded in Swift, that uses mobility data generated with SUMO to simulate a vehicular network in a city. It loads vectorial representations of buildings from a Shapefile into PostgreSQL/PostGIS (a Geographic Information System) which it then uses to determine the line-of-sight status between each communication attempt.

This specific code base is geared towards testing concepts of Cars as Roadside Units, but it can be easily adaptable to other purposes. An NS-3 integration is forthcoming, for finer simulation of an 802.11p network and its associated protocols.

Getting Started

Edit module.map and point it to the location of libpq-fe.h in your system.

Database Access

To enable database access from other hosts (for example, to visualize the shapefile data with QGIS), edit pg_hba.conf and add an entry for your specific host or network. The database initialization scripts will load this file, and the provided Dockerfile exposes port 5432 on the container by default.

Common Errors

Error: The specified inner city bounds are larger than the outer bounds.

If the simulation time is short, the observed city size (obtained from vehicle positions in the Floating Car Data) may be smaller than expected, and smaller than the inner bounds specified. Increase simulation time or reduce the inner bounds.

Error: Tried to initialize an even-sized cell map with center coordinates.

The simulator assumes that a Roadside Unit's coverage map is circular, therefore its cell map must be odd in both dimensions so that the RSU sits in the centre cell.

[on stat file] Please generate and provide an obstruction mask first.

The statistics module relies on a map of obstructions to act as a mask, otherwise it cannot know the difference between, e.g., a cell where coverage is Zero because no RSUs cover it, and a cell where coverage is Zero because it is a building and not a road. Generage an obstruction mask by setting tools/buildObstructionMask to true in the configuration, then provide a large enough set of Floating Car Data and a large enough stopTime to be reasonably confident that vehicles traversed all roads in the city. The resulting map can be used for all (smaller) simulations.

License

See the LICENSE file.

About

A Swift implementation of a middleware to integrate mobility from SUMO and geography from GIS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published