launch.events package

Subpackages

Submodules

Module contents

Package for events.

class launch.events.ExecutionComplete[source]

Bases: Event

Event that is emitted on action execution completion.

__init__(*, action: Action) None[source]

Create an ExecutionComplete event.

property action

Getter for action.

name = 'launch.events.ExecutionComplete'
class launch.events.IncludeLaunchDescription[source]

Bases: Event

Event that can be emitted to cause a LaunchDescription to be included.

__init__(launch_description: LaunchDescription) None[source]

Create an IncludeLaunchDescription event.

property launch_description

Getter for launch_description.

name = 'launch.events.IncludeLaunchDescription'
class launch.events.Shutdown[source]

Bases: Event

Event that is emitted on shutdown of a launched system.

__init__(*, reason: str = 'reason not given', due_to_sigint: bool = False) None[source]

Create a Shutdown event.

property due_to_sigint

Getter for due_to_sigint.

name = 'launch.events.Shutdown'
property reason

Getter for reason.

class launch.events.TimerEvent[source]

Bases: Event

Event that fires when a TimerAction’s period expires.

__init__(*, timer_action: TimerAction) None[source]

Create a TimerEvent.

name = 'launch.events.TimerEvent'
property timer_action

Getter for timer_action.

launch.events.matches_action(target_action: Action) Callable[[Action], bool][source]

Return a matcher which matches based on an exact given ExecuteProcess action.