-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
executable file
·57 lines (44 loc) · 1.14 KB
/
install.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
49
50
51
52
53
54
55
56
57
#!/bin/bash
### CLEVER
mkdir -p catkin_ws/src
cd catkin_ws/src
cd ../
catkin_make
source devel/setup.bash
cd src
git clone https://github.com/CopterExpress/clever.git
# Patching
cd clever
rm -rf clover_simulation/
cd clover
../../../../patch_clever.sh
# END
# DEP
cd ../../../
rosdep install -y --from-paths src --ignore-src -r
# END
catkin_make
source devel/setup.bash
### END
cd ../
### PX4
git clone https://github.com/CopterExpress/Firmware.git
# echo aaa $(pwd)
cd ./Firmware
git submodule update --init --recursive
# echo aaa $(pwd)
cd ./Tools/sitl_gazebo/include
# echo aaa $(pwd)
patch < ../../../../patches/gazebo_opticalflow_plugin.patch
# echo aaa $(pwd)
cd ../../../
DONT_RUN=1 make px4_sitl_default gazebo
cp -fRa ../models/iris ./Tools/sitl_gazebo/models
cp -fRa ../models/aruco_map_10_10 ./Tools/sitl_gazebo/models
cp -f ../worlds/empty.world ./Tools/sitl_gazebo/worlds
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
export GAZEBO_MODEL_PATH=$(pwd)/models:$GAZEBO_MODEL_PATH
cd ../
source ./env.sh