-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial launch file fails with missing package spaceros_gz_sim
#558
Comments
Ah, I don't think we should have a dependency on |
spaceros_gz_sim
spaceros_gz_sim
I have just checked the Python server tutorial on the same page and this fails like this: $ ros2 launch src/gazebo_test/gazebo_server.launch.py
[INFO] [launch]: All log files can be found below /home/...
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): launch configuration 'world_sdf_file' does not exist Can this be fixed at the same time or do I need to create another issue? |
That's saying you need to pass the |
Sure, I'll update it to normal gz today, apologies for that |
Made a pr for a more generic example, but probably won't run on its own because it requires the user to replace the "example..." parts with their own (such as the world, package, bridged topics, etc.). Maybe there's an existing world that could be used instead though so it runs as a standalone as well? |
@azeey Thanks for pointing out the way to set the world from the command line. @david-dorf The pages have been updated already and after a bit of customisation of the example script, I was able to run the Gazebo with a ROS2 topic being published. I used the string Thanks to both of you for your help, especially the speedy responses. This issue can be closed now. |
Environment
Ubuntu 24.04 LTS
Binary: Gazebo Sim, version 8.7.0 (Harmonic LTS)
Description
Expected behavior:
I was working through the tutorial on this page: https://gazebosim.org/docs/harmonic/ros2_launch_gazebo/. When I ran the first Python launch file on this page, I got an error (see below). I expected to be able to start Gazebo and see some sort of working demo.
Actual behavior:
When I ran the launch file, I got the following error:
This looks like I need to install another package called
spaceros_gz_sim
but there is nothing in the documentation that I could find that tells me what to install.I checked the later versions of the tutorials (
Ionic
andJetty
) for any fixes but they both referencespaceros_gz_sim
which I don't have.Please provide a simpler launch file that works with no additional packages or add notes on what packages to install to make the launch file work correctly.
Steps to reproduce
gazebo.launch.py
ros2 launch ./gazebo.launch.py
Output
The text was updated successfully, but these errors were encountered: