面向现实世界ROS~2系统的LLM辅助架构恢复:一种基于智能体的多级方法用于分层结构架构重建
Towards LLM-Assisted Architecture Recovery for Real-World ROS~2 Systems: An Agent-Based Multi-Level Approach to Hierarchical Structural Architecture Reconstruction
AI总结:
本文提出了一种基于智能体的多级方法,用于恢复复杂ROS~2系统中的分层结构架构,通过改进的提示和多级中间架构表示,提高了架构恢复的一致性和可扩展性。
摘要:
显式软件架构模型是沟通、分析和演变复杂软件密集型系统的关键 artifacts。然而,在基于ROS~2的机器人系统中,结构(解构)和集成语义通常仅在分布式 artifacts(如源代码和启动文件)中隐式编码,使得恢复分层架构尤其困难。现有方法主要关注节点级实体和通信布线,而对多抽象层次上的分层结构(解构)恢复支持有限。本文扩展了我们之前提出的蓝图引导的LLM辅助架构恢复流程,通过两个主要改进:(1)改进的提示以提高架构合成的一致性和可控性;(2)基于多级中间架构表示的分阶段恢复策略,该策略结合了原子ROS节点列表和启动文件依赖关系,从而在多个抽象层次上实现结构受限的重建。该方法在基于协作机械臂和异构ROS~2 artifacts的现实世界自动化产品拆卸系统上进行了评估。与我们之前的工作相比,所选案例研究显示出显著更高的集成复杂性和更丰富的功能。结果表明,架构恢复在结构一致性、可扩展性和鲁棒性方面有所提高,同时揭示了与大规模ROS~2系统中动态集成语义相关的剩余挑战。
英文摘要:
Explicit software architecture models are essential artifacts for communicating, analyzing, and evolving complex software-intensive systems. In ROS~2-based robotic systems, however, structural (de-)composition and integration semantics are often only implicitly encoded across distributed artifacts such as source code and launch files, making recovery of hierarchical architecture particularly difficult. Existing approaches mainly focus on node-level entities and communication wiring, while providing limited support for recovering hierarchical structural (de-)composition across multiple abstraction levels. In this paper, we extend our previously proposed blueprint-guided LLM-assisted architecture recovery pipeline for ROS~2 systems through two major enhancements: (1) refined prompting to improve the consistency and controllability of architecture synthesis, and (2) a staged recovery strategy based on multi-level intermediate architectural representations that incorporate the atomic ROS node list and launch file dependencies, thereby enabling structurally constrained reconstruction across multiple abstraction levels. The approach is evaluated on a real-world automated product disassembly system based on cooperative robotic arms and heterogeneous ROS~2 artifacts. Compared to our previous work, the considered case study exhibits substantially higher integration complexity and richer functionality. The results demonstrate improved structural consistency, scalability, and robustness of architecture recovery, while also revealing remaining challenges related to dynamic integration semantics in large-scale ROS~2 systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。