LLM-Based Behavior Tree Generation for Construction Machinery
Akinosuke Tsutsumi, Tomoya Itsuka, Yuichiro Kasahara, Tomoya Kouno, Kota Akinari, Genki Yamauchi, Daisuke Endo, Taro Abe, Takeshi Hashimoto, Keiji Nagatani, Ryo Kurazume
TL;DR
The paper addresses automation of earthwork operations amid an aging workforce by leveraging large language models (LLMs) to generate Behavior Trees (BTs) for ROS2-TMS for Construction. It proposes a two-step workflow where an LLM first produces a high-level task plan with synchronization flags, then generates executable BTs using a template, with safety ensured by referencing known database parameters. The approach is validated in simulation across multiple LLMs and in real-world experiments with an excavator and a dump truck, demonstrating safe cooperative operation and correct sequencing. Results indicate the method can scale cooperative automation across heterogeneous construction machines and reduce the manual BT design burden, highlighting practical CPS integration for civil engineering automation.
Abstract
Earthwork operations are facing an increasing demand, while workforce aging and skill loss create a pressing need for automation. ROS2-TMS for Construction, a Cyber-Physical System framework designed to coordinate construction machinery, has been proposed for autonomous operation; however, its reliance on manually designed Behavior Trees (BTs) limits scalability, particularly in scenarios involving heterogeneous machine cooperation. Recent advances in large language models (LLMs) offer new opportunities for task planning and BT generation. However, most existing approaches remain confined to simulations or simple manipulators, with relatively few applications demonstrated in real-world contexts, such as complex construction sites involving multiple machines. This paper proposes an LLM-based workflow for BT generation, introducing synchronization flags to enable safe and cooperative operation. The workflow consists of two steps: high-level planning, where the LLM generates synchronization flags, and BT generation using structured templates. Safety is ensured by planning with parameters stored in the system database. The proposed method is validated in simulation and further demonstrated through real-world experiments, highlighting its potential to advance automation in civil engineering.
