Skip to content

Commit

Permalink
adds macos mods for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
msis committed Aug 4, 2023
1 parent 0c4874a commit 82be2b0
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion docs/3-module/gazebo_simulation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,35 @@ In Windows, the simulation will run, but the GUI will not work.
<Tabs groupId="operating-systems">
<TabItem value="macos" label="macOS">

First we add the `osrf/simulation` tap:
First we need to install ruby from Homebrew:

```bash
brew install ruby
```

Then we have to add the Homebrew Ruby to our path:

```bash
echo 'export PATH="$(brew --prefix)/opt/ruby/bin:$PATH"' >> ~/.zshrc
```

Now, we add the `osrf/simulation` tap:

```bash
brew tap osrf/simulation
```

:::tip Apple Silicon-based Macs

For Apple Silicon-based Macs, we need to modify the Formulae before installing Gazebo.

```bash
cd /opt/homebrew/Library/Taps/osrf/homebrew-simulation/Formula
sed -i '' 's|cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}"|cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath};/opt/homebrew/lib"|' *.rb
```

:::

Next we install Gazebo:

```bash
Expand Down

0 comments on commit 82be2b0

Please sign in to comment.