Skip to content
Robotics.world

Research

Sub-Millisecond Reflexes for Continuous Physical Human-Robot Interaction

Robots that work continuously alongside people must change how they are controlled as a task unfolds — moving fast and precisely in free space, then becoming compliant to press on a surface, then…

The paper’s first page · arXiv:2610.21913
arXiv
2610.21913 · Preprint · not peer-reviewed
Published
2026-10-15
Authors
Jon Škerlj, Sami Haddadin

In plain words

Robots that work continuously alongside people must change how they are controlled as a task unfolds — moving fast and precisely in free space, then becoming compliant to press on a surface, then reacting instantly if a person is struck.

AI summary

Overview

Research area: Robotics — real-time control architectures for physical human-robot interaction (pHRI), specifically the ROS 2 / ros2_control ecosystem.

Technical level: Advanced. The paper assumes familiarity with torque control, ROS 2 lifecycle nodes, DDS middleware behaviour, impedance/admittance control, and collision-reflex taxonomies.

Scope (one sentence): The paper presents an open-source, ROS 2-compatible multimode controller that switches control behaviours in under 0.1 ms and embeds five reflex behaviours to keep a Franka Panda manipulator running safely through contacts and kinematic limit violations instead of stopping.

What This Paper Is About

Robots that work continuously alongside people must change how they are controlled as a task unfolds — moving fast and precisely in free space, then becoming compliant to press on a surface, then reacting instantly if a person is struck. In the standard open-source stack (ros2_control), changing controllers requires a "stop-to-switch" lifecycle transition that halts the robot and costs hundreds of milliseconds, which is far too slow for safety reflexes. The authors build a controller architecture in which switching is a lock-free pointer swap inside the 1 kHz real-time loop, and use it to run reflex behaviours that intercept contact hazards and joint limit violations before the manufacturer's safety stops fire.

Key Contributions

  1. A real-time, sub-millisecond controller-switching architecture for continuous task execution that remains compatible with existing ROS 2 and ros2_control ecosystems.
  2. A reflex engine built on that switching architecture, capable of reacting to external contact, joint limits, and excessive velocities before manufacturer safety stops are triggered.
  3. Continuous execution of multistage manipulation tasks through seamless transitions between control behaviours, eliminating the traditional stop-to-switch interruption.
  4. Empirical validation on a physical Franka Robotics manipulator showing switching latencies below 0.1 ms, successful hazard mitigation, and uninterrupted task execution.

Main Findings

  • Switching latency reduced by more than four orders of magnitude: averaged over 100 switches per configuration, the baseline ros2_control took approximately 210 ms, the original multimode controller from multipanda_ros2 took 1.8 ms, and the improved multimode controller took 0.01 ms. The worst single switching event of the proposed approach stayed below 0.1 ms.
  • Joint position limit interception: with a stiff joint impedance controller (K = 800 N/m) commanded at 75% of the hardware speed limit and a safety margin of 0.2 rad, the mean stopping distance averaged over all 7 joints was 0.082 ± 0.003 rad across 70 repetitions (10 per joint). No trial reached the actual hardware limit.
  • Joint velocity limit interception: with a safety margin of 0.1 rad/s, the mean stopping distance was 0.080 ± 0.016 rad; the variability was notably higher than in the position test because joint velocities were higher at the moment of the reflex trigger.
  • Contact force mitigation: across 30 contact trials (10 repetitions under each of three approach configurations, impact velocities from 0.09 to 0.26 m/s, force threshold 15 N), the mean force mitigation time for external forces exceeding 15 N was 0.122 ± 0.013 s, and low-level hardware limits were never triggered.
  • Peak impact force exceeds the threshold by physics, not by failure: the detected peak transient force was significantly larger than the 15 N threshold because feedback control cannot attenuate the open-loop transient of Impact Phase I (10–20 ms). The reflex instead engages within Impact Phase II and eliminates static crushing forces.
  • Multistage task speed-up: over a three-phase pick-and-place / surface-wiping / tool-return task, total duration fell from 14.58 ± 0.10 s to 14.09 ± 0.06 s, a 3.5% reduction (10 executions per approach, 20 trials total).
  • Smoother transitions: peak trajectory jerk dropped from 499.0 ± 96.9 m/s³ to 155.4 ± 40.6 m/s³, a reduction of more than threefold.
  • Why the time is saved: at the second switch (shortly after the 10 s mark), the proposed approach's task-space velocity dips but never reaches zero, whereas every baseline trajectory fully stops before starting the new behaviour — accounting for roughly 0.5 s of the difference.

Methodology in Plain English

The authors start from multipanda_ros2, an open-source ROS 2 framework for controlling multiple robots from a single process. Its central component, the Multimode Controller (MC), does not compute a control law itself. It supervises a set of lightweight sub-controllers called controllets, each of which implements one behaviour (velocity control, force control, impedance control, or a reflex). Each controllet is given ownership of specific hardware resources, and the MC guarantees that no more than one controllet owns any given motor at any instant. During initialization, controllets are constructed with C++ move semantics and hold direct references to the shared command torque vector and the centrally managed robot state, so no data is copied during operation.

