Skip to content

A real-time swarm simulation framework with real-time user interaction.

License

Notifications You must be signed in to change notification settings

Antificial/antificial

Folders and files

NameName
Last commit message
Last commit date
Sep 17, 2018
May 15, 2017
May 6, 2017
May 6, 2017
Nov 3, 2017
May 30, 2017
May 15, 2017
May 30, 2017
Nov 1, 2018

Repository files navigation

Antificial

Antificial is a real-time swarm simulation framework with real-time user interaction.

Screenshot

Demo Screenshot

Download

Usage

It is recommended to use virtualenv with this project.

$ git clone https://github.com/Antificial/antificial.git
$ cd antificial
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ cd antificial/
$ python main.py

Known Errors

Cython is missing, it's required for compiling kivy!:

This likely occurs after trying to install the requirements through pip. Please pip install Cython and then try again.

No module named 'cv2':

Likely occurs after trying to start the program for the first time. Sometimes when creating a virtual environment, python does not copy the link to OpenCV, so it has to be done manually afterwards. The original link can be found in the site-packages of the respective original python installation, e.g. /usr/local/lib/python3.6/site-packages/cv2.so.
To re-establish the link in the virtual environment, simply copy the link into it like this, then run the program again:
cp /usr/local/lib/python3.6/site-packages/cv2.so venv/lib/python3.6/site-packages/cv2.so.

command 'clang' failed with exit status 1 while installing Kivy:

This is due to recent changes in Cython and Kivy. Installing the master version (1.10.1.dev0) fixes the error:
pip install https://github.com/kivy/kivy/archive/master.zip

ImportError: numpy.core.multiarray failed to import:

Numpy wasn't installed correctly. This can be fixed by manually installing numpy:
pip install numpy

Contributors

Contributors on GitHub

Third party libraries

  • Kivy Graphics Framework
  • OpenCV Computer Vision Library

Credit

License

Version

  • Version 1.0

How to use this code