diff --git a/blog/2021-04-28-ros2-integration/index.html b/blog/2021-04-28-ros2-integration/index.html index ea12bc5e..32a634de 100644 --- a/blog/2021-04-28-ros2-integration/index.html +++ b/blog/2021-04-28-ros2-integration/index.html @@ -59,7 +59,7 @@ # Make it move forward until it hits the wall!! session.put('rt/turtle1/cmd_vel', t) session.put('rt/turtle1/cmd_vel', t) -

You can see more complete versions of a “teleop” code with various options and arrows key-pressed listener here:


How do I use zenoh to operate my robot from anywhere in the world ?

In the scenario described above, the zenoh application discovers the zenoh/DDS bridge via its scouting protocol that leverages UDP multicast - when available. Once discovered, a TCP connection is established between the app and the bridge

multicast discovery

But the zenoh application can also be configured to directly establish a TCP connection with a known host, without relying on scouting protocol. Thus, it can connect directly to the bridge (if reachable) or to 1 or more zenoh routers that will route the zenoh communications between the application and the bridge.

Let’s see the different use cases:

1. Opening a TCP port and redirecting it to the zenoh/DDS bridge

Assuming you can configure your internet connection to open a public TCP port (e.g. 7447) and redirect it to the host running the zenoh/DDS bridge, you can do the following deployment:

open port

Where:

Put/Get into Zenoh

Assuming the memory storage has been added, as described above, you can now:

curl -X PUT -H 'content-type:text/plain' -d 'Hello World!' http://localhost:8000/demo/example/test
 
curl http://localhost:8000/demo/example/test
 
curl -X DELETE http://localhost:8000/demo/example/test
-

Your first app in Python

Now you can see how to build your first Zenoh application in Python.

Pick your programming language

If you prefer, you could also have a look to the examples/zenoh directory we provide in each Zenoh API:

Next up: Troubleshooting