forked from USC-ACTLab/crazyswarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·48 lines (39 loc) · 809 Bytes
/
build.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
# Exit immediately if a command exits with a non-zero status.
set -e
ROOT=$PWD
# submodules
git submodule init
git submodule update
cd ros_ws/src/crazyflie_ros/
git submodule init
git submodule update
cd $ROOT
cd ros_ws/src/externalDependencies/libmotioncapture/
git submodule init
git submodule update
cd $ROOT
# build nrf firmware
cd crazyflie2-nrf-firmware
#tools/build/download_deps
make BLE=0
cd $ROOT
# build stm firmware
cd crazyflie-firmware
git submodule init
git submodule update
make
cd $ROOT
# build radio firmware
cd crazyradio-firmware/firmware
make CRPA=1
cd $ROOT
# build simulator firmware backend
cd ros_ws/src/crazyswarm/scripts/pycrazyswarm/cfsim
make
cd $ROOT
# ros
cd ros_ws
# -k: hack for dependency issues
catkin_make -DCMAKE_BUILD_TYPE=RelWithDebInfo -k
catkin_make
cd $ROOT