Skip to content

Commit

Permalink
Correct examples commands (#966)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Gil Aviles <[email protected]>
  • Loading branch information
Javgilavi authored Nov 27, 2024
1 parent 2086293 commit a387d2c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions docs/docker/fastdds/fast_dds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ This is a minimal example that will perform a Publisher/Subscriber match and sta
.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
tmux new-session "./DDSHelloWorldExample publisher 0 1000" \; \
split-window "./DDSHelloWorldExample subscriber" \; \
cd hello_world/bin
tmux new-session "./hello_world publisher" \; \
split-window "./hello_world subscriber" \; \
select-layout even-vertical
This example is not constrained to the current instance.
Expand All @@ -62,13 +62,13 @@ following from each container.
.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
./DDSHelloWorldExample publisher
cd hello_world/bin
./hello_world publisher
or

.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
./DDSHelloWorldExample subscriber
cd hello_world/bin
./hello_world subscriber
20 changes: 10 additions & 10 deletions docs/docker/fastdds_suite/fast_dds_suite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ This is a minimal example that will perform a Publisher/Subscriber match and sta
.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
tmux new-session "./DDSHelloWorldExample publisher 0 1000" \; \
split-window "./DDSHelloWorldExample subscriber" \; \
cd hello_world/bin
tmux new-session "./hello_world publisher" \; \
split-window "./hello_world subscriber" \; \
select-layout even-vertical
This example is not constrained to the current instance. It's possible to run several instances of this
Expand All @@ -101,16 +101,16 @@ container to check the communication between them by running the following from
.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
./DDSHelloWorldExample publisher
cd hello_world/bin
./hello_world publisher
or

.. code-block:: bash
goToExamples
cd dds/HelloWorldExample/bin
./DDSHelloWorldExample subscriber
cd hello_world/bin
./hello_world subscriber
.. _fast_dds_suite_shapes_demo:

Expand Down Expand Up @@ -165,11 +165,11 @@ DDS Router communicating both Domains.
.. code-block:: bash
goToExamples
cd dds/BasicConfigurationExample/bin
cd configuration/bin
tmux new-session \
"ddsrouter --config-path /config.yml" \; \
split-window -h "./BasicConfigurationExample publisher --domain 0 --interval 1000 --transport udp" \; \
split-window -v "./BasicConfigurationExample subscriber --domain 1 --transport udp"
split-window -h "./configuration publisher --domain 0 --interval 1000 --transport udp" \; \
split-window -v "./configuration subscriber --domain 1 --transport udp"
eProsima DDS Router usage information can be found on the `DDS Router documentation
<https://eprosima-dds-router.readthedocs.io/en/latest/rst/getting_started/project_overview.html>`_.
Expand Down
6 changes: 3 additions & 3 deletions docs/installation/sources/sources_qnx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Move Libraries, Examples, and Tests to the QNX Target
# Move Fast-DDS library to the QNX target
scp -r ~/qnx710/target/qnx7/aarch64le/usr/bin/Fast-DDS_test root@<target-ip-address>:/var
Run DDSHelloWorldExample
Run Hello World
------------------------

#. Open a terminal and run a subscriber:
Expand All @@ -217,7 +217,7 @@ Run DDSHelloWorldExample
ssh root@<target-ip-address>
# Run a subscriber
/var/examples/cpp/dds/HelloWorldExample/bin/DDSHelloWorldExample subscriber
/var/examples/cpp/hello_world/bin/hello_world subscriber
#. Open another terminal and run a publisher:

Expand All @@ -227,7 +227,7 @@ Run DDSHelloWorldExample
ssh root@<target-ip-address>
# Run a publisher
/var/examples/cpp/dds/HelloWorldExample/bin/DDSHelloWorldExample publisher
/var/examples/cpp/hello_world/bin/hello_world publisher
The following output will be shown in the subscriber terminal:

Expand Down

0 comments on commit a387d2c

Please sign in to comment.