Skip to content

Commit 012d779

Browse files
mergify[bot]Nils-ChristianIsekechristophebedard
authored
Add $ to Demos (backport #5352) (#5391)
Signed-off-by: Nils-Christian Iseke <[email protected]> Signed-off-by: Nils-Christian Iseke <[email protected]> Signed-off-by: Christophe Bedard <[email protected]> Co-authored-by: Christophe Bedard <[email protected]> (cherry picked from commit 8d1b99d) Signed-off-by: Christophe Bedard <[email protected]> Co-authored-by: Nils-Christian Iseke <[email protected]> Co-authored-by: Christophe Bedard <[email protected]>
1 parent 98e812e commit 012d779

8 files changed

+303
-243
lines changed

source/Tutorials/Demos/Content-Filtering-Subscription.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The ``ContentFilteringPublisher`` node publishes simulated temperature data star
132132

133133
We can run the demo by running the ``ros2 run demo_nodes_cpp content_filtering_publisher`` executable (don't forget to source the setup file first):
134134

135-
.. code-block:: bash
135+
.. code-block:: console
136136
137137
$ ros2 run demo_nodes_cpp content_filtering_publisher
138138
[INFO] [1651094594.822753479] [content_filtering_publisher]: Publishing: '-100.000000'
@@ -248,7 +248,7 @@ Applications can use the ``is_cft_enabled`` method to check if content filtering
248248

249249
To test content filtering subscription, let's run it:
250250

251-
.. code-block:: bash
251+
.. code-block:: console
252252
253253
$ ros2 run demo_nodes_cpp content_filtering_subscriber
254254
[INFO] [1651094590.682660703] [content_filtering_subscriber]: subscribed to topic "/temperature" with content filter options "data < %0 OR data > %1, {-30.000000, 100.000000}"
@@ -277,7 +277,7 @@ You should see a message showing the content filtering options used and logs for
277277
If content filtering is not supported by the RMW implementation, the subscription will still be created without content filtering enabled.
278278
We can try that by executing ``RMW_IMPLEMENTATION=rmw_cyclonedds_cpp ros2 run demo_nodes_cpp content_filtering_publisher``.
279279

280-
.. code-block:: bash
280+
.. code-block:: console
281281
282282
$ RMW_IMPLEMENTATION=rmw_cyclonedds_cpp ros2 run demo_nodes_cpp content_filtering_subscriber
283283
[WARN] [1651096637.893842072] [content_filtering_subscriber]: Content filter is not enabled since it is not supported

source/Tutorials/Demos/Intra-Process-Communication.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ This demonstrates that intra process communication is indeed working and unneces
135135

136136
Let's run the demo by executing ``ros2 run intra_process_demo two_node_pipeline`` executable (don't forget to source the setup file first):
137137

138-
.. code-block:: bash
138+
.. code-block:: console
139139
140140
$ ros2 run intra_process_demo two_node_pipeline
141141
Published message with value: 0, and address: 0x7fb02303faf0
@@ -263,7 +263,7 @@ Because the message is being published and subscribed to as a ``unique_ptr`` the
263263

264264
To test those expectations, let's run it:
265265

266-
.. code-block:: bash
266+
.. code-block:: console
267267
268268
$ ros2 run intra_process_demo cyclic_pipeline
269269
Published first message with value: 42, and address: 0x7fd2ce0a2bc0
@@ -302,7 +302,7 @@ In this demo we'll use OpenCV to capture, annotate, and then view images.
302302

303303
If you are on macOS and these examples do not work or you receive an error like ``ddsi_conn_write failed -1``, then you'll need to increase your system wide UDP packet size:
304304

305-
.. code-block:: bash
305+
.. code-block:: console
306306
307307
$ sudo sysctl -w net.inet.udp.recvspace=209715
308308
$ sudo sysctl -w net.inet.udp.maxdgram=65500
@@ -329,9 +329,9 @@ The watermark and image view nodes are designed to modify the image without copy
329329

330330
Let's run the demo by executing the following executable:
331331

332-
.. code-block:: bash
332+
.. code-block:: console
333333
334-
ros2 run intra_process_demo image_pipeline_all_in_one
334+
$ ros2 run intra_process_demo image_pipeline_all_in_one
335335
336336
You should see something like this:
337337

@@ -352,9 +352,9 @@ All the nodes are still in the same process, but now two image view windows shou
352352
(Note for macOS users: your image view windows might be on top of each other).
353353
Let's run it with the command:
354354

355-
.. code-block:: bash
355+
.. code-block:: console
356356
357-
ros2 run intra_process_demo image_pipeline_with_two_image_view
357+
$ ros2 run intra_process_demo image_pipeline_with_two_image_view
358358
359359
360360
.. image:: images/intra-process-demo-pipeline-two-windows-copy.png

0 commit comments

Comments
 (0)