Gazebo | Ignition | Community
Ask Your Question
0

I want to use gazebo garden with ROS 2 Humble. I need help with the syntax/example to make launch file in ROS 2 to spawn gazebo with .sdf files instead of spawning it through terminal using $ gz sim empty.sdf

asked 2023-03-02 05:31:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The current launch files that are usually available feature the code to launch gazbo-classic. I am looking for the updated code for gazebo garden. I also want to know the difference between gazeo-garden and ign-garden.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-03 14:49:40 -0600

azeey gravatar image

There's some documentation https://gazebosim.org/docs/garden/ros... and https://github.com/gazebosim/ros_gz/t... and some examples at https://github.com/gazebosim/ros_gz/t...

You should be able to start Gazebo using

ros2 launch ros_gz_sim gz_sim.launch.py gz_args:="shapes.sdf"

and spawn a model with

ros2 run ros_gz_sim create

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-02 05:31:48 -0600

Seen: 1,375 times

Last updated: Mar 03 '23