README.md 1.29 KB
Newer Older
Ahmad Reza's avatar
Ahmad Reza committed
1
2
3
4
For Linux:

-unzip the source code:

Ahmad Reza's avatar
Ahmad Reza committed
5
    unzip swarm-world.zip
Ahmad Reza's avatar
Ahmad Reza committed
6
7
8
9
10
11
12
13
14
15


-install the following python packages:

    1. sudo apt-get install python3.6 python3-pip 

    2. sudo pip3 install numpy

    3. sudo pip3 install pandas

16
17
18
19
20
21
22
23
24
    4. sudo pip3 install PyOpenGL
    
    5. sudo pip3 install Pillow
    
    6. sudo pip3 install PyQt5
    
for older Systems (e.g. Ubuntu 14.04) install the PyQt5 version 5.10.1

    6. sudo pip3 install PyQt5==5.10.1
Ahmad Reza's avatar
Ahmad Reza committed
25
26
27
28
29
30
31

- install Gnuplot:

    sudo apt-get install gnuplot-x11

- go to the main folder of the SNS-Folder and start it with:

Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
32
    python3.6 swarm-sim.py
Ahmad Reza's avatar
Ahmad Reza committed
33
34
35
36
37
38
39


For development the IDE Pycharm is recommended:

https://www.jetbrains.com/help/pycharm/install-and-set-up-pycharm.html


Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
40
For Windows/Linux/MacOs:
Ahmad Reza's avatar
Ahmad Reza committed
41
42
43
44
- unzip souce code
- install python3.6
- install pycharm
- run pycharm
Ahmad Reza's avatar
Ahmad Reza committed
45
- open swarm-world as a project
Ahmad Reza's avatar
Ahmad Reza committed
46
47
48
49
50
51
- Open File->Settings-"Project-Interpreter"
- Chose python3.6 as an interpreter
- Chose the plus sign and install:
    1. pip3
    2. numpy
    3. pandas
Karol Actun's avatar
Karol Actun committed
52
53
54
    4. PyOpenGL
    5. Pillow
    6. PyQt5 (in version 5.10.1 for older Systems like Ubuntu 14.04)
Ahmad Reza's avatar
Ahmad Reza committed
55
- press Okey
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
56
57
- wait until everything is installed
- chose Run->swarm-sim.py
Ahmad Reza's avatar
Ahmad Reza committed
58
59
    - If it gives an error that it cannot find the interpretetor
       Open Run->"Edit Configuration" Chose the python3.6 as an interpretetor