Repository navigation
Add service client support in generated README - #65
Merged
sdamaschke merged 2 commits intoSep 28, 2026
Merged
Conversation
Extract direct rclcpp and rclpy service clients and render them in the package README tables and node Mermaid diagrams, alongside the existing service server handling. The diagram guard now includes service clients so that a node exposing only service clients still renders a diagram. Refs openads-project#47
lreiher
requested review from
sdamaschke
and removed request for
sdamaschke
September 23, 2026 22:19
sdamaschke
reviewed
Sep 24, 2026
sdamaschke
left a comment
Member
There was a problem hiding this comment.
In general, looks good and ready to merge once clients and servers can be differentiated.
Mahran1998
marked this pull request as ready for review
September 24, 2026 22:13
sdamaschke
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the
create_clienthandling discussed in #47.Following the maintainer's clarification in that issue, this PR covers
direct ROS service clients only. The library-mediated case, which would
require tracing through shared libraries, is left out as agreed there.
What changed
extract_service_clients()for C++ nodes, alongside the existingextract_service_servers()create_clientbranch in the Python AST extractionservice_clientsadded toNodeInterfacesandNodeTemplateContext,and wired through
build_node_context()andmain()Service Clientstable and a Mermaid edge inpackage_readme.md.j2service_clients, so a node exposingonly clients still renders a diagram
Service clients are rendered on the right side of the node, while service servers remain on the left, making the two interface kinds visually distinct.
Scope
The current C++ pattern matches direct
create_client<Srv>("name")calls;
rclcpp_action::create_client(...)is not matched by thispattern, and there is a test covering that boundary.
Testing
tests/test_generate_readme.pycovering C++extraction, the action-client boundary, Python extraction,
propagation into the template context, and diagram rendering for a
client-only node
simple_planner, which has three directservice clients: the generated README gains the three diagram edges
and the table, with no other changes, and re-running the generator
produces no further diff