behavior-tree-zmq

Optional dependency of async-behavior-tree that allows live debugging using Groot via zmq.

Usage no npm install needed!

<script type="module">
  import behaviorTreeZmq from 'https://cdn.skypack.dev/behavior-tree-zmq';
</script>

README

Build Status npm version

behavior-tree-zmq

A wrapper for zmq for the specific usage of writing data to Groot.

Dependencies

  • zmq

Details

This class has a member dataCallback which is meant to be passed to / called by AsyncBehaviorTree.

dataCallback

Two arguments, a buffer and a flushList.

  • The first call to this function must have only the first buffer, and no 2nd argument
    • This first call is the full header
  • The second call can have either the buffer, or the buffer and flushList
  • The buffer is always data output from AsyncBehaviorTree