behavior-tree-lite 0.3.2

A minimal behavior tree implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

node PrintArmNode {
  in arm: Arm
}

node PrintBodyNode {
  out left_arm: Arm
  out right_arm: Arm
}

tree main = Sequence {
  PrintBodyNode (left_arm -> left_arm, right_arm -> right_arm)
  Sequence {
    PrintArmNode (arm <- left_arm)
    PrintArmNode (arm <- right_arm)
    PrintStringNode (input <- "literal message")
  }
}