MobileCopilot: A Domain-Specific Language Framework for Agentic Mobile Robot Design

Akihisa Watanabe, Jiawei Fang, Zhiyang Dou, Yuxin Ray Song, Zizhao Tong, Yunsheng Tian, Minghao Guo, Benjamin Jones, Wojciech MatusikarXiv 2026

TL;DR

Building a mobile robot usually means juggling a dozen disconnected configuration files—change a wheel’s size in your 3D model, and your controller silently breaks unless you manually update the math everywhere else. Researchers at MIT built MobileDSL, a unified programming language and compiler that automatically calculates these cross-system dependencies, and paired it with an AI coding agent (MobileCopilot). The result? Giving AI agents a better, smarter language makes them dramatically better robot engineers—boosting simulation success rates by up to 50 percentage points while cutting API costs roughly in half.

What Problem Does This Paper Address?

If you want to build and simulate a mobile robot today, you have to speak a Tower of Babel’s worth of formats: URDF for the physical skeleton, ROS configurations for software integration, Gazebo files for the virtual world, Behavior Trees for task logic, and custom scripts to test if any of it actually worked.

The headache isn't just learning the formats; it's keeping them synchronized. A single design choice echoes across the entire stack. Swap out a wheel, and you change the robot's ground clearance, wheelbase, and kinematics—meaning both your physical model and your motion controller need matching updates. Move a waypoint in the virtual room, and both your navigation tree and evaluation script need to know.

When we ask Large Language Model (LLM) coding agents to design robots, this fragmented workflow trips them up. Even if an agent writes syntactically valid XML and YAML files, keeping cross-file math and references consistent across design iterations is a nightmare. Syntactic validity in individual files doesn't guarantee a working robot.

Methods

Instead of forcing humans or LLMs to manually maintain consistency across scattered files, the authors make system integration the job of a compiler. They introduce two main pieces:

  1. MobileDSL (The Language & Compiler): A unified domain-specific language broken into four interconnected modules that share named references:
  2. CoreDSL (Structure): Assembles robots from reusable library parts assigned functional roles (chassis, wheel, sensor, attachment) connected via "mating connectors" rather than tedious manual coordinate transforms. Crucially, the compiler reads the assembled 3D geometry and automatically derives controller parameters (like wheel separation and ground offset).
  3. WorldDSL (Environment): Places the robot, obstacles, and named goals in a virtual scene.
  4. TaskDSL (Behavior): Defines navigation and movement trees (built on standard Nav2 primitives) that reference WorldDSL goals directly.
  5. EvaluateDSL (Testing): Sets safety and performance bounds (e.g., max time, lidar clearance, distance to a named goal).
CoreDSL component roles and connector-based assembly.

Because everything lives in one program, the compiler catches cross-system bugs statically. Try to make a non-holonomic car spin in place? Compiler error. Reference a waypoint that doesn't exist in the room? Compiler error. Navigate without a LiDAR? Compiler error.

  1. MobileCopilot (The Agentic Workflow): An LLM coding agent equipped with MobileDSL. Given a text or image prompt, the agent searches the component library using multimodal embeddings (SigLIP 2), writes the MobileDSL code, and iteratively fixes mistakes using the compiler's diagnostic error messages before outputting standard ROS/Gazebo files.
MobileCopilot catching and repairing a missing waypoint reference via compiler feedback.

Datasets

To test their system without relying on pre-existing training sets, the authors built:

  • A 50-task Mobile Robot Design Benchmark: 25 text-only prompts and 25 image-guided prompts covering differential, mecanum, and omni-directional drives. Tasks range from elementary motion (32 tasks) to map-based obstacle avoidance and waypoint patrol (18 tasks).
  • A Reusable Component Library & World Assets: Annotated 3D robot parts (chassis, wheels, arms, LiDARs) with defined connector frames, paired with standard Gazebo/Fuel environment models.
From reusable library components to diverse mobile robots.

Key Insights and Ideas

  • Better agents come from better languages, not just bigger context windows: We often try to improve coding agents by cramming more examples into their prompts. This paper shows that redesigning the tool interface—giving the agent a language that abstracts away brittle math and provides rich compiler diagnostics—yields massive gains across different frontier models.
  • "Moving" is way easier than "Working": In baseline ROS/Gazebo tests, agents frequently built robots that could twitch or roll forward when given raw velocity commands (56–78% success), yet completely failed to execute actual navigation tasks (22–40% success) due to subtle controller/integration mismatches.
  • Geometry-driven configuration is the secret sauce: Ablation studies revealed that CoreDSL does the heaviest lifting. Removing CoreDSL caused task success to plummet from 74% to 36%, proving that offloading 3D assembly math and controller tuning from the LLM to the compiler is where the magic happens.

Key Results

Across three agent/model setups (Codex with gpt-5.6-sol and gpt-6-astra, and Claude Code with claude-opus-4-8), MobileDSL crushed direct ROS/Gazebo file authoring on the 50-task benchmark:

  • Higher Execution Success: Full task completion jumped by 42 to 50 percentage points (e.g., from 24% to 74% with gpt-5.6-sol, and 40% to 82% with gpt-6-astra).
  • Drastically Less Code: Agents wrote 12× to 28× fewer lines of code (around ~44 lines vs. 505–1,302 lines).
  • Faster and Cheaper: Generation time dropped by more than half in most cases, and API token costs fell by 33% to 61%.
  • Real-World Transfer: Generated MobileDSL programs were successfully deployed onto physical robots for real-world obstacle avoidance.

Limitations and Future Work

  • Bounded by the Library: MobileDSL isn't conjuring 3D CAD meshes from scratch; it snaps together pre-existing parts. Expanding the repertoire requires humans to prepare and validate geometry and connector metadata for new components (though each part only needs to be annotated once).
  • Static-Only Feedback Loop (For Now): In the benchmark, agents relied purely on static compiler checks without seeing the robot fail in simulation. Closing the loop by feeding runtime simulator traces back into MobileCopilot over multiple design iterations—and running extensive quantitative trials on physical hardware—are natural next steps.

Summary updated

BibTeX
@misc{watanabe2026mobilecopilot,
  author = {Akihisa Watanabe and Jiawei Fang and Zhiyang Dou and Yuxin Ray Song and Zizhao Tong and Yunsheng Tian and Minghao Guo and Benjamin Jones and Wojciech Matusik},
  title = {{MobileCopilot: A Domain-Specific Language Framework for Agentic Mobile Robot Design}},
  year = {2026},
  eprint = {2611.38523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38523},
}
Figure