Skip to content

1.2 ROS Installation

The ROS version we are using is Noetic, which can be installed on Ubuntu 20.04, Mac, or Windows 10 systems. Although most general users typically use Windows as their primary operating system, previous versions of ROS had limited support for Windows. Therefore, we have chosen Ubuntu as our operating system to facilitate compatibility with historical versions. There are two common methods for installing Ubuntu:

  • Installing Ubuntu on physical hardware (the most common approach is dual-booting with Windows and Ubuntu coexisting);
  • Installing Ubuntu on a virtual machine.

Both approaches have their respective advantages and disadvantages:

  • Option 1 ensures optimal performance and avoids hardware compatibility issues, but makes interaction with the Windows system less convenient;
  • Option 2 facilitates seamless interaction between Windows and Ubuntu, though performance is slightly inferior and hardware interaction may be limited.

In ROS, some simulation operations are quite resource-intensive and often require interaction with various hardware components (LIDAR, cameras, IMUs, STM32, Arduino, etc.). Therefore, Option 1 is recommended in principle. However, for learning purposes only, Option 2 is generally sufficient. Moreover, Option 2 offers greater convenience for Windows-Ubuntu interaction, making it more user-friendly for learners. Thus, this tutorial will use Option 2. Of course, the specific implementation approach should be chosen according to your needs.

If you choose to install Ubuntu on a virtual machine and then install ROS, the general workflow is as follows:

  1. Install virtualization software (e.g., VirtualBox or VMware);
  2. Create a virtual machine using the virtualization software;
  3. Install Ubuntu 20.04 on the virtual machine;
  4. Install ROS on Ubuntu;
  5. Test whether the ROS environment can run properly.

For our learning purposes, both VirtualBox and VMware can meet the requirements. Comparing the two, the former is free while the latter is paid, so this tutorial will use VirtualBox.