intrinsic.solutions.behavior_tree.CompoundCondition
![]() View source on GitHub |
A base implementation for conditions composed of a number of conditions.
Inherits From: Condition
intrinsic.solutions.behavior_tree.CompoundCondition(
conditions: Optional[List['Condition']] = None
)
Does not impose specific semantics on the children (these are to be defined by the sub-classes).
Attributes | |
|---|---|
The list of conditions of the given condition. | |
The proto representation of the node. | |
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