gazebosim / ros_gz

Integration between ROS (1 and 2) and Gazebo simulation
https://gazebosim.org
Apache License 2.0
261 stars 139 forks source link

Create ros_gz_spawn_model.launch (backport #604) #627

Closed mergify[bot] closed 3 weeks ago

mergify[bot] commented 3 weeks ago

🎉 New feature

Summary

Created ros_gz_spawn_model.launch taking inspiration from files like ros_gz_sim.launch. Made to work after #606 is merged.

Test it

Something like the following command can be used: ros2 launch ros_gz_sim ros_gz_spawn_model.launch world:=empty file:=$(ros2 pkg prefix --share ros_gz_sim_demos)/models/vehicle/model.sdf entity_name:=my_vehicle x:=5.0 y:=5.0 z:=0.5 bridge_name:=spawn_model_bridge config_file:=/path/to/config_file

Checklist

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


This is an automatic backport of pull request #604 done by Mergify.