Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jun 20, 2025

This pull request introduces support for resolving topic and service names with remapping and expansion functionality. Key changes include:

  • Addition of new tests in both TypeScript and JavaScript to verify the resolution behavior.
  • Implementation of a new C++ binding function (ResolveName) to expose the name resolution logic.
  • Updates to the Node class in JavaScript to provide resolveTopicName and resolveServiceName methods.

Fix: #1174

@minggangw minggangw requested a review from Copilot June 20, 2025 06:04
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 pull request introduces support for resolving topic and service names with remapping and expansion functionality. Key changes include:

  • Addition of new tests in both TypeScript and JavaScript to verify the resolution behavior.
  • Implementation of a new C++ binding function (ResolveName) to expose the name resolution logic.
  • Updates to the Node class in JavaScript to provide resolveTopicName and resolveServiceName methods.

Reviewed Changes

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

File Description
test/types/index.test-d.ts Added test expectations for resolved topic and service names
test/test-node.js Added test cases for topic and service name resolution
src/rcl_node_bindings.cpp Introduced the ResolveName function, binding C++ resolution API
lib/node.js Implemented resolveTopicName and resolveServiceName methods
Comments suppressed due to low confidence (1)

lib/node.js:1719

  • [nitpick] Consider renaming the parameter 'service' to 'serviceName' for improved clarity in the documentation and code readability.
  resolveServiceName(service, onlyExpand = false) {

@coveralls
Copy link

Coverage Status

coverage: 84.603% (-0.07%) from 84.672%
when pulling 66fbcf3 on minggangw:fix-1174
into af12346 on RobotWebTools:develop.

@minggangw minggangw merged commit ba7cdc0 into RobotWebTools:develop Jun 20, 2025
21 of 22 checks passed
minggangw added a commit that referenced this pull request Jun 23, 2025
This pull request introduces support for resolving topic and service names with remapping and expansion functionality. Key changes include:

- Addition of new tests in both TypeScript and JavaScript to verify the resolution behavior.
- Implementation of a new C++ binding function (ResolveName) to expose the name resolution logic.
- Updates to the Node class in JavaScript to provide resolveTopicName and resolveServiceName methods.

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

Support to resolve topic/service

2 participants