ROSpec: A Domain-Specific Language for ROS-Based Robot Software
Open Access
- 9 October 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (OOPSLA2) , 3313-3341
Abstract
Component-based robot software frameworks, such as the Robot Operating System (ROS), allow developers to quickly compose and execute systems by focusing on configuring and integrating reusable, off-the-shelf components. However, these components often lack documentation on how to configure and integrate them correctly. Even when documentation exists, its natural language specifications are not enforced, resulting in misconfigurations that lead to unpredictable and potentially dangerous robot behaviors. In this work, we introduce ROSpec, a ROS-tailored domain-specific language designed to specify and verify component configurations and their integration. ROSpec's design is grounded in ROS domain concepts and informed by a prior empirical study on misconfigurations, allowing the language to provide a usable and expressive way of specifying and detecting misconfigurations. At a high level, ROSpec verifies the correctness of argument and component configurations, ensures the correct integration of components by checking their communication properties, and checks if configurations respect the assumptions and constraints of their deployment context. We demonstrate ROSpec's ability to specify and verify components by modeling a medium-sized warehouse robot with 19 components, and by manually analyzing, categorizing, and implementing partial specifications for components from a dataset of 182 misconfiguration questions extracted from a robotics Q&A platform.Keywords
Funding Information
- European Regional Development Fund (2025.00002.HPCVLAB.ISTUL, POR011PRE)
- FCT (LISBOA2030-FEDER-00663700)
- Funda쎧쎣o para a Ciencia e Tecnologia (UID/00408/2025)
- Funda쎧쎣o para a Ci쎪ncia e Tecnologia (SFRH/BD/151469/2021)
This publication has 72 references indexed in Scilit:
- ROBUST: 221 bugs in the Robot Operating SystemEmpirical Software Engineering, 2024
- Software Architectures for Mobile Robots2023
- Synthesizing Programs from Program Pieces Using Genetic Programming and Refinement Type Checking2022
- The Usability Argument for Refinement Typed Genetic Programming2020
- A Component-Based Meta-Model and Framework in the Model Driven Toolchain C-ForgeLecture Notes in Computer Science, 2014
- A Modeling Framework for Software Architecture Specification and Validation2014
- RobotML, a Domain-Specific Language to Design, Simulate and Deploy Robotic Applications2012
- Z3: An Efficient SMT Solver2008
- Dynamic Typing with Dependent Types2006
- Requirements on the Execution of Kahn Process Networks2003