Skip to content

Commit 2cb295b

Browse files
cagueroazeey
andauthored
Update harmonic/ros2_spawn_model.md
Co-authored-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
1 parent 4a141aa commit 2cb295b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmonic/ros2_spawn_model.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The package `ros_gz_sim` contains a launch file named
1111
existing simulation. Here's an example:
1212

1313
```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
14+
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
1515
```
1616

1717
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

Comments
 (0)