A Generative Partially Specified Finite State Machine Approach to Complex Behaviour Planning
Kalana Ratnayake, Michael Pritchard, David Hinwood, Maleen Jayasuriya, Damith Herath
Abstract
Autonomous robots operating in dynamic environments require behaviour planning systems that combine reactivity, interpretability, and adaptability. While Large Language Models have been successfully integrated with Behaviour Trees for dynamic replanning, Finite State Machines, despite their widespread adoption and computational efficiency, remain unexplored for generative approaches. We propose a Generative Partially Specified Finite State Machine (GPSFSM) neurosymbolic architecture that utilises the symbolic and semantic structure of FSMs, including states and event-triggered transitions, to implement Behaviour Planning. This paper introduces the first GPSFSM framework for robotics, featuring Fabric, an FSM engine that parses, validates, and executes behaviour plans that contain Sequential, Recovery, Parallel-Any, and Parallel-All control structures. We extend the Capabilities2 package in ROS2 with an asynchronous event system for behaviour chaining and runtime parameter injection for configurable execution, addressing the ad-hoc function representations that limit current generative systems. PromptTools provides a unified ROS 2 interface to local and cloud LLMs, with prompt buffering, enabling dynamic asynchronous composition of task and context information. Together, these components enable standardised semantic capability descriptions for robot-agnostic development. Experimental evaluation on navigation tasks demonstrates that our GPSFSM approach achieves consistently higher plan-generation success rates than the state-of-the-art BTGenBot system, particularly excelling in zero-shot scenarios where BTs typically struggle, while maintaining comparable or lower planning latency to frontier LLMs. We also demonstrate that our system can generate complex behaviours. We release an open-source ROS2 stack that makes generative FSM planning practical and reproducible for robotic systems.
Create a lesson
Metadata
- Comments
- Accepted for publication in the 2026 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). 9 pages, 10 figures, 1 table
Related papers
Finite-Time Curvature-Constrained Vector Field for Saturation-Free Motion Planning of Nonholonomic Robots
Shared title terminologycs.ROZhouru Xiao, Sha Luo, Yang Lu et al.
3D Scene Graph Prediction: Generating Hierarchical Models from Partially Observed Environments
Shared title terminologycs.ROSiyi Hu, Jared Strader, Hyungtae Lim et al.
FineDex: Bridging Fine-Grained Human-Object Interaction Generation to Dexterous Humanoid Manipulation
Shared title terminologycs.ROYujia Zeng, Yuxin Chen, Yuzhen Song et al.
DemoFoundry: Toward Scalable Photorealistic Robot Data with Coding Agents and Generative Rendering
Shared title terminologycs.RORuixiang Wang, Xinyue Yao, Xuanning Zhou et al.
FeaXDrive2: Body-Scene Spatial Grounding for Feasibility-Aware Generative Driving
Shared title terminologycs.ROBo Leng, Baoyun Wang, Wenxin Wen et al.
AGLR: Attribute-Guided Latent Refinement for Fine-Grained Humanoid Motion Generation and Editing
Shared title terminologycs.ROShuai Yuan, Yuwei Gui, Mingshuang Luo et al.