/pybehaviortree

Minimal Behavior Tree implementation in python. No external dependencies.

Primary LanguagePythonGNU Lesser General Public License v2.1LGPL-2.1

PyBehaviorTree

This is a minimal behavior tree implementation that follows the guide: Implementing Behavior Trees - Renato Pereira. This is intended as a minimalistic behavior tree implementation in Python with no external references. The purpose of this module is to provide a small set of standard classes from which a large set of behaviors can be implemented. The idea is that you implement your own actions as a subclass of the BaseNode and put it into a tree with behaviors.

Installation

You can test it out by running poetry run python3 example.py.

Then you can install it by running poetry install, or by building a wheel using poetry build and installing the wheel however you need.

Usage

See the individual docstrings, or the examples in examples.