-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme~
29 lines (20 loc) · 1.47 KB
/
readme~
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
Instructions on how to run multi-agent search an drescue simulations.
Modify the following paths in the following files to your preferred destination:
mylogging.py ---> line 6, 7, and 8.
simulation.py ---> line 297, 400, and 452.
environment.py ---> line 87, 89, and 93.
msg_PUnit.py ---> line 98, and 103.
agent_run.py ---> 296, 300, 318, 323, 382, and 384.
Put aamas-res.sh, run-loop.sh, and saso.sh in the catkin_ws folder.
In order to run a batch of the simulations, run the following script:
./run-loop.sh $nr_of_trials saso.sh
saso.sh is the simulation script, to run the batch only once, execute run-loop as follows:
./run-loop.sh 1 saso.sh
Note that in the scripts the directory structure is assumed as follows:
~/catkin_ws/src/gitagent
Moreover the results shall be moved to the following path:
~/catkin_ws/results/sandr/w\=25\,v\=5/trial$1
Check both run-loop.sh and saso.sh in order to make sure the paths fit what you need.
Once the simulations finish -- the length of one trial can vary dependending on the platform it is being run on -- run the following scripts to get the results. (Make sure that the paths match, for minimal confusion the best would be to keep close to the already defined paths).
Put the bar2.sh and get_means.py script in the sandr folder. Open bar2.sh, and change the input argument related to the number of trials (the second to last argument). If you ran run-loop.sh with ./run-loop.sh 1 saso.sh, then set that number to 1 on all lines. Then run:
./bar2.sh