This workspace is designed for the development and testing of behavior trees using BehaviorTree.CPP (BTCPP), a powerful and flexible C++ library for building behavior trees. Behavior trees are an AI architecture widely used in robotics and games to manage complex decision-making processes. They are structured as hierarchical trees where each node represents a task, decision, or action, allowing for modular, reusable, and maintainable code.
BehaviorTree.CPP is an open-source library that facilitates the creation and execution of behavior trees in C++. It provides a highly customizable and easy-to-use framework with various features such as asynchronous actions, reactive behaviors, and integration with other middleware and libraries. For more details on BehaviorTree.CPP, you can visit the official website or check out the GitHub repository.
This workspace includes a Docker-based environment tailored for developing with BehaviorTree.CPP. The Docker environment ensures consistency across different development setups and simplifies dependency management. By using Docker, you can avoid the complexity of setting up your local environment, and quickly start developing, testing, and running behavior trees.
To get started with the Docker environment, follow these steps:
-
Clone this repository:
git clone https://github.com/mdirzpr/btcpp_ws.git
-
Build the Docker image using this command:
cd btcpp_ws docker compose build
-
Start a container:
docker compose run btcpp_ws
- For more detailed instructions on how to work with Docker, refer to the official Docker documentation.
In order to test BehaviorTree.CPP library, run this commands:
bash test.sh
and the output will be like this:
For discussions, updates, and networking with other BehaviorTree.CPP users, consider joining the BehaviorTree LinkedIn Group.
- Mahdi Rezapour
- Email: [email protected]