IQR Lab Docs
GitHub
GitHub
  • Introduction
  • Computer Vision

    • Intel NUC
    • Intel RealSense
    • Kalibr
    • Pointcloud Stitching
    • IQR Vision Utilities
  • Vention

    • Introduction [Under Construction]
  • Kinova

    • Introduction [Under Construction]
  • Website

    • Adding a new lab member

Intel RealSense

Firmware Updates

Use the rs-fw-update binary installed with the librealsense2 SDK to update the firmware on the camera. For latest firmware downloads, please visit this page and match the firmware with your specific RealSense model.

You can also use the GUI tool in realsense-viewer to update the firmware.

If you are starting with a new camera, it is recommended to update the firmware to the latest version before beginning development.

Installation (Prerequisites)

Important: Ensure that your kernel matches the versions supported by the librealsense2-dkms package if you are not installing from source. Please refer to the official documentation for more details.

The following steps must be completed before installing the librealsense2 SDK through either method.

  1. Reboot the system into the UEFI:
    systemctl reboot --firmware-setup
    
  2. Disable Secure Boot in the UEFI settings.

Installation (Prebuilt Binaries)

For installation of the librealsense2 SDK on Ubuntu 22.04, please follow the official documentation for installation via distribution package channels.

In general, the following commands should suffice.

sudo mkdir -p /etc/apt/keyrings

curl -sSf https://librealsense.intel.com/Debian/librealsense.pgp | sudo tee /etc/apt/keyrings/librealsense.pgp > /dev/null

sudo apt-get install apt-transport-https

echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.intel.com/Debian/apt-repo `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/librealsense.list

sudo apt-get update

sudo apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev

As of the time of writing, the NUCs require a manual modification to the librealsense2-dkms post-install script.

  1. Open /var/lib/dpkg/info/librealsense2-dkms.postinst in your editor of choice as root.
  2. Delete the following line:
    sudo modprobe -r uvcvideo && sudo modprobe -r videodev
    
  3. Also delete the same line from /var/lib/dpkg/info/librealsense2-dkms.postrm for version upgrades

Installing from Source (Alternative Method)

Installation from source is similar to the documentation provided by Intel.

Assumptions

Familiarity with the provided RealSense SDK Manual Linux Installation Instructions.

Install librealsense2 SDK

  1. Install all dependencies for Ubuntu 22.04.
  2. Clone the librealsense repo.
    git clone https://github.com/IntelRealSense/librealsense.git && cd librealsense
    
  3. Run Intel Realsense permissions script from librealsense2 root directory:
    ./scripts/setup_udev_rules.sh
    
  4. Build and apply patched kernel modules (only if not using backend bypass):
    ./scripts/patch-realsense-ubuntu-lts-hwe.sh
    
  5. Build the librealsense2 SDK and install the binaries.

    Use the following build command:

    mkdir -p build && cd build
    cmake ../ -DCMAKE_BUILD_TYPE=Release \
    -DFORCE_RSUSB_BACKEND=true # if using backend bypass
    make && sudo make install
    
  6. Follow the instructions for compiling and installing the binaries

    Tip: Use -j10 flag in make commands for parallel compilation

Install librealsense2 Python Wrapper

  1. There is no need to build the Python wrapper from source. Install the pre-built package with pip
    pip install pyrealsense2
    
Edit this page
Last Updated:
Contributors: Neil Song
Prev
Intel NUC
Next
Kalibr