Skip to content

Instantly share code, notes, and snippets.

@jlblancoc
Last active October 2, 2024 13:10
Show Gist options
  • Save jlblancoc/ae2a082b0ed5af2e71645b04b7207210 to your computer and use it in GitHub Desktop.
Save jlblancoc/ae2a082b0ed5af2e71645b04b7207210 to your computer and use it in GitHub Desktop.
Install Azure Kinect DK on Ubuntu 22.04 or newer

Install lib4adev driver library

The Microsoft Kinect for Azure (k4a) is only supported officially for Ubuntu 18.04.

Here are instructions to install its library in a more recent OS:

# Download these two .deb files: 
wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/libk4a1.4-dev/libk4a1.4-dev_1.4.1_amd64.deb
wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/libk4a1.4/libk4a1.4_1.4.1_amd64.deb

# Install them:
sudo apt install ./*.deb

Create the rules.d file to allow opening the camera without "root" permissions:

Use from ROS2

Build the "humble" branch from https://github.com/microsoft/Azure_Kinect_ROS_Driver/tree/humble

Launch the ROS2 node with a launch file (fails?), or directly as:

./install/azure_kinect_ros_driver/bin/node \
  --ros-args \
  -p fps:=30 \
  -p color_enabled:=true \
  -p rgb_point_cloud:=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment