-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·54 lines (49 loc) · 1.27 KB
/
run.sh
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
#!/bin/bash
challenge="4"
host="localhost"
robname="theAgent"
pos="0"
outfile="solution"
while getopts "c:h:r:p:f:" op
do
case $op in
"c")
challenge=$OPTARG
;;
"h")
host=$OPTARG
;;
"r")
robname=$OPTARG
;;
"p")
pos=$OPTARG
;;
"f")
outfile=$OPTARG
;;
default)
echo "ERROR in parameters"
;;
esac
done
shift $(($OPTIND-1))
source venv/bin/activate
case $challenge in
1)
# how to call agent for challenge 1
python3 mainRob.py -h "$host" -p "$pos" -r "$robname" -c "$challenge"
;;
2)
# how to call agent for challenge 2
python3 mainRob.py -h "$host" -p "$pos" -r "$robname" -c "$challenge" -f "$outfile" # assuming -f is the option for the map
;;
3)
# how to call agent for challenge 3
python3 mainRob.py -h "$host" -p "$pos" -r "$robname" -c "$challenge" -f "$outfile" # assuming -f is the option for the path
;;
4)
# how to call agent for challenge 4
python3 mainRob.py -h "$host" -p "$pos" -r "$robname" -c "$challenge" -f "$outfile" # assuming -f is the option for the path
;;
esac