Skip to content

introduce rcl_action_endpoint_info_array_t. - #1326

Open
fujitatomoya wants to merge 4 commits into
rollingfrom
ros2cli/issues/1210
Open

introduce rcl_action_endpoint_info_array_t.#1326
fujitatomoya wants to merge 4 commits into
rollingfrom
ros2cli/issues/1210

Conversation

@fujitatomoya

Copy link
Copy Markdown
Collaborator

Description

part of ros2/ros2cli#1210

this introduces rcl_action_endpoint_info_t to store the action endpoint information for ros2 action info.
the implementation is straight-forward as topic/service information is supported.

Fixes # (issue)

Is this user-facing behavior change?

No. just provides new functions.

Did you use Generative AI?

Yes, Claude Fable.

Additional Information

Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
@mergify

mergify Bot commented Jul 19, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@fujitatomoya fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator Author

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? mos of the code is init/fini and tests... but this aligns with current topic/service endpoint information. i will open the other PRs to support ros2 action info (-v).

Copilot AI left a comment

Copy link
Copy Markdown

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 public API to query per-action endpoint details (services/topics) for action clients and servers, enabling tooling like ros2 action info to retrieve correlated endpoint metadata similar to existing topic/service graph introspection.

Changes:

  • Introduces rcl_action_endpoint_info_t and rcl_action_endpoint_info_array_t plus init/fini helpers in the rcl_action graph API.
  • Adds rcl_action_get_clients_info_by_action() / rcl_action_get_servers_info_by_action() to collect and correlate underlying service/topic endpoint info by node identity.
  • Extends the action graph test suite with validation and functional tests for the new APIs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
rcl_action/include/rcl_action/graph.h Adds new public structs and function declarations for action endpoint info queries.
rcl_action/src/rcl_action/graph.c Implements endpoint info aggregation, correlation, and array lifecycle management.
rcl_action/test/rcl_action/test_graph.cpp Adds tests covering invalid arguments and correct endpoint info results for clients/servers.

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

Comment thread rcl_action/src/rcl_action/graph.c
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
Comment thread rcl_action/src/rcl_action/graph.c Outdated
Comment thread rcl_action/src/rcl_action/graph.c
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

Pulls: #1326, ros2/rclcpp#3209, ros2/rclpy#1697, ros2/ros2cli#1262
Gist: https://gist.githubusercontent.com/fujitatomoya/25af40ef2cbead2e0d78b131f3baccbf/raw/799fbf9be74c92398265c46702a25e9b46e9c0b3/ros2.repos
BUILD args: --packages-up-to rcl_action rclcpp_action rclpy ros2cli ros2action
TEST args: --packages-select rcl_action rclcpp_action rclpy ros2cli ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19923

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

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

Pulls: #1326, ros2/rclcpp#3209, ros2/rclpy#1697, ros2/ros2cli#1262
Gist: https://gist.githubusercontent.com/fujitatomoya/465889284b527b2c339cbef7dbc3d756/raw/799fbf9be74c92398265c46702a25e9b46e9c0b3/ros2.repos
BUILD args: --packages-up-to rcl_action rclcpp_action rclpy ros2cli ros2action
TEST args: --packages-select rcl_action rclcpp_action rclpy ros2cli ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19925

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

@fujitatomoya

fujitatomoya commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator Author

Pulls: #1326, ros2/rclcpp#3209, ros2/rclpy#1697, ros2/ros2cli#1262
Gist: https://gist.githubusercontent.com/fujitatomoya/eb76433221a53f448682e5b09c0ff2c0/raw/799fbf9be74c92398265c46702a25e9b46e9c0b3/ros2.repos
BUILD args: --packages-above-and-dependencies rcl_action rclcpp_action rclpy ros2cli ros2action
TEST args: --packages-above rcl_action rclcpp_action rclpy ros2cli ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19963

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

Signed-off-by: Tomoya Fujita <fujita.tomoya@triorb.co.jp>
@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

Pulls: #1326, ros2/rclcpp#3209, ros2/rclpy#1697, ros2/ros2cli#1262
Gist: https://gist.githubusercontent.com/fujitatomoya/4bfcaae75a21e34c0b036bf2672d0278/raw/799fbf9be74c92398265c46702a25e9b46e9c0b3/ros2.repos
BUILD args: --packages-above-and-dependencies rcl_action rclcpp_action rclpy ros2cli ros2action
TEST args: --packages-above rcl_action rclcpp_action rclpy ros2cli ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20013

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

@fujitatomoya

Copy link
Copy Markdown
Collaborator Author

Pulls: #1326, ros2/rclcpp#3209, ros2/rclpy#1697, ros2/ros2cli#1262
Gist: https://gist.githubusercontent.com/fujitatomoya/7e8c429cfeeba77d5a0872329ed7ff3a/raw/799fbf9be74c92398265c46702a25e9b46e9c0b3/ros2.repos
BUILD args: --packages-above-and-dependencies rcl_action rclcpp_action rclpy ros2cli ros2action
TEST args: --packages-above rcl_action rclcpp_action rclpy ros2cli ros2action
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20024

  • 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