-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
56 lines (40 loc) · 2.06 KB
/
INSTALL
File metadata and controls
56 lines (40 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
+ Install Argos2 dependencies:
sudo apt-get install -y git libgsl0-dev libqt4-dev libqt4-gui \
libqt4-opengl-dev freeglut3-dev libxmu-dev libxi-dev \
build-essential cmake
+ Create a directory where we will install RoboNetSim
mkdir <RoboNetSim>
+ Install argos2 from github:
cd <RoboNetSim>
git clone https://github.com/EduardoFF/argos2-RoboNetSim.git
cd argos2-RoboNetSim/argos2
./build.sh release clean
cd build/simulator && sudo make install
cd ../../build/common/simulator && sudo make install
cd ../../
sudo cp launch_argos /usr/bin && rm -rf build
+ Install ns-3 from github:
* dependencies first:
sudo apt-get install python-dev
cd <RoboNetSim>
git clone https://github.com/EduardoFF/ns-3-dev-git.git
cd ns-3-dev-git
git checkout RoboNetSim
cd ns-3-dev-git
CXXFLAGS="-Wall" ./waf configure -d optimized --enable-examples --enable-tests && ./waf
====================================================================================================================================
In order to install RoboNetSim example for ARGoS:
====================================================================================================================================
enter the folder '<RoboNetSim>/argo2-RoboNetSim/example'
3) create 'build' directory (command 'mkdir build')
4) enter the folder 'build/'
5) run the following commands: 'cmake -DCMAKE_BUILD_TYPE=Release ..' and then 'make'
====================================================================================================================================
In order to run RoboNetSim example for ARGoS:
====================================================================================================================================
1) run ns-3 in another terminal:
- enter the folder <RoboNetSim>/ns-3-dev-git/
- run './waf --run "scratch/swarmanoidIntegration/swarmanoidIntegration scratch/swarmanoidIntegration/default.conf RoboNetSim_NS3.dat"'
2) run the argos example in another terminal:
- enter the folder <RoboNetSim>/argos2-RoboNetSim/example/
- run 'launch_argos -nc xml/diffusion_5_wifi_ns3.xml'