Skip to content

Commit

Permalink
ign to gz (#519)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
ahcorde authored and caguero committed Mar 29, 2024
1 parent 53ef851 commit 139f655
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Rolling | Fortress | [humble](https://github.com/gazebosim/ros_gz/tree/humble) |
Rolling | Garden | [ros2](https://github.com/gazebosim/ros_gz/tree/ros2) | only from source
Rolling | Harmonic | [ros2](https://github.com/gazebosim/ros_gz/tree/ros2) | only from source

* ROS 2 Jazzy Jalisco is slated for release on May 23rd, 2024. [Full ROS 2 release information is available in REP-2000.]
* ROS 2 Jazzy Jalisco is slated for release on May 23rd, 2024. [Full ROS 2 release information is available in REP-2000.]

For information on ROS(1) and Gazebo compatibility, refer to the [noetic branch README](https://github.com/gazebosim/ros_gz/tree/noetic)

Expand Down
2 changes: 1 addition & 1 deletion README_RENAME.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This allows users to do either of these and get equivalent behavior:

```bash
ros2 run ros_gz parameter_bridge [...]
ros2 run ros_ign parameter_bridge [...] # Will emit deprecation warning
ros2 run ros_gz parameter_bridge [...] # Will emit deprecation warning
```

Additionally, installed files like launch files, message interfaces etc. are **duplicated** versions of the ones in `ros_gz` (but renamed as appropriate), and point to `ros_gz` dependencies as well (e.g. launch files pointing to `ros_gz` nodes.)
22 changes: 11 additions & 11 deletions ros_gz_bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Now we start the Gazebo Transport talker.
```
# Shell C:
ign topic -t /chatter -m gz.msgs.StringMsg -p 'data:"Hello"'
gz topic -t /chatter -m gz.msgs.StringMsg -p 'data:"Hello"'
```
## Example 1b: ROS 2 talker and Gazebo Transport listener
Expand All @@ -127,7 +127,7 @@ Now we start the Gazebo Transport listener.
```
# Shell B:
ign topic -e -t /chatter
gz topic -e -t /chatter
```
Now we start the ROS talker.
Expand All @@ -148,14 +148,14 @@ First we start Gazebo Sim (don't forget to hit play, or Gazebo Sim won't generat
```
# Shell A:
ign gazebo sensors_demo.sdf
gz sim sensors_demo.sdf
```
Let's see the topic where camera images are published.
```
# Shell B:
ign topic -l | grep image
gz topic -l | grep image
/rgbd_camera/depth_image
/rgbd_camera/image
```
Expand Down Expand Up @@ -206,15 +206,15 @@ On terminal B, we start a ROS 2 listener:
And terminal C, publish an Gazebo message:
`ign topic -t /chatter -m gz.msgs.StringMsg -p 'data:"Hello"'`
`gz topic -t /chatter -m gz.msgs.StringMsg -p 'data:"Hello"'`
At this point, you should see the ROS 2 listener echoing the message.
Now let's try the other way around, ROS 2 -> Gazebo.
On terminal D, start an Igntion listener:
On terminal D, start an Gazebo listener:
`ign topic -e -t /chatter`
`gz topic -e -t /chatter`
And on terminal E, publish a ROS 2 message:
Expand All @@ -232,7 +232,7 @@ On terminal A, start the service bridge:
On terminal B, start Gazebo, it will be paused by default:
`ign gazebo shapes.sdf`
`gz sim shapes.sdf`
On terminal C, make a ROS request to unpause simulation:
Expand Down Expand Up @@ -262,19 +262,19 @@ bridge may be specified:
gz_type_name: "gz.msgs.StringMsg"

# Set just GZ topic name, applies to both
- gz_topic_name: "chatter_ign"
- gz_topic_name: "chatter_gz"
ros_type_name: "std_msgs/msg/String"
gz_type_name: "gz.msgs.StringMsg"

# Set each topic name explicitly
- ros_topic_name: "chatter_both_ros"
gz_topic_name: "chatter_both_ign"
gz_topic_name: "chatter_both_gz"
ros_type_name: "std_msgs/msg/String"
gz_type_name: "gz.msgs.StringMsg"

# Full set of configurations
- ros_topic_name: "ros_chatter"
gz_topic_name: "ign_chatter"
gz_topic_name: "gz_chatter"
ros_type_name: "std_msgs/msg/String"
gz_type_name: "gz.msgs.StringMsg"
subscriber_queue: 5 # Default 10
Expand Down
2 changes: 1 addition & 1 deletion ros_gz_image/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Image utilities for using ROS and Gazebo Transport

This package provides a unidirectional bridge for images from Gazebo to ROS.
The bridge subscribes to Gazebo image messages (`ignition::msgs::Image`)
The bridge subscribes to Gazebo image messages (`gz::msgs::Image`)
and republishes them to ROS using [image_transport](http://wiki.ros.org/image_transport).

For compressed images, install
Expand Down
2 changes: 1 addition & 1 deletion ros_gz_point_cloud/examples/depth_camera.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
3. Load the example world, unpaused:
ign gazebo -r examples/depth_camera.sdf
gz sim -r examples/depth_camera.sdf
4. Launch RViz to visualize the point cloud:
Expand Down
2 changes: 1 addition & 1 deletion ros_gz_point_cloud/examples/gpu_lidar.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
3. Load this world, unpaused:
ign gazebo -r examples/gpu_lidar.sdf
gz sim -r examples/gpu_lidar.sdf
4. Launch RViz to visualize the point cloud:
Expand Down
2 changes: 1 addition & 1 deletion ros_gz_point_cloud/examples/rgbd_camera.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
3. Load the example world, unpaused:
ign gazebo -r examples/rgbd_camera.sdf
gz sim -r examples/rgbd_camera.sdf
4. Launch RViz to visualize the point cloud:
Expand Down
2 changes: 1 addition & 1 deletion ros_gz_sim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ros2 launch ros_gz_sim gz_sim.launch.py
then spawn a model:

```
ros2 run ros_gz_sim create -world default -file 'https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Gazebo'
ros2 run ros_gz_sim create -world default -file 'https://fuel.gazebosim.org/1.0/openrobotics/models/Gazebo'
```

See more options with:
Expand Down

0 comments on commit 139f655

Please sign in to comment.