Skip to content

Conversation

@fujitatomoya
Copy link
Collaborator

@fujitatomoya fujitatomoya commented Dec 16, 2025

…tion.

Description

There is a possibility that the subscription has not yet discovered the corresponding publisher at the time of its creation.
In such cases, the current implementation causes those if statements to fall back to a restricted QoS configuration for the subscription.
However, this behavior seems incorrect for me. instead, it should fall back to selecting the best available QoS configuration that remains compatible with any endpoints that may join later.

Closes ros2/ros2#1722

Replaces ros2/rclpy#1561

Is this user-facing behavior change?

No,

Did you use Generative AI?

No,

Additional Information

I confirmed that ros2/ros2#1722 can be fixed with this PR.

Warning

We need to backport this to kilted and jazzy if accepted

Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@wjwwood @ahcorde what do you think about this fix? i believe this is right thing to do.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

[Jazzy][Python] QoS compatibility issue when setting the liveliness of pub/sub to BEST_AVAILABLE

2 participants