Multiparty Motion Coordination: From Choreographies to Robotics Programs

Rupak Majumdar, Nobuko Yoshida, Damien Zufferey

Introduction

Programming multi-robot systems—such as warehouse fleets or multi-arm assembly lines—is a complex challenge that requires balancing discrete communication logic with continuous physical motion. Traditional formal methods often rely on a "global tick" or discrete-time model, where every robot must synchronize at every step. This approach leads to communication-heavy programs that are slow to execute and difficult to verify at scale.

The multi-robot coordination environment, featuring a mobile cart and multiple robotic arms (RRobot, GRobot, and Producer) in a simulated workspace.

This paper introduces a new framework that breaks the global clock by combining choreographies (global coordination protocols) with continuous-time motion. By allowing robots to operate independently in space and time, the system provides formal guarantees of communication safety, motion compatibility, and collision avoidance without the overhead of global synchronization.

Methods: Multiparty Session Types and Separation Logic

The framework is built upon Multiparty Session Types (MPST), extended specifically for the robotics domain. The core innovation lies in three key components:

  1. Continuous-Time Motion Primitives: Motions are defined as trajectories over time using assume-guarantee logic. This allows the system to reason about a robot's path based on environmental assumptions and its own movement guarantees.
  2. The Separating Conjunction ($*$): Borrowed from separation logic, this operator allows programmers to split robots into disjoint subgroups. Robots in different groups can move and communicate independently, only needing to synchronize when their paths or tasks intersect.
  3. Static Verification with SMT: The system uses the dReal SMT solver to check for collisions and motion compatibility. Because dReal handles non-linear arithmetic, it can verify complex curved trajectories and trigonometric functions that are common in robotics.
A sequence diagram illustrating the communication protocol (arrive, free, ready, ok) between the Cart, GRobot, and RRobot to ensure safe coordination.

Once a global choreography is verified as well-formed, the system "projects" it into individual programs for each robot. This "correct-by-construction" approach ensures that the compiled code is mathematically guaranteed to be safe.

Key Insights and Results

By moving to continuous time and utilizing spatial separation, the framework achieves significant improvements in both performance and scalability:

  • Computational Efficiency: The separating conjunction ($*$) reduces the workload for the collision checker. Instead of comparing every robot against every other robot, it only checks for collisions within active subgroups.
  • Linear Scalability: In "parallel lanes" benchmarks, the model scaled linearly, handling over 25 robots with ease, whereas previous discrete-time approaches timed out after just 5 robots.
  • Verification Speedup: For standard scenarios like "Fetch," the verification time dropped from over an hour (>3600s) to just 7 seconds.
  • Real-World Validation: The system was implemented on the Robot Operating System (ROS) and successfully tested on physical hardware, including Franka Emika Panda arms and custom mobile carts.

Limitations and Future Work

While the framework provides robust safety guarantees, it currently assumes "non-interruptible" motions within synchronized groups to keep the mathematics tractable. Additionally, the current model does not account for the "perception stack"—the sensor noise and localization errors inherent in real-world environments. Future research will focus on incorporating probabilistic robotics and ensuring liveness (guaranteeing that robots complete their tasks without deadlocking).

Summary updated

BibTeX
@article{majumdar2020multiparty,
  author = {Rupak Majumdar and Nobuko Yoshida and Damien Zufferey},
  title = {{Multiparty Motion Coordination: From Choreographies to Robotics Programs}},
  journal = {Proc. ACM Program. Lang.},
  year = {2020},
  doi = {10.1145/3428202},
}
Figure