# Nav2 example with (Ignition) Gazebo Fortress

**URL:** <https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174>\
**Category:** Navigation\
**Created:** [May 1, 2023, 12:37pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174 "2023-05-01T12:37:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![azazdeaz](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/azazdeaz/32/4923_2.png) [@azazdeaz](https://discourse.openrobotics.org/u/azazdeaz)\
**Post date:** [May 1, 2023, 12:37pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/1 "2023-05-01T12:37:22Z")

</div>

Hello everyone,

We wanted to share a ROS 2 project that we recently created because we had trouble finding an example where Nav2 works with the latest LTS (Ignition) Gazebo. You can find the source here: [GitHub - art-e-fact/navigation2\_ignition\_gazebo\_example: Minimal example for using Navigation 2 with Gazebo Sim](https://github.com/art-e-fact/navigation2_ignition_gazebo_example).

The project contains the `sam-bot` model (migrated from the official Nav2 tutorials), launch files to bring up the navigation stack, some nodes for demoing simple navigation tasks, and tests for these nodes.

We hope this project will be helpful to anyone who is trying to use Navigation2 with (Ignition) Gazebo. If you have any feedback or suggestions, please feel free to open an issue on the GitHub repository.

 ![Screenshot from 2023-03-18 10-37-46](https://us1.discourse-cdn.com/flex022/uploads/ros/original/3X/9/4/94776602acfd4738eec33fa3f3d3c52864a5caee.png)

---

<div class="post-metadata">

**Author:** ![smac](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/smac/32/6763_2.png) [@smac](https://discourse.openrobotics.org/u/smac)\
**Post date:** [May 1, 2023, 4:41pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/2 "2023-05-01T16:41:03Z")

</div>

Looks great! I’ll definitely take a look at this as later this year we’re looking to migrate from Gazebo Classic (pending some issues that need resolution to have things work well in binary format for release)

---

<div class="post-metadata">

**Author:** ![Red24dog](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/red24dog/32/4448_2.png) [@Red24dog](https://discourse.openrobotics.org/u/Red24dog)\
**Post date:** [June 26, 2023, 8:35pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/3 "2023-06-26T20:35:34Z")

</div>

May I ask what plan may be formulated to complete a migration of the current nav2\_bringup tb3 simulation launch that uses Classic Gazebo (Ver 11) to gazebosim, presumably recognizing that the next gazebosim Harmonic release is planned for Sep/23?

---

<div class="post-metadata">

**Author:** ![maxpol](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/maxpol/32/16277_2.png) [@maxpol](https://discourse.openrobotics.org/u/maxpol)\
**Post date:** [August 31, 2023, 6:38pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/4 "2023-08-31T18:38:42Z")

</div>

Thanks @azazdeaz for this great example. It helped me understanding the Nav2 stack much better.

I have created a fork and updated it to my needs. Here is a link to the fork: [GitHub - rosblox/nav2\_outdoor\_example: Minimal example for using Navigation 2 with GNSS/IMU Localization in (Ignition) Gazebo](https://github.com/rosblox/nav2_outdoor_example)

- The fork runs on ROS2 Humble/Gazebo Fortress (Install it following this [Binary Installation on Ubuntu — Gazebo fortress documentation](https://gazebosim.org/docs/fortress/install_ubuntu))
- The robot localizes itself by fusing measurements from IMU and GNSS with robot\_localization
- The Nav2 map server serves static costmaps

---

<div class="post-metadata">

**Author:** ![jfantab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/jfantab/32/23828_2.png) [@jfantab](https://discourse.openrobotics.org/u/jfantab)\
**Post date:** [December 26, 2024, 6:19pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/5 "2024-12-26T18:19:19Z")

</div>

Hello, I tried running your repository in ROS 2 Humble in Ubuntu 22.04.5 LTS. However, I ran into the following error:

```auto
I cannot find any available 'ign' command:
    * Did you install any ignition library?
    * Did you set the IGN_CONFIG_PATH environment variable?
        E.g.: export IGN_CONFIG_PATH=$HOME/local/share/ignition

```

I followed the Ignition Gazebo Binary Install instructions for Ubuntu from this link: [Binary Installation on Ubuntu — Gazebo fortress documentation](https://gazebosim.org/docs/fortress/install_ubuntu/).

Do you have any solutions for this? Was there perhaps an installation error?

---

<div class="post-metadata">

**Author:** ![vishcomestrue](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/vishcomestrue/32/19622_2.png) [@vishcomestrue](https://discourse.openrobotics.org/u/vishcomestrue)\
**Post date:** [December 29, 2024, 6:05pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/6 "2024-12-29T18:05:12Z")

</div>

I am not sure why you are encountering that issue! But I will share what I followed when I wanted to install Ignition Fortress. Since it’s [paired default](https://gazebosim.org/docs/fortress/ros_installation/#installing-the-default-gazebo-ros-pairing) with ROS2 Humble Hawksbill, I did run,

```auto
sudo apt-get install ros-${ROS_DISTRO}-ros-gz

```

In your case, make sure to first uninstall the binary installation first by running

```auto
sudo apt remove ignition-fortress && sudo apt autoremove

```

Hope this helps!!

---

<div class="post-metadata">

**Author:** ![jfantab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/jfantab/32/23828_2.png) [@jfantab](https://discourse.openrobotics.org/u/jfantab)\
**Post date:** [December 29, 2024, 6:41pm UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/7 "2024-12-29T18:41:36Z")

</div>

I ran the commands above, and I am still facing the same issues.

---

<div class="post-metadata">

**Author:** ![jfantab](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/jfantab/32/23828_2.png) [@jfantab](https://discourse.openrobotics.org/u/jfantab)\
**Post date:** [December 30, 2024, 3:30am UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/8 "2024-12-30T03:30:53Z")

</div>

OK I did a fresh install of Ubuntu 22 and the `ign gazebo` command works now.

---

<div class="post-metadata">

**Author:** ![vishcomestrue](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/vishcomestrue/32/19622_2.png) [@vishcomestrue](https://discourse.openrobotics.org/u/vishcomestrue)\
**Post date:** [December 30, 2024, 7:19am UTC](https://discourse.openrobotics.org/t/nav2-example-with-ignition-gazebo-fortress/31174/9 "2024-12-30T07:19:29Z")

</div>

Glad to hear that! 😁
