Skip to content

Commit 0cac21e

Browse files
authored
Update Launch-system.rst
also copyedited the hard-to-read text. Signed-off-by: Muhammad Ashfaq <[email protected]>
1 parent 060fa33 commit 0cac21e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/Tutorials/Intermediate/Launch/Launch-system.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ Make sure to create a ``launch`` directory at the top-level of the package you c
9999
setup.py
100100
test/
101101
102-
In order for colcon to find the launch files, we need to inform Python's setup tools of our launch files using the ``data_files`` parameter of ``setup``.
102+
103+
To enable colcon to identify the launch files, it is necessary to inform Python's setup tools of their location using the ``data_files`` parameter of ``setup``.
104+
To achieve this, open the ``setup.py`` file, add the requisite import statements at the beginning of the file, and update the ``data_files`` parameter as follows:
105+
103106

104-
Inside our ``setup.py`` file:
105107

106108
.. code-block:: python
107109
@@ -116,7 +118,7 @@ Make sure to create a ``launch`` directory at the top-level of the package you c
116118
data_files=[
117119
# ... Other data files
118120
# Include all launch files.
119-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*'))) # ADD
121+
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*')))
120122
]
121123
)
122124

0 commit comments

Comments
 (0)