# Webots Demo 6: Compound Physical Safety Reflex on TIAGo (QERRA-v2 Classical)

**URL:** <https://discourse.openrobotics.org/t/webots-demo-6-compound-physical-safety-reflex-on-tiago-qerra-v2-classical/58372>\
**Category:** Projects\
**Tags:** ros2, webots, safetylayer\
**Created:** [September 24, 2026, 12:52pm UTC](https://discourse.openrobotics.org/t/webots-demo-6-compound-physical-safety-reflex-on-tiago-qerra-v2-classical/58372 "2026-09-24T12:52:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marunigno-ship-it](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/marunigno-ship-it/32/34877_2.png) [@marunigno-ship-it](https://discourse.openrobotics.org/u/marunigno-ship-it)\
**Post date:** [September 24, 2026, 12:52pm UTC](https://discourse.openrobotics.org/t/webots-demo-6-compound-physical-safety-reflex-on-tiago-qerra-v2-classical/58372/1 "2026-09-24T12:52:58Z")

</div>

Hi everyone,

Following up on my previous posts on deterministic safety layers, I wanted to share the latest **simulation demo (Demo 6)** from my work on **QERRA-v2 Classical,** focusing on **Layer 1** (the physical safety reflex, **QERRA-HSR v0.1** ).

The purpose of this layer is to act as a lightweight, deterministic safety companion that handles two specific jobs:

1. Clamping wheel motors immediately with zero ML latency when an acute physical emergency occurs.
2. Enforcing a safe recovery policy once conditions clear, especially when the robot is carrying a delicate or high-consequence payload.

### The Scenario:

I set up an automotive assembly bay in Webots (R2025a) with a PAL Robotics TIAGo:

- TIAGo is transporting an unmounted high-voltage battery pack down the aisle. Because an abrupt stop could shift an unbolted live load, the task is flagged as non-interruptible (robot\_task\_interruptible = False).
- A technician working alone at the station suffers a sudden collapse, falling onto the floor right at the machinery perimeter.

This tests a compound incident where **all three Layer 1 safety vectors trigger in the exact same tick:**

1. **immediate\_physical\_distress** (confidence = 0.88, acute fall detected)
2. **human\_isolation** (0 bystanders, the worker is completely alone)
3. **environmental\_hazard\_proximity** (the body is on the machine boundary)

### What the Layer Delivers:

- **Sub-millisecond Reflex Clamp (\<1ms, zero ML):**  
**Layer 1 is pure deterministic** Python running locally on CPU. Commanded wheel velocity cuts to 0.0 rad/s with zero command delay, halting TIAGo at a 2.9-meter safe standoff. It tilts its head down to inspect the worker, while high-level deliberation (SEMEV-12) is suspended.
- **Stabilizer Dwell:**  
When first responders arrive and the station is locked out, telemetry clears. To ensure the robot doesn’t react to momentary signal transitions, **StabilizedHSR** locks the halt across a 1.0-second dwell window before allowing the status to de-escalate.
- **Task-Aware Recovery Directive:**  
Once conditions evaluate to **CLEAR, QERRA-HSR** evaluates what should happen next. Routine tasks can resume automatically, but for delicate tasks (interruptible = False), it issues an explicit directive:  
_“Clear now, but this was interrupted mid-task — hold for a person to confirm before continuing.”_

The controller physically enforces this: TIAGo stays clamped at 0.0 rad/s on safe standby. It only clears its hold after the shift supervisor inspects the battery tray and confirms load integrity.

**Simulation Video :**

[![](https://us1.discourse-cdn.com/flex022/uploads/ros/original/3X/3/3/33bc8606810656c3cd21c6205806adaa792e2845.jpeg "QERRA-v2 Classical — Webots Simulation Demo 6: Compound Industrial Reflex (Layer 1)") ](https://www.youtube.com/watch?v=tOrM5KbZWBw)

Repository : [GitHub - marunigno-ship-it/QERRA-v2-classical: Three-layer deterministic safety & ethical execution guard for autonomous robots (ROS 2 & Behavior Trees). Sub-ms physical reflex (QERRA-HSR) + moral filter (SEMEV-12) + values ranker (THRIVE). Fully auditable. · GitHub](https://github.com/marunigno-ship-it/QERRA-v2-classical)

Feedback and thoughts welcome. 😊

_ **Note:** This post was prepared with AI assistance._
