Overview
This tutorial describes how to install Gazebo Utils on Linux, Mac OS X and Windows via either a binary distribution or from source.
- Binary Install
- Source Install
- Prerequisites
- Building from Source
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.
Binary Install
Ubuntu Linux
Setup your computer to accept software from packages.osrfoundation.org:
Setup keys:
Install Gazebo Utils:
Be sure to replace <#>
with a number value, such as 1 or 2, depending on which version you need.
macOS
On macOS, add OSRF packages:
Install Gazebo utils:
Be sure to replace <#>
with a number value, such as 1 or 2, depending on which version you need.
Windows
Install Conda package management system. Miniconda suffices.
Create if necessary, and activate a Conda environment:
Install gz-utils
:
Be sure to replace <#>
with a number value, such as 1 or 2, depending on which version you need.
Source Install
Source installation can be performed in UNIX systems by first installing the necessary prerequisites followed by building from source.
Ubuntu
Install tools
sudo apt install -y build-essential cmake git gnupg lsb-release wgetClone the repository
git clone https://github.com/gazebosim/gz-utils -b gz-utils<#>Be sure to replace
<#>
with a number value, such as 1 or 2, depending on which version you need.Install dependencies
sudo apt -y install \$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | tr '\n' ' '))Configure and build
cd gz-utils; mkdir build; cd build; cmake ..; makeOptionally, install Gazebo Utils
sudo make install
macOS
Clone the repository
git clone https://github.com/gazebosim/gz-utils -b gz-utils<#>Be sure to replace
<#>
with a number value, such as 1 or 2, depending on which version you need.Install dependencies
brew install --only-dependencies gz-utils<#>Be sure to replace
<#>
with a number value, such as 1 or 2, depending on which version you need.Configure and build
cd gz-utilsmkdir buildcd buildcmake ..makeOptionally, install
sudo make install
Windows
This assumes you have created and activated a Conda environment while installing the Prerequisites.
Navigate to where you would like to build the library, and clone the repository.
# Optionally, append `-b gz-utils#` (replace # with a number) to check out a specific versiongit clone https://github.com/gazebosim/gz-utils.gitConfigure and build
cd gz-utilsmkdir buildcd buildcmake .. -DBUILD_TESTING=OFF # Optionally, -DCMAKE_INSTALL_PREFIX=path\to\installcmake --build . --config ReleaseOptionally, install
cmake --install . --config Release
Documentation
API and tutorials can be found at https://gazebosim.org/libs/utils.
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-utilsConfigure and build the documentation.
cd gz-utilsmkdir buildcd buildcmake ../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