From 86e73d96967d06676853f63f672c126f3027e804 Mon Sep 17 00:00:00 2001 From: C88-YQ <1409947012@qq.com> Date: Thu, 18 Jun 2026 19:07:33 +0800 Subject: [PATCH 1/2] Correct SpawnEntity service call example Signed-off-by: C88-YQ <1409947012@qq.com> --- rotary/ros2_sim_interfaces.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rotary/ros2_sim_interfaces.md b/rotary/ros2_sim_interfaces.md index dea5e224fb..1728b1ae66 100644 --- a/rotary/ros2_sim_interfaces.md +++ b/rotary/ros2_sim_interfaces.md @@ -103,7 +103,9 @@ Spawn a new entity in the simulation at a specific location. ```bash ros2 service call /gzserver/spawn_entity simulation_interfaces/srv/SpawnEntity "{ name: 'my_model', - uri: '/path/to/model.sdf', + entity_resource: { + uri: '/path/to/model.sdf' + }, allow_renaming: false, initial_pose: { pose: { From 87e37db92c0239115ee26f26e36efe88b0c94762 Mon Sep 17 00:00:00 2001 From: C88-YQ <1409947012@qq.com> Date: Thu, 18 Jun 2026 23:12:55 +0800 Subject: [PATCH 2/2] Correct SpawnEntity service call example in Jetty Signed-off-by: C88-YQ <1409947012@qq.com> --- jetty/ros2_sim_interfaces.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jetty/ros2_sim_interfaces.md b/jetty/ros2_sim_interfaces.md index dea5e224fb..1728b1ae66 100644 --- a/jetty/ros2_sim_interfaces.md +++ b/jetty/ros2_sim_interfaces.md @@ -103,7 +103,9 @@ Spawn a new entity in the simulation at a specific location. ```bash ros2 service call /gzserver/spawn_entity simulation_interfaces/srv/SpawnEntity "{ name: 'my_model', - uri: '/path/to/model.sdf', + entity_resource: { + uri: '/path/to/model.sdf' + }, allow_renaming: false, initial_pose: { pose: {