-
Notifications
You must be signed in to change notification settings - Fork 1
/
AI-DO-5.mk
282 lines (187 loc) · 10.6 KB
/
AI-DO-5.mk
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
DOCKER_REGISTRY ?= docker.io
PIP_INDEX_URL ?= https://pypi.org/simple/
DT_ENV_DEVELOPER ?= .
all:
templates: \
template-random \
template-ros \
template-pytorch \
template-tensorflow
agents: \
agent-minimal-agent-state \
agent-minimal-agent-full \
agent-baseline-simple-yield
agent-minimal-agent-full: build-aido-base-python3 lib-aido-analyze lib-aido-agents
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent-full build
baselines: \
baseline-RL-sim-pytorch \
baseline-duckietown \
baseline-behavior-cloning \
baseline-JBR \
baseline-RPL-ros \
baseline-dagger-pytorch \
baseline-duckietown-ml \
baseline-minimal-agent \
baseline-minimal-agent-full \
baseline-minimal-agent-state \
baseline-simple-yield
aido: build-aido-submission-ci-test libs build define-challenges templates baselines
build-aido-base-python3: lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/aido-base-python3 build
build-aido-submission-ci-test: build-aido-base-python3 lib-duckietown-docker-utils
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/aido-submission-ci-test build
define-LF-before-subs: define-LF
echo "Uncomment above to first do all definitions"
template-pytorch: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-template-pytorch build submit-bea
template-random: build-aido-base-python3 define-LF-before-subs lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-template-random build submit-bea
template-ros: build-aido-base-python3 define-LF-before-subs lib-aido-protocols dt-ros-commons
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-template-ros build submit-bea
template-tensorflow: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-template-tensorflow build submit-bea
dt-base-environment:
dts devel build -C $(DT_ENV_DEVELOPER)/src/dt-base-environment --arch amd64 --push
dt-commons: dt-base-environment
dts devel build -C $(DT_ENV_DEVELOPER)/src/dt-commons --arch amd64 --push
dt-ros-commons: dt-commons
dts devel build -C $(DT_ENV_DEVELOPER)/src/dt-ros-commons --arch amd64 --push
dt-core: dt-ros-commons
dts devel build -C $(DT_ENV_DEVELOPER)/src/dt-core --arch amd64 --push
dt-car-interface: dt-ros-commons
dts devel build -C $(DT_ENV_DEVELOPER)/src/dt-ros-commons --arch amd64 --push
baseline-duckietown: build-aido-base-python3 define-LF-before-subs dt-car-interface template-ros dt-core
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-duckietown build submit-bea
baseline-duckietown-ml: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment baseline-duckietown dt-car-interface dt-core
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-duckietown-ml submit-bea
baseline-JBR: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-JBR submit-bea
baseline-RL-sim-pytorch: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-RL-sim-pytorch submit-bea
baseline-dagger-pytorch: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-dagger-pytorch submit-bea
# does not depend on the base but has same deps
baseline-behavior-cloning: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-behavior-cloning submit-bea
baseline-RPL-ros: build-aido-base-python3 define-LF-before-subs build-dt-machine-learning-base-environment
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-RPL-ros submit-bea
baseline-pytorch: build-aido-base-python3 template-pytorch define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-RL-sim-pytorch submit-bea
baseline-JBR: build-aido-base-python3 define-LF-before-subs template-tensorflow
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-JBR submit-bea
#
#FROM ${DOCKER_REGISTRY}/duckietown/challenge-aido_lf-baseline-duckietown:${BASE_TAG} AS baseline
#
#FROM ${DOCKER_REGISTRY}/duckietown/dt-machine-learning-base-environment:${BASE_TAG} AS base
#
#WORKDIR /code
#
#COPY --from=baseline ${CATKIN_WS_DIR}/src/dt-car-interface ${CATKIN_WS_DIR}/src/dt-car-interface
#
#COPY --from=baseline ${CATKIN_WS_DIR}/src/dt-core ${CATKIN_WS_DIR}/src/dt-core
build-baseline-duckietown: build-aido-base-python3
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-duckietown build submit-bea
baseline-minimal-agent: build-aido-base-python3 lib-aido-analyze lib-aido-agents define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent build submit-bea
baseline-minimal-agent-full: build-aido-base-python3 lib-aido-analyze lib-aido-agents define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent-full submit-bea
agent-minimal-agent-state: build-aido-base-python3 lib-aido-analyze lib-aido-agents
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent-state build
baseline-minimal-agent-state: build-aido-base-python3 lib-aido-analyze lib-aido-agents define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent-state submit-bea
agent-baseline-simple-yield: build-aido-base-python3 lib-aido-analyze lib-aido-agents
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-simple-yield build
baseline-simple-yield: build-aido-base-python3 lib-aido-analyze lib-aido-agents define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-baseline-simple-yield submit-bea
baseline-challenge-aido_LF-minimal-agent-full: build-aido-base-python3 lib-aido-agents lib-duckietown-world define-LF-before-subs
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-minimal-agent-full submit-bea
define-challenges: define-LF define-multistep define-prediction define-robotarium
define-LF: build-scenario-maker build-simulator-gym build-challenge-aido_LF-experiment_manager build-duckietown-challenges-cli agents
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF define-challenge
build-scenario-maker: build-aido-base-python3 lib-duckietown-world
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-scenario_maker build
build-gym-duckietown: build-aido-base-python3 lib-duckietown-world
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/gym-duckietown build
build-simulator-gym: build-gym-duckietown lib-duckietown-gym lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-simulator-gym upload build
define-multistep: build-aido-base-python3
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-multistep define-challenge
define-prediction: build-aido-base-python3
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-prediction define-challenge
define-robotarium: define-LF
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/aido-robotarium-evaluation-form define-challenge
define-collision: define-LF
$(MAKE) -C class/dt-exercises/collision-solution rebuild
build: \
build-gym-duckietown \
build-scenario-maker \
build-simulator-gym \
build-aido-submission-ci-test\
build-challenge-aido_LF-experiment_manager \
build-duckietown-challenges-cli \
build-duckietown-challenges-runner \
build-server
build-challenge-aido_LF-experiment_manager: build-aido-base-python3 \
lib-aido-protocols lib-aido-analyze lib-duckietown-world lib-duckietown-challenges
$(MAKE) -C $(DT_ENV_DEVELOPER)/aido/challenge-aido_LF-experiment_manager upload build
build-dt-machine-learning-base-environment: lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/dt-machine-learning-base-environment build
cd $(DT_ENV_DEVELOPER)/src/dt-machine-learning-base-environment && dts devel build --cloud --arch amd64 push --tag daffy
build-duckietown-challenges-cli: lib-duckietown-challenges-runner lib-duckietown-challenges \
lib-duckietown-docker-utils lib-duckietown-build-utils
# echo REMOVED TMP
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-challenges-cli build
build-duckietown-challenges-runner: lib-duckietown-challenges lib-duckietown-challenges-runner \
lib-duckietown-build-utils lib-duckietown-tokens lib-duckietown-docker-utils
# $(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-challenges-runner build
# note: build the evaluator first so that the servers can update before the server
build-server: lib-duckietown-challenges lib-duckietown-challenges-runner lib-duckietown-tokens \
build-duckietown-challenges-runner lib-duckietown-build-utils
# $(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-challenges-server build
libs_targets=
libs: \
lib-duckietown-build-utils \
lib-aido-agents \
lib-aido-analyze \
lib-aido-protocols \
lib-duckietown-gym \
lib-duckietown-world \
lib-duckietown-challenges \
lib-duckietown-challenges-runner \
lib-duckietown-tokens \
lib-duckietown-docker-utils \
lib-duckietown-aido-ros-bridge
lib-duckietown-build-utils:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-build-utils upload
lib-duckietown-docker-utils:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-docker-utils upload
lib-duckietown-aido-ros-bridge:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-aido-ros-bridge upload
lib-aido-agents: lib-duckietown-world lib-aido-protocols
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/aido-agents upload
lib-aido-analyze:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/aido-analyze upload
lib-aido-protocols:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/aido-protocols upload
lib-duckietown-gym:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/gym-duckietown upload
lib-duckietown-world:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-world upload
lib-duckietown-challenges:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-challenges upload
lib-duckietown-challenges-runner:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-challenges-runner upload
lib-duckietown-tokens:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-tokens upload
cloudflare:
$(MAKE) -C $(DT_ENV_DEVELOPER)/src/duckietown-cloudflare-tunnel build
root-images:
docker pull docker.io/library/ubuntu:20.04
docker tag docker.io/library/ubuntu:20.04 ${DOCKER_REGISTRY}/library/ubuntu:20.04
docker push ${DOCKER_REGISTRY}/library/ubuntu:20.04
docker pull docker.io/library/python:3.8
docker tag docker.io/library/python:3.8 ${DOCKER_REGISTRY}/library/python:3.8
docker push ${DOCKER_REGISTRY}/library/python:3.8
docker pull docker.io/pytorch/pytorch
docker tag docker.io/pytorch/pytorch ${DOCKER_REGISTRY}/pytorch/pytorch
docker push ${DOCKER_REGISTRY}/pytorch/pytorch