Skip to content

Add is_cft_supported field to rmw_subscription_t for content filtering support#415

Merged
fujitatomoya merged 2 commits intoros2:rollingfrom
Barry-Xu-2018:develop/topic-add-is-cft-supported
Mar 10, 2026
Merged

Add is_cft_supported field to rmw_subscription_t for content filtering support#415
fujitatomoya merged 2 commits intoros2:rollingfrom
Barry-Xu-2018:develop/topic-add-is-cft-supported

Conversation

@Barry-Xu-2018
Copy link
Copy Markdown
Contributor

@Barry-Xu-2018 Barry-Xu-2018 commented Mar 9, 2026

Description

Add a new field to indicate whether RMW supports the content filter feature.

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

Currently, there is no RMW interface to check whether the content filter feature is supported. Currently, the code at the RCL layer uses a workaround to determine whether RMW supports content filtering and configures this value accordingly.
Refer to ros2/rcl#1293

…g support

Signed-off-by: Barry Xu <barry.xu@sony.com>
Copy link
Copy Markdown

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

This PR adds a new flag on rmw_subscription_t intended to indicate whether the underlying RMW implementation supports the Content Filtered Topic (CFT) feature, so higher layers can avoid workarounds when deciding how to configure CFT behavior.

Changes:

  • Add bool is_cft_supported; to rmw_subscription_t.
  • Add a brief doc comment describing the new field.

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

Signed-off-by: Barry Xu <barry.xu@sony.com>
@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: ros2/rcl#1293, #415
Gist: https://gist.githubusercontent.com/fujitatomoya/412c0e1ec108138092044abd4fdfb5f7/raw/5d9d47782cc3576b58d243380c02065c00180601/ros2.repos
BUILD args: --packages-above-and-dependencies rcl rmw
TEST args: --packages-above rcl rmw
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18420

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

@Barry-Xu-2018
Copy link
Copy Markdown
Contributor Author

Re-run CI since the failure was caused by CI internal issues

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

@fujitatomoya fujitatomoya merged commit 403ee71 into ros2:rolling Mar 10, 2026
3 checks passed
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.

3 participants