Git Product home page Git Product logo

amod's Introduction

ch.ethz.idsc.amod Build Status

This repository allows to run an autonomous mobility-on-demand scenario using the amodeus library (https://github.com/idsc-frazzoli/amodeus).

Try it, orchestrate your own fleet of amod-taxis! Watch a visualization of a traffic simulation in San Francisco generated using this repository.

p1t1

p1t4

p1t3

p1t2

Getting Started

  • You may work on a Linux, Mac or Windows OS with a set of different possible IDEs. The combination Ubuntu, Java 8, Eclipse has worked well.
  • Install Java SE Development Kit (version 8, or above)
  • Install Apache Maven
  • Install IDE (ideally Eclipse Oxygen or Photon)
  • Install GLPK and GLPK for Java (Ensure you install compatible versions, e.g. here)
    • Prerequisites are: GCC, Libtool, Swig and Subversion
  • Install Git and connect to GitHub with SSH

The code format of the amod repository is specified in the amodeus profile that you can import from amodeus-code-style.xml.

Installation guidelines for amod repository

  1. Clone amod
  2. Import to eclipse as existing maven project (Package Explorer->Import) using the pom.xml in the top folder of this repository.
  3. Set up Run Configurations for: (ScenarioPreparer; ScenarioServer; ScenarioViewer), chose the Working Directory to be the top Simulation Folder directory. You can get a sample simulation scenario at http://www.idsc.ethz.ch/research-frazzoli/amodeus.html
  4. Adjust the simulation settings in the 3 config files: av.xml for av fleet values (e.g. number vehicles), AmodeusOptions.properties for AMoDeus settings (e.g. max number of people) and config.xml for Matsim settings (e.g. output directory).
  5. Add JAVA VM arguments if necessary, e.g., -Xmx10000m to run with 10 GB of RAM and -Dmatsim.preferLocalDtds=true to prefer the local Dtds.
  6. Run the ScenarioPreparer as a Java application: wait until termination
  7. Run the ScenarioServer as a Java application: the simulation should run
  8. Run the ScenarioViewer as a Java application: the visualization of the scenario should open in a separate window

Gallery

usecase_amodeus

Zurich

p1t5

San Francisco

San Francisco

San Francisco

Docker

Run docker-compose up to run the San Fransisco simulation. This will run two services, aido-host and aido-guest, which will communicate over port 9382.

The protocol is specified here.


ethz300

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.