Improve place names in typed commands, give wording and approaches that are blocked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 19:03:25 +09:00
co-authored by Claude Opus 5.5
parent 27182df965
commit 1b3f4568e1
8 changed files with 47 additions and 11 deletions
+2 -2
View File
@@ -214,12 +214,12 @@ READ_BACK = {
"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 | give": ("Take the cup, then give it to you.", "컵을 집고 건네줄게요."), # "컵 가져다 줘"
"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에게 건네주고 여기로 돌아올게요."),
"go stage | pick cup | go here | give":
("Go to stage, take the cup, come back here, then hand it over.",
("Go to stage, take the cup, come back here, then give it to you.",
"stage 위치로 가고 컵을 집고 여기로 돌아오고 건네줄게요."),
"go table_front | wait 30 | go home":
("Go to table front, wait 30 seconds, then go to my dock.",
+4
View File
@@ -681,6 +681,10 @@ fetch.DRIVE_START_S, fetch.agv.status = real_start, real_agv_status
t0 = time.time()
fetch._straight(0.01, 1.0)
assert time.time() - t0 < 0.2 and skills.moved_at["torso"] > t0, skills.moved_at
# ... a straight approach the base pose did not follow (its own obstacle stop) counts as blocked: another way
fetch.MOVED_CHECK_M = 0.1
assert fetch._straight_went(0.2) == 0.0
fetch.MOVED_CHECK_M = float("inf")
# ---------- measure-axis pairs each object once: two cups before, one after ----------
b2 = [{"name": "cup", "x": -211.5, "y": 1332.0}, {"name": "cup", "x": 9.0, "y": 1301.0}]
+5
View File
@@ -56,6 +56,11 @@ FETCH = {
"bring the cup from p2 to Minsu": ("cup", None, P("p2"), None, "hold"),
"p2에서 컵 가져다가 민수한테 줘": ("cup", None, P("p2"), None, "hold"),
"빨간 옷 입은 여자분께 컵 갖다 드려": ("cup", None, "here", None, "hold"),
# the place said without "to" / 로 (the dashboard, 2026-10-26): a drive there with it, or the way to the thing
"take the cup and go p5": ("cup", None, "here", P("p5"), "hold"),
"take the cup from p1 and go p5": ("cup", None, P("p1"), P("p5"), "hold"),
"컵 들고 p5 가서 기다려": ("cup", None, "here", P("p5"), "hold"),
"p2 가서 컵 가져와": ("cup", None, P("p2"), "here", "hold"),
}
bad = []
for text, want in FETCH.items():
+1 -1
View File
@@ -217,7 +217,7 @@ assert steps.describe(s, "en") == ("Take the cup, drive 0.5 m forward, turn righ
"then put it on the table."), steps.describe(s, "en")
assert steps.describe(S("go p3,p5,p7 | hold"), "en") == "Go to one of p3, p5 or p7, then hold it."
assert steps.describe(S("go final | give | say Anvar says hello"), "en") == \
'Go to final, hand it over, then say "Anvar says hello".'
'Go to final, give it to the person there, then say "Anvar says hello".'
assert steps.describe(s, "ko")
print("steps ok")