From 0e4f2efd534be3effb07e44a379b2b4063fc6a62 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Tue, 6 Dec 2022 07:43:19 -0700 Subject: [PATCH] Add information to README.md Signed-off-by: Sebastian Castro --- .vscode/settings.json | 3 --- ros_gz_image/README.md | 11 +++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 46d9a84f..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ros.distro": "humble" -} \ No newline at end of file diff --git a/ros_gz_image/README.md b/ros_gz_image/README.md index b7b27e1f..99db4da1 100644 --- a/ros_gz_image/README.md +++ b/ros_gz_image/README.md @@ -9,3 +9,14 @@ For compressed images, install and the bridge will publish `/compressed` images. The same goes for other `image_transport` plugins. +To run the bridge from the command line: + +```shell +ros2 run ros_gz_image image_bridge /topic1 /topic2 +``` + +You can also modify the [Quality of Service (QoS) policy](https://docs.ros.org/en/rolling/Concepts/About-Quality-of-Service-Settings.html#qos-policies) used to publish images using an additional `qos` ROS parameter. For example: + +```shell +ros2 run ros_gz_image image_bridge /topic1 /topic2 --ros-args qos:=sensor_data +```