Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented May 4, 2025

This PR refactors the introspection configuration by shifting the client-specific introspection logic into its dedicated binding while cleaning up the service bindings.

  • In src/rcl_service_bindings.cpp, the conditional branch for client introspection is removed and the service introspection configuration is streamlined.
  • In src/rcl_client_bindings.cpp, a new function ConfigureClientIntrospection is introduced and exported for client use.
  • In lib/service.js and lib/client.js, calls are updated to use the appropriate introspection functions and argument signatures.

Fix: #1117

@minggangw minggangw requested a review from Copilot May 4, 2025 16:36
Copy link

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 refactors the introspection configuration by shifting the client-specific introspection logic into its dedicated binding while cleaning up the service bindings.

  • In src/rcl_service_bindings.cpp, the conditional branch for client introspection is removed and the service introspection configuration is streamlined.
  • In src/rcl_client_bindings.cpp, a new function ConfigureClientIntrospection is introduced and exported for client use.
  • In lib/service.js and lib/client.js, calls are updated to use the appropriate introspection functions and argument signatures.

Reviewed Changes

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

File Description
src/rcl_service_bindings.cpp Removed the client branch and streamlined service introspection.
src/rcl_client_bindings.cpp Introduced a new client introspection function and updated exports.
lib/service.js Updated function call signature to remove unused parameter.
lib/client.js Changed the introspection function call to use the client version.

@coveralls
Copy link

Coverage Status

coverage: 85.076% (+0.03%) from 85.042%
when pulling 90459a1 on minggangw:move-client-introspection-to-client-binding
into 2d70163 on RobotWebTools:develop.

@minggangw minggangw merged commit eab439d into RobotWebTools:develop May 4, 2025
11 checks passed
minggangw added a commit that referenced this pull request May 6, 2025
This PR refactors the introspection configuration by shifting the client-specific introspection logic into its dedicated binding while cleaning up the service bindings.  
- In src/rcl_service_bindings.cpp, the conditional branch for client introspection is removed and the service introspection configuration is streamlined.  
- In src/rcl_client_bindings.cpp, a new function ConfigureClientIntrospection is introduced and exported for client use.  
- In lib/service.js and lib/client.js, calls are updated to use the appropriate introspection functions and argument signatures.

Fix: #1117
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.

Move configure client introspection to binding of client

2 participants