From 2cb295b3a3782b50d4c0b52edce4b9b33e0d8c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ag=C3=BCero?= Date: Wed, 3 Jul 2024 16:23:26 +0200 Subject: [PATCH] Update harmonic/ros2_spawn_model.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Addisu Z. Taddese Signed-off-by: Carlos Agüero --- harmonic/ros2_spawn_model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harmonic/ros2_spawn_model.md b/harmonic/ros2_spawn_model.md index 682abb764..52040ed5e 100644 --- a/harmonic/ros2_spawn_model.md +++ b/harmonic/ros2_spawn_model.md @@ -11,7 +11,7 @@ The package `ros_gz_sim` contains a launch file named existing simulation. Here's an example: ```bash -ros2 launch ros_gz_sim gz_spawn_model.launch.py world:=empty file:=/home/caguero/ros_gz_ws/src/ros_gz/ros_gz_sim_demos/models/vehicle/model.sdf name:=my_vehicle x:=5.0 y:=5.0 z:=0.5 +ros2 launch ros_gz_sim gz_spawn_model.launch.py world:=empty file:=$(ros2 pkg prefix --share ros_gz_sim_demos)/models/vehicle/model.sdf name:=my_vehicle x:=5.0 y:=5.0 z:=0.5 ``` Check [this block](https://github.com/gazebosim/ros_gz/blob/cadae1c8323a74395c09a37e3de4c669c8c09d4f/ros_gz_sim/launch/ros_gz_spawn_model.launch.py#L33-L44)