How to use RealSense with ubuntu 20.04 and ROS Noetic

I used RealSense with ROS Noetic on ubuntu20.04, so I've summarized the steps.


-Ubuntu 20.04LTS ・ Intel RealSense L515

The procedure is the same for D435, D435i, D455, etc.


  1. Install Intel Realsense SDK
  2. ROS Noetic installation
  3. Realsense-ros setup

Install Intel Realsense SDK

Follow the official installation procedure below.

  1. Register your public key
sudo apt-key adv --keyserver --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp:// --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
  1. Register the server in the repository list
sudo add-apt-repository "deb focal main" -u
  1. Install the library
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
  1. Install developer tools and debugger tools
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg
  1. Connect RealSense and start realsense-viewer with the following command

If it is recognized normally and the image is displayed, it is successful.

Screenshot from 2021-01-01 19-28-32.png

Install ROS Noetic

Please install by referring to the official installation guide and the following articles. Note that the package names related to python from Noetic have changed from python-* to python3- *.

Install ROS Noetic ubuntu20.04

Realsense-ros setup

Install the following ROS wrapper.

Move to workspace

cd ~/catkin_ws/src/

Download source code

git clone
cd realsense-ros/
git checkout `git tag | sort -V | grep -P "^2.\d+\.\d+" | tail -1`

Build the package

cd ~/catkin_ws/
catkin_make clean

I get the following error:

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "ddynamic_reconfigure" with any of the following names:


  Add the installation prefix of "ddynamic_reconfigure" to CMAKE_PREFIX_PATH
  or set "ddynamic_reconfigure_DIR" to a directory containing one of the
  above files.  If "ddynamic_reconfigure" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  realsense-ros/realsense2_camera/CMakeLists.txt:11 (find_package)

Since there is no ddynamic_reconfigure, install it with the following.

sudo apt-get install ros-noetic-ddynamic-reconfigure

Build again

cd ~/catkin_ws/
catkin_make clean

realsense-ros operation check

Start realsense2_camera with the following command

roslaunch realsense2_camera rs_camera.launch 

Launch Image View in another terminal

rosrun rqt_image_view rqt_image_view 

If you select an image topic such as/camera/color/image_raw and the image is displayed, you are successful.

Screenshot from 2021-01-01 20-41-38.png


Recommended Posts

How to use RealSense with ubuntu 20.04 and ROS Noetic
How to use nfs protocol version 2 with ubuntu 18.04
How to use StringBurrer and Arrays.toString.
How to use equality and equality (how to use equals)
How to use Bio-Formats on Ubuntu 20.04
How to use mssql-tools with alpine
ubuntu20.04 ・ Run RTAB-MAP with ROS Noetic (1)
How to install and use Composer on an ECS instance on Ubuntu 16.04
How to use OrientJS and OrientDB together
How to use BootStrap with Play Framework
How to set up and use kapt
How to use substring and substr methods
How to use @Builder and @NoArgsConstructor together
[Swift] How to connect TabBar with Storyboard Reference and also use NavigationController
How to use args :, environment :, env_file: and .env files with docker-compose command
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to use built-in h2db with spring boot
How to use Java framework with AWS Lambda! ??
How to use Segmented Control and points to note
How to use Java API with lambda expression
How to use scope and pass processing (Jakarta)
How to build API with GraphQL and Rails
How to use docker compose with NVIDIA Jetson
How to use nginx-ingress-controller with Docker for Mac
[Java] How to use Calendar class and Date class
How to use Map
How to use rbenv
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use map
Install ROS Noetic ubuntu20.04
How to use collection_select
How to use Twitter4J
How to use active_hash! !!
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
[How to use label]
How to use identity
How to use hashes
How to use JUnit 5
How to use Dozer.mapper
How to use Gradle
How to use org.immutables
How to use
How to use VisualVM
How to use Map
How to use ToolBar with super margin Part1 Set characters and change colors
How to use Eclipse on my PC with 32bit and 2GB of memory
How to use Oracle JDK 9 EA with Travis CI
How to use Z3 library in Scala with Eclipse
How to remove Ubuntu when dual booting Windows and Ubuntu
How to serialize and deserialize LocalDateTime type with GSON
How to use JDD library in Scala with Eclipse
How to install Gradle and Kotlin with SDKMAN (Mac)
Common problems with WSL and how to deal with them
How to use and apply Java's JFrame / Canvas class
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
[Java] How to use Map
How to use Chain API