2022-11-01 20:31:22 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-04-10 14:57:36 +00:00
<class name= "BTState" inherits= "LimboState" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../../../doc/class.xsd" >
2022-11-01 20:31:22 +00:00
<brief_description >
2022-11-04 12:27:09 +00:00
A state node for [LimboHSM] that hosts a [BehaviorTree].
2022-11-01 20:31:22 +00:00
</brief_description>
<description >
2023-10-26 13:45:24 +00:00
BTState is a [LimboState] node that manages a [BehaviorTree] to provide behavior logic for the state. It instantiates and runs the [BehaviorTree] resource, dispatching a state machine event upon [code]SUCCESS[/code] or [code]FAILURE[/code]. Event names are customizable through [member success_event] and [member failure_event]. For further details on state machine events, see [method LimboState.dispatch].
2022-11-01 20:31:22 +00:00
</description>
<tutorials >
</tutorials>
<members >
<member name= "behavior_tree" type= "BehaviorTree" setter= "set_behavior_tree" getter= "get_behavior_tree" >
2023-10-26 13:45:24 +00:00
A [BehaviorTree] resource that defines state behavior.
2022-11-04 12:27:09 +00:00
</member>
<member name= "failure_event" type= "String" setter= "set_failure_event" getter= "get_failure_event" default= ""failure"" >
2023-10-26 13:45:24 +00:00
HSM event that will be dispatched when the behavior tree results in [code]FAILURE[/code]. See [method LimboState.dispatch].
2022-11-04 12:27:09 +00:00
</member>
<member name= "success_event" type= "String" setter= "set_success_event" getter= "get_success_event" default= ""success"" >
2023-10-26 13:45:24 +00:00
HSM event that will be dispatched when the behavior tree results in [code]SUCCESS[/code]. See [method LimboState.dispatch].
2022-11-01 20:31:22 +00:00
</member>
</members>
</class>