Skip to content

Commit

Permalink
Dev: gazebo paths made consistent with README
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jun 27, 2024
1 parent 4e223ab commit e1a978d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions dev/source/docs/sitl-with-gazebo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,15 @@ is hosted on GitHub at: `https://github.com/ArduPilot/ardupilot_gazebo <https://
brew update
brew install rapidjson

#. Create a workspace folder and clone the repository

::

mkdir -p gz_ws/src && cd gz_ws/src
git clone https://github.com/ArduPilot/ardupilot_gazebo

#. Build the plugin
#. Clone the repo and build the plugin

Set GZ_VERSION environment variable according to installed gazebo version (replace harmonic with garden if required):

::

export GZ_VERSION=harmonic
cd $HOME
git clone https://github.com/ArduPilot/ardupilot_gazebo
cd ardupilot_gazebo
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
Expand All @@ -137,16 +132,17 @@ in your `.bashrc` or `.zshrc` files:

::

export GZ_SIM_SYSTEM_PLUGIN_PATH=$HOME/gz_ws/src/ardupilot_gazebo/build:$GZ_SIM_SYSTEM_PLUGIN_PATH
export GZ_SIM_RESOURCE_PATH=$HOME/gz_ws/src/ardupilot_gazebo/models:$HOME/gz_ws/src/ardupilot_gazebo/worlds:$GZ_SIM_RESOURCE_PATH
export GZ_SIM_SYSTEM_PLUGIN_PATH=$HOME/ardupilot_gazebo/build:$GZ_SIM_SYSTEM_PLUGIN_PATH
export GZ_SIM_RESOURCE_PATH=$HOME/ardupilot_gazebo/models:$HOME/ardupilot_gazebo/worlds:$GZ_SIM_RESOURCE_PATH

In `.bashrc` or `.zshrc`

::

echo 'export GZ_SIM_SYSTEM_PLUGIN_PATH=$HOME/gz_ws/src/ardupilot_gazebo/build:${GZ_SIM_SYSTEM_PLUGIN_PATH}' >> ~/.bashrc
echo 'export GZ_SIM_RESOURCE_PATH=$HOME/gz_ws/src/ardupilot_gazebo/models:$HOME/gz_ws/src/ardupilot_gazebo/worlds:${GZ_SIM_RESOURCE_PATH}' >> ~/.bashrc
echo 'export GZ_SIM_SYSTEM_PLUGIN_PATH=$HOME/ardupilot_gazebo/build:${GZ_SIM_SYSTEM_PLUGIN_PATH}' >> ~/.bashrc
echo 'export GZ_SIM_RESOURCE_PATH=$HOME/ardupilot_gazebo/models:$HOME/ardupilot_gazebo/worlds:${GZ_SIM_RESOURCE_PATH}' >> ~/.bashrc

Reload your terminal with source ~/.bashrc (or source ~/.zshrc on macOS).

Using Gazebo with ArduPilot
---------------------------
Expand Down

0 comments on commit e1a978d

Please sign in to comment.