launch.substitutions.local_substitution module

Module for the LocalSubstitution substitution.

class launch.substitutions.local_substitution.LocalSubstitution[source]

Bases: Substitution

Substitution that can access contextual local variables.

__init__(expression: str, description: str | None = None) None[source]

Create a LocalSubstitution.

describe() str[source]

Return a description of this substitution as a string.

property description: str | None

Getter for description.

property expression: str

Getter for expression.

perform(context: LaunchContext) str[source]

Perform the substitution by retrieving the local variable.