launch.launch_introspector module

Module for the LaunchIntrospector class.

class launch.launch_introspector.LaunchIntrospector[source]

Bases: object

Provides an interface through which you can visit all entities of a LaunchDescription.

format_launch_description(launch_description: LaunchDescription) str[source]

Return a string representation of a LaunchDescription.

launch.launch_introspector.format_action(action: Action) List[str][source]

Return a text representation of an action.

launch.launch_introspector.format_entities(entities: Iterable[LaunchDescriptionEntity]) List[str][source]

Return a list of lines of text that represent of a list of LaunchDescriptionEntity’s.

launch.launch_introspector.format_event_handler(event_handler: BaseEventHandler) List[str][source]

Return a text representation of an event handler.

launch.launch_introspector.format_substitutions(substitutions: str | Substitution | Iterable[str | Substitution]) str[source]

Return a text representation of some set of substitutions.

launch.launch_introspector.indent(lines: List[str], indention: str = '    ') List[str][source]

Indent a list of strings and return them.

launch.launch_introspector.tree_like_indent(lines: List[str]) List[str][source]

Replace whitespace with “tree”-like indentation symbols.