java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.behavior.Behavior
Direct Known Subclasses:
Action, Condition, Control, Decorator, Fallback, Sequence

public abstract class Behavior extends Node

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.

  • Constructor Details

    • Behavior

      public Behavior()
    • Behavior

      public Behavior(String name)
  • Method Details