Skip to content

Commit

Permalink
Refs #20108: Clarify Fast DDS Discovery Server Tutorial for Windows s…
Browse files Browse the repository at this point in the history
…upport

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Dec 11, 2023
1 parent 7cd0784 commit c116ce8
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions source/Tutorials/Advanced/Discovery-Server/Discovery-Server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,19 @@ Execute the listener demo, to listen to the ``/chatter`` topic.
In a new terminal, set the environment variable ``ROS_DISCOVERY_SERVER`` to the location of the discovery server.
(Do not forget to source ROS 2 in every new terminal)

.. code-block:: console
.. tabs::

.. group-tab:: Linux

.. code-block:: console
export ROS_DISCOVERY_SERVER=127.0.0.1:11811
export ROS_DISCOVERY_SERVER=127.0.0.1:11811
.. group-tab:: Windows

.. code-block:: console
set ROS_DISCOVERY_SERVER=127.0.0.1:11811
Launch the listener node. Use the argument ``--remap __node:=listener_discovery_server`` to change the node's name for this tutorial.

Expand All @@ -121,9 +131,22 @@ Launch talker node

Open a new terminal and set the ``ROS_DISCOVERY_SERVER`` environment variable as before so that the node starts a discovery client.

.. tabs::

.. group-tab:: Linux

.. code-block:: console
export ROS_DISCOVERY_SERVER=127.0.0.1:11811
.. group-tab:: Windows

.. code-block:: console
set export ROS_DISCOVERY_SERVER=127.0.0.1:11811
.. code-block:: console
export ROS_DISCOVERY_SERVER=127.0.0.1:11811
ros2 run demo_nodes_cpp talker --ros-args --remap __node:=talker_discovery_server
You should now see the talker publishing "hello world" messages, and the listener receiving these messages.
Expand Down

0 comments on commit c116ce8

Please sign in to comment.