arXiv:2609.11078cs.ROSep 2026

Manuscript Offprint

arXiv:2609.11078

Freehand Sketching for End-User Programming of Robot Swarms

Riwa Karam, Ian Kuo, Magnus Egerstedt

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Riwa Karam 1^{1}, Ian Kuo 1^{1}, and Magnus Egerstedt 2^{2}

Abstract—Robot swarms are increasingly used in applications where accessible interaction with non-expert users is desirable. This paper investigates freehand sketching as an end-user programming interface for specifying robot swarm geometries. Users communicate spatial intent through a drawing, while the swarm autonomously extracts target formation points, constructs a rigid formation graph, assigns robots to formation nodes, and executes distributed formation control with a guarantee against unintended reflected formations. The resulting sketch-to-swarm framework is evaluated through a human study examining the usability of freehand formation specification. Twenty participants generated 42 geometric shapes, and the interface achieved a mean System Usability Scale score of 84.25, which conventionally indicates high perceived usability. The results support freehand sketching as an intuitive interaction abstraction for human-swarm collaboration without requiring robotics or programming expertise.

I. INTRODUCTION

Robot swarms enable large groups of robots to accomplish tasks through decentralized coordination, collective perception, and distributed decision making [1], [2]. Their scalability and robustness have motivated applications in domains such as environmental monitoring, exploration, search and rescue, precision agriculture, and logistics. More recently, robot swarms have also found use in educational platforms, public demonstrations, and artistic performances, where the spatial organization of the robots becomes an expressive medium rather than merely a functional one [3]–[5]. As robot swarms become increasingly visible outside traditional robotics applications, an important challenge is therefore not only how robots coordinate with one another, but how humans, particularly users without expertise in robotics, control, or programming, can contribute their intent to the multi-robot system.

Human-Swarm Interaction (HSI) [6] provides a natural setting for human-robot collaboration, in which complementary human and robotic capabilities are combined toward outcomes that neither can achieve independently [7]. In such settings, the human typically contributes high-level intent and task-specific knowledge, while the swarm provides distributed coordination, autonomous decision making, and physical execution. Realizing this complementarity requires interaction abstractions that enable non-expert users to communicate collective intent without reasoning about resource or task assignments, swarm dynamics, or low-level control parameters.

Existing HSI interfaces have explored a variety of such interaction abstractions, including mixed-granularity interaction [8], gesture-based control [5], [9], augmented and virtual reality [10], [11], and scale-invariant spatial specifications [12]. These approaches demonstrate that appropriately designed interfaces can reduce the cognitive and technical burden associated with commanding large multi-robot systems. However, they primarily address navigation, trajectory generation, task allocation, or coverage, where users specify how a swarm should move or behave. Less attention has been devoted to interaction paradigms through which a user can directly specify what geometric shape a swarm should collectively realize without selecting from predefined commands, gestures, or geometries.

Enabling users to specify desired swarm geometries directly also aligns with end-user robot programming, which investigates methods for specifying robot behaviors without conventional programming [13]. Proposed approaches include visual programming, programming by demonstration, tangible interaction, and multi-modal authoring, in which higher-level user specifications are translated into executable robot behaviors [14], [15]. Extending this paradigm to robot swarms motivates representations through which users can directly specify collective behaviors while delegating their realization to the swarm. Freehand sketching provides a high-level spatial abstraction for this purpose. Rather than explicitly programming the motion of individual robots, the human contributes the desired geometric intent through a drawing.

Prior work established the foundations for transforming freehand drawings into robot formations through computer vision, rigid-graph construction, optimal robot assignment, and distributed formation control, together with theoretical guarantees preventing unintended reflected realizations of asymmetric formations [16]. While this work established the computational feasibility of translating sketches into robot-swarm formations, evaluating the efficacy of freehand sketching as an interaction abstraction for end-users remains a gap, particularly for users without prior robotics or control experience.

This paper addresses this gap by investigating freehand sketching as an end-user programming interface for collaborative human-swarm formation specification. Building upon the aforementioned prior work, human spatial specification and autonomous swarm realization are integrated into an interactive sketch-to-swarm system and evaluated through a human study. The study examines the perceived usability of the interface and evaluates whether users can interact with the complete sketch-to-swarm pipeline on a physical multi-

1^{1}R. Karam and I. Kuo are with the Samueli School of Engineering, University of California, Irvine, Irvine, CA, 92697, USA. Email: {rwkaram, ikuo3}@uci.edu.

2^{2}M. Egerstedt is with the University of North Carolina at Chapel Hill, Chapel Hill, NC, 27599, USA. Email: {magnus}@unc.edu.

robot platform.

The main contributions of this paper are:

• A sketch-based interaction abstraction for human-swarm collaboration in which non-expert users communicate formation-level intent through freehand drawings without requiring conventional programming expertise or a set of predefined formation shapes.

• A human study with 20 participants evaluating the perceived usability and learnability of sketch-based formation specification.

• Physical Robotarium [17] experiments across 42 self-specified participant formations, all of which converged to the corresponding user-specified formation.

References (25)