-
Notifications
You must be signed in to change notification settings - Fork 1
Building Gazebo from source
Gazebo is the backbone of Revolve kit. The current version of Gazebo that we support is Gazebo 10. Here we explain the build instructions for Ubuntu and Mac OS X.
[ Ubuntu . Fedora . Mac OS X ]
-
Make sure you have removed the Ubuntu pre-compiled binaries before installing from source:
sudo apt-get remove '.*gazebo.*' \ '.*sdformat.*' \ '.*ignition-math.*' \ '.*ignition-msgs.*' \ '.*ignition-transport.*'
-
Install OSRF simulation dependancies:
sudo apt-get install libignition-cmake-dev \ libignition-common-dev \ libignition-math4-dev \ libignition-msgs-dev \ libignition-tools1-dev \ libignition-transport4-dev \ libsdformat6-dev \ libsimbody-dev
-
Install Gazebo on your machine:
cd gazebo mkdir build && cd build cmake .. -DENABLE_SSE4=1 \ -DCMAKE_INSTALL_PREFIX=~/installed/gazebo_debug make -j4 make install
-
Test if the installation was successful. You can do this in two ways.
- First, if you run
gzserver
in verbose mode:The result of this command should be:export PATH=~/installed/gazebo_debug/bin:$PATH export LD_LIBRARY_PATH=~/installed/gazebo_debug/lib64 gzserver --verbose
Gazebo multi-robot simulator, version 9.6.0 Copyright (C) 2012-2015 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.1.72
- Second, if
gzserver
works as expected you can rungazebo
:The result of this command should be:export PATH=~/installed/gazebo_debug/bin:$PATH export LD_LIBRARY_PATH=~/installed/gazebo_debug/lib64 gazebo
See next: Installation instructions for Revolve
TODO
In a clean Mac OS X installation you can install pre-compiled versions of all dependencies:
-
If not already available, install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install XQuartz, which provides X11 support and is required by Gazebo and OGRE.
-
For 10.8 and earlier, install Xcode command-line tools by downloading them from Apple. For 10.9 and later, the system should prompt you to install them when you install Homebrew in step 1, otherwise install it with:
xcode-select --install
-
Install OSRF simulation dependancies:
brew tap osrf/simulation brew install ignition-cmake0 \ ignition-common1 \ ignition-math4 \ ignition-msgs1 \ ignition-tools \ ignition-transport4 \ sdformat6 \ simbody TODO maybe some dependencies are missing
-
Download Gazebo
git clone https://github.com/ci-group/gazebo.git -b gazebo10-revolve
-
Install Gazebo on your machine:
cd gazebo mkdir build && cd build cmake .. -DENABLE_SSE4=1 \ -DCMAKE_INSTALL_PREFIX=~/installed/gazebo_debug \ -DQWT_WIN_INCLUDE_DIR=/usr/local/lib/qwt.framework/Headers \ -DQWT_WIN_LIBRARY_DIR=/usr/local/lib/qwt.framework \ -DQt5_DIR=/usr/local/Cellar/qt/5.12.3/lib/cmake/Qt5/ make -j4 make install
and check if the right version is installed
gazebo --version
The result of this command should be:
Gazebo multi-robot simulator, version 9.6.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org
-
Test if the installation was successful. You can do this in two ways.
- First, if you run
gzserver
in verbose mode:The result of this command should be:export PATH=~/installed/gazebo_debug/bin:$PATH export DYLIB_LIBRARY_PATH=~/installed/gazebo_debug/lib64 gzserver --verbose
Gazebo multi-robot simulator, version 9.6.0 Copyright (C) 2012-2015 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.1.72
- Second, if
gzserver
works as expected you can rungazebo
:The result of this command should be:gazebo
See next: Installation instructions for Revolve
For more information about the Triangle of Life concept visit http://evosphere.eu/.
_________________
/ Premature \
| optimization |
| is the root of |
| all evil. |
| |
\ -- D.E. Knuth /
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||