Skip to content

Commit d002d60

Browse files
In setuptools packages, install everything in launch directory (#5156)
Signed-off-by: Emerson Knapp <[email protected]> Signed-off-by: Emerson Knapp <[email protected]> Co-authored-by: Christophe Bedard <[email protected]>
1 parent e74d64e commit d002d60

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

source/How-To-Guides/Developing-a-ROS-2-Package.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ and a ``setup.py`` file that looks like:
119119
# Include our package.xml file
120120
(os.path.join('share', package_name), ['package.xml']),
121121
# Include all launch files.
122-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*'))),
122+
(os.path.join('share', package_name, 'launch'), glob('launch/*')),
123123
],
124124
# This is important as well
125125
install_requires=['setuptools'],

source/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-Python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ Add the ``import`` statements to the top of the file, and the other new statemen
372372
# ...
373373
data_files=[
374374
# ...
375-
(os.path.join('share', package_name), glob('launch/*launch.[pxy][yma]*')),
375+
(os.path.join('share', package_name, 'launch'), glob('launch/*')),
376376
]
377377
)
378378

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Make sure to create a ``launch`` directory at the top-level of the package you c
115115
data_files=[
116116
# ... Other data files
117117
# Include all launch files.
118-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*')))
118+
(os.path.join('share', package_name, 'launch'), glob('launch/*'))
119119
]
120120
)
121121

source/Tutorials/Intermediate/Launch/Using-ROS2-Launch-For-Large-Projects.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,11 @@ The ``data_files`` field should now look like this:
500500
data_files=[
501501
...
502502
(os.path.join('share', package_name, 'launch'),
503-
glob(os.path.join('launch', '*launch.[pxy][yma]*'))),
503+
glob('launch/*')),
504504
(os.path.join('share', package_name, 'config'),
505-
glob(os.path.join('config', '*.yaml'))),
505+
glob('config/*.yaml')),
506506
(os.path.join('share', package_name, 'rviz'),
507-
glob(os.path.join('config', '*.rviz'))),
507+
glob('config/*.rviz')),
508508
],
509509
510510
2 Build and run

source/Tutorials/Intermediate/Launch/Using-Substitutions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Finally, make sure to install the launch files:
103103
data_files=[
104104
# ... Other data files
105105
# Include all launch files.
106-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*')))
106+
(os.path.join('share', package_name, 'launch'), glob('launch/*'))
107107
]
108108
)
109109

source/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ The ``data_files`` field should now look like this:
333333
334334
data_files=[
335335
...
336-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*'))),
336+
(os.path.join('share', package_name, 'launch'), glob('launch/*')),
337337
],
338338
339339
Also add the appropriate imports at the top of the file:

source/Tutorials/Intermediate/URDF/Using-URDF-with-Robot-State-Publisher-py.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Edit the ``second_ros2_ws/src/urdf_tutorial_r2d2/setup.py`` file as follows:
266266
267267
data_files=[
268268
...
269-
(os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*'))),
269+
(os.path.join('share', package_name, 'launch'), glob('launch/*')),
270270
(os.path.join('share', package_name), glob('urdf/*')),
271271
],
272272

0 commit comments

Comments
 (0)