BTSubtree
Inherits: BTNewScope < BTDecorator < BTTask < BT
BT decorator that instantiates and runs a subtree within the larger tree.
Description
BTSubtree instantiates a BehaviorTree and includes its root task as a child during initialization, while also creating a new Blackboard scope.
Returns the status of the subtree’s execution.
Note: BTSubTree is designed as a simpler loader, and does not support updating subtree at runtime. A custom subtree decorator is better suited and somewhat trivial to implement.
Properties
Property Descriptions
BehaviorTree subtree
void set_subtree ( BehaviorTree value )
BehaviorTree get_subtree ( )
A BehaviorTree resource that will be instantiated as a subtree.