forked from anheinle/data-driven-dynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (38 loc) · 1.23 KB
/
Makefile
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
root_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
version?=latest
registry?=ethzasl/data-driven-dynamics
model?=quadrotor_model
log?=${root_dir}/resources/${model}.ulg
config?=${root_dir}/Tools/parametric_model/configs/${model}.yaml
data_selection?=none
selection_var?=none
plot?=True
submodulesupdate:
git submodule update --init --recursive
install-dependencies:
pip3 install -r Tools/parametric_model/requirements.txt
install-full-depdencies: install-dependencies
pip3 install Tools/parametric_model/libs/vpselector
docker-build:
docker build -f docker/Dockerfile --tag ${registry}:${version} .
docker-push:
docker push ${registry}:${version}
docker-publish: docker-build docker-push
docker-run:
xhost local:root
docker run -it --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
${registry}:${version} /bin/bash
estimate-model:
python3 Tools/parametric_model/generate_parametric_model.py \
--config ${config} \
--data_selection ${data_selection} \
--selection_var ${selection_var} \
--plot ${plot} \
${log}
predict-model:
python3 Tools/parametric_model/predict_model.py --config ${config} \
--model_results ${model_results} \
--data_selection ${data_selection} \
${log}
format:
Tools/fix_code_style.sh .