Skip to content

Software

ros_gz

By Gazebo, from github.com/gazebosim/ros_gz (opens in a new tab)

  • Simulators
  • Tool
  • Apache-2.0

A set of ROS 2 packages that connect ROS with the Gazebo simulator, covering message bridging, simulation launch, images and point clouds.

Facts

GitHub stars
553read on 29 Nov 2026
Last update
26 Nov 2026Newest commit on ros2
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 29 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 136619b (opens in a new tab), on 29 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Bidirectional bridge that passes messages between Gazebo Transport and ROS.
  • Unidirectional bridge that sends Gazebo camera images to ROS through image_transport.
  • Launch files and executables for running Gazebo Sim together with ROS.
  • Plugins that publish point clouds from Gazebo Sim simulations to ROS.
  • Demo package showing the ROS and Gazebo integration in use.
  • Metapackage ros_gz that installs all the other packages; supported pairings vary by ROS and Gazebo version.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by Arduinobot, Bumperbot, Giraffe, Little Red Rover and 1 more.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 26 Nov 2026.

Works with

5 robots on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 136619b

Robotheca read the repository at two versions: the summary at 6590460 and the facts and the README at 136619b (read on 29 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by Gazebo, at commit 136619b, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

(opens in a new tab)

Package Build Status: Image: Package Build Status (opens in a new tab) (opens in a new tab)

For information on ROS(1) and Gazebo compatibility, refer to the noetic branch README (opens in a new tab)

Note: The ros_ign prefixed packages are shim packages that redirect to their ros_gz counterpart. Under most circumstances you want to be using the ros_gz counterpart.

Integration between ROS and Gazebo

Packages

This repository holds packages that provide integration between ROS (opens in a new tab) and Gazebo (opens in a new tab):

Install

This branch supports ROS Rolling. See above for other ROS versions.

Binaries

Rolling binaries are available for Rotary. They are hosted at https://packages.ros.org (opens in a new tab).

  1. Add https://packages.ros.org (opens in a new tab) with the ros2-apt-source package (see the ROS installation instructions (opens in a new tab)):

     sudo apt-get update && sudo apt-get install -y curl
     export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
     curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
     sudo dpkg -i /tmp/ros2-apt-source.deb
     sudo apt-get update
    
  2. Install ros_gz

     sudo apt install ros-rolling-ros-gz
    
From source
ROS

Be sure you've installed ROS Rolling (opens in a new tab) (at least ROS-Base). More ROS dependencies will be installed below.

Gazebo

The version of Gazebo paired with Rolling will automatically be installed when running rosdep below.

Compile ros_gz

The following steps are for Linux and macOS.

  1. Create a colcon workspace:

    # Setup the workspace
    mkdir -p ~/ws/src
    cd ~/ws/src
    
    # Download needed software
    git clone https://github.com/gazebosim/ros_gz.git -b ros2
    
  2. Install dependencies (this may also install Gazebo):

    cd ~/ws
    rosdep install -r --from-paths src -i -y --rosdistro rolling
    

    If rosdep fails to install Gazebo libraries and you have not installed them before, please follow Gazebo installation instructions (opens in a new tab).

  3. Build the workspace:

    # Source ROS distro's setup.bash
    source /opt/ros/<distro>/setup.bash
    
    # Build and install into workspace
    cd ~/ws
    colcon build
    

[!TIP] The ros_gz library makes heavy use of templates which causes compilers to consume a lot of memory. If your build fails with c++: fatal error: Killed signal terminated program cc1plus try building with colcon build --parallel-workers=1 --executor sequential. You might also have to set export MAKEFLAGS="-j 1" before running colcon build to limit the number of processors used to build a single package.

ROSCon 2022

Picture: video_img.png (opens in a new tab)

Project Template

A template project integrating ROS and Gazebo simulator (opens in a new tab)

Footnotes
  1. Binaries for these pairings are provided from the packages.osrfoundation.org repository. Refer to https://gazebosim.org/docs/latest/ros_installation (opens in a new tab) for installation instructions. ↩ ↩2

  2. Note that the Gazebo version on this row has reached end-of-life. ↩ ↩2

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.