EzSkiROS: Enhancing Robot Skill Composition with Embedded DSL for Early Error Detection
Artikel i vetenskaplig tidskrift, 2024

When developing general-purpose robot software components, we often lack complete knowledge of the specific contexts in which they will be executed. This limits our ability to make predictions, including our ability to detect program bugs statically. Since running a robot is an expensive task, finding errors at runtime can prolong the debugging loop or even cause safety hazards. In this paper, we propose an approach to help developers catch these errors as soon as we have some context (typically at pre-launch time) with minimal additional effort. We use embedded Domain-Specific Language (DSL) techniques to enforce early checks. We describe design patterns suitable for robot programming and show how to use these design patterns for DSL embedding in Python, using two case studies on an open-source robot skill platform SkiROS2, designed for the composition of robot skills. These two case studies help us understand how to use DSL embedding on two abstraction levels: the high-level skill description that focuses on what the robot can do and under what circumstances, and the lower-level decision making and execution flow of tasks. Using our DSL EzSkiROS, we show how our design patterns enable robotics software platforms to detect bugs in the high-level contracts between the robot's capabilities and the robot's understanding of the world. We also apply the same techniques to detect bugs in the lower-level implementation code, such as writing behavior trees to control the robot's behavior based on its capabilities. We perform consistency checks during the code deployment phase, significantly earlier than the typical runtime checks. This enhances overall safety by identifying potential issues with the skill execution before they can impact robot behavior. An initial study with SkiROS2 developers shows that our DSL-based approach is useful for finding bugs early and thus improving the maintainability of code.

skill-based control platforms

Behavior Trees

robot skills

DSL design patterns

embedded DSLs

Författare

Momina Rizwan

Lunds universitet

Christoph Reichenbach

Lunds universitet

Ricardo Diniz Caldas

Software Engineering 2

Matthias Mayr

Lunds universitet

Volker Krueger

Lunds universitet

Frontiers in Robotics and AI

22969144 (eISSN)

Styrkeområden

Informations- och kommunikationsteknik

Ämneskategorier

Programvaruteknik

Robotteknik och automation

DOI

10.3389/frobt.2024.1363443

Mer information

Skapat

2024-11-09