[Gazebo Installation Tutorial] Detailed explanation of the latest installation process in 2023!

Install

Experimental environment: ubuntu22.04LTS


Install Gazebo

First we need to install the necessary tools

sudo apt-get update
sudo apt-get install lsb-release wget gnupg

Then modify the source and update it to update

sudo wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
sudo apt-get update

Finally, just run and download the gazebo body directly
(currently it is the latest method, and the installation method published on the Internet in 2022 is basically fruitful, and there is a high probability that the software package cannot be found, so please use the following method to install gazebo)

sudo apt-get install gazebo

Start Gazebo

After successful installation (approximately 1GB of space is required), click "Show Applications" in the lower left corner of the desktop, find the gazebo shortcut in it, click to open

Of course, for convenience, you can also drag the shortcut to the left navigation bar

The interface after successful operation is like this

insert image description here


Install the remaining version of Gazebo

When you go to the gazebo official website, the installation method given on the official website uses the GazeboGarden version. After the installation is complete, it runs the GazeboSim interface, not the GazeboGUI interface we use for simulation.

So don't follow the steps on the official website to install Gazebo

If necessary, you can go to the installation interface of the official website to check further: Go to the official website


Guess you like

Origin blog.csdn.net/delete_you/article/details/132295188