README.md 1.35 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
    4. sudo pip3 install PyOpenGL
    
    5. sudo pip3 install Pillow
    
    6. sudo pip3 install PyQt5
    
Karol Actun's avatar
Karol Actun committed
22
23
    7. sudo pip3 install opencv-python
    
24
25
26
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
27
28
29
30
31
32
33

- 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
34
    python3.6 swarm-sim.py
Ahmad Reza's avatar
Ahmad Reza committed
35
36
37
38
39
40
41


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
42
For Windows/Linux/MacOs:
Ahmad Reza's avatar
Ahmad Reza committed
43
44
45
46
- unzip souce code
- install python3.6
- install pycharm
- run pycharm
Ahmad Reza's avatar
Ahmad Reza committed
47
- open swarm-world as a project
Ahmad Reza's avatar
Ahmad Reza committed
48
49
50
51
52
53
- 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
54
55
56
    4. PyOpenGL
    5. Pillow
    6. PyQt5 (in version 5.10.1 for older Systems like Ubuntu 14.04)
Karol Actun's avatar
Karol Actun committed
57
    7. opencv-python
Ahmad Reza's avatar
Ahmad Reza committed
58
- press Okey
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
59
60
- wait until everything is installed
- chose Run->swarm-sim.py
Ahmad Reza's avatar
Ahmad Reza committed
61
62
    - If it gives an error that it cannot find the interpretetor
       Open Run->"Edit Configuration" Chose the python3.6 as an interpretetor