Behavior Trees and State Machines in Robotics Applications
Top Cited Papers
- 21 April 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 49 (9) , 4243-4267
Abstract
Autonomous robots combine skills to form increasingly complex behaviors, called missions. While skills are often programmed at a relatively low abstraction level, their coordination is architecturally separated and often expressed in higher-level languages or frameworks. State machines have been the go-to language to model behavior for decades, but recently, behavior trees have gained attention among roboticists. Originally designed to model autonomous actors in computer games, behavior trees offer an extensible tree-based representation of missions and are claimed to support modular design and code reuse. Although several implementations of behavior trees are in use, little is known about their usage and scope in the real world. How do concepts offered by behavior trees relate to traditional languages, such as state machines? How are concepts in behavior trees and state machines used in actual applications? This paper is a study of the key language concepts in behavior trees as realized in domain-specific languages (DSLs), internal and external DSLs offered as libraries, and their use in open-source robotic applications supported by the Robot Operating System (ROS). We analyze behavior-tree DSLs and compare them to the standard language for behavior models in robotics: state machines. We identify DSLs for both behavior-modeling languages, and we analyze five in-depth. We mine open-source repositories for robotic applications that use the analyzed DSLs and analyze their usage. We identify similarities between behavior trees and state machines in terms of language design and the concepts offered to accommodate the needs of the robotics domain. We observed that the usage of behavior-tree DSLs in open-source projects is increasing rapidly. We observed similar usage patterns at model structure and at code reuse in the behavior-tree and state-machine models within the mined open-source projects. We contribute all extracted models as a dataset, hoping to inspire the community to use and further develop behavior trees, associated tools, and analysis techniques.Keywords
All Related Versions
Funding Information
- Wallenberg Ai, Autonomous Systems and Software Program
- Knut och Alice Wallenbergs Stiftelse
This publication has 71 references indexed in Scilit:
- The State of Practice in Model-Driven EngineeringIEEE Software, 2013
- Design Patterns for State Machines2011
- The impact of structural complexity on the understandability of UML statechart diagramsInformation Sciences, 2010
- UML vs. classical vs. rhapsody statecharts: not all models are created equalSoftware and Systems Modeling, 2007
- CLARAty: Challenges and Steps toward Reusable Robotic SoftwareInternational Journal of Advanced Robotic Systems, 2006
- METRICS FOR UML STATECHART DIAGRAMS2005
- An Empirical Study of the Nesting Level of Composite States Within UML Statechart Diagrams2005
- A compositional approach to statecharts semanticsACM SIGSOFT Software Engineering Notes, 2000
- A metrics suite for object oriented designIEEE Transactions on Software Engineering, 1994
- Statecharts: a visual formalism for complex systemsScience of Computer Programming, 1987