-
Notifications
You must be signed in to change notification settings - Fork 11
Support bridge namespaces #225
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
Support bridge namespaces #225
Conversation
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
… namespaces Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
PR missing one of the required labels: {'internal', 'breaking-change', 'new feature', 'documentation', 'enhancement', 'dependencies', 'bug'} |
PR missing one of the required labels: {'bug', 'documentation', 'new feature', 'internal', 'breaking-change', 'enhancement', 'dependencies'} |
It works as described and looks good to me. Just a clarification please: Otherwise, I think using a relative topic name becomes confusing. See: # terminal 1 - bridge with namespace:
./zenoh-bridge-ros1 --with_rosmaster true --ros_master_uri http://localhost:10000 --bridge_namespace test_ns
# terminal 2 - bridge without namespace:
./zenoh-bridge-ros1 --with_rosmaster true --ros_master_uri http://localhost:10001
# terminal 3 - publish on relative topic:
ROS_MASTER_URI=http://localhost:10000 rostopic pub topic std_msgs/String -r 1 test_message
# terminal 4 - topiclist doesn't show the namespace added by remote bridge:
ROS_MASTER_URI=http://localhost:10001 rostopic list
# Output: /topic - I would have expected /test_ns/topic
/topic |
Hi @JEnoch! Sorry for the confusion, I meant using the wild card In this example you provided, the first bridge on port 10000, will convert the ROS topic While the second bridge on port 10001, using the wild card edit: updated the help string and default config too, 695a04f, to not use the word wildcard instead of global |
…ace as wildcard Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Hi @aaronchongth, |
{data_type}/{md5}/{bridge_namespace}/{topic}
"*"
, representing handling topics across all bridge namespacesI opted to use the environment variable for retrieving the namespace to prevent breaking API.
Testing
Using the README's quick test as examples,
Both default global namespaces works,
Publish on global namespace, listen on bridge namespace
test_ns
, worksPublish on bridge namespace
test_ns
, listen on global namespace, worksPublish on bridge namespace
test_ns
, listen on bridge namespacetest_ns
, worksPublish on bridge namespace
test_ns1
, listen on bridge namespacetest_ns2
, will not work