MobilityReadingGroup

π-calculus, Session Types research at Imperial College

Motion Session Types for Robotic Interactions
Rupak MAJUMDAR, Marcus PIRRON, Nobuko YOSHIDA, Damien ZUFFEREY
33st European Conference on Object-Oriented Programming (ECOOP 2019). p. 28:1 - 28:27

Robotics applications involve programming concurrent components synchronising through messages while simultaneously executing motion primitives that control the state of the physical world. Today, these applications are typically programmed in low-level imperative programming languages which provide little support for abstraction or reasoning. We present a unifying programming model for concurrent message-passing systems that additionally control the evolution of physical state variables, together with a compositional reasoning framework based on multiparty session types. Our programming model combines message-passing concurrent processes with motion primitives. Processes represent autonomous components in a robotic assembly, such as a cart or a robotic arm, and they synchronise via discrete messages as well as via motion primitives. Continuous evolution of trajectories under the action of controllers is also modelled by motion primitives, which operate in global, physical time. We use multiparty session types as specifications to orchestrate discrete message-passing concurrency and continuous flow of trajectories. A global session type specifies the communication protocol among the components with joint motion primitives. A projection from a global type ensures that jointly executed actions at end-points are communication safe and deadlock-free, i.e., session-typed components do not get stuck. Together, these checks provide a compositional verification methodology for assemblies of robotic components with respect to concurrency invariants such as a progress property of communications as well as dynamic invariants such as absence of collision. We have implemented our core language and, through initial experiments, have shown how multiparty session types can be used to specify and compositionally verify robotic systems implemented on top of off-the-shelf and custom hardware using standard robotics application libraries.

@inproceedings{MPYZ2019,
  author = {Rupak Majumdar and Marcus Pirron and Nobuko Yoshida and Damien Zufferey},
  title = {{Motion Session Types for Robotic Interactions}},
  booktitle = {33st European Conference on Object-Oriented Programming},
  series = {LIPIcs},
  volume = {134},
  pages = {28:1--28:27},
  publisher = {Schloss Dagstuhl},
  year = 2019
}
@inproceedings{MPYZ2019,
  author = {Rupak Majumdar and Marcus Pirron and Nobuko Yoshida and Damien Zufferey},
  title = {{Motion Session Types for Robotic Interactions}},
  booktitle = {33st European Conference on Object-Oriented Programming},
  series = {LIPIcs},
  volume = {134},
  pages = {28:1--28:27},
  publisher = {Schloss Dagstuhl},
  doi = "10.4230/LIPIcs.ECOOP.2019.28",
  year = 2019
}