-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgenTestingData.bash
More file actions
151 lines (131 loc) · 4.42 KB
/
genTestingData.bash
File metadata and controls
151 lines (131 loc) · 4.42 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#!/bin/bash
# Function to run your program and check its exit status
run_program() {
local dof=$1
local K=$2
while true; do
# Run your program with the argument
./build/TrajOptKP gen_testing_data 80 2000 $dof $K
# Check the exit status
if [[ $? -eq 0 ]]; then
echo "Program exited correctly with status 1. Proceeding to the next argument."
break
else
echo "Program did not exit correctly. Retrying..."
# Sleep for a short duration before retrying (optional)
sleep 1
fi
done
}
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
cd ..
array=(0 0.1 0.5 1 5 10 20 50 100 500 1000000)
run_program 10 1
run_program 10 500
run_program 10 100
run_program 5 1
run_program 5 1000000000000000
#for i in "${array[@]}"
#do
# run_program 5 $i
#done
#
#for i in "${array[@]}"
#do
# run_program 10 $i
#done
#
#for i in "${array[@]}"
#do
# run_program 0 $i
#done
#run_program 3 50
#run_program 3 50
#run_program 3 50
#run_program 3 50
#run_program 3 50
#for i in {0..15}; do
# run_program $i 10
#done
#
##run_program 0 20
#
#for i in {0..15}; do
# run_program $i 20
#done
#
#for i in {0..15}; do
# run_program $i 50
#done
# -------------------- Asyncronus MPC ------------------------------
# ---------------- Push soft into rigid ----------------------------
#./build/TrajOptKP gen_testing_data 20 2000 4 0.5
#./build/TrajOptKP gen_testing_data 20 2000 4 0.2
#./build/TrajOptKP gen_testing_data 20 2000 4 0.1
#./build/TrajOptKP gen_testing_data 20 2000 2 0.5
#./build/TrajOptKP gen_testing_data 20 2000 2 0.2
#./build/TrajOptKP gen_testing_data 20 2000 2 0.1
#
#./build/TrajOptKP gen_testing_data 20 2000 1 0.5
#./build/TrajOptKP gen_testing_data 20 2000 1 0.2
#./build/TrajOptKP gen_testing_data 20 2000 1 0.1
# -------------------- Push soft ----------------------------------
#./build/TrajOptKP gen_testing_data 200 10000 2 0.5
#./build/TrajOptKP gen_testing_data 200 10000 2 0.2
#./build/TrajOptKP gen_testing_data 200 10000 2 0.1
#
#./build/TrajOptKP gen_testing_data 200 10000 1 0.5
#./build/TrajOptKP gen_testing_data 200 10000 1 0.2
#./build/TrajOptKP gen_testing_data 200 10000 1 0.1
# -------------------- Push moderate clutter ---------------------
#./build/TrajOptKP gen_testing_data 60 2000 4 0.5
#./build/TrajOptKP gen_testing_data 60 2000 4 0.2
#./build/TrajOptKP gen_testing_data 60 2000 4 0.1
#./build/TrajOptKP gen_testing_data 60 2000 2 0.5
#./build/TrajOptKP gen_testing_data 60 2000 2 0.2
#./build/TrajOptKP gen_testing_data 60 2000 2 0.1
#
#./build/TrajOptKP gen_testing_data 60 2000 1 0.5
#./build/TrajOptKP gen_testing_data 60 2000 1 0.2
#./build/TrajOptKP gen_testing_data 60 2000 1 0.1
# -------------------- Open loop optimisation ------------------------------
#./build/TrajOptKP gen_testing_data 20 2000 4 0.5
#./build/TrajOptKP gen_testing_data 60 2000 4 0.05
#./build/TrajOptKP gen_testing_data 60 2000 4 0.1
#./build/TrajOptKP gen_testing_data 60 2000 4 0.5
#./build/TrajOptKP gen_testing_data 60 2000 4 1
#./build/TrajOptKP gen_testing_data 60 2000 4 1.5
#./build/TrajOptKP gen_testing_data 60 2000 4 2
#./build/TrajOptKP gen_testing_data 60 2000 4 2.5
#./build/TrajOptKP gen_testing_data 60 2000 4 3
#./build/TrajOptKP gen_testing_data 60 2000 4 5
#./build/TrajOptKP gen_testing_data 60 2000 0 1
#./build/TrajOptKP gen_testing_data 60 2000 1 1
#./build/TrajOptKP gen_testing_data 60 2000 2 1
#./build/TrajOptKP gen_testing_data 60 2000 3 1
#./build/TrajOptKP gen_testing_data 60 2000 4 1
#./build/TrajOptKP gen_testing_data 60 2000 5 1
#./build/TrajOptKP gen_testing_data 60 2000 6 1
#./build/TrajOptKP gen_testing_data 60 2000 7 1
#./build/TrajOptKP gen_testing_data 60 2000 8 1
#./build/TrajOptKP gen_testing_data 60 2000 9 1
#./build/TrajOptKP gen_testing_data 60 2000 10 1
#./build/TrajOptKP gen_testing_data 60 2000 11 1
#./build/TrajOptKP gen_testing_data 60 2000 12 1
# Openloop optimisation
#./build/TrajOptKP gen_testing_data 2000 1 0.01
#./build/TrajOptKP gen_testing_data 2000 1 0.1
#./build/TrajOptKP gen_testing_data 2000 1 1
#./build/TrajOptKP gen_testing_data 2000 1 2
#
#./build/TrajOptKP gen_testing_data 2000 2 0.01
#./build/TrajOptKP gen_testing_data 2000 2 0.1
#./build/TrajOptKP gen_testing_data 2000 2 1
#./build/TrajOptKP gen_testing_data 2000 2 2
#
#./build/TrajOptKP gen_testing_data 2000 4 0.01
#./build/TrajOptKP gen_testing_data 2000 4 0.1
#./build/TrajOptKP gen_testing_data 2000 4 1
#./build/TrajOptKP gen_testing_data 2000 4 2