-
Notifications
You must be signed in to change notification settings - Fork 1
/
install16.sh
47 lines (34 loc) · 1.31 KB
/
install16.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
#Update Keys
sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo -E apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update
sudo apt-get upgrade
#Intel Realsense SDK
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
sudo apt-get update
sudo apt-get upgrade
#Realsense Firmware Update
#ROS Packages
cd ~
git clone https://github.com/laukik-hase/rsslam_ws
cd rsslam_ws/src
catkin_init_workspace
cd ..
catkin_make -j2 -DCATKIN_WHITELIST_PACKAGES="ddynamic_reconfigure;depthimage_to_laserscan;realsense-ros;rgbd_launch"
echo "source ~/rsslam_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
cd ~
git clone https://github.com/introlab/rtabmap.git
cd rtabmap/build
cmake -DCMAKE_INSTALL_PREFIX=~/rsslam_ws/devel ..
make -j2
sudo make -j2 install
echo "source ~/rsslam_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
cd ~/rsslam_ws
catkin_make -j2 -DCATKIN_WHITELIST_PACKAGES=""
echo "source ~/rsslam_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc