Fix hand reach, arm rest routing and response delays on the charger

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 17:37:09 +09:00
co-authored by Claude Opus 5.5
parent 87832a5d5b
commit cf8a170297
15 changed files with 641 additions and 140 deletions
+4
View File
@@ -32,6 +32,7 @@ lumi.ears.understood = lambda lp: True
lumi.time.sleep = lambda s: None
lumi.waist_turned = lambda: 0.0 # the waist at the front (it reads the body)
lumi.waist_home = lambda why, fold=False: True
lumi.wave_greet_on = lumi.on_charger = lambda: False # the dashboard's switch file and the base: not this test's
M = ["home", "dock2"]
@@ -76,6 +77,9 @@ class Vision: # people in the greeting zone
def anyone_near(self):
return bool(self.tracks)
def seen(self, max_m=lumi.STAY_MAX):
return [(t.angle, t.distance) for t in self.tracks if t.distance <= max_m]
def nearest_greeted(self):
return next((t for t in self.tracks if t.greeted), None)