Improve quick answers and keep the held name after a failed move

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 07:09:37 +09:00
co-authored by Claude Opus 5.5
parent 5d1422bb38
commit 122e7dec0c
7 changed files with 89 additions and 18 deletions
+28 -2
View File
@@ -224,10 +224,36 @@ NEG_b = ["Where can I buy a robot like you?", "쿳션 주식 살 수 있어요?"
"Can you open the window?", "문 좀 열어 줘", "Climb the stairs now", "계단으로 가", "Dance for me!", "춤 춰 봐", "Touch my hand",
"내 손 만져 봐", "Show me your camera", "카메라 보여 줘", "Turn on the internet", "와이파이 비밀번호 뭐야?", "What's the wifi password?",
"Pick up the bottle", "병 집어 줘", "How heavy is this bottle?", "이 병 몇 킬로야?", "Is the floor safe?", "여기 안전해?"]
for _p in (POS_a, POS_b):
POS_c = {
"battery_spec": ["What battery is in you?", "배터리 용량이 어떻게 되십니까?", "배터리 전압이 몇 볼트예요?", "What kind of battery powers you?", "배터리 종류 뭐고?"],
"charging": ["How do you charge?", "충전은 어떻게 하세요?", "Can you go charge by yourself?", "혼자 충전하러 갈 수 있어?", "Where do you charge?"],
"navigation": ["How do you know where to go?", "길 찾는 건 어떻게 해?", "Do you need a map?", "자율주행 하세요?", "How do you find your way around?"],
"obstacles": ["What if someone blocks your way?", "장애물 있으면 어떻게 해요?", "Do you stop for people?", "사람 있으면 멈춰?", "Will you crash into things?"],
"size": ["덩치가 얼마나 돼요?", "How wide are you?", "폭이 몇 센티예요?", "What size is your base?"],
"grow": ["Can you get taller?", "키 늘어나요?", "How tall can you get?", "최대로 키 높이면 몇이에요?", "Can you raise your body?"],
"turn_range": ["Can your head turn all the way around?", "고개는 몇 도까지 돌아가요?", "How far can you turn your waist?", "허리 얼마나 돌아가니?"],
"teach": ["Can I teach you something new?", "새로운 거 가르칠 수 있어요?", "Do you learn from people?", "배울 수 있으세요?"],
"detector": ["How do you recognize objects?", "물체 인식 뭐로 해요?", "What vision model do you use?", "사람은 어떻게 찾아요?"],
"software": ["What programming language are you written in?", "어떤 언어로 프로그래밍했어요?", "Is your software Python?", "소프트웨어 뭘로 만들었습니까?"],
"accuracy": ["How accurate is your arm?", "팔 정밀도가 얼마나 돼요?", "What's your repeatability?", "오차가 몇 mm예요?"],
"pick_what": ["What things can you pick up?", "뭘 집을 수 있어요?", "Can you pick things up from the floor?", "바닥에 있는 거 주울 수 있어?"],
"paper_cup": ["Can you hold a paper cup?", "종이컵 잡을 수 있어요?", "Can you grab a paper coffee cup?"],
"arm_weight": ["How heavy is your arm?", "팔 무게가 얼마예요?", "What does your arm weigh?"],
"estop": ["Where's your emergency stop?", "비상 정지 버튼 어디 있어요?", "How do I stop you in an emergency?"],
"used_where": ["Where are robots like you used?", "어디에 쓰는 로봇이에요?", "What are you made for?", "용도가 뭐예요?"],
"country": ["Which country are you from?", "어느 나라 로봇이에요?", "Are you Korean?", "한국 로봇이에요?"],
"name_meaning": ["What does your name mean?", "루미가 무슨 뜻이에요?", "Why are you called Lumi?", "이름에 무슨 뜻 있어?"],
"days_to_christmas": ["How many days till Christmas?", "크리스마스까지 며칠 남았어요?", "Is Christmas coming soon?", "성탄절까지 얼마나 남았어?"],
}
NEG_c = ["Charge my phone", "핸드폰 충전해 줘", "Go to the charger", "충전기로 가", "Find the way to the exit", "출구로 가는 길 알려 줘",
"Avoid that chair", "의자 피해서 가", "Make yourself bigger", "키 높여", "Turn your head left", "고개 왼쪽으로 돌려", "Teach me Korean",
"한국어 가르쳐 줘", "What is that object?", "저거 뭐야?", "Write me a program", "코딩해 줘", "Pick up the cup", "컵 집어", "Hold my cup",
"내 컵 잡아 줘", "Lift your arm", "팔 들어", "Stop!", "멈춰!", "Where is the hotel?", "호텔 어디야?", "Which country is this?", "여기 어느 나라야?",
"What does Cutshion mean?", "쿳션이 무슨 뜻이야?", "When is Chuseok?", "추석 며칠 남았어?"]
for _p in (POS_a, POS_b, POS_c):
for _k, _t in _p.items():
POS.setdefault(_k, []).extend(_t)
NEG += NEG_a + NEG_b
NEG += NEG_a + NEG_b + NEG_c
def run():
+6 -2
View File
@@ -37,7 +37,9 @@ KIND = { # words (no talk before) -> kind
"You're Siri, aren't you?": "name", "너 2미터지?": "height", "Samsung made you, right?": "maker", "이번 달 알려 줘.": "date_today",
"에이지가 몇이야?": "age", "스피드가 얼마야?": "speed", "메이커가 어디야?": "maker", "do you have the time?": "time_now",
"아이들 옆에 있어도 안전해?": "safety", "what cameras do you have?": "cameras", "얼굴 인식 돼요?": "faces",
"컴퍼니 오픈 언제예요?": "co_founded", "참, 로봇 양반, 이름이 무슨 뜻이야?": "name_meaning", "Your voice, what program?": "tts",
"컴퍼니 오픈 언제예요?": "co_founded", "참, 로봇 양반, 이름이 무슨 뜻이야?": "name_meaning", "Your voice, what program?": "tts", "들어 있는 인공지능 무엇인지 알려 주십시오": "model",
"실례합니다. 네 이름 무엇인지 알려 주십시오": "name", "바퀴 몇 개야?": "wheels", "do you have eyes?": "cameras",
"스피커 어디 있어요?": "tts", "Is it safe for kids to be near you?": "safety",
}
IN_TALK = { # words after TALK -> kind or None
"how old are you?": "age", "who made you?": "maker", "what's your name?": "name",
@@ -63,7 +65,9 @@ NEVER = [ # no talk before: never a quick answer
"손! 손 내밀어!", "go the souvenir shop, ehh, tell me time", "Turn your head toward me, young robot.", "배터리, 아 아니, 지금 뭐 해?",
"오픈AI 대표 누군가?", "1달러에 원화로 얼만가?", "롯데타워 하이트 얼마야?", "K1 정밀도 어때요?", "PEITIAN 로봇의 가반하중은 얼마입니까?",
"배터리 수명이 몇 년이에요?", "배터리 얼만가?", "do you have time?", "언제?", "How do you know?",
"위험해", "손에 뭐 있어?", "what can your camera see?", "do you recognize me?", "저기 평가 항목, 루미, 오늘 무슨 요일이야?",
"위험해", "손에 뭐 있어?", "what can your camera see?", "do you recognize me?", "저기 평가 항목, 루미, 오늘 무슨 요일이야?", "홀로 가십시오", "근데 너 몇 살이야? 아 됐고, 검정 머그컵 잡으시지요",
"Lumi, could you turn your head ten degrees down?", "이 로봇 마 저한테 손 쫌 주실래요? 알겄제", "내일 며칠이야?", "오늘 미세먼지 어때?",
"충전하는 데 얼마나 걸려?", "이거 몇 살짜리 장난감이야?",
]
FACT = {"chatgpt": r"\bno\b|아니", "name": r"lumi|루미", "who": r"lumi|루미", "age": r"\b2\b|two|두 살", "maker": r"cutshion|쿳션",
"height": r"146", "battery_life": r"10", "languages": r"english|영어", "model": r"gemma|젬마",
+8
View File
@@ -193,6 +193,14 @@ skills.place_turned(way, ja)
assert moved[0] == ("line", way[0][1]) and moved[1] == ("down",), moved
skills.motion.move_linear, skills.motion.move_joints, skills._do_place = real_lin, real_jm, real_place
# the live puts of 2026-10-26 18:51-18:56 (lift 0, cup top -186 on a table at -336): put down at (-43, 618) with no
# turn, as live; (-349, 647) beside it and the far table point (-213, 797) are out of reach from where it stood
skills._held.update(top_mm=-186.0, yaw=0.0, tips=False, below=40.0)
got = next(skills.place_options(-43.0, 618.0, -183.0, list(LOOK)), None)
assert got and abs(skills.yaw_of(got[0][1][1])) < 1, got
for xy in ((-349.0, 647.0), (-213.0, 797.0)):
assert next(skills.place_options(*xy, -183.0, list(LOOK)), None) is None, xy
# ---------- the controller confirms only the chosen plan (a stand-in behind arm.cmd here) ----------
asked, shift = [], {"mm": 0.0}
def controller(name, **a):