Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-in to qos overriding for publisher #246

Conversation

ihasdapie
Copy link
Contributor

Opts-in to recently avaliable QOS overriding for image_transport republish since a common use case with this package is working with sensor_data qos.

Signed-off-by: Brian Chen brian.chen@openrobotics.org

Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
@gbiggs
Copy link
Contributor

gbiggs commented Jun 5, 2022

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@wep21
Copy link
Contributor

wep21 commented Nov 19, 2022

@gbiggs @jacobperron Is it possible to backport this PR to humble? I think this function is crucial to tune throughput.

EzraBrooks pushed a commit to EzraBrooks/image_common that referenced this pull request Feb 20, 2023
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
@MarcoMagriDev
Copy link

Is there any reason why the reliability has not been exposed?

I am in the situation in which my publisher has a sensor_data_qos and i would like to set the reliability of the image republisher subscriber to BEST_EFFORT in order to achieve subscribing.

@ahcorde
Copy link
Collaborator

ahcorde commented Oct 10, 2023

@MarcoMagriDev check this PR #288 it might be useful

@MarcoMagriDev
Copy link

@ahcorde thanks for your fast reply.

From what I understand from the PR you linked is somewhat of a low-level enabler of the functionality I am requesting. However, to set BEST_EFFORT using the functionality developed by #288 I would have to rewrite the republisher.cpp file (correct me if I am wrong).

On the other hand, by simply add rclcpp::QosPolicyKind::Reliability to the list of QosOverridingOptions it is possibile to specify ` without changing the source code but just working with parameters.

Comment on lines +86 to +87
node.get(), in_topic, std::bind(pub_mem_fn, &pub, std::placeholders::_1),
in_transport, rmw_qos_profile_default, sub_options);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also be done in the subscription in the else clause below?

tonynajjar pushed a commit to angsa-robotics/image_common that referenced this pull request May 15, 2024
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants