launch.conditions.if_condition module

Module for IfCondition class.

class launch.conditions.if_condition.IfCondition[source]

Bases: Condition

Encapsulates an if condition to be evaluated when launching.

This condition takes a string expression that is lexically evaluated as a boolean, but the expression may consist of launch.Substitution instances.

See evaluate_condition_expression() to understand what constitutes a valid condition expression.

__init__(predicate_expression: str | Substitution | Iterable[str | Substitution]) None[source]
describe() str[source]

Return a description of this Condition.