All Projects → bogaotory → docker-sumo

bogaotory / docker-sumo

Licence: other
Containerised SUMO. Use sumo, sumo-gui and TraCI with Docker. 🐳 🚗

Projects that are alternatives of or similar to docker-sumo

tctb
Traffic Control Test Bed
Stars: ✭ 22 (-55.1%)
Mutual labels:  sumo, traffic-simulation
Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision
We have used Deep Reinforcement Learning and Advanced Computer Vision techniques to for the creation of Smart Traffic Signals for Indian Roads. We have created the scripts for using SUMO as our environment for deploying all our RL models.
Stars: ✭ 131 (+167.35%)
Mutual labels:  sumo, traffic-simulation
Abstreet
Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
Stars: ✭ 6,355 (+12869.39%)
Mutual labels:  traffic-simulation
SmartTrafficIntersection
Another AI toy project, of a traffic intersection controlled by a Reinforcement Learning AI agent to optimize traffic flow in an intersection of vehicles or pedestrians
Stars: ✭ 30 (-38.78%)
Mutual labels:  traffic-simulation
unity-traffic-simulation
A Unity asset that lets you easily simulate very simple traffic into your scene.
Stars: ✭ 144 (+193.88%)
Mutual labels:  traffic-simulation
roadbuilder
Easy-to-build realistic roads in Unity. Foundation of any simcity game.
Stars: ✭ 93 (+89.8%)
Mutual labels:  traffic-simulation
DTA
This repository documents MATLAB implementation of a dynamic user equilibrium solver, including a dynamic network loading sub-routine
Stars: ✭ 55 (+12.24%)
Mutual labels:  traffic-simulation
trafficator
Traffic generator for local analytics testing
Stars: ✭ 27 (-44.9%)
Mutual labels:  traffic-simulation

docker-sumo

Join the chat at https://gitter.im/docker-sumo/Lobby

Build Status

Containerised SUMO.

SUMO (Simulation of Urban MObility), an open-source traffic simulation software, is dockeried by the Dockerfile included in this repository. This image uses Ubuntu version 16.04 and contains version 0.31.0 of SUMO.

sumo, sumo-gui and TraCI are all accessible with this image.

See sumo-gui in action:

demo sumo and sumo-gui in docker

See TraCI in action:

demo TraCI and sumo-gui in docker

Usage (Option 1) - Build from Ubuntu image (Recommended)

  1. Change your_username (line 8 of Dockerfile) to your username (i.e. the output of echo "$USER")
  2. Build the image with docker build - < Dockerfile -t docker-sumo
  3. Run the image with
docker run -it --rm\
    --env="DISPLAY" \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --user=$USER \
    docker-sumo \
    bash
  1. Execute sumo or sumo-gui as usual.

Usage (Option 2) - Build from bogaotory/sumo:0.30.0

  1. Prepare your own Dockerfile with your username (i.e. the output of echo "$USER"):
FROM bogaotory/sumo:0.30.0

RUN adduser your_username --disabled-password
  1. Build the image with docker build - < Dockerfile -t docker-sumo
  2. Run the image with
docker run -it --rm\
    --env="DISPLAY" \
    --volume="/etc/group:/etc/group:ro" \
    --volume="/etc/passwd:/etc/passwd:ro" \
    --volume="/etc/shadow:/etc/shadow:ro" \
    --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
    --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --user=$USER \
    docker-sumo \
    bash
  1. Execute sumo or sumo-gui as usual.

Additional Dependencies

proj and gdal are required for users of OpenStreetMap.

References

I referenced a couple of past attempts of dockerising SUMO:

Neither gives a straightforward containerised SUMO solution.

The method for GUI access is borrowed from this post.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].