Situated Live Programming for Human-Robot Collaboration

Emmanuel Senft, Michael Hagenow, Robert G. Radwin, Michael R. Zinn, Michael Gleicher, Bilge Mutlu

Introduction

Situated Live Programming (SLP) introduces a paradigm shift in how non-experts interact with and program collaborative robots (cobots). By utilizing simple "if-this-then-that" rules directly on a live video feed, SLP enables users to build complex, reactive human-robot workflows without traditional coding. This approach addresses a critical bottleneck in industrial automation: the difficulty of programming robots to handle the dynamic and often unpredictable nature of human-robot collaboration.

Overview of the SLP workflow, showing rule creation, human-robot interaction, and the execution timeline.

The Problem: Scripting vs. Demonstration

Current cobot programming typically falls into two categories: expert-level scripting or "programming by demonstration" (PbD). Scripting is powerful but inaccessible to most workers, while PbD is intuitive but often lacks the logic required for complex coordination—such as waiting for a human to finish a specific sub-task. Furthermore, traditional "batch" programming workflows fail when environments change or human behavior deviates from the script. SLP solves this by being situated (grounded in the robot's actual environment) and live (allowing for real-time updates during execution).

The SLP Approach

The SLP system is built upon three core pillars designed to lower the barrier to entry for robot programming:

  1. Trigger-Action Programming (TAP): Logic is defined through simple conditional statements: If [Condition], then [Action].
  2. Situated Context: Programming occurs on a tablet displaying a live feed from the robot's arm-mounted camera. Users define functional zones, such as assembly areas or parts bins, by drawing directly onto the video feed.
  3. Live Programming: The robot remains active while rules are added or modified. This allows for an incremental workflow where users can program one step, observe the result, and refine the next step based on the robot's actual performance.
The physical experimental setup, highlighting the robot, the human workspace, the exchange area, and the programming tablet.

System Architecture

The underlying system uses Detectron2 for real-time object recognition and a depth camera for 3D localization. A "Wizard" UI on the tablet guides the user through rule creation. To handle logical conflicts—such as two rules applying to the same object—the system pauses and prompts the user for a priority preference, which is then saved to prevent future interruptions.

Evaluation and Key Results

The system was evaluated through a user study with 10 participants, primarily students with minimal programming experience. Participants performed tasks including sorting, kitting, and collaborative assembly.

  • Success and Usability: All participants successfully completed the complex assembly tasks. The system received a System Usability Scale (SUS) score of 75.8, placing it in the "good to excellent" range.
  • Incremental Learning: The "live" nature of the system allowed users to treat the robot as a trainee. By seeing the robot react immediately to new rules, users quickly developed an accurate mental model of the robot's logic.
  • Efficiency in Error Correction: Users could fix logic "bugs" in seconds by updating rules on the tablet without needing to restart the entire process.

Discussion and Future Work

SLP shifts the programming experience from "writing a script" to "teaching through interaction." By allowing users to solve edge cases as they occur, it significantly reduces the mental load required to model an entire task upfront.

However, limitations remain. The current prototype is primarily limited to "move" actions; future iterations will need to include more complex primitives like "insert" or "screw." Additionally, as rule sets grow, the interface must evolve to prevent clutter. Future research will also focus on testing the system with professional shop-floor workers in more complex, multi-workstation environments.

Summary updated

BibTeX
@inproceedings{senft2021situated,
  author = {Emmanuel Senft and Michael Hagenow and Robert G. Radwin and Michael R. Zinn and Michael Gleicher and Bilge Mutlu},
  title = {{Situated Live Programming for Human-Robot Collaboration}},
  booktitle = {UIST},
  year = {2021},
  doi = {10.1145/3472749.3474773},
}
Figure