Install the latest Intel® RealSense™ SDK 2.0
英文版原址:Install the latest Intel® RealSense™ SDK 2.0 Debian Package
Intel® RealSense™ SDK 2.0为Ubuntu16/18提供了dpkg的安装包
librealsense2-dkms支持LTS版的4.4, 4.10, 4.13 and 4.15
安装:
Register the server’s public key :
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
加入更新源列表 :
Ubuntu 16 LTS:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
Ubuntu 18 LTS:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u
更新:
sudo rm -f /etc/apt/sources.list.d/realsense-public.list
sudo apt-get update
安装驱动和演示程序:
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
重新链接深度相机并执行命令验证驱动是否安装成功: realsense-viewer.
利用深度相机开发需要的包:
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg
安装了librealsense2-dev,我们可以使用g++ -std=c++11 filename.cpp -lrealsense2
或者IDE编译使用librealsense库的应用。