launch.utilities.visit_all_entities_and_collect_futures_impl module

Module for the visit_all_entities_and_collect_futures() utility function.

launch.utilities.visit_all_entities_and_collect_futures_impl.visit_all_entities_and_collect_futures(entity: LaunchDescriptionEntity, context: LaunchContext) List[Tuple[LaunchDescriptionEntity, Future]][source]

Visit given entity, as well as all sub-entities, and collect any futures.

Sub-entities are visited recursively and depth-first. The future is collected from each entity (unless it returns None) before continuing on to more sub-entities.

This function may call itself to traverse the sub-entities recursively.