Skip to content

add rcl_publisher/subscription_event_type_is_supported().#1317

Open
fujitatomoya wants to merge 1 commit into
rollingfrom
fujitatomoya/rmw/pull/395/followup
Open

add rcl_publisher/subscription_event_type_is_supported().#1317
fujitatomoya wants to merge 1 commit into
rollingfrom
fujitatomoya/rmw/pull/395/followup

Conversation

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Description

follow up of ros2/rmw#394

Fixes # (issue)

Is this user-facing behavior change?

No

Did you use Generative AI?

Yes Claude Code Opus4.6

Additional Information

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.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

Adds runtime introspection APIs in rcl to check whether specific publisher/subscription event types are supported by the active RMW implementation, and updates/extends tests accordingly (follow-up to ros2/rmw#394).

Changes:

  • Introduce rcl_publisher_event_type_is_supported() and rcl_subscription_event_type_is_supported() in rcl.
  • Update an existing event test to use the new rcl_subscription_*_is_supported() API.
  • Add new unit tests verifying the new rcl APIs match rmw_event_type_is_supported() results.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
rcl/src/rcl/event.c Implements the two new *_event_type_is_supported() helper APIs by mapping to rmw_event_type_is_supported().
rcl/include/rcl/event.h Declares the new public APIs and documents their intent and behavior.
rcl/test/rcl/test_events.cpp Updates one skip-condition to use the new API and adds coverage to compare rcl vs rmw support results.

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

Comment thread rcl/include/rcl/event.h
Comment thread rcl/include/rcl/event.h
Comment thread rcl/src/rcl/event.c
Comment thread rcl/src/rcl/event.c
@fujitatomoya fujitatomoya requested a review from ahcorde April 15, 2026 22:54
Copy link
Copy Markdown
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.

@ahcorde can you review this? (probably after lyrical luth release.)

Comment thread rcl/src/rcl/event.c
Comment thread rcl/src/rcl/event.c
@fujitatomoya fujitatomoya requested a review from ahcorde May 12, 2026 04:13
@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

@ahcorde can you see my comment #1317 (comment) and approve this? i just rebased ros2/rclpy#1647 and ros2/rclcpp#3132 too.

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #1317, ros2/rclcpp#3132, ros2/rclpy#1647
Gist: https://gist.githubusercontent.com/fujitatomoya/da0945366990a7a90848379cce0e0673/raw/deef0ce8ee6811fcb8d377a8ecf8ddda07e6fe23/ros2.repos
BUILD args: --packages-above-and-dependencies rcl rclcpp rclpy
TEST args: --packages-above rcl rclcpp rclpy
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19228

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

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