Implement ROS standard simulation interfaces (backport #790) #802
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎉 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:
UserCommands
gz-sim#2996I 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
Install ROS 2 Rolling
Add Gazebo nightlies to your apt sources. Follow https://gazebosim.org/docs/jetty/install_ubuntu/, but use
ubuntu-nightly
instead ofubuntu-stable
.Install
gz-jetty
Create a new workspace and use
vcs
to checkout standard_interfaces.reposSource
rolling
and install dependenciesBuild workspace
Run tests
colcon test --packages-select ros_gz_sim
If you want to run just the tests introduced in this PR, in a new terminal:
Tip
If the build fails with
c++: fatal error
, it likely ran out of memory. Try building withcolcon 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, uninstalllibgz-sim10
, remove thebuild/ros_gz_sim
directory and build again.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
andGenerated-by
messages.This is an automatic backport of pull request #790 done by [Mergify](https://mergify.com).