Hostname: page-component-74656f9884-rngvg Total loading time: 0 Render date: 2026-11-06T08:13:37.805Z Has data issue: false hasContentIssue false

A dual-agent framework for physically grounded and syntactically verifiable industrial robot programming

Published online by Cambridge University Press:  08 July 2026

Zhendao Chen
Affiliation:
School of Computer Science and Engineering, Sun Yat-sen University , Guangzhou, China
Haibo Chao
Affiliation:
School of Computer Science and Engineering, Sun Yat-sen University , Guangzhou, China
Yanhao He
Affiliation:
State Key Laboratory of High-end Heavy-load Robots, Midea Group, Foshan, China
Che Hou
Affiliation:
State Key Laboratory of High-end Heavy-load Robots, Midea Group, Foshan, China
Wenjie Chen
Affiliation:
State Key Laboratory of High-end Heavy-load Robots, Midea Group, Foshan, China
Ning Tan*
Affiliation:
School of Computer Science and Engineering, Sun Yat-sen University , Guangzhou, China State Key Laboratory of Intelligent Manufacturing Equipment and Technology, Huazhong University of Science and Technology, Wuhan, China
*
Corresponding author: Ning Tan; Email: tann5@mail.sysu.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

The integration of large language models (LLMs) into KUKA industrial robots offers a promising pathway toward intuitive natural language control and a higher level of intelligence. However, existing methods face two primary challenges: their reliance on predefined motion primitives and the syntactic fragility imposed by the strict constraints of proprietary KUKA Robot Language (KRL). To address these challenges, we propose MIKI (multi-agent integrated KUKA interface), a decoupled dual-agent framework that bridges high-level reasoning and low-level syntactic verification for industrial robot programming. The controller agent incorporates a chain-of-thought (CoT) reasoning mechanism to systematically decompose abstract human instructions into logical intermediate steps. By leveraging a visual toolchain, it translates these reasoned plans into a sequence of executable actions, each embedded with precise world coordinates. Subsequently, the code generation agent employs a syntax-guided iterative refinement process, underpinned by an ANTLR4 parser, to transform these actions into verified and executable KRL code. Experimental results demonstrate that this closed-loop approach substantially improves the syntactic success rate of code generation from 0.61 to 0.89. Furthermore, the framework achieves an average success rate of 0.6 across five desktop manipulation tasks of varying complexity using a physical KUKA robotic arm, validating its effectiveness in bridging high-level cognitive reasoning with deterministic industrial execution.

Information

Type
Research Article
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Figure 1 long description.Overview of the MIKI dual-agent framework. The controller agent decomposes natural language instructions into grounded action sequences via chain of thought with a visual toolchain. The code generation agent translates these plans into syntactically verified KRL code through an iterative generate-verify-refine loop powered by an ANTLR4 parser and a specialized KRL knowledge corpus.

Figure 1

Figure 2. Visual perception and spatial grounding result in retrieving all cubes. (a) Original workspace view. (b) Processed output where all cubes are segmented and mapped to 3D world coordinates (Pw$P_w$).

Figure 2

Table I. KRL-bench benchmark suite structure.

Figure 3

Figure 3. An example from KRL-bench.

Figure 4

Table II. Overall success rates of KRL code generation (syntactic + semantic validation).

Figure 5

Table III. Ablation study results: Success rates (syntactic + semantic) for different component combinations.

Figure 6

Table IV. Success rates on physical manipulation tasks.

Figure 7

Figure 4. Step-by-step execution of instruction: “Put all the blocks except the purple ones into the plate” in the “Arrange” task. The sequence (a) shows the trajectory execution, while (b) demonstrates the high-precision placement verified by the physical environment.

Figure 8

Table V. Distribution of failure causes across five manipulation tasks (50 trials).

Supplementary material: File

Chen et al. supplementary material

Chen et al. supplementary material
Download Chen et al. supplementary material(File)
File 12.6 MB