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:
```sh 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 '
' ' ') ```
Install required Gazebo libraries
``
sh sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable</tt>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 update sudo apt-get -y install libgz-cmake3-dev libgz-sim2-dev ```
Building from source
Clone the repository
```sh git clone https://github.com/gazebosim/gz-launch ```
Configure and build
```sh cd gz-launch; mkdir build; cd build; cmake ..; make ```
Optionally, install Gazebo Launch
```sh sudo make install ```
macOS
- Clone the repository
Be sure to replace
<#>
with a number value, such as 4 or 5, depending on which version you need.
- Install dependencies
Be sure to replace
<#>
with a number value, such as 5 or 6, depending on which version you need.
- Configure and build
- Optionally, 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
```sh sudo apt-get install doxygen ```
Clone the repository
```sh git clone https://github.com/gazebosim/gz-launch ```
Configure and build the documentation.
```sh cd gz-launch; mkdir build; cd build; cmake ../; make doc ```
View the documentation by running the following command from the build directory.
```sh 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.
```sh make test ```
Static code checker.
```sh make codecheck ```