intrinsic.solutions.behavior_tree.AnyOf
![]() View source on GitHub |
A BehaviorTree condition encoding a boolean “or”.
Inherits From: CompoundCondition, Condition
intrinsic.solutions.behavior_tree.AnyOf(
conditions: Optional[List['Condition']] = None
)
Compound of conditions, any of the sub-conditions needs to be true.
Attributes | |
|---|---|
The proto representation of the node. | |
A string label of the condition type. | |
Methods
create_from_proto
View source
@classmethodcreate_from_proto( proto_object: behavior_tree_pb2.BehaviorTree.Condition ) -> 'Condition'
Instantiates a Condition instance from a proto.
set_conditions
View source
set_conditions(
conditions: List['Condition']
) -> 'Condition'
visit
View source
visit(
containing_tree: 'BehaviorTree',
callback: Callable[['BehaviorTree', Union['BehaviorTree', 'Node', 'Condition']], None]
) -> None