intrinsic.solutions.behavior_tree.SubTreeCondition
![]() View source on GitHub |
A BT condition of type SubTree.
Inherits From: Condition
intrinsic.solutions.behavior_tree.SubTreeCondition(
tree: Union['BehaviorTree', 'Node', actions.ActionBase]
)
The outcome of the subtree determines the result of the condition. If the tree succeeds, the condition evaluates to true, if the tree fails, it evaluates to false.
Attributes | |
|---|---|
The proto representation of the node. | |
A string label of the condition type. | |
The subtree deciding the outcome of the condition. | |
Methods
create_from_proto
View source
@classmethodcreate_from_proto( proto_object: behavior_tree_pb2.BehaviorTree.Condition ) -> 'Condition'
Instantiates a Condition instance from a proto.
visit
View source
visit(
containing_tree: 'BehaviorTree',
callback: Callable[['BehaviorTree', Union['BehaviorTree', 'Node', 'Condition']], None]
) -> None