Loading [MathJax]/extensions/MathZoom.js

Realsense: install realsense SDK in Docker

Share:

Objective:

  • Install and use Realsense camera in Docker image

如何在Docker中安装与使用Realsense camera

Docker image

Ubuntu 16

# Install Realsense
RUN apt update \
    && apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \
    && add-apt-repository -y "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u \
    && apt-get install -y librealsense2-dkms librealsense2-utils

Ubuntu 18

# Install Realsense
RUN apt update \
    && apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \
    && add-apt-repository -y "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u \
    && apt-get install -y librealsense2-dkms librealsense2-utils

Docker-compose

Access camera devices on host:

   devices:
        - /dev:/dev

realsense-viewer

Post a Comment