Setting up ROS on Ubuntu 20.04

Environment

Ubuntu 20.04

Setup Sources

First install curl

sudo apt update && sudo apt install curl
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

Add the ROS key with apt.

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

Installation

sudo apt update
sudo apt install ros-noetic-desktop

To install support for 2D/3D visualization tools

sudo apt install ros-noetic-desktop-full

Environment setup

Put this line in bashrc

~/.bashrc
...
# ROS Noetic
source /opt/ros/noetic/setup.bash
...

Install dependencies for building packages

sudo apt install build-essential
sudo apt install python3-pip
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool

Install catkin

sudo apt install python3-catkin-lint python3-catkin-tools

Last updated

Was this helpful?