ros2 / ros2_documentation

ROS 2 docs repository
https://docs.ros.org/en/rolling
Creative Commons Attribution 4.0 International
550 stars 1.06k forks source link

Launch tutorial for Humble error #4758

Closed aenoca closed 1 month ago

aenoca commented 1 month ago

The tutorial for Humble leads to an error when using colcon build (source/Tutorials/Intermediate/Launch/Launch-system.rst). To note, the line in the setup.py file to add the launch file causes the issue.

import os
import glob
# Other imports ...

package_name = 'py_launch_example'

setup(
    # Other parameters ...
    data_files=[
        # ... Other data files
        # Include all launch files.
        (os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*')))
    ]
)

Issue:

aenoca commented 1 month ago

from glob import glob

aenoca commented 1 month ago

Misread of instructions