-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.sh
executable file
·42 lines (38 loc) · 1.09 KB
/
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
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# g2o compilation
if [ ! -d 3rdParty/g2o/build ]; then
printf "${YELLOW}Building g2o ...${NC}\n"
cd 3rdParty
cd g2o
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install
cd ../../..
printf "${YELLOW}g2o built!${NC}\n"
else
printf "${YELLOW}g2o already built ...${NC}\n"
fi;
# Visual place recognition
if [ ! -e resources/VisualPlaceRecognition/settings.yml ]; then
printf "${YELLOW}Downloading VisualPlaceRecognition.tar.gz ...${NC}\n"
mkdir -p resources/VisualPlaceRecognition/
cd resources/VisualPlaceRecognition/
wget http://lrm.put.poznan.pl/files/OPUS/VisualPlaceRecognition.tar.gz
printf "${YELLOW}Unpacking VisualPlaceRecognition.tar.gz ...${NC}\n"
tar -xf VisualPlaceRecognition.tar.gz
cd ../../
printf "${YELLOW}VisualPlaceRecognition.tar.gz unpacked!${NC}\n"
else
printf "${YELLOW}VisualPlaceRecognition.tar.gz already unpacked ...${NC}\n"
fi;
# PUTSLAM
printf "${YELLOW}Building PUTSLAM ...${NC}\n"
mkdir -p build
cd build
cmake ..
make -j$(nproc)
cd ..
printf "${YELLOW}PUTSLAM built finished!${NC}\n"