Skip to content

Commit 347b466

Browse files
authored
Small patches in tutorials (ros2#684)
* Typo in "Creating a Workspace" Signed-off-by: maryaB-osr <[email protected]> * assorted fixes Signed-off-by: maryaB-osr <[email protected]>
1 parent 45c0d3d commit 347b466

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

source/Tutorials/Creating-Your-First-ROS2-Package.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ From ``dev_ws/src/my_package``, open ``package.xml`` using your preferred text e
341341
:linenos:
342342
343343
<?xml version="1.0"?>
344-
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
344+
<?xml-model
345+
href="http://download.ros.org/schema/package_format3.xsd"
346+
schematypens="http://www.w3.org/2001/XMLSchema"?>
345347
<package format="3">
346348
<name>my_package</name>
347349
<version>0.0.0</version>
@@ -365,7 +367,9 @@ From ``dev_ws/src/my_package``, open ``package.xml`` using your preferred text e
365367
:linenos:
366368
367369
<?xml version="1.0"?>
368-
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
370+
<?xml-model
371+
href="http://download.ros.org/schema/package_format3.xsd"
372+
schematypens="http://www.w3.org/2001/XMLSchema"?>
369373
<package format="3">
370374
<name>my_package</name>
371375
<version>0.0.0</version>

source/Tutorials/Workspace/Creating-A-Workspace.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Background
1717
----------
1818

1919
A workspace is a directory containing ROS 2 packages.
20-
Before using ROS 2, it’s necessary to source your the ROS 2 installation workspace in the terminal you plan to work in.
20+
Before using ROS 2, it’s necessary to source your ROS 2 installation workspace in the terminal you plan to work in.
2121
This makes ROS 2’s packages available for you to use in that terminal.
2222

2323
You also have the option of sourcing an “overlay” – a secondary workspace where you can add new packages without interfering with the existing ROS 2 workspace that you're extending, or “underlay”.

source/Tutorials/Writing-A-Simple-Cpp-Service-And-Client.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The ``main`` function accomplishes the following, line by line:
163163
~~~~~~~~~~~~~~~~~~
164164

165165
The ``add_executable`` macro generates an executable you can run using ``ros2 run``.
166-
Add the following code block to create an executable named ``server``:
166+
Add the following code block to ``CMakeLists.txt`` to create an executable named ``server``:
167167

168168
.. code-block:: console
169169
@@ -308,15 +308,16 @@ After removing some unnecessary boilerplate from the automatically generated fil
308308
^^^^^^^^^^^^^^^
309309

310310
It's good practice to run ``rosdep`` in the root of your workspace (``dev_ws``) to check for missing dependencies before building:
311+
311312
.. tabs::
312313

313-
.. group-tab:: Linux
314+
.. group-tab:: Linux
314315

315-
.. code-block:: console
316+
.. code-block:: console
316317
317-
sudo rosdep install -i --from-path src --rosdistro <distro> -y
318+
sudo rosdep install -i --from-path src --rosdistro <distro> -y
318319
319-
.. group-tab:: macOS/Windows
320+
.. group-tab:: macOS/Windows
320321

321322
rosdep only runs on Linux, so you can skip ahead to next step.
322323

0 commit comments

Comments
 (0)