15 lines
1.1 KiB
XML
15 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="BTRandomSelector" inherits="BTComposite" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
|
<brief_description>
|
|
BT composite that executes tasks in random order until first [code]SUCCESS[/code].
|
|
</brief_description>
|
|
<description>
|
|
BTRandomSelector executes its child tasks in a random order until any child returns [code]SUCCESS[/code]. If a child task results in [code]FAILURE[/code], BTRandomSelector will immediately execute another child task until one of them returns [code]SUCCESS[/code] or all of them result in [code]FAILURE[/code].
|
|
Returns [code]RUNNING[/code] if a child task results in [code]RUNNING[/code]. BTRandomSelector will remember the execution order and the last child task that returned [code]RUNNING[/code], ensuring it resumes from that point in the next tick.
|
|
Returns [code]FAILURE[/code] if all child tasks result in [code]FAILURE[/code].
|
|
Returns [code]SUCCESS[/code] if a child task results in [code]SUCCESS[/code].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
</class>
|