How to Launch Gazebo in Ubuntu

launch-gazebo

Gazebo is a 3D simulator that is a really good tool if you want to simulate your robot in a complex outdoor or indoor environment. In this post, I will show you how to launch Gazebo in Ubuntu.

You Will Need

Before you launch Gazebo, it is important you have it installed on your Ubuntu Linux distribution. If you already have ROS on your system or you followed my ROS installation tutorial, Gazebo is already installed. Otherwise, check out this link at the official Gazebo website and follow the instructions to install Gazebo on Ubuntu.


Directions

To launch Gazebo for the first time, open up a new terminal window, and type the following command. It normally takes a while to launch the first time, so just sit back and relax while Gazebo does its thing:

gazebo

Here is what your screen should look like.

1-launch-gazeboJPG

But that is not what my screen looked like at all. I got this ugly error message on my terminal window.

2-terminal-messageJPG

The error is:

[Err] [REST.cc:205] Error in REST request

libcurl: (51) SSL: no alternative certificate subject name matches target host name ‘apt.ignitionfuel.org’

To resolve this error, press CTRL+C on your keyboard to close Gazebo.

Open up a new terminal tab and type:

cd ~/.ignition/fuel/
3-config-yamlJPG

Type dir and press Enter.

You should see the config.yaml file.

4-change-urlJPG

Open up that file.

gedit config.yaml 

Change:

url: https://api.ignitionfuel.org

to

url: https://api.ignitionrobotics.org

Click Save.

Close the window.

Now open up a new terminal window and launch Gazebo.

gazebo
5-no-errorJPG

You will see there is now no error. That’s it!