Install
These instructions are for installing only Gazebo Launch. If you're interested in using all the Gazebo libraries, not only Gazebo Launch, check out this Gazebo installation.
We recommend following the binary install instructions to get up and running as quickly and painlessly as possible.
The source install instructions should be used if you need the very latest software improvements, if you need to modify the code, or if you plan to make a contribution.
Binary Install
We recommend following the Binary Install instructions to get up and running as quickly and painlessly as possible.
The Source Install instructions should be used if you need the very latest software improvements, you need to modify the code, or you plan to make a contribution.
Ubuntu 20.04 or above
On Ubuntu systems, apt
can be used to install gz-launch
:
Be sure to replace <#>
with a number value, such as 6 or 7, depending on which version you need.
macOS
On macOS, add OSRF packages:
Install Gazebo GUI:
Be sure to replace <#>
with a number value, such as 4 or 5, depending on which version you need.
Source Install
Ubuntu 20.04 or above
Source installation can be performed in UNIX systems by first installing the necessary prerequisites followed by building from source.
Prerequisites
Ubuntu Focal or higher
Install third-party libraries:
sudo apt -y install \$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ')
Install required Gazebo libraries
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -sudo apt-get updatesudo apt-get -y install libgz-cmake4-dev libgz-sim9-dev
Building from source
Clone the repository
git clone https://github.com/gazebosim/gz-launchConfigure and build
cd gz-launch; mkdir build; cd build; cmake ..; makeOptionally, install Gazebo Launch
sudo make install
macOS
Clone the repository
git clone https://github.com/gazebosim/gz-launch -b gz-launch<#>Be sure to replace
<#>
with a number value, such as 4 or 5, depending on which version you need.Install dependencies
brew install --only-dependencies gz-launch<#>Be sure to replace
<#>
with a number value, such as 5 or 6, depending on which version you need.Configure and build
cd gz-launchmkdir buildcd buildcmake ..makeOptionally, install
sudo make install
Documentation
API and tutorials can be found at https://gazebosim.org/libs/launch.
You can also generate the documentation from a clone of this repository by following these steps.
You will need Doxygen. On Ubuntu Doxygen can be installed using
sudo apt-get install doxygenClone the repository
git clone https://github.com/gazebosim/gz-launchConfigure and build the documentation.
cd gz-launch; mkdir build; cd build; cmake ../; make docView the documentation by running the following command from the build directory.
firefox doxygen/html/index.html
Testing
Follow these steps to run tests and static code analysis in your clone of this repository.
- Follow the source install instruction.
Run tests.
make testStatic code checker.
make codecheck