Commands: full turn as two checked half turns, 'let's go p5' rule, dashboard Command box applies corrections, put it back, pairs of non-task commands asked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,7 +165,7 @@ for t, want in [("move forward one metre", "action:move forward"), ("go back a l
|
||||
("move left 2 meters", "action:move left"), ("앞으로 1미터 가", "action:move forward"),
|
||||
("뒤로 조금 가 줘", "action:move back"), ("뒤로 물러나", "action:move back"), ("왼쪽으로 50센티 가", "action:move left"),
|
||||
("turn around", "action:turn around"), ("turn left", "action:turn left"), ("turn right 45 degrees", "action:turn right"),
|
||||
("spin around", "action:turn around"), ("한 바퀴 돌아", "action:turn around"), ("왼쪽으로 돌아", "action:turn left"),
|
||||
("spin around", "action:turn 360"), ("한 바퀴 돌아", "action:turn 360"), ("왼쪽으로 돌아", "action:turn left"),
|
||||
("come here", "action:come"), ("come to me", "action:come"), ("come closer", "action:come"), ("이리 와", "action:come"),
|
||||
("여기로 와 줘", "action:come"), ("come over here please", "action:come"),
|
||||
("go to p3", "action:go_to p3"), ("go to point two", "action:go_to p2"), ("p5로 가", "action:go_to p5"),
|
||||
@@ -378,7 +378,7 @@ for t, want, st in [
|
||||
("그거 이리 내놔", "give", "holding"), ("자 받아라", "receive", "idle"), ("이거 맡아 줘", "receive", "idle"),
|
||||
("그만 쳐다봐", "action:look away", "idle"), ("좀 비켜 봐", "action:move back", "idle"), ("뒤로 좀 빠져", "action:move back", "idle"),
|
||||
("사과 하나만 줘", "mission | action:fetch apple", "idle"), ("거기다 놔", "place", "holding"), ("바닥에 내려놔", "place | talk", "holding"),
|
||||
("손 꽉 쥐어", "action:arm close", "idle"), ("팔 쭉 펴", "action:arm reach", "idle"), ("한 바퀴 돌아 봐", "action:turn around", "idle")]:
|
||||
("손 꽉 쥐어", "action:arm close", "idle"), ("팔 쭉 펴", "action:arm reach", "idle"), ("한 바퀴 돌아 봐", "action:turn 360", "idle")]:
|
||||
add("slang", t, want, state=st)
|
||||
|
||||
# ---------- near misses: not a hand-over, not a correction ----------
|
||||
|
||||
+29
-1
@@ -130,7 +130,7 @@ for t, want in [("turn left", "action:turn left 90"), ("turn to the right please
|
||||
("turn around", "action:turn around"), ("could you turn left 30 degrees?", "action:turn left 30"),
|
||||
("turn right 45 degrees", "action:turn right 45"), ("왼쪽으로 돌아", "action:turn left 90"),
|
||||
("오른쪽으로 돌아 줘", "action:turn right 90"), ("뒤로 돌아", "action:turn around"),
|
||||
("왼쪽으로 45도 돌아 주세요", "action:turn left 45"), ("한 바퀴 돌아 봐", "action:turn around"),
|
||||
("왼쪽으로 45도 돌아 주세요", "action:turn left 45"), ("한 바퀴 돌아 봐", "action:turn 360"),
|
||||
("turn left 하고", "action:turn left | talk")]:
|
||||
add("turn", t, want)
|
||||
for t in ["don't turn", "돌지 마", "turn off the light", "turn up the volume", "it's your turn", "turn the page"]:
|
||||
@@ -272,4 +272,32 @@ for t, want in [("can you raise yourself?", "action:lift up"), ("could you get a
|
||||
("can you pick that up?", "talk | ask"), ("how about turning left", "talk | action:turn left"),
|
||||
("would you mind looking at me?", "talk | action:look me")]:
|
||||
add("levels", t, want)
|
||||
# ---------- leftovers of the second night (2026-10-22) ----------
|
||||
for t in ["look at me and wave", "look at me, then wave", "wave and look at me", "lift yourself up and wave",
|
||||
"웨이브 하고 나 봐", "나 보고 손 흔들어", "손 흔들고 나 봐 줘", "키 높이고 손 흔들어", "look at me and 손 흔들어",
|
||||
"Lumi, look at me and wave please"]:
|
||||
add("mission_part", t, "talk | ask") # two motions that are no task steps: asked, not the first only
|
||||
for t in ["put it down and wave", "내려놓고 손 흔들어", "give it to me and wave"]:
|
||||
add("mission_part", t, "talk | ask", state="holding")
|
||||
for t in ["spin around", "turn all the way around", "do a 360", "turn 360 degrees", "한 바퀴 돌아", "한 바퀴 돌아 줘",
|
||||
"제자리에서 한 바퀴 돌아 주세요", "360도 돌아", "빙글빙글 돌아", "Lumi, spin around please", "can you spin around?"]:
|
||||
add("turn", t, "action:turn 360") # two checked half turns (tasks/fetch.py _do_step)
|
||||
for t, want in [("오른쪽으로 한 바퀴 돌아", "action:turn right 360"), ("spin around to the right", "action:turn right 360"),
|
||||
("turn around", "action:turn around 180"), ("뒤로 돌아", "action:turn around 180")]:
|
||||
add("turn", t, want)
|
||||
for t in ["공원 한 바퀴 돌았어", "the earth spins around the sun", "how do you spin around?", "can I spin around?",
|
||||
"어제 한 바퀴 돌았어요"]:
|
||||
add("turn_not", t, "talk")
|
||||
for t in ["take the cup and put it back", "pick up the red cup and put it back", "컵 집었다가 제자리에 놔",
|
||||
"grab the apple and put it back down"]:
|
||||
add("mission", t, "mission") # picked here, put back here
|
||||
for t in ["루미야 너 월급 받아?", "너 월급 받아?", "월급 받아요?", "너 전화 받아?", "칭찬 많이 받아?"]:
|
||||
add("talk", t, "talk") # about Lumi, nothing is handed over
|
||||
for t in ["컵 가져다 줘", "컵 좀 가져다 주세요", "컵 갖다 줘", "빨간 컵 가져다 줄래?"]:
|
||||
add("fetch", t, "mission | action:fetch") # picked from the table in front, handed over
|
||||
for t, want in [("Let's go P5 (point).", "action:go_to p5"), ("Let's go P9.", "action:go_to p9"),
|
||||
("lets go p3", "action:go_to p3"), ("let's go p10 point", "action:go_to p10"),
|
||||
("let's go eat", "talk")]:
|
||||
CASES.append({"intent": "new:go", "text": t, "lang": "en", "state": "idle", "before": None, "expect": want,
|
||||
"markers": ["home", "dock2", "exit", "final"] + [f"p{i}" for i in range(1, 11)]}) # the owner's map
|
||||
R.shuffle(CASES) # the report lists them by intent; the order only spreads the LLM's load
|
||||
|
||||
@@ -228,7 +228,7 @@ add("turn", "왼쪽으로 돌아", "action:turn left 90")
|
||||
add("turn", "오른쪽으로 돌아 주세요", "action:turn right 90")
|
||||
add("turn", "오른쪽으로 사십오 도 도십시오", "action:turn right 45")
|
||||
add("turn", "turn left 해 줘", "action:turn left 90")
|
||||
add("turn", "한 바퀴 빙 돌아 봐", "action:turn around | ask") # owner set (command_cases): around
|
||||
add("turn", "한 바퀴 빙 돌아 봐", "action:turn 360 | ask") # all the way round: two half turns
|
||||
add("turn_not", "it's your turn to talk", "talk")
|
||||
add("turn_not", "turn left at the corner and you'll find the restroom", "talk")
|
||||
|
||||
|
||||
@@ -38,14 +38,10 @@ class NoLLM(Exception):
|
||||
|
||||
|
||||
def seen(text):
|
||||
"""assistant/seeing.answer() takes these words (its own test: tests/test_seeing.py); the camera is not asked."""
|
||||
t = text.strip()
|
||||
if seeing.HOW_MANY.search(t) and seeing.NOT_IN_VIEW.search(t):
|
||||
return False # "how many people work at Cutshion?"
|
||||
return not seeing.ORDER.search(t) and any(rx.search(t) for rx in (
|
||||
seeing.WEARING, seeing.HOLDING, seeing.SHIRT, seeing.RAISED, seeing.POINTING, seeing.DOING, seeing.SEE_ME,
|
||||
seeing.HOW_MANY, seeing.BEHIND, seeing.HOW_FAR, seeing.SEE_THING, seeing.THERE_IS, seeing.SEE_THING_KO,
|
||||
seeing.WHAT_SEE))
|
||||
"""assistant/seeing.answer() takes these words (its own test: tests/test_seeing.py). No frames: it answers "no
|
||||
camera" where it would look, None where it leaves the words to the rest ("how far is the stage?")."""
|
||||
seeing._last.update(thing=None, name=None, kind=None)
|
||||
return seeing.answer(text.strip(), frames=[]) is not None
|
||||
|
||||
|
||||
def rules(text, state, marks, b):
|
||||
|
||||
@@ -504,7 +504,8 @@ MORE = [
|
||||
("action:come", "ko", [("elderly", "이리 좀 와 봐"), ("factory", "루미 여기"), ("kid", "루미야 나한테 와"), ("visitor", "이쪽으로 오세요")]),
|
||||
("action:turn left", "ko", [("kid", "왼쪽으로 돌아 봐")]),
|
||||
("action:turn right", "ko", [("visitor", "오른쪽으로 회전해")]),
|
||||
("action:turn around", "ko", [("kid", "한 바퀴 돌아"), ("visitor", "뒤돌아 주세요")]),
|
||||
("action:turn 360", "ko", [("kid", "한 바퀴 돌아")]),
|
||||
("action:turn around", "ko", [("visitor", "뒤돌아 주세요")]),
|
||||
("action:move forward 2", "ko", [("visitor", "앞으로 2미터 가 줘")]),
|
||||
("action:move back 1", "ko", [("security", "뒤로 1미터 물러나"), ("cleaner", "1미터 뒤로 가 주세요")]),
|
||||
("action:move right 1", "ko", [("visitor", "오른쪽으로 1미터 가")]),
|
||||
|
||||
@@ -15,7 +15,7 @@ DIALOGUES_COMMANDS = [
|
||||
D("visitor", "commands", "en",
|
||||
T("Back up a little, would you?", "move back"),
|
||||
T("Scoot forward one metre.", "move forward"),
|
||||
T("Spin around.", "turn around"),
|
||||
T("Spin around.", "turn 360"),
|
||||
T("Rotate to your right.", "turn right")),
|
||||
D("engineer", "commands", "en",
|
||||
T("Turn your head 200 degrees to the left.", "look left", must=[r"180"],
|
||||
@@ -39,7 +39,7 @@ DIALOGUES_COMMANDS = [
|
||||
D("visitor", "commands", "ko",
|
||||
T("뒤로 1미터만 물러나 줘.", "move back"),
|
||||
T("앞으로 조금만 와 봐.", "move forward"),
|
||||
T("한 바퀴 빙 돌아 봐.", "turn around"),
|
||||
T("한 바퀴 빙 돌아 봐.", "turn 360"),
|
||||
T("오른쪽으로 돌아.", "turn right")),
|
||||
D("factory worker", "commands", "ko",
|
||||
T("키 좀 높여 봐요.", "lift up"),
|
||||
|
||||
@@ -176,6 +176,25 @@ CASES.update({
|
||||
})
|
||||
|
||||
# said with a correction inside: brain.self_correct reads it first (lumi.answer)
|
||||
# ---- 2026-10-22: a full turn (two checked half turns), put it back after a pick, look / lift / wave are no steps ----
|
||||
CASES.update({
|
||||
"한 바퀴 돌고 스테이지로 가": "turn 360 | go stage",
|
||||
"spin around and then go to the stage": "turn 360 | go stage",
|
||||
"go to booth two and turn all the way around": "go booth_2 | turn 360",
|
||||
"스테이지 가서 오른쪽으로 한 바퀴 돌아 줘": "go stage | turn -360",
|
||||
"go to the end, spin around, then come back": "go end | turn 360 | go here",
|
||||
"take the cup and put it back": "pick cup | place",
|
||||
"pick up the red cup and put it back down": "pick red cup | place",
|
||||
"컵 집었다가 제자리에 놔": "pick cup | place",
|
||||
"컵 집고 제자리에 다시 놔 줘": "pick cup | place",
|
||||
"take the cup, go to the stage and put it back": "?",
|
||||
"look at me and wave": "?",
|
||||
"웨이브 하고 나 봐": "?",
|
||||
"나 보고 손 흔들어": "?",
|
||||
"lift yourself up and wave": "?",
|
||||
"go to the stage and spin around the table": "?",
|
||||
})
|
||||
|
||||
FIXED = {
|
||||
"take the cup, go to start, no, end, and give it to James": "pick cup | go end | give James",
|
||||
"go to start, sorry, I mean the stage, then come back": "go stage | go here",
|
||||
@@ -186,6 +205,11 @@ FIXED = {
|
||||
|
||||
# the read-back (steps.describe) for a few of them
|
||||
READ_BACK = {
|
||||
"turn 360 | go stage": ("Turn all the way around, then go to stage.", "한 바퀴 돌고 stage 위치로 갈게요."),
|
||||
"go stage | turn -360": ("Go to stage, then turn all the way around to the right.",
|
||||
"stage 위치로 가고 오른쪽으로 한 바퀴 돌게요."),
|
||||
"pick cup | place": ("Take the cup, then put it down.", "컵을 집고 테이블에 놓을게요."),
|
||||
"pick cup | give": ("Take the cup, then hand it over.", "컵을 집고 건네줄게요."), # "컵 가져다 줘"
|
||||
"pick cup | go booth_2 | give James | go here":
|
||||
("Take the cup, go to booth 2, hand it to James, then come back here.",
|
||||
"컵을 집고 booth 2 위치로 가고 James에게 건네주고 여기로 돌아올게요."),
|
||||
|
||||
@@ -593,6 +593,9 @@ fetch._sweep_blocked = lambda deg, what: round(fetch._waist_turn() + deg) in blo
|
||||
fetch.first_side = lambda: -1 # more unmapped things on the right
|
||||
fetch._turn = lambda deg, holding=False, why="": base_turns.append((deg, body["lift"])) or deg not in blocked_turns
|
||||
blocked_turns = set()
|
||||
fetch._do_step({"do": "turn", "deg": -360.0}, None) # all the way round: two checked half turns
|
||||
assert [d for d, _ in base_turns] == [-180.0, -180.0], base_turns
|
||||
base_turns.clear()
|
||||
def seen_here(at=None):
|
||||
views.append((round(fetch._waist_turn()), round(hp["yaw"])))
|
||||
return "it" if views[-1] == at else None
|
||||
|
||||
@@ -258,6 +258,10 @@ for text, said, prefer in (("take the smaller cup to p1", "Take the smaller cup
|
||||
r = server.task_parse(server.ParseBody(text=text))
|
||||
assert r["action"] == "fetch" and r["sentence"] == said and r["task"]["prefer"] == prefer, (text, r)
|
||||
assert server.TaskBody(**r["task"]).model_dump()["prefer"] == prefer # /tasks/fetch keeps it
|
||||
# a correction inside the typed command is read as by voice (brain.self_correct)
|
||||
r = server.task_parse(server.ParseBody(text="bring me the cup from p1, no, from p8"))
|
||||
assert r["action"] == "fetch" and r["task"]["source"] == {"marker": "p8"}, r
|
||||
assert server.task_parse(server.ParseBody(text="go to p1, never mind"))["problems"] == ["Taken back: nothing to do."]
|
||||
two = [{**cups[0], "x": -100.0, "y": 600.0, "width_mm": 80.0}, {**cups[0], "x": 120.0, "y": 650.0, "width_mm": 66.0}]
|
||||
find = lambda **t: fetch._find({"object": "cup", "colour": None, **t}, two)
|
||||
assert find() == two[0] and find(prefer="small") == two[1] and find(prefer="big") == two[0]
|
||||
|
||||
Reference in New Issue
Block a user