forked from microsoft/Azure_Kinect_ROS_Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·37 lines (27 loc) · 1.17 KB
/
install.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
#!/bin/bash
# Reference: https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1263#issuecomment-710698591
echo "╔══╣ Install: k4a-tools for Azure Kinect (STARTING) ╠══╗"
# Install dependencies
sudo apt-get update
sudo apt install -y \
software-properties-common \
curl \
dialog
# Add Microsoft’s official GPG key (Use 18.04 for 20.04)
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/multiarch/prod
# Set up the stable repository
curl -sSL https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list | sudo tee /etc/apt/sources.list.d/microsoft-prod.list
# Install the latest stable version of k4a
sudo apt-get update
sudo apt-get install -y \
libk4a1.4-dev \
libk4abt1.0-dev \
k4a-tools=1.4.0
# Add rules file
wget https://raw.githubusercontent.com/microsoft/Azure-Kinect-Sensor-SDK/develop/scripts/99-k4a.rules
sudo mv 99-k4a.rules /etc/udev/rules.d/
# Install ROS packages for rtabmap demo
sudo apt-get install -y \
ros-${ROS_DISTRO}-rtabmap-ros
echo "╚══╣ Install: k4a-tools for Azure Kinect (FINISHED) ╠══╝"