1.1 Install ROS 2 Jazzy
Last updated
Last updated
In this tutorial, we will install ROS 2 Jazzy, Gazebo Harmonic and some useful packages.
You will need a computer or virtual machine running Ubuntu 24.04, and you can create a virtual machine from scratch as following video:
ROS2 Jazzy Jalisco is the latest Long-term support version in 2025 that works comatible with Gazebo Harmonic:
For Gazebo simulator, there might be confusing about its version, and let's make it clear:
Basically, the "old" versions of gazebo is called classic like Gazebo 11 (Gazebo+VersionNo.)
There used to be a new Gazebo version called Ignition to replace the classic.
For some reason, Ignition is renamed to Gazebo again, and use Gazebo+VersionName for the new generations of Gazebo simulator.
Although the new Gazebo has a different user interface with the classic, most of fundamental designs are same or similar, so it is not difficult to move to the new version. While there are lots of differences like the plugins, we will cover this in future tutorials.
For Gazebo Harmonic installation, there are two ways:
Install and run Gazebo Harmonic independently from ROS2.
Install and run Gazebo Harmonic with ROS2. For ROS developers, I recommend this way.
After installation, you need to set up the important environment variables, which tell your computer how to find and use ROS 2 commands and packages. Open a terminal and type:
This wil add the line source /opt/ros/jazzy/setup.bash to your ~/.bashrc file.
Why do this? Each time you open a new terminal window, you are starting a bash session. The bash session needs to know what version of ROS 2 you are using. By adding this line, you can use ROS 2 Jazzy commands and tools without having to manually run the setup.bash script every time.
To take effect, open a new terminal window, or run following cmd in the current terminal:
You can verify that line was added by typing:
If you ever have problems finding or using your ROS 2 packages, make sure that your environment is properly set up using the following command:
If the environment variables are not set correctly, return to the ROS 2 package installation section.
Set up the system to manage ROS package dependencies.
Install turtlesim
Start turtlesim
Open a new terminal and run control node
Install and run rqt tool
If you want to run an example Gazebo simulation world now, you can type:
To make these environment variables permanent, open a terminal window and type:
Now test your Gazebo installation again by typing the following command:
Click on one simulation, and click Run. Close the simulation by typing CTRL + C in the terminal window.
Let’s install some other useful packages like pip (the Python package manager), NumPy (a scientific computing library for Python) etc.
Install terminator to show multiple terminal windows in a single window.
Right-click on the terminator screen, and click “Split Horizontally”.
To install Gazebo Harmonic binaries on Ubuntu 24.04 simply follow the steps .