A Zenoh router deployed in the Cloud with a public IP can act as a relay between two rmw_zenoh
systems.
For this workshop, we’ve deployed a Zenoh router on roscon.zenoh.io
.
Update your zenoh_confs/ROUTER_CONFIG.json5
to include the following in the connect.endpoints
configuration:
connect: {
endpoints: [
"tcp/roscon.zenoh.io:7448"
],
},
In your container, run the following commands:
ZENOH_ROUTER_CONFIG_URI=/ros_ws/zenoh_confs/ROUTER_CONFIG.json5 ros2 run rmw_zenoh_cpp rmw_zenohd
ros2 topic pub /chatter std_msgs/msg/String "data: Hello from <YOUR_NAME>"
ros2 topic echo /chatter
Try setting a different ROS_DOMAIN_ID
(e.g., export ROS_DOMAIN_ID=42
).
What happens, and why?