We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5631115 + 2cb295b commit 292e756Copy full SHA for 292e756
harmonic/ros2_spawn_model.md
@@ -11,7 +11,7 @@ The package `ros_gz_sim` contains a launch file named
11
existing simulation. Here's an example:
12
13
```bash
14
-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
15
```
16
17
Check [this block](https://github.com/gazebosim/ros_gz/blob/cadae1c8323a74395c09a37e3de4c669c8c09d4f/ros_gz_sim/launch/ros_gz_spawn_model.launch.py#L33-L44)
0 commit comments