forked from luigifreda/plvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_dependencies.sh
executable file
·51 lines (40 loc) · 1.86 KB
/
install_dependencies.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
#!/usr/bin/env bash
echo "Installing main dependencies ..."
set -e
# generic
sudo apt-get update
sudo apt-get install -y build-essential cmake
sudo apt-get install -y libeigen3-dev
sudo apt-get install -y libopenni-dev libopenni2-dev libpcl-dev
sudo apt-get install -y curl software-properties-common
#sudo apt-get install -y libzstd-devel
# pangolin
sudo apt-get install -y libglew-dev libglfw3 libglfw3-dev
sudo apt-get install ffmpeg -y libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev
sudo apt-get install libjpeg-dev -y libpng-dev libtiff5-dev libopenexr-dev
# g2o new
sudo apt-get install -y libsuitesparse-dev
# voxblox and volumetric mapping
sudo apt-get install -y libgoogle-glog-dev
sudo apt-get install -y libprotobuf-dev protobuf-compiler
sudo apt-get install -y libpcl-conversions-dev liboctomap-dev
# python for rgbd-tum dataset tools and evo package
sudo apt-get install -y python3-pip python3-scipy python3-sklearn-pandas
# realsense
# see https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages
sudo apt-get install -y apt-transport-https
if [ ! -d /etc/apt/keyrings ]; then
sudo mkdir -p /etc/apt/keyrings
fi
if [ ! -f /etc/apt/sources.list.d/librealsense.list ]; then
curl -sSf https://librealsense.intel.com/Debian/librealsense.pgp | sudo tee /etc/apt/keyrings/librealsense.pgp > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.intel.com/Debian/apt-repo `lsb_release -cs` main" | \
sudo tee /etc/apt/sources.list.d/librealsense.list
sudo apt-get update
fi
sudo apt-get install -y librealsense2-dkms librealsense2-utils
sudo apt-get install -y librealsense2-dev librealsense2-dbg
# ros
# see https://catkin-tools.readthedocs.io/en/latest/installing.html
sudo pip3 install -U catkin_tools
echo "...All deps installed!"