Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage rcl functions to get topic of publisher/subscription #951

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

minggangw
Copy link
Member

This patch implements:

  1. Return the result of rcl_publisher_get_topic_name() directly, instead of splitting it by "/" and returns the last part.
  2. Use rcl_subscription_get_topic_name() to get the topic of a subscription.

Meanwhile, this patch updates the following tests:

  • test/test-node-oo.js
  • test/test-node.js
  • test/test-remapping.js

Fix: #949, #950

This patch implements:

1. Return the result of rcl_publisher_get_topic_name() directly, instead
of splitting it by "/" and retrun the last part.

2. Use rcl_subscription_get_topic_name() to get the topic of a
subscription.

Meanwhile, this patch updates the following tests:

- test/test-node-oo.js
- test/test-node.js
- test/test-remapping.js

Fix: RobotWebTools#949, RobotWebTools#950
@minggangw minggangw merged commit 625b016 into RobotWebTools:develop Jan 8, 2024
2 of 6 checks passed
minggangw added a commit that referenced this pull request Jan 8, 2024
This patch implements:

1. Return the result of rcl_publisher_get_topic_name() directly, instead
of splitting it by "/" and returns the last part.

2. Use rcl_subscription_get_topic_name() to get the topic of a
subscription.

Meanwhile, this patch updates the following tests:

- test/test-node-oo.js
- test/test-node.js
- test/test-remapping.js

Fix: #949, #950
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.

Publisher topic name field not accurately giving the topic name.
1 participant