forked from lacie-life/robot_perception_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSLAMLib.sh
More file actions
executable file
·107 lines (55 loc) · 1.5 KB
/
SLAMLib.sh
File metadata and controls
executable file
·107 lines (55 loc) · 1.5 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
echo "SLAM Common Library Install"
echo "g2o Install...."
echo "Dependencies Install"
sudo apt-get -y install libsuitesparse-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev-qt5
wget https://github.com/RainerKuemmerle/g2o/archive/refs/tags/20201223_git.tar.gz
tar -zxvf 20201223_git.tar.gz
cd g2o-20201223_git
mkdir build
cd build
cmake ..
make -j12
sudo make install
echo "g2o Install Success"
cd ../..
echo "Pangolin Install"
sudo apt-get install -y libglew-dev
git clone --recursive https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
./scripts/install_prerequisites.sh --dry-run recommended
mkdir build && cd build
cmake ..
cmake --build .
sudo make install
cd ../..
echo "Pangolin Install Success"
echo "Ceres Solver Install"
wget http://ceres-solver.org/ceres-solver-2.0.0.tar.gz
sudo apt-get -y install cmake
sudo apt-get -y install libgoogle-glog-dev libgflags-dev
sudo apt-get -y install libatlas-base-dev
sudo apt-get -y install libeigen3-dev
sudo apt-get -y install libsuitesparse-dev
tar zxf ceres-solver-2.0.0.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-2.0.0
make -j8
make test
sudo make install
cd ../..
echo "Ceres Solver Install Success"
echo "GTSAM Install"
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libtbb-dev
wget https://github.com/borglab/gtsam/archive/refs/tags/4.0.3.tar.gz
tar zxf 4.0.3.tar.gz
cd gtsam-4.0.3
mkdir build
cd build
cmake ..
make -j8
sudo make install
cd ../..
echo "GTSAM Install Success"