Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 21, 2025

🎉 New feature

Toward #732

Summary

Set up

In order to test this, you'll need a source build of gz-sim with the following PRs:

I have removed all Gazebo ROS vendor packages temporarily since those are currently pinned to Ionic. With the recent changes removing the version numbers from the packages, having gz-jetty installed, either from binaries or from source, should be sufficient to build this PR.

Test it

  1. Install ROS 2 Rolling

  2. Add Gazebo nightlies to your apt sources. Follow https://gazebosim.org/docs/jetty/install_ubuntu/, but use ubuntu-nightly instead of ubuntu-stable.

    deb [arch=amd64 signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-nightly noble main
    
  3. Install gz-jetty

    sudo apt install gz-jetty
    
  4. Create a new workspace and use vcs to checkout standard_interfaces.repos

    mkdir -p ~/ros_gz_ws/src
    cd ~/ros_gz_ws/src
    vcs import --input https://raw.githubusercontent.com/gazebo-tooling/gz_vendor/refs/heads/main/gz_vendor.repos
    touch gz_dartsim_vendor/COLCON_IGNORE
    touch gz_ogre_next_vendor/COLCON_IGNORE
    
    git clone https://github.com/azeey/ros_gz -b standard_interfaces
    cd ..
    
  5. Source rolling and install dependencies

    source /opt/ros/rolling/setup.bash
    export GZ_BUILD_FROM_SOURCE=1
    rosdep install -i -y -r --from-paths src --skip-keys="rviz2 sdformat_urdf"
    
    
  6. Build workspace

    colcon build
    
  7. Run tests
    colcon test --packages-select ros_gz_sim

  8. If you want to run just the tests introduced in this PR, in a new terminal:

    source ~/ros_gz_ws/install/setup.bash
    cd ~/ros_gz/ws/build/ros_gz_sim
    ctest -R gz_simulation
    

Tip

If the build fails with c++: fatal error, it likely ran out of memory. Try building with colcon build --parallel-workers=1 --executor sequential

Note

If the build fails due to missing APIs. It is likely that somehow, ros_gz_sim is being build against the Gazebo install in the system instead of the one we are building from source. If this happens, uninstall libgz-sim10, remove the build/ros_gz_sim directory and build again.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.


This is an automatic backport of pull request #790 done by [Mergify](https://mergify.com).

---------

Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Saurabh Kamat <[email protected]>
Co-authored-by: Saurabh Kamat <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit ae92d97)
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Oct 22, 2025
Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups, code it's not compiling

@azeey
Copy link
Contributor

azeey commented Oct 24, 2025

@ros-pull-request-builder retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants