-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (56 loc) · 2.66 KB
/
Copy pathMakefile
File metadata and controls
79 lines (56 loc) · 2.66 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
SHELL := /usr/bin/env bash
.PHONY: check-env build run-base run-network run-town01 stop test-changed status \
demo-preflight demo-town01 demo-rugged demo-stop
DEMO_SCENARIO ?= town01
DEMO_GUI ?= 1
DEMO_BOOTSTRAP ?= 0
SIMULATION_MODE ?= realtime
LOCKSTEP_STEP_MS ?= 20
LOCKSTEP_TIMEOUT_S ?= 60
export BAS_SIMULATION_MODE := $(SIMULATION_MODE)
export BAS_LOCKSTEP_STEP_MS := $(LOCKSTEP_STEP_MS)
export BAS_LOCKSTEP_TIMEOUT_S := $(LOCKSTEP_TIMEOUT_S)
check-env:
./scripts/product/check_env.sh
build:
colcon build --symlink-install
run-base:
./scripts/product/run_5uav_base.sh
run-network: demo-town01
run-town01: demo-town01
stop:
./scripts/product/stop_all.sh
test-changed:
./scripts/product/test_changed.sh
status:
@sed -n '1,150p' network/STATUS.md
demo-preflight:
./scripts/product/native_demo_preflight.sh --scenario "$(DEMO_SCENARIO)" $(if $(filter 1,$(DEMO_GUI)),--gui) $(if $(filter 1,$(DEMO_BOOTSTRAP)),--bootstrap)
demo-town01:
./scripts/product/native_demo_preflight.sh --scenario town01 $(if $(filter 1,$(DEMO_GUI)),--gui) $(if $(filter 1,$(DEMO_BOOTSTRAP)),--bootstrap)
BAS_NATIVE_FIVE_SCENARIO=town01 BAS_NATIVE_FIVE_GUI="$(DEMO_GUI)" \
./network/ns3/run_native_radio_five_uav.sh
demo-rugged:
./scripts/product/native_demo_preflight.sh --scenario rock_demo $(if $(filter 1,$(DEMO_GUI)),--gui) $(if $(filter 1,$(DEMO_BOOTSTRAP)),--bootstrap)
BAS_NATIVE_FIVE_SCENARIO=rock_demo BAS_NATIVE_FIVE_GUI="$(DEMO_GUI)" \
./network/ns3/run_native_radio_five_uav.sh
demo-stop:
./scripts/product/stop_all.sh
.PHONY: prepare-customer demo-customer operator gcs native-sources native-maps native-cache-study native-matrix
OPERATOR_DURATION ?= 900
prepare-customer:
./scripts/product/prepare_customer_scene.sh
demo-customer:
BAS_NATIVE_FIVE_SCENARIO=customer BAS_NATIVE_FIVE_GUI="$(DEMO_GUI)" ./network/ns3/run_native_radio_five_uav.sh
operator:
BAS_NATIVE_FIVE_SCENARIO="$(DEMO_SCENARIO)" BAS_NATIVE_OPERATOR_SECONDS="$(OPERATOR_DURATION)" BAS_NATIVE_FIVE_GUI="$(DEMO_GUI)" ./network/ns3/run_native_radio_five_uav.sh
gcs:
docker exec -it bas-v2-native-radio-five-uav ip netns exec ams-gcs /home/ubuntu/.local/bin/mavproxy.py --master=udpout:127.0.0.1:14551 --master=udpout:127.0.0.1:14552 --master=udpout:127.0.0.1:14553 --master=udpout:127.0.0.1:14554 --master=udpout:127.0.0.1:14555 --aircraft=/workspace/multiagent_simulation/runs/operator
native-sources:
BAS_NATIVE_SOURCES_CAMPAIGN=1 ./network/ns3/run_sionna_wifi_five_uav.sh
native-maps:
BAS_NATIVE_STUDY=maps ./network/ns3/run_sionna_wifi_five_uav.sh
native-cache-study:
BAS_NATIVE_STUDY=cache ./network/ns3/run_sionna_wifi_five_uav.sh
native-matrix:
BAS_NATIVE_STUDY=matrix ./network/ns3/run_sionna_wifi_five_uav.sh