Skip to content

Commit

Permalink
Update ros_gz commands
Browse files Browse the repository at this point in the history
Signed-off-by: Amronos <[email protected]>
  • Loading branch information
Amronos committed Sep 12, 2024
1 parent e8533dd commit 51084ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion harmonic/ros2_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ The package `ros_gz_bridge` contains a launch file named
Here's an example:

```bash
ros2 launch ros_gz_bridge ros_gz_bridge.launch.py name:=ros_gz_bridge config_file:=<path_to_your_YAML_file>
ros2 launch ros_gz_bridge ros_gz_bridge.launch.py bridge_name:=ros_gz_bridge config_file:=<path_to_your_YAML_file>
```

Check [this block](https://github.com/gazebosim/ros_gz/blob/66c7a4a5b41bc2466f2334e216f0434a10303fdc/ros_gz_bridge/launch/ros_gz_bridge.launch.py#L27-L33)
from the source code to know all the different parameters accepted by this
launch file.

## Launching the bridge from a custom launch file.

It's also possible to trigger the bridge from your custom launch file. For that
Expand Down
4 changes: 2 additions & 2 deletions harmonic/ros2_spawn_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The package `ros_gz_sim` contains a launch file named
existing simulation. Here's an example:

```bash
ros2 launch ros_gz_sim ros_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
ros2 launch ros_gz_sim ros_gz_spawn_model.launch.py 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
```

Check [this block](https://github.com/gazebosim/ros_gz/blob/cadae1c8323a74395c09a37e3de4c669c8c09d4f/ros_gz_sim/launch/ros_gz_spawn_model.launch.py#L33-L44)
Check [this block](https://github.com/gazebosim/ros_gz/blob/66c7a4a5b41bc2466f2334e216f0434a10303fdc/ros_gz_sim/launch/ros_gz_spawn_model.launch.py#L26-L45)
from the source code to know all the different parameters accepted by this
launch file.

Expand Down

0 comments on commit 51084ab

Please sign in to comment.