You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice catch, I think you're correct in your assessment. There's no guarantee that the topic name has inherited the node namespace. We should probably instead check if the topic prefix matches the node namespace to decide if we should remove the prefix.
It would be nice to see a simple test case demonstrating the issue.
ros2
branch, currently at commit 7ca9072What happens if the namespace of a subscriber node (
node->get_effective_namespace()
) has nothing to do with thebase_topic
to which it is subscribing?More specifically, if the namespace from
base_topic
does not equalnode->get_effective_namespace()
thenmode_param_name
may be unintelligible.Example:
base_topic: /ab_sync_out_ns/camera/sync/image node->get_effective_namespace(): /efgh_viz_ns/ ns_len: 13 base_topic.substr(ns_len): ns/camera/sync/image mode_param_name: ns.camera.sync.image.mode
I suspect the code wants to create the value:
camera.sync.image.mode
.Thoughts?
The text was updated successfully, but these errors were encountered: