Comparison Between Behavior Trees and Finite State Machines
- 16 September 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Automation Science and Engineering
- Vol. 22 (15455955) , 21098-21117
Abstract
Behavior Trees (BTs) were first conceived in the computer games industry as a tool to model agent behavior, but they received interest also in the robotics community as an alternative policy design to Finite State Machines (FSMs). The advantages of BTs over FSMs had been highlighted in many works, but there is no thorough practical comparison of the two designs. Such a comparison is particularly relevant in the robotic industry, where FSMs have been the state-of-the-art policy representation for robot control for many years. In this work we shed light on this matter by comparing how BTs and FSMs behave when controlling a robot in a mobile manipulation task. The comparison is made in terms of reactivity, modularity, readability, and design. We propose metrics for each of these properties, being aware that while some are tangible and objective, others are more subjective and implementation dependent. The practical comparison is performed in a simulation environment with validation on a real robot. We find that although the robot’s behavior during task solving is independent on the policy representation, maintaining a BT rather than an FSM becomes easier as the task increases in complexity.Keywords
All Related Versions
Funding Information
- Swedish Foundation for Strategic Research; and in part by the Wallenberg AI, Autonomous Systems, and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation
This publication has 32 references indexed in Scilit:
- Towards Using Behavior Trees in Industrial Automation Controllers.Procedia CIRP, 2024
- Behavior Trees in Industrial Applications: A Case Study in Underground Explosive Charging2024
- A Framework for Learning Behavior Trees in Collaborative Robotic Applications2023
- A Human-Aware Method to Plan Complex Cooperative and Autonomous Tasks using Behavior Trees2021
- Learning Behavior Trees From Demonstration2019
- Towards Blended Reactive Planning and Acting using Behavior Trees2019
- Using Finite State Machines in Introductory Robotics2018
- CoSTAR: Instructing collaborative robots with behavior trees and vision2017
- Parameterizing Behavior Trees2011
- RoboCup@Home2009