-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_project.sh
executable file
·85 lines (59 loc) · 1.84 KB
/
build_project.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
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
echo "----------------------- ORB_SLAM2 -----------------------"
echo ""
BUILD_TYPE=Release
NUM_PROC=8
BASEDIR="$PWD"
echo "-------------------Configuring and building Thirdparty/DBoW2------------------------"
cd "$BASEDIR/Thirdparty/DBoW2"
rm -rf build/ lib/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
make -j$NUM_PROC
echo "-------------------Configuring and building Thirdparty/g2o-------------------"
#echo "already installed library"
echo ""
cd "$BASEDIR/Thirdparty/g2o"
rm -rf config.h build/ lib/ bin/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
make -j$NUM_PROC
echo "-----------------------Uncompressing vocabulary-----------------------"
echo ""
cd "$BASEDIR/Vocabulary"
rm -rf ORBvoc.txt
tar -xf ORBvoc.txt.tar.gz
echo ""
echo "----------------------- Building ORB_SLAM2 project-----------------------"
cd "$BASEDIR/Examples/Monocular"
rm -rf mono mono_euroc mono_kitti mono_tum
cd "$BASEDIR/Examples/RGB-D"
rm -rf rgbd_tum
cd "$BASEDIR/Examples/Stereo"
rm -rf stereo_kitti stereo_euroc
cd "$BASEDIR"
rm -rf build/ lib/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
make -j$NUM_PROC
echo "-----------------------Compiling ---VISION ONLY--- ORB_SLAM2 >>>(ROS)<<< nodes-----------------------"
cd "$BASEDIR/Examples/ROS/ORB_SLAM2"
rm -rf cameraPub RT_Mono MonoAR RGBD Stereo build/ lib/
mkdir build
cd build
cmake -DROS_BUILD_TYPE=$BUILD_TYPE ..
make -j$NUM_PROC
#echo "-----------------------Compiling ---VISUAL INERTIAL--- ORB_SLAM2 >>>(ROS)<<< nodes-----------------------"
#cd "$BASEDIR/Examples/ROS/ORB_VISLAM"
#rm -rf build/ lib/
#mkdir build
#cd build
#cmake -DROS_BUILD_TYPE=$BUILD_TYPE ..
#make -j$NUM_PROC
#echo ""
#echo "Launch file in Examples/ROS/ORB_VISLAM/launch."
#echo "Modify the configuration file config/euroc.yaml"
#echo "Run as: roslaunch ORB_VIO testeuroc.launch"
#echo ""