Skip to content

Conversation

minggangw
Copy link
Member

@minggangw minggangw commented Apr 7, 2025

This patch implements to expose rcl_get_client_names_and_types_by_node provided by rcl library, including:

  1. Expose rcl_get_client_names_and_types_by_node by binding to JavaScript method GetClientNamesAndTypesByNode.
  2. Add the type definition for GetClientNamesAndTypesByNode into rclnodejs.d.ts.
  3. Add unit test for type into test/types/index.test-d.ts.
  4. Add example into example/ros-graph-example.js.

Fix: #1096

@minggangw minggangw requested a review from Copilot April 7, 2025 07:49
Copy link

@Copilot 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.

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

Comments suppressed due to low confidence (1)

lib/node.js:986

  • The doc comment incorrectly refers to 'service names and types'. It should be updated to 'client names and types' to match the function purpose.
   * Get service names and types for which a remote node has clients.

@minggangw
Copy link
Member Author

Coveralls failed, merge this PR into main.

@minggangw minggangw merged commit bc6d4e2 into RobotWebTools:develop Apr 7, 2025
7 of 17 checks passed
minggangw added a commit that referenced this pull request Apr 8, 2025
This patch implements to expose `rcl_get_client_names_and_types_by_node` provided by `rcl` library, including:

1. Expose `rcl_get_client_names_and_types_by_node` by binding to JavaScript method `GetClientNamesAndTypesByNode`.
2. Add the type definition for `GetClientNamesAndTypesByNode` into `rclnodejs.d.ts`.
3. Add unit test for type into `test/types/index.test-d.ts`.
4. Add example into `example/ros-graph-example.js`.

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

Can't figure out how to get list of service client or servers names and types by node

1 participant