# QERRA-v2 Demo 5: Closed-Loop Moral Gating, Physical Safety, and Values Selection (TIAGo in Webots)

**URL:** <https://discourse.openrobotics.org/t/qerra-v2-demo-5-closed-loop-moral-gating-physical-safety-and-values-selection-tiago-in-webots/57863>\
**Category:** Projects\
**Tags:** ros2, webots, safety, hri, behaviortrees\
**Created:** [September 4, 2026, 12:10pm UTC](https://discourse.openrobotics.org/t/qerra-v2-demo-5-closed-loop-moral-gating-physical-safety-and-values-selection-tiago-in-webots/57863 "2026-09-04T12:10:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marunigno-ship-it](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/marunigno-ship-it/32/36688_2.png) [@marunigno-ship-it](https://discourse.openrobotics.org/u/marunigno-ship-it)\
**Post date:** [September 6, 2026, 8:53am UTC](https://discourse.openrobotics.org/t/qerra-v2-demo-5-closed-loop-moral-gating-physical-safety-and-values-selection-tiago-in-webots/57863/3 "2026-09-06T08:53:00Z")

</div>

Hi there !

Yes that’s right and thank you for this observation. Even if i do not see that as an embarassment but mostly as a process and hopefully i can add some real value 😊 , that would be great as well.

Infact these kind of issues have been created many exhaustion combined with my self-taught character.I’m learning & applying all these while i’m building the Engine. I’m not an academic or a classical trained engineer.

On simple, routine commands (like _“Take this cart to the assembly line”_ or _“Fetch the folder”_ in my earlier demos), when no red flags are raised, the engine gives a baseline score of 0.25 (Safe) and lets the robot drive. On the ~80 test cases I’ve built so far, harmless instructions pass through without issues.

In an earlier version, if a sentence said _“I do NOT want to hurt myself”_, the semantic model latched onto _“hurt myself”_ and triggered a full critical emergency stop. I had to learn the hard way how to put a direct regex check in front of the model to catch the negation and stop it from crying wolf.

Another time, I tried expanding my vector descriptions to make them smarter, but it ended up diluting the embeddings so badly that it started failing basic sentences.

My testing so far is a small batch of sentences which i’m trying to approach through the real-world lens, yet there are not 100% real commands from people working on an actual floor. So I definitely can’t say it’s tested for the real world yet.

How do you usually test yours against normal, everyday tasks? Do you pull from real logs or use a specific dataset? If you want to add something please do

Thanks again

---

_[View the full topic](https://discourse.openrobotics.org/t/qerra-v2-demo-5-closed-loop-moral-gating-physical-safety-and-values-selection-tiago-in-webots/57863)._
