What happens if the namespace of a subscriber node (node->get_effective_namespace()) has nothing to do with the base_topic to which it is subscribing?
More specifically, if the namespace from base_topic does not equal node->get_effective_namespace() then mode_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?
ros2branch, currently at commit 7ca9072What happens if the namespace of a subscriber node (
node->get_effective_namespace()) has nothing to do with thebase_topicto which it is subscribing?More specifically, if the namespace from
base_topicdoes not equalnode->get_effective_namespace()thenmode_param_namemay 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.modeI suspect the code wants to create the value:
camera.sync.image.mode.Thoughts?