Retrieval-grounded robot program generation and simulation-based correction via Model Context Protocol
On the map: LLM agents and tool use → Multimodal and embodied agents
Abstract (arXiv)
Flexible manufacturing requires industrial robots to be reprogrammed rapidly as product variants change. This paper presents a language-model-based workflow that generates, validates, and iteratively corrects ABB RAPID robot programs from natural language task descriptions. A dual-stream retrieval-augmented generation (RAG) pipeline grounds code generation in verified technical documentation and production templates, reducing domain-specific errors produced by ungrounded language models. A custom Model Context Protocol (MCP) server connects the language-model client directly to ABB RobotStudio for automated code upload, simulation execution, and diagnostic feedback. The evaluation combines a 30-query retrieval benchmark, scoped code-generation checks, and RobotStudio case studies in a simulated pickand- place manufacturing cell. The simulation loop exposes execution failures that static and semantic checks alone cannot catch, including suction release-height errors, unreachable placement targets, and configuration-dependent recovery motions. The results show how RAG and MCP can connect grounded code generation with executable feedback from industrial robot simulation software, while reducing but not eliminating expert setup and final supervision.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 8 of its 16 references that are in the map. First posted on arXiv 13 Aug 2026.
Builds on
8 of 16 references.
References · 8
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
- 2023ChatGPT for Robotics: Design Principles and Model Abilitiescited by 299
- 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAGcited by 249
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
- 2013Direct off-line robot programming via a common CAD packagecited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024SayComply: Grounding Field Robotic Tasks in Operational Compliance through Retrieval-Based Language Models
- 2024MCCoder: Streamlining Motion Control with LLM-Assisted Code Generation and Rigorous Verification
- 2026IMR-LLM: Industrial Multi-Robot Task Planning and Program Generation using Large Language Models ↗
- 2025Code-as-Symbolic-Planner: Foundation Model-Based Robot Planning via Symbolic Code Generation
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback
- 2024RoboScript: Code Generation for Free-Form Manipulation Tasks across Real and Simulation
- 2026FactoryLLM: A Safe and Open-Source AI Playground for Evaluating LLMs in Smart Factories
- 2025Capability-Driven Skill Generation with LLMs: A RAG-Based Approach for Reusing Existing Libraries and Interfaces