Gran Sasso Study Exposes Why Robot Mission Programming Remains Hopelessly Fragmented
A systematic comparison of Behavior Trees, State Machines, HTNs, and BPMN for specifying robot missions, validated by 29 domain experts.
ProTakeaways
- Systematic comparison of Behavior Trees, State Machines, HTNs, and BPMN for robot mission specification.
- Validated with 29 expert respondents averaging 8 years of robotic software engineering experience.
- BTs win on reactivity, SMs on event handling, HTNs on planning, BPMN on orchestration and integration.
- No single formalism supports task save-and-resume, multi-robot coordination, or human handoffs as first-class constructs.
- Tool support is uneven: BT and BPMN ecosystems are mature, HTN tooling is dated, SMACH is fading.
- Authors recommend combining formalisms by abstraction layer rather than picking one; replication package available.
Anyone who has tried to hand a domain expert a way to tell a robot what to do knows the pain. There is no shared language for describing what a robot should accomplish, so every lab, vendor, and research group reinvents the wheel with a different formalism. A new study from Gran Sasso Science Institute tackles that mess with a systematic comparison of the four dominant approaches used to specify robot missions: Behavior Trees (BT), State Machines (SM), Hierarchical Task Networks (HTN), and Business Process Model and Notation (BPMN).
Why mission specification is a mess
Robots are increasingly multi-purpose, capable of performing diverse tasks rather than being tailored to a single function, and missions often have to be defined in the field by domain experts who are not roboticists. No standard or widely accepted formalism has emerged that adequately addresses these requirements across diverse application domains, and the field is fragmented as a result.
BT and SM are widely adopted in robotics thanks to their relative simplicity and execution efficiency, but they offer limited support for human workflows and external systems. HTN and BPMN are more expressive yet rarely used in robotics. Even flagship efforts like NASA's Europa Lander have juggled multiple formalisms in parallel.
How the study was run
The authors structured their comparison around three questions: how each formalism models control structures and mission concepts, what the practical limitations are when specifying realistic missions, and what tooling is actually available. They modeled 11 scenarios spanning logistics, healthcare, agriculture, and warehouse automation using all four formalisms, then validated their findings with an expert survey.
Questionnaire data collection ran over four weeks in January 2026, yielding 29 complete responses out of 83 invitations. Respondents self-reported expertise across the formalisms: 27 experts in SMs, 25 in BTs, 14 in BPMN, and 10 in HTN, with an average of ~8 years in robotic software engineering. Four experts were later interviewed to dig into critical disagreements.
Where each formalism shines and breaks
Each formalism has a natural home, and none of them cover everything. The quick map:
- Behavior Trees excel at reactive behavior thanks to continuous tick-based evaluation, but the Failure state is semantically overloaded, returned by both action and condition nodes for two possibly different reasons, forcing modelers to add disambiguation nodes. Temporal behaviors and interactions have to be manually coded inside action nodes.
- State Machines handle event-driven behavior and task status cleanly, but modeling events that can affect every state means adding outgoing transitions from all of them, which explodes model complexity.
- HTNs uniquely support explicit pre- and post-conditions and enable runtime planning, but they cannot express reactive behavior, and choices are always deferred to the planner.
- BPMN has the richest notation, with dedicated constructs for events, errors, messaging, human tasks, and external system integration, but diagrams get unwieldy for fine-grained robot behavior, and pausing and resuming tasks is not natively supported.
The paper evaluates nine mission concerns per formalism, including reactive behavior, decision making, time-dependent behavior, robot-to-robot interaction, and explicit waiting. HTN is the only formalism marked as having no support for reactive behavior, task status tracking, or time-dependent behavior at the model level. BPMN alone offers full support for time-dependent behavior via timer events, yet scores zero on state saving and task resuming.
The tooling landscape
Tool maturity varies wildly. BTs have healthy ROS-integrated ecosystems around BehaviorTree.CPP and PyTrees, both actively maintained. BehaviorTree.CPP implements memoryful control nodes, while PyTrees employs a stateless approach, which changes how you have to model the same mission in each.
State Machines rely on SMACH, FlexBE, YASMIN, and SMACC2, with feedback suggesting SMACH in particular appears to be approaching the end of its life. HTN tooling is thinner, mostly built around the aging SHOP planner family, with ROSPlan and PlanSys2 offering integration but primarily through PDDL. BPMN benefits from mature business-process platforms like Camunda and bpmn.io, though robotics-specific adapters like FaMe and TRACE remain research prototypes.
Pick two, maybe three
The headline conclusion is that these formalisms are complementary rather than competing. A pragmatic mission stack might use BPMN for high-level orchestration and human handoffs, HTN for deliberative planning, BTs for reactive execution, and SMs for well-scoped skill modes. Concerns like task interruption with save-and-resume, distributed task allocation, and coordination over shared state remain second-class citizens in all four formalisms and typically require external mission-management infrastructure.
The full modeled scenarios, questionnaire data, and anonymized expert responses are available in the replication package, which is worth browsing if you are picking a formalism for a new project or trying to justify a switch. The paper itself works better as a decision guide than a benchmark, and for a domain this fragmented, that is exactly what has been missing.