All Projects → crowddynamics → crowddynamics

crowddynamics / crowddynamics

Licence: MIT license
Continuous-time multi-agent crowd simulation engine implemented in Python using Numba and Numpy for performance.

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects
shell
77523 projects

Projects that are alternatives of or similar to crowddynamics

evoplex
Evoplex is a fast, robust and extensible platform for developing agent-based models and multi-agent systems on networks. It's available for Windows, Linux and macOS.
Stars: ✭ 98 (+308.33%)
Mutual labels:  multi-agent
Coordinated-Multi-Agent-Imitation-Learning
This is an implementation of the paper "Coordinated Multi Agent Imitation Learning", or the Sloan version "Data-Driven Ghosting using Deep Imitation Learning" using Tensorflow
Stars: ✭ 35 (+45.83%)
Mutual labels:  multi-agent
atomsGaffer
Atoms Crowd extension for Gaffer
Stars: ✭ 26 (+8.33%)
Mutual labels:  crowd-simulation
GoBigger
Come & try Decision-Intelligence version of "Agar"! Gobigger could also help you with multi-agent decision intelligence study.
Stars: ✭ 410 (+1608.33%)
Mutual labels:  multi-agent
robotarium-rendezvous-RSSDOA
This repository contains the Matlab source codes (to use in Robotarium platform) of various rendezvous controllers for consensus control in a multi-agent / multi-robot system.
Stars: ✭ 35 (+45.83%)
Mutual labels:  multi-agent
Fruit-API
A Universal Deep Reinforcement Learning Framework
Stars: ✭ 61 (+154.17%)
Mutual labels:  multi-agent
socialways
Social Ways: Learning Multi-Modal Distributions of Pedestrian Trajectories with GANs (CVPR 2019)
Stars: ✭ 113 (+370.83%)
Mutual labels:  crowd-simulation
Multi-Commander
Multi & Single Agent Reinforcement Learning for Traffic Signal Control Problem
Stars: ✭ 67 (+179.17%)
Mutual labels:  multi-agent
robotic-warehouse
Multi-Robot Warehouse (RWARE): A multi-agent reinforcement learning environment
Stars: ✭ 62 (+158.33%)
Mutual labels:  multi-agent
mader
Trajectory Planner in Multi-Agent and Dynamic Environments
Stars: ✭ 252 (+950%)
Mutual labels:  multi-agent

Crowd Dynamics

Crowd dynamics is a simulation environment written in Python package for simulation movement of crowds. The project was created in summer 2016 for Systems Analysis Laboratory at Aalto University in Finland. The documentation has more detail about the project.

Installation

Crowd dynamics is tested on Ubuntu 16.04 using Python 3.6. First, install the Conda package manager. Miniconda distribution is the easiest to install. Then, clone the crowddynamics repository.

git clone https://github.com/jaantollander/crowddynamics.git

Inside the crowddynamics directory, install the Conda environment, activate it, and install crowddynamics as an editable.

conda env create -f environment.yml
conda activate crowd36
pip install --editable .

Graphical User Interface

We can use a graphical user interface (GUI) for visualizing the crowd simulations and display data interactively, which can be very useful for designing new simulations and debugging. We have implemented the GUI for crowddynamics using Qt via pyqt and pyqtgraph. It is maintained separately from the crowddynamics repository due to its dependencies on Qt.

We start by cloning the repository.

git clone https://github.com/jaantollander/crowddynamics-qtgui.git

Inside crowddynamics-qtgui directory, install the requirements and install crowddynamics-qtgui as editable. We must install pyqt version 4 using Conda from the conda-force channel for it to work correctly. Be sure that you activate the environment where you installed crowddynamics.

conda activate crowd36
conda install pyqt=4 -c conda-forge
pip install -r requirements.txt
pip install --editable .

Usage

Inside the crowddynamics/examples directory, we can find example simulations.

from crowddynamics.examples.simulations import Hallway
from crowddynamics.simulation.agents import Circular
from crowddynamics.logging import setup_logging

if __name__ == '__main__':
    setup_logging()
    iterations = 1000
    simulation = Hallway(agent_type=Circular)
    for i in range(iterations):
        simulation.update()

Tests

Tests are implemented using Pytest and Hypothesis.

Install test dependencies.

pip install -r requirements-tests.txt

In the project's root directory, run pystest test suite.

pytest

Documentation

Documentation is created using Sphinx.

Install documentation dependencies

pip install -r requirement-docs.txt

In docs directory.

make html

Versioning

Versioneer is used for versioning.

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].