launch.launch_description_sources.any_launch_file_utilities module
Python package utility functions related to loading Frontend Launch Files.
- launch.launch_description_sources.any_launch_file_utilities.get_launch_description_from_any_launch_file(launch_file_path: str, *, parser: ~typing.Type[~launch.frontend.parser.Parser] = <class 'launch.frontend.parser.Parser'>) LaunchDescription [source]
Load a given launch file (by path), and return the launch description from it.
- Raises:
launch.invalid_launch_file_error.InvalidLaunchFileError – Failed to load launch file. It’s only showed with launch files without extension (or not recognized extensions).
SyntaxError – Invalid file. The file may have a syntax error in it.
ValueError – Invalid file. The file may not be a text file.