Class Behavior
java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.behavior.Behavior
Behavior
is a Node
that can be used to control
the behavior of a robot.
See also https://www.behaviortree.dev/
A signal called "tick" is sent to the root of the tree and propagates through the tree until it reaches a leaf node. Any Behavior that receives a tick signal executes its callback. This callback must return either
- SUCCESS
- FAILURE
- RUNNING
RUNNING means that the action needs more time to return a valid result.
If a Behavior
has one or more children, it is its responsibility to propagate the tick; each
Behavior
type may have different rules about if, when, and how many times children are ticked.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.marginallyclever.ro3.node.Node
addAttachListener, addChild, addChild, addDetachListener, addReadyListener, addRenameListener, findByPath, findChild, findChild, findFirstChild, findFirstSibling, findNodeByID, findParent, findParent, fromJSON, getAbsolutePath, getChildren, getComponents, getName, getParent, getRootNode, getUniqueID, hasParent, isNameUsedBySibling, removeAttachListener, removeChild, removeDetachListener, removeReadyListener, removeRenameListener, setName, toJSON, update, witnessProtection
-
Constructor Details
-
Behavior
public Behavior() -
Behavior
-
-
Method Details
-
tick
-