Skip to main content

ROS2 Humble Installation

Prerequisites

  • ReComputer must have Jetpack 5.1.2 and Ubuntu 20.04 environment installed

Set Locale

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

Install Dependencies

sudo apt update && sudo apt install gnupg wget
sudo apt install software-properties-common
sudo add-apt-repository universe

Initialize Sources (Choose One Region)

# US Region
echo 'deb https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal main' | sudo tee -a /etc/apt/sources.list

# China Region
echo 'deb https://isaac.download.nvidia.cn/isaac-ros/ubuntu/main focal main' | sudo tee -a /etc/apt/sources.list

Add ROS 2 APT Repository

sudo apt update && sudo apt install curl -y \
&& sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

Install ROS2

sudo apt update
sudo apt install ros-humble-desktop-full # Options: ros-humble-desktop-full, ros-humble-desktop, or ros-humble-ros-base

Install Additional Build Tools

sudo apt install ros-dev-tools

Initialize ROS Environment

sudo rosdep init
rosdep update

Set Up ROS Environment Variables

echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
source ~/.bashrc

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...