Installing ROS2 on Ubuntu 22.04

The New ROS, The New Ubuntu

Rahul Bhadani
3 min readOct 5, 2022
The author generated the image using an AI tool using the prompt “a robot in a futuristic city”.

Since the inception of ROS in 2007, it has become a defacto tool for writing robotic software applications. Over time, developers, researchers, and the robotics community realized ROS as it is insufficient for evolving demands of the robotics industry and future applications. ROS lacked real-time behavior deterministically, which is unsuitable for developing safety-critical real-time applications. Thus came ROS 2.0 or simply, ROS2. The first version of ROS2 was released on December 2017 and since then it has kept evolving and getting better. ROS2 uses Data Distribution Service (DDS) which provides low-latency data connectivity, extreme reliability, and scalable architecture.

In this article, I will go through the installation procedure of ROS2 for Ubuntu 22.04 which is the latest long-term supported Ubuntu distribution as of writing this article. The latest version of ROS2 is ROS Humble.

Installation

First, we set the locale for the system to UTF-8.

locale  # check for UTF-8

sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8

locale # verify settings

--

--

Rahul Bhadani
Rahul Bhadani

Written by Rahul Bhadani

Asst. Professor, @UAH | @uarizona PhD, ECE | Intelligent Transportation & Quantum Science Researcher | Donation: https://www.buymeacoffee.com/rahulbhadani