Giter Site home page Giter Site logo

danieldeer / amaz3dsim Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 1.0 118 KB

A lightweight Python-based 3D network multi-agent simulator. Uses a cell-based congestion model. Calculates risk, loudness and battery capacities of the agents. Suitable for 3D network optimization tasks.

License: MIT License

Python 100.00%
multi-agent-simulation traffic-simulation drone-simulation cellular-automata openstreetmap topology-optimization traffic-analysis 3d-network

amaz3dsim's Introduction

Codacy Badge

AMAZ3DSim

AMAZ3DSim is a lightweight python-based 3D network multi-agent simulator. It uses a cell-based congestion model. It calculates risk, battery capacities, travel time and travelled distance of the agents and the loudness the network links experience. AMAZ3DSim is suitable for 3D network optimization tasks. AMAZ3DSim simulation of OSM Darmstadt scenario

Installation

Use the package manager pip to install the following dependencies.

sudo apt install python3.8

pip install click
pip install tkinter
pip install matplotlib
pip install networkx

Usage

To start AMAZ3DSim with default settings

python3.8 CommandLineInterface.py

To open a small help doc listing the parameters of the CommandLineInterface.py

python3.8 CommandLineInterface.py --help

A full command specifies all of the following paramters

python3.8 CommandLineInterface.py --in-file /path/to/scenario.xml --out-file /path/to/output.xml --config-file /path/to/config.xml --random-mode False

If an argument is left out, a standard value is used.

Configuration

A fully commented example configuration is available under

config/config.xml

which is also the standard configuration.

Input interface of the simulator

To simulate your own network, create your own scenario.xml file. A scenario.xml contains the network, the agents and the delivery orders to be fulfilled.

Example scenario.xml files are available in the input folder.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

amaz3dsim's People

Contributors

danieldeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

razajhandir

amaz3dsim's Issues

Error in scenarioParser

Starting the CommandLineInterface on default settings causes an error (see screenshot). The problem stays also with the simple scenario, but without lines 157-162 in ScenarioParser, it works.

issue

Overloaded link lets agents freely travel despite capacity

An input scenario that places too many agents on a link should be handled realistically by the simulator.

e.g. 50 agents can be placed on a capacity 1 link, but then only 1 agent should be able to move

As of now, all agents move freely on the first link they are generated on.

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.