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
[x] Signed all commits for DCO
[x] 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)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers
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.
🎉 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
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
messages.This is an automatic backport of pull request #604 done by Mergify.