Ubuntu16.04及ROS Kinetic环境下安装使用RealSense SR300

参考:https://blog.csdn.net/Sparta_117/article/details/77851876
进行到编译配置文件这一步的时候:

./scripts/patch-realsense-ubuntu-xenial.sh
bash: ./scripts/patch-realsense-ubuntu-xenial.sh: 没有那个文件或目录

于是去官网查看:https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md

4.Build and apply patched kernel modules for:

Ubuntu 14/16/18 LTS script will download, patch and build realsense-affected kernel modules (drivers).
Then it will attempt to insert the patched module instead of the active one. If failed the original uvc modules will be restored.
./scripts/patch-realsense-ubuntu-lts.sh
Intel® Joule™ with Ubuntu Based on the custom kernel provided by Canonical Ltd.
 ./scripts/patch-realsense-ubuntu-xenial-joule.sh
Arch-based distributions
    You need to install the base-devel package group.
    You also need to install the matching linux-headers as well (i.e.: linux-lts-headers for the linux-lts kernel).
        Navigate to the scripts folder `cd ./scripts/`
        Then run the following script to patch the uvc module:`./patch-arch.sh` 

(注意:以下()内的均为错误步骤!
错误地执行:

./scripts/patch-realsense-ubuntu-lts.sh

总报“连接超时”错误:
于是查询执行了

git config --global url."https://".insteadOf git://

又报这个错误:

正克隆到 './ubuntu-xenial-Ubuntu-hwe-4.13.0-45.50_16.04.1'...
fatal: unable to access 'https://kernel.ubuntu.com/ubuntu/ubuntu-xenial.git/': Failed to connect to kernel.ubuntu.com port 443: 连接超时


于是决定执行

./scripts/patch-realsense-ubuntu-xenial-joule.sh

继续按照https://blog.csdn.net/Sparta_117/article/details/77851876执行!!成功!!

你可能感兴趣的:(Ubuntu16.04及ROS Kinetic环境下安装使用RealSense SR300)