launch.launch_description_sources.frontend_launch_description_source module
Module for the FrontendLaunchDescriptionSource class.
- class launch.launch_description_sources.frontend_launch_description_source.FrontendLaunchDescriptionSource[source]
Bases:
LaunchDescriptionSource
Encapsulation of a declarative (markup based) launch file.
It can be loaded during launch using an IncludeLaunchDescription action.
- __init__(launch_file_path: str | ~launch.substitution.Substitution | ~typing.Iterable[str | ~launch.substitution.Substitution], *, method: str = 'interpreted frontend launch file', parser: ~typing.Type[~launch.frontend.parser.Parser] = <class 'launch.frontend.parser.Parser'>) None [source]
Create a FrontendLaunchDescriptionSource.
The given file path should be to a launch frontend style file (like xml or yaml). If a relative path is passed, it will be relative to the current working directory wherever the launch file was run from.
- Parameters:
launch_file_path – the path to the launch file. It can be made up of Substitution instances which are expanded when
get_launch_description()
is called.parser – an specific parser implementation