Skip to content
Preprint

Retrieval-grounded robot program generation and simulation-based correction via Model Context Protocol

Aug 2026 · 0 citations · 16 references
Computer Science

TL;DR

A language-model-based workflow that generates, validates, and iteratively corrects ABB RAPID robot programs from natural language task descriptions is presented, showing 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.

Abstract

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.

View source

Similar papers

Preprint Aug 2026

D3D-GEN: Robot-Aware Domain-Grounded Interactive 3D World Generation for Social Robotics

Training and validation of Embodied AI for social navigation critically depends on realistic simulation environments, yet many current approaches fail to find a balance between realism and simulability. We propose D3D-GEN, a novel world generation system that combines a domain agent with a retrieval-augmented generatio...

A. Do, V. Shcherbyna, Tai Duc Nguyen et al. · 0 citations
Sep 2026

Knowledge-Augmented Large Language Model for Autonomous MODFLOW 6 Input File Generation.

A large language model (LLM) coding agent can build complete MODFLOW 6 input file sets from natural-language descriptions when given the right reference material, without retraining the model. The reference material, which we call a plugin, comprises 42 plain-text package files (one per MODFLOW 6 package, written from...

Dávid Krčmář, Kamila Hodasová, Martin Zatlakovič et al. · 0 citations
Preprint Aug 2026

SHRIMP: Iterative Refinement of Robot Task Plans

As collaborative robots have entered domains such as manufacturing, agriculture, and healthcare, programming or adapting robot behavior typically requires robotic expertise that most end users lack. Natural language lowers this barrier. Recent advancements in large language models (LLMs) have made it feasible to transl...

Mya Schroder, Yuna Hwang, Callie Y. Kim et al. · 0 citations
#artificial intelligence Preprint Aug 2026

MaCoPlanner: LLM-Assisted Manual-Compiled Task Planning with Proactive Safety Verification for Robotic Industrial Panel Operation

MaCoPlanner is presented, a task-planning framework built on knowledge compiled from equipment manuals that converts equipment manuals into a typed intermediate representation, retrieves task- and state-relevant evidence, and uses it to support plan generation.

Gui-Peng Xin, Jiahe Xua, Mohammad Deghat et al. · 0 citations
Conference Aug 2026

LVR-Draw: A Language-Vision Pipeline for Robotic Drawing with Interactive Scene Verification and Correction

This paper presents LVR-Draw, a fully local language–vision pipeline for robotic drawing that integrates structured scene generation, multimodal verification and correction, and deterministic execution within a unified Human–AI–Robot loop. Given a natural language prompt, a Large Language Model (LLM) generates a struct...

Nuttasorn Aiemsetthee, Renke Liu, Kave Salamatian et al. · 0 citations
Book Open access Jul 2026

Multi-Agent CAD Code Generation

Advances in large language models (LLMs) have sparked interest in automating parametric CAD modeling through natural language. Existing LLM-based approaches often treat CAD modeling as flat text generation, overlooking the hierarchical structure and geometric constraints inherent in CAD programs. We present CAD-Factory...

Yang Liu, Daxuan Ren, Yijie Ding et al. · 2 citations · ⚡2

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.