Skip to content

Make ros2 action info --verbose consistent with topic/service info#1220

Open
catplotlib wants to merge 1 commit into
ros2:rollingfrom
catplotlib:feature/action-info-verbose
Open

Make ros2 action info --verbose consistent with topic/service info#1220
catplotlib wants to merge 1 commit into
ros2:rollingfrom
catplotlib:feature/action-info-verbose

Conversation

@catplotlib
Copy link
Copy Markdown

@catplotlib catplotlib commented Apr 18, 2026

Description

Adds a --verbose / -v option to ros2 action info, matching the output style already provided by ros2 topic info -v and ros2 service info -v.

Default output is unchanged. With --verbose, each action client / server is printed as a block containing:

  • Node name
  • Node namespace
  • Action type
  • Endpoint type (CLIENT / SERVER)

QoS and type hash are intentionally omitted since they are not exposed for action endpoints (per the linked issue).
Addresses the second TODO in #1210.

Is this user-facing behavior change?

Yes. ros2 action info now accepts --verbose / -v. Previously this flag was rejected as an unknown argument.

Example (new behavior):

$ ros2 action info -v /fibonacci
Action: /fibonacci
Action clients: 0
Action servers: 1

Node name: fibonacci_action_server
Node namespace: /
Action type: test_msgs/action/Fibonacci
Endpoint type: SERVER

Without -v, output is identical to before.

Did you use Generative AI?

Yes — Claude Opus 4.7

Additional Information

  • Added two CLI tests in ros2action/test/test_cli.py:
    • test_fibonacci_info_verbose — asserts the verbose block fields
    • test_fibonacci_info_verbose_count — asserts -v -c suppresses the per-endpoint block
  • No changes to the default (non-verbose) output, so existing users / scripts are unaffected.
  • --verbose combined with --count prints only the counts, matching the behavior of ros2 topic info -v -c.

Signed-off-by: Puja Chaudhury <contact.pujachaudhury@gmail.com>
@catplotlib catplotlib changed the title add --verbose option for action Make ros2 action info --verbose consistent with topic/service info Apr 18, 2026
@catplotlib catplotlib marked this pull request as ready for review April 18, 2026 03:09
@catplotlib
Copy link
Copy Markdown
Author

@fujitatomoya can i get a review on this please?

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.

2 participants