Robot Operating System: Installation Instructions for Ubuntu

The Robot Operating System ROS is provided as several Debian packages. Installation instructions specifically target the Ubuntu distribution. If you want to get ROS running, its best to do so on an Ubuntu system. But what to do if you cannot use Ubuntu or have another operating system like OsX?

This article is an essential description of how to get the Robot Operating System running. If you use Ubuntu, install it natively. If not, I recommend to install VM with a virtualization software of your choice. Just follow the steps outlined in the next sections, and you will have a fully working ROS system.

This article originally appeared at my blog admantium.com.

Setup Ubuntu in a VM

The official ROS installation manual lists installation steps for Linux (Debian, Ubuntu, Arch Linux), Windows 10 and Mac OsX. But as I mentioned in the introduction, from my experience the compatibility of ROS packages is best in Ubuntu Linux.

Therefore, if you do not have a spare PC, I recommend to get VMWare Fusion player with a free license, and then install Ubuntu as a VM:

  1. Get a free key for VMware Fusion Player
  2. On the same page, download VMware Fusion player for your operating System
  3. Install VMware Fusion Player
  4. Get the Ubuntu 20.04 ISO
  5. Install Ubuntu as a VMware virtual machine

VmWare Fusion Player feature a comfortable auto installation mode in which you don’t need any manual interactions. After a short amount of time, the VM is ready and you can continue to install ROS.

Setup ROS

On your Ubuntu machine, follow these steps to install ROS Noetic:

  1. Add the ROS package repository to your sources.list, and import the required keys.

2. For maximum compatibility of your system with the tutorials and other systems, make a Desktop Full Install of ROS

3. Install additional packages:

Starting ROS

When all packages are installed, it’s time to test the installation.

  1. Run the following command to export additional path variables in your shell, so that you can execute all the ROS binaries

2. Start a demo of the simulation tool gazebo

3. If you see the GUI application starting — like in the following picture — your installation is complete.

4. Now permanently add the new new env vars to your shell with

Congrats! ROS is installed, and you can proceed with one of the many tutorials.

Conclusion

This short article showed the essential steps to install the Robot Operating System. After trying an Installation on OsX, I can only recommend to use an Ubuntu System — either on a spare PC, or on a Virtual Machine — to achieve maximum capability and in order to use all ROS packages.

IT Project Manager & Developer