Abstract
The StarL programming framework aims to simplify development of distributed robotic applications by providing easy-to-use language constructs for communication and control. It has been used to develop applications such as formation control, distributed tracking, and collaborative search. In this paper, we present a complete redesign of the StarL language and its runtime system which enables us to achieve portability of robot programs across platforms. Thus, the same application program, say, for distributed tracking, can now be compiled and deployed on multiple, heterogeneous robotic platforms. Towards portability, we first define the semantics of StarL programs in a way that is largely platform independent, except for a few key platform-dependent parameters that capture the worst-case execution and sensing delays and resolution of sensors. Next, we present a design of the StarL runtime system, including a robot controller, that meets the above semantics. The controller consists of a platform-independent path planner implemented using RRTs and a platform-dependent way-point tracker that is implemented using the control commands available for the platform. We demonstrate portability of StarL applications using simulation results for two different robotic platforms, and several applications.
Introduction
In the current robotics landscape, deploying a new algorithm on a hardware platform is a grueling process that can take weeks. Porting that same algorithm to a different robot with different physical dynamics—for instance, moving from a wheeled iRobot to a flying drone—often takes months. This high overhead stems from the tight coupling between high-level task logic (coordination, leader election) and low-level control (motor commands, sensor noise, physics). Unlike desktop software, where Java or Python provides an abstraction layer over hardware, robotics lacks a standardized runtime that handles portability while accounting for the messy reality of physical movement and timing.
The StarL Framework
The StarL (Stabilizing Robotics Language) framework introduces a "write once, run anywhere" approach for distributed robotics. It is built on three main pillars:
- High-Level Language Constructs: StarL uses "guarded commands" (if a precondition is met, execute an effect). It provides a Distributed Shared Memory (DSM) primitive, allowing robots to share variables (like positions or task IDs) across a network as if they were local memory.
- The
doReachAvoidPrimitive: This is the heart of the portability layer. High-level code simply callsdoReachAvoid(target, obstacle_region). The application doesn't care how the robot gets there; it just needs to know if the robot is currently "active," has "failed," or is "done." - Formal Semantics: To ensure "portability" is mathematically sound, the authors use Hybrid I/O Automata (HIOA). They define portability through two parameters: dwell time ($d_t$) and quantization distance ($q_d$), which account for how long a robot takes to react and how precisely it can sense its position.
Modular Runtime Architecture
The core of StarL's portability lies in its modular runtime architecture, which decouples high-level coordination logic from low-level hardware dynamics.
As shown in the architecture diagram, the system is organized around a central Variable Holder. This component acts as a synchronization hub, managing communication between application threads, sensors, and controllers. The controller itself is split into two parts:
- Safe Path Planner (Generic): Uses a Rapidly-exploring Random Tree (RRT) algorithm to find a path from A to B while avoiding obstacles. This part is platform-independent.
- Way-point Tracker (Platform-Dependent): This acts like a hardware driver. It takes the way-points from the planner and translates them into specific motor commands (e.g.,
setPitchfor a drone vs.turnfor a rover).
Evaluation and Results
The framework was evaluated using physics-based simulations for two distinct platforms: the iRobot Create (a ground-based robot) and the Parrot AR.Drone 2.0 (a quadcopter).
The simulations demonstrated successful cross-platform execution. The same StarL code for a "Formation Program" was compiled and run on both models. While the drone was slower to start due to takeoff procedures, it reached targets faster than the ground robot. Despite these physical differences, both platforms correctly updated the active, done, and failed flags according to the formal semantics. The framework also proved robust against uncertainties like wind and sensor noise, with the path planner successfully re-routing or flagging failures when necessary.
Conclusion
StarL provides a path toward semantic portability in robotics. By treating the way-point tracker as a "black box" driver, high-level programmers are shielded from the complexities of aerodynamics or wheel friction. Future work will focus on handling more complex "fail" states in RRT planning, extending the framework to robots with complex manipulators, and conducting extensive real-world multi-robot trials to validate communication overhead in noisy environments.
Summary updated