Profiling the original framework showed that the roughly 2 ms switching delay came from creating ROS 2 communication entities at runtime — subscriber creation, callback registration, DDS participant discovery, heap allocation and possible page faults, and internal synchronisation locks. The fix was to move every ROS 2 instantiation and middleware endpoint into the timing-insensitive initialization phase and pre-allocate all memory. Switching an active controllet inside the 1 kHz loop then becomes a deterministic, lock-free pointer reassignment with no context switch, system call, or middleware involvement.

On top of this, the reflex engine evaluates safety boundaries on every 1 kHz cycle: joint position limits (with buffer δ_q), joint velocity limits (δ_q̇), joint torque limits, and, in operational space, absolute force and moment magnitudes computed from the estimated external wrench via the Jacobian pseudo-inverse. A four-state machine (NORMAL, REFLEX, WAIT_FOR_RECOVERY, RECOVERY) governs behaviour: a hazard activates the relevant reflex controllet; recovery is requested either by a haptic tap (‖f_ext‖ > 10 N) or a user command; the desired operation resumes once the joint deviation falls below a threshold. Five task-abandoning reflexes are provided — Stop, Admittance (α = 0.05), Joint Retraction (δ = 0.05 m), Cartesian Retraction (γ = 0.09, orientation held fixed), and Zero-G — all configured declaratively through ROS 2 YAML files without recompilation.

Hardware was a Franka Robotics Panda manipulator driven by an ASRock Industrial 4X4 Box 7735U/D5 NUC mini-PC with 32 GB of DDR5-4800 MHz RAM. Switching delay was measured by timestamping the switch request and the first appearance of the new τ_cmd in the internal libfranka loop, then aligning the two datasets by cross-correlation.

Why This Matters

Impact on research. The paper argues that collision detection, temporal impact-phase models, and reflex taxonomies have largely been confined to proprietary real-time frameworks such as DLR's aRD/Beasty or ArmarX-RT, or to specialised toolkits within OROCOS. Demonstrating reflex-level latency inside ros2_control removes the forced trade-off between the modularity of open-source middleware and the determinism of platform-specific architectures, and makes these safety techniques reproducible by groups without in-house real-time stacks.

Real-world applications:

  • Domestic and service robots performing surface cleaning, folding clothes, or close-proximity physical assistance, where contact with people is inevitable.
  • Assistive and geriatric-care robotics, the context of the paper's funding through the Lighthouse Initiative Geriatronics and LongLeif GaPa.
  • Collaborative manufacturing cells where a cobot must switch between precise motion, force-regulated contact, and compliance without stopping the line.
  • Contact-rich manipulation research that needs to test many control modalities on one platform without recompiling or restarting between trials.

Industry relevance. Since the approach is drop-in compatible with ros2_control, an existing control algorithm only needs to be copied across as an additional controllet. Sub-0.1 ms switching places behaviour transitions inside the 1 kHz loop that ISO 10218 and ISO 13482 already require for collision detection and measurement, and the more-than-threefold jerk reduction lowers mechanical loads during transitions.

Future Directions

  • Extending the library of available reflex behaviours beyond the five implemented, with particular emphasis on task-preserving strategies that mitigate hazards while minimising disruption to the ongoing manipulation.
  • Refining controller-specific parameters and thresholds, since the paper notes that the choice of reflex behaviour and safety margins (0.2 rad, 0.1 rad/s) strongly affects outcomes and produced overshoot beyond the nominal safety limit in the limit tests.
  • Reducing reliance on application-specific tuning: the authors state that selecting reflexes and thresholds remains application-dependent and is a limitation of the current evaluation.
  • Using the framework as a substrate for learned robot policies, where rapid transitions to established control strategies could improve robustness in unexpected situations.
  • Broadening validation beyond repeatable, quantifiable scenarios; the current experiments are controlled, with richer unexpected interactions shown only in supplementary video material.

Target Audience

Robotics engineers and researchers working on real-time robot control, pHRI safety, and ROS 2 infrastructure; integrators of collaborative robots who need fast, deterministic controller switching without abandoning open-source middleware; and graduate students studying collision detection, reflex taxonomies, or control-architecture design. Readers without a background in torque control, DDS middleware, or impedance control will find the methods section demanding, though the problem statement and results are accessible.

Authors’ abstract

Continuous physical human-robot interaction requires robots to rapidly adapt their control behaviour without interrupting task execution. However, existing ROS 2 control architectures rely on stop-to-switch mechanisms that introduce substantial delays and interrupt execution. We present an open-source, sub-millisecond reflex engine based on an enhanced ROS 2-compatible multimode controller that enables deterministic switching between control modalities and integrates reflex…

The full abstract on arXiv
Read the original paper

Related papers