Parse policy.xml and generate access control zenoh config #480
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generate zenoh config file using policy.xml
1 ) Launch zenohd
2 ) Launch the listener
export RMW_IMPLEMENTATION=rmw_zenoh_cpp ros2 run demo_nodes_cpp listener
3 ) Launch the talker
export RMW_IMPLEMENTATION=rmw_zenoh_cpp ros2 run demo_nodes_cpp talker
Now run the policy generator
Finally run the script:
Try access control
export ZENOH_SESSION_CONFIG_URI=listener.json5 ros2 run demo_nodes_cpp listener ... [INFO] [1740602312.492840958] [listener]: I heard: [Hello World: 1] [INFO] [1740602313.492200366] [listener]: I heard: [Hello World: 2]
You can check that everything is fine remapping the topic name (this should not work):
ros2 run demo_nodes_cpp listener --ros-args -r chatter:=new_topic ... # listener should not receive anything