Support QoS override parameters in depth_image_proc/register (backport #1043) #1044
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support to the
depth_image_proc
-register
node for setting External QoS Configuration on topic subscriptions.Why?
Sensors are often published with the
SENSOR_DATA
profile, which cannot be read by subscribers expecting the default QoS profile, as the default profile specifies a reliability == reliable requirement. TheSENSOR_DATA
profile uses reliability == best_effort, making these publishers and subscribers incompatible.Because
depth_image_proc
-register
does not provide a way to modify the expected QoS of the topic subscriptions, it cannot subscribe to topics published by other nodes which use theSENSOR_DATA
profile.ROS2's solution to this common problem is to allow External QoS Configuration through the parameter system. While
depth_image_proc
-register
supports External QoS Configuration on published topics, it does not support it on subscribed topics.This PR adds support for External QoS configuration on subscribed topics.
How?
qos_overriding_options = rclcpp::QosOverridingOptions::with_default_policies()
option to all topic subscriptions that is also used on the topic publishersTesting
jazzy
branch of my fork). This is the same change that was applied torolling
depth_image_proc
and launched with QoS remapping arguments using a launch file (on an in-progress robot project):Checked for the presence of new parameters in
rqt_gui
:depth_image_proc
-register
is now accepting messages from topics publishing with theSENSOR_DATA
QoS profile with QoS overrides appliedThis is an automatic backport of pull request Support QoS override parameters in depth_image_proc/register #1043 done by [Mergify](https://mergify.com).