Test-Driven Agentic Framework for Reliable Robot Controller

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tripathi, Shivanshu, Bafghi, Reza Akbarian, Raissi, Maziar
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912932422483968
author Tripathi, Shivanshu
Bafghi, Reza Akbarian
Raissi, Maziar
author_facet Tripathi, Shivanshu
Bafghi, Reza Akbarian
Raissi, Maziar
contents In this work, we present a test-driven, agentic framework for synthesizing a deployable low-level robot controller for navigation tasks. Given a 2D map with an image of an ultrasonic sensor-based robot, or a 3D robotic simulation environment, our framework iteratively refines the generated controller code using diagnostic feedback from structured test suites to achieve task success. We propose a dual-tier repair strategy to refine the generated code that alternates between prompt-level refinement and direct code editing. We evaluate the approach across 2D navigation tasks and 3D navigation in the Webots simulator. Experimental results show that test-driven synthesis substantially improves controller reliability and robustness over one-shot controller generation, especially when the initial prompt is underspecified. The source code and demonstration videos are available at: https://shivanshutripath.github.io/robotic_controller.github.io.
format Preprint
id arxiv_https___arxiv_org_abs_2603_00455
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Test-Driven Agentic Framework for Reliable Robot Controller
Tripathi, Shivanshu
Bafghi, Reza Akbarian
Raissi, Maziar
Robotics
Systems and Control
In this work, we present a test-driven, agentic framework for synthesizing a deployable low-level robot controller for navigation tasks. Given a 2D map with an image of an ultrasonic sensor-based robot, or a 3D robotic simulation environment, our framework iteratively refines the generated controller code using diagnostic feedback from structured test suites to achieve task success. We propose a dual-tier repair strategy to refine the generated code that alternates between prompt-level refinement and direct code editing. We evaluate the approach across 2D navigation tasks and 3D navigation in the Webots simulator. Experimental results show that test-driven synthesis substantially improves controller reliability and robustness over one-shot controller generation, especially when the initial prompt is underspecified. The source code and demonstration videos are available at: https://shivanshutripath.github.io/robotic_controller.github.io.
title Test-Driven Agentic Framework for Reliable Robot Controller
topic Robotics
Systems and Control
url https://arxiv.org/abs/2603.00455