-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct the ROS and Fortress bridge (#430)
* Correct the ROS and Fortress bridge * Update fortress/ros2_integration.md --------- Signed-off-by: Mohammadreza Beygifard <[email protected]> Co-authored-by: Addisu Z. Taddese <[email protected]>
- Loading branch information
1 parent
a6717da
commit fa5a40c
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ In this tutorial we will learn how to Integrate ROS 2 with Ignition. We will est | |
communication between them. This can help in many aspects; we can receive data or commands | ||
from ROS and apply it to Ignition and vice versa. | ||
|
||
## ros_ign_bridge | ||
## ros_gz_bridge | ||
|
||
`ros_ign_bridge` provides a network bridge which enables the exchange of messages between ROS 2 and Ignition Transport. Its support is limited to only certain message types. Please, check this [README](https://github.com/ignitionrobotics/ros_ign/blob/ros2/ros_gz_bridge/README.md) to verify if your message type is supported by the bridge. | ||
`ros_gz_bridge` provides a network bridge which enables the exchange of messages between ROS 2 and Ignition Transport. Its support is limited to only certain message types. Please, check this [README](https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_bridge/README.md) to verify if your message type is supported by the bridge. | ||
|
||
Example uses of the bridge can be found in [`ros_gz_sim_demos`](https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_sim_demos), including demo launch files with bridging of all major actuation and sensor types. | ||
|
||
|
@@ -23,10 +23,10 @@ We can initialize a bidirectional bridge so we can have ROS as the publisher and | |
For example: | ||
|
||
``` | ||
ros2 run ros_ign_bridge parameter_bridge /scan@sensor_msgs/msg/[email protected] | ||
ros2 run ros_gz_bridge parameter_bridge /TOPIC@ROS_MSG@IGN_MSG | ||
``` | ||
|
||
The `ros2 run ros_ign_bridge parameter_bridge` command simply runs the `parameter_bridge` code from the `ros_ign_bridge` package. Then, we specify our topic `/TOPIC` over which the messages will be sent. The first `@` symbol delimits the topic name from the message types. Following the first `@` symbol is the ROS message type. | ||
The `ros2 run ros_gz_bridge parameter_bridge` command simply runs the `parameter_bridge` code from the `ros_gz_bridge` package. Then, we specify our topic `/TOPIC` over which the messages will be sent. The first `@` symbol delimits the topic name from the message types. Following the first `@` symbol is the ROS message type. | ||
|
||
The ROS message type is followed by an `@`, `[`, or `]` symbol where: | ||
|
||
|
@@ -59,7 +59,7 @@ at which the `Key Publisher` plugin sends messages and also the type | |
of the messages as follows: | ||
|
||
``` | ||
ros2 run ros_ign_bridge parameter_bridge /keyboard/keypress@std_msgs/msg/[email protected] | ||
ros2 run ros_gz_bridge parameter_bridge /keyboard/keypress@std_msgs/msg/[email protected] | ||
``` | ||
|
||
We started a bridge on `/keyboard/keypress` topic with message of type `Int32`. | ||
|