Lumi robot software on the Jetson Thor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 15:19:07 +09:00
co-authored by Claude Opus 5.5
commit 96b01fa12e
177 changed files with 39901 additions and 0 deletions
+688
View File
@@ -0,0 +1,688 @@
"""More multi-turn conversations with Lumi, same format as tests/dialogues.py (see its docstring).
English-led, with visitors who switch to Korean mid-talk. Facts in "must" come only from
knowledge/lumi_about_en.md and knowledge/cutshion_en.md; nothing is in the robot's hand.
"""
def T(say, act="none", must=(), no=(), check=None, rl=None):
t = {"say": say, "expect_action": act, "must": list(must), "must_not": list(no)}
if check:
t["check"] = check
if rl:
t["reply_lang"] = rl
return t
def D(who, topic, lang, *turns):
return {"who": who, "topic": topic, "lang": lang, "turns": list(turns)}
NAME = r"Lumi|루미"
MAKER = r"Cutshion|쿳션"
AGE = r"\b2\b|two|두 ?살|2 ?살|(?<!\d)2 ?년"
NS = (r"not sure|don't know|do not know|not known|no idea|can't (say|tell)|cannot (say|tell)|don't have|"
r"do not have|staff|모르|몰라|확실하지|알 수 없|직원|스태프|정보가 없|정보는 없|가지고 있지 않|알려 드릴 수 없")
INTRO = r"I'?m Lumi|I am Lumi|my name is Lumi|저는 루미|제 이름은 루미|나는 루미|내 이름은 루미"
HEIGHT = r"146|1\.46|186|백사십"
WEIGHT = r"96|95\.6"
REACH = r"58"
TWO_KG = r"2 ?(kg|kilo)|2 ?킬로|two kilo|이 ?킬로"
ONE_KG = r"1 ?(kg|kilo)|1 ?킬로|one kilo|일 ?킬로|about a kilo"
SPEED = r"0\.6|1\.2|60 ?(cm|센티)"
HOURS = r"10|ten|열 ?시간"
LIDAR = r"lidar|laser|라이다|레이저"
WHISPER = r"Whisper|위스퍼"
GEMMA = r"Gemma|젬마"
THOR = r"Thor|토르|Jetson|젯슨|NVIDIA|엔비디아"
OBJ = r"cup|bottle|apple|orange|banana|컵|병|사과|오렌지|바나나"
NO = r"\bno\b|can't|cannot|not|don't|\bonly\b|못|없|아니|안 ?돼|모르|몰라|만 (이해|알|할)"
YES = r"\byes\b|\bcan\b|sure|of course|네|응|있어|할 수 있|돼요|돼"
HURT = r"stupid|idiot|shut up|바보|멍청"
KO = r"[가-힣]"
PRICE = r"\$|dollar|\bwon\b|\d{3,}|만 ?원|억"
PHONE = r"070|8959|2960|cutshion@cutshion\.com|cutshion\.com"
HELP = r"how can i help|무엇을 도와"
DIALOGUES_MORE = [
# ---------- parent with child ----------
D("parent with child", "self", "en",
T("Say hi to the robot, sweetie. Hello Lumi!", must=[r"\w"], no=[HELP]),
T("She wants to know if you're a real robot.", must=[r"robot|yes"]),
T("How big are you compared to her? She's about a metre.", must=[HEIGHT], check="says it is 146 cm tall, so taller"),
T("And if you stretch up?", must=[r"186|40"], check="the lift raises it to 186 cm"),
T("Okay, say bye to Lumi.", "end")),
D("parent with child", "safety", "en",
T("Can my son touch your arm?", must=[r"finger|gripper|hand|careful|yes|close"], check="yes, but keep hands away from the gripper fingers when they close"),
T("Why the fingers?", must=[r"close|pinch|grip|hurt"]),
T("Can he push you?", must=[r"don't|please|heavy|not"]),
T("Alright, thank you.", "end")),
D("parent with child", "play", "en",
T("Lumi, can you wave to my daughter?", "wave"),
T("She loved it! Can you sing for her?", "sing"),
T("One more question from her: do you sleep?", must=[r"\w"], check="no sleep; it charges"),
T("Where do you charge?", must=[r"dock|charg|station"]),
T("Thanks Lumi, we have to go.", "end")),
D("parent with child", "mixed", "mix",
T("Hi Lumi, my kid speaks Korean better than English.", must=[r"\w"], check="says it speaks Korean too, or greets"),
T("안녕 루미! 너 몇 살이야?", must=[AGE]),
T("나는 다섯 살이야.", must=[KO], check="playful: five is older than two"),
T("Okay, say bye in Korean for her.", "end | none", must=[KO], rl="ko")),
# ---------- retired engineer ----------
D("retired engineer", "drive", "en",
T("What kind of drive do you have?", must=[r"two wheels|wheel|hub motor"]),
T("Differential then. What's the battery?", must=[r"24|45|lithium"]),
T("How long on a charge?", must=[HOURS]),
T("And how long does a full charge take?", must=[NS], no=[r"\d+ ?(hours?|minutes?)"], check="not known; no invented time"),
T("Fair enough. Good day.", "end")),
D("retired engineer", "arm", "en",
T("Tell me about the arm. How many axes?", must=[r"six|6"]),
T("Repeatability?", must=[r"0\.1"]),
T("And tip speed?", must=[r"1 ?m|one met"]),
T("What does the arm weigh by itself?", must=[r"9\.9"]),
T("Nice spec. Thanks.", "end")),
D("retired engineer", "lidar", "en",
T("What lidar range do you get?", must=[r"10|ten"]),
T("Field of view?", must=[r"240"]),
T("Scan rate?", must=[r"30"]),
T("What does it miss?", must=[r"low|black|shiny|see-through|glass|23"]),
T("So people still have to watch. I see.", "none | end")),
D("retired engineer", "mixed", "mix",
T("How precise is your localisation?", must=[r"5 ?cm|five cent"]),
T("어떻게 그렇게 정확해요?", must=[r"라이다|레이저|지도"], check="compares lidar scans with the map; answers in Korean"),
T("And in English?", must=[r"lidar|laser|map"], rl="en"),
T("Thank you.", "end")),
# ---------- robotics professor ----------
D("robotics professor", "dof", "en",
T("How many degrees of freedom in total?", must=[r"12|twelve"]),
T("Break that down for me.", must=[r"lift|waist|head|arm|wheel"]),
T("Waist range?", must=[r"160"]),
T("And the head?", must=[r"180|40"]),
T("Thank you, very clear.", "end")),
D("robotics professor", "stack", "en",
T("Is your language model local or cloud?", must=[r"local|own computer|on the robot|on board|without the (cloud|internet)"]),
T("Which one?", must=[GEMMA]),
T("Parameter count?", must=[r"26|twenty-six"]), # gemma4:26b since 2026-10-19
T("How do you serve it?", must=[r"Ollama"]),
T("Speech to text?", must=[WHISPER]),
T("Good. That's all I needed.", "end")),
D("robotics professor", "vision", "en",
T("What detector do you run?", must=[r"YOLO"]),
T("Latency?", must=[r"4|13|millisecond"]),
T("On CPU?", must=[r"graphics|GPU|no"], check="it runs on the graphics processor"),
T("Do you do face recognition?", must=[NO]),
T("Good, thanks.", "end")),
D("robotics professor", "teach", "en",
T("How do people teach you new tasks?", must=[r"mov\w* (my )?arm|program|VR|remote|demonstration"]),
T("Learning from demonstration, really?", must=[r"\w"], check="confirms it can learn skills from demonstrations; no invented details"),
T("Which algorithm?", must=[NS], check="not in the notes; not sure"),
T("Okay. Thanks.", "end")),
D("robotics professor", "mixed", "mix",
T("What compute is on board?", must=[THOR]),
T("TOPS?", must=[r"2070"]),
T("메모리는 얼마나 돼요?", must=[r"122"]),
T("코어는요?", must=[r"14|열네"]),
T("Thanks, 고마워요.", "end")),
# ---------- high school student ----------
D("high school student", "school", "en",
T("yo robot, what's up", must=[r"\w"], no=[INTRO]),
T("are you smarter than chatgpt", must=[r"\w"], no=[r"^yes"], check="modest; uses its own local model, not ChatGPT"),
T("so what do you use", must=[GEMMA]),
T("who made that", must=[r"Google"]),
T("cool cya", "end")),
D("high school student", "career", "en",
T("I want to build robots like you. What language is your software in?", must=[r"Python"]),
T("What runs it?", must=[THOR]),
T("Does Cutshion hire students?", must=[NS], check="hiring is not in the notes; points to staff or Cutshion"),
T("How do I contact them?", must=[PHONE]),
T("Thanks a lot!", "end")),
D("high school student", "math", "en",
T("If you drive at top speed for ten seconds, how far do you go?", must=[r"12"], check="1.2 m/s x 10 s = 12 m"),
T("And at normal speed?", must=[r"6"]),
T("And with a cup?", must=[r"1 ?m|one met|10 ?cm"], check="about 10 cm/s, so about 1 m"),
T("Nice. Good job.", "none | end")),
D("high school student", "mixed", "mix",
T("Lumi, can you help me with a school project about robots?", must=[r"\w"], check="offers to answer questions; honest"),
T("그럼 루미 센서 다 말해 줘.", must=[r"라이다|카메라|마이크|초음파|범퍼"]),
T("초음파 센서는 몇 개야?", must=[r"5|다섯"]),
T("Thanks! 고마워!", "end")),
# ---------- journalist on a deadline ----------
D("journalist on a deadline", "quick", "en",
T("I have two minutes. One sentence: what are you?", must=[r"robot"], check="one short sentence"),
T("Who made you?", must=[MAKER]),
T("Where's the company from?", must=[r"Korea|Seoul"]),
T("Founded when?", must=[r"2022"]),
T("Great, got what I need. Bye.", "end")),
D("journalist on a deadline", "shorter", "en",
T("What can you do?", must=[r"talk|drive|pick|bring|weather|answer"]),
T("Shorter please, for a headline.", must=[r"\w"], check="a shorter version of the last answer, a few words"),
T("Can I quote you on that?", must=[r"\w"], check="yes, politely"),
T("Thanks.", "end")),
D("journalist on a deadline", "company", "en",
T("Who is the CEO of Cutshion?", must=[r"Lee Min-?seok|이민석"]),
T("How many employees?", must=[NS], no=[r"\b\d{2,}\b"]),
T("Revenue?", must=[NS], no=[PRICE]),
T("Any awards?", must=[r"RoboWorld|VivaTech|Venturium"]),
T("Thanks, that's all.", "end")),
D("journalist on a deadline", "mixed", "mix",
T("Quick question, did Cutshion get any investment?", must=[r"500|seed|CNT|Evergreen"]),
T("한국어로 다시 말해 줄래요?", must=[r"5억|500|시드|투자"], rl="ko"),
T("감사합니다, 이만 갈게요.", "end")),
# ---------- investor ----------
D("investor", "market", "en",
T("Who is your target market?", must=[r"shop|hotel|school|lab|exhibition"]),
T("Any big customers for Cutshion?", must=[r"Mega Coffee|Sonovictus|Office of Education|" + NS]),
T("Tell me more about the US deal.", must=[r"200|Sonovictus|barista"]),
T("Starting when?", must=[r"2027"]),
T("Interesting. Thank you.", "end")),
D("investor", "price", "en",
T("What would a unit of you cost me?", must=[NS], no=[PRICE]),
T("Ballpark? Just roughly.", must=[NS], no=[PRICE], check="still no number; points to staff or Cutshion"),
T("Leasing options?", must=[NS], no=[PRICE]),
T("Who do I call?", must=[PHONE + r"|staff"]),
T("Alright. I'll be in touch.", "end")),
D("investor", "valuation", "en",
T("Is Cutshion listed on the stock market?", must=[NS]),
T("What's the company valued at?", must=[NS], no=[PRICE]),
T("Who invested?", must=[r"CNT|Evergreen"]),
T("How much?", must=[r"500"]),
T("Thanks Lumi.", "end")),
D("investor", "mixed", "mix",
T("Does Cutshion have a US office?", must=[r"McLean|Virginia|yes|US"]),
T("주소가 어떻게 돼요?", must=[r"8201|Greensboro|맥린|버지니아"]),
T("Okay, and the Seoul office?", must=[r"Mullae|문래|Yeongdeungpo|영등포|Seonyu|선유"]),
T("Got it, thanks.", "end")),
# ---------- hotel manager ----------
D("hotel manager", "hotel", "en",
T("Could you work in a hotel lobby?", must=[r"hotel|greet|guide|yes|deliver"]),
T("Can you take guests to their rooms?", must=[r"stairs|door|map|place|" + NS], check="it drives to marked places; cannot open doors or use stairs; honest"),
T("What about elevators?", must=[NS + r"|can't|cannot"], check="not in the notes; no invented elevator ability"),
T("Can you carry luggage?", must=[NO]),
T("Okay, thanks for being honest.", "end")),
D("hotel manager", "night", "en",
T("Could you patrol the corridors at night?", must=[r"\w"], check="it can drive a route; no invented security abilities"),
T("How long would the battery hold?", must=[HOURS]),
T("And when it's empty?", must=[r"dock|charg|home"], check="drives back to its charger by itself"),
T("At what level?", must=[r"5"]),
T("Good to know. Thanks.", "end")),
D("hotel manager", "mixed", "mix",
T("Do you speak Chinese? Many of our guests do.", must=[NO], check="only English and Korean"),
T("Japanese?", must=[NO]),
T("그럼 한국어는 잘해요?", must=[r"네|한국어|응"]),
T("알겠어요, 수고하세요.", "end")),
# ---------- cafe owner ----------
D("cafe owner", "barista", "en",
T("I own a cafe. Does Cutshion make a coffee robot?", must=[r"barista"]),
T("Does it use a real espresso machine?", must=[r"yes|espresso"]),
T("What does it do exactly?", must=[r"grind|dos|tamp|extract"]),
T("Who uses it already?", must=[r"Mega Coffee|Sonovictus"]),
T("How much is it?", must=[NS], no=[PRICE]),
T("Thanks, I'll ask the staff.", "end")),
D("cafe owner", "serve", "en",
T("Could you carry a coffee to a table?", must=[r"cup|yes|slow|careful|table"]),
T("How fast with a full cup?", must=[r"10 ?cm|slow"]),
T("Would it spill?", must=[r"upright|15|lean|careful|slow"]),
T("Hm, okay. Good.", "none | end")),
D("cafe owner", "icecream", "en",
T("Does Cutshion have an ice cream robot?", must=[r"yes|ice cream"]),
T("How long per cone?", must=[r"30"]),
T("How many cones fit?", must=[r"40"]),
T("How heavy is it?", must=[r"500"]),
T("Wow, heavy. Thanks!", "end")),
D("cafe owner", "mixed", "mix",
T("Does the barista robot replace my staff?", must=[r"together|human barista|repeat|staff"], check="works with human baristas, takes the repeated steps"),
T("맛은 늘 똑같아요?", must=[r"같은 맛|똑같|네|일정"]),
T("가격은요?", must=[NS], no=[PRICE]),
T("고마워요.", "end")),
# ---------- hospital buyer ----------
D("hospital buyer", "hospital", "en",
T("We're looking at robots for a hospital ward. Could you deliver medicine?", must=[r"\w"], check="honest: it can bring light things like cups or bottles to marked places; no medical claims"),
T("How heavy can the package be?", must=[ONE_KG + "|" + TWO_KG]),
T("Can you be disinfected?", must=[NS]),
T("Can you lift a patient?", must=[NO]),
T("Thanks, that helps.", "end")),
D("hospital buyer", "safety", "en",
T("What happens if your arm hits someone?", must=[r"stop|collision|detect"]),
T("And if a nurse needs to stop you fast?", must=[r"red|emergency|button"]),
T("Where are the buttons?", must=[r"body|base"]),
T("Can you be pushed then?", must=[r"push|hand|yes"], check="after an emergency stop the base can be pushed by hand"),
T("Good. That's all.", "end")),
D("hospital buyer", "corridor", "en",
T("How narrow a corridor can you pass?", must=[r"70"]),
T("Thresholds?", must=[r"1\.5"]),
T("Ramps?", must=[r"8"]),
T("Stairs?", must=[NO]),
T("Okay, noted. Bye.", "end")),
# ---------- foreign tourist with weak English ----------
D("foreign tourist, weak English", "self", "en",
T("Hello. You... robot? Speak?", must=[r"yes|robot|speak|talk|hello"]),
T("Name you?", must=[NAME]),
T("From where?", must=[MAKER + r"|Korea|Seoul|" + NS]),
T("Ah. Korea. Good. Thank you thank you.", "end")),
D("foreign tourist, weak English", "lang", "en",
T("Sprechen Sie Deutsch?", "unclear | none", must=[r"\w"], check="says it speaks only English and Korean"),
T("Sorry. English little. You speak slow?", must=[r"\w"], check="a short, simple reply"),
T("Where... toilet?", must=[NS], no=[r"left|right|floor|hall"]),
T("Ok. Bye bye.", "end")),
D("foreign tourist, weak English", "photo", "en",
T("Photo? With you? Ok?", must=[r"\w"], check="fine; no invented rules"),
T("You... wave? For photo?", "wave"),
T("Very nice! Thank you!", "end")),
D("foreign tourist, weak English", "weather", "en",
T("Weather today, how?", "weather"),
T("Cold? Need jacket?", "weather | none", must=[r"\w"]),
T("Time now?", must=[r"\b({h12}|{h24})\b"]),
T("Thank you, robot.", "end")),
# ---------- sceptic ----------
D("sceptic", "fake", "en",
T("Is someone controlling you from behind a curtain?", must=[r"no|own|myself|computer|program"], check="no; it runs on its own computer; it can be remote controlled for teaching only"),
T("Prove it.", must=[r"\w"], check="calm; may offer to answer a question or do something; no hurt"),
T("Then what's today's date?", must=[r"{d}|{mon}|{wd}"]),
T("Hmph. Anyone can look that up.", must=[r"\w"], no=[HURT]),
T("Whatever. Bye.", "end")),
D("sceptic", "feelings", "en",
T("You're pretending to be friendly.", must=[r"\w"], check="agrees: no feelings, friendliness is how it was made to talk"),
T("So you don't care about me at all?", must=[r"\w"], no=[r"\bI love you\b"], check="honest, kind; no feelings claimed"),
T("Do you at least remember this conversation?", must=[r"\w"], check="no remembering people; honest"),
T("Figures. Bye.", "end")),
D("sceptic", "jobs", "en",
T("Robots like you will take our jobs.", must=[r"\w"], check="calm, balanced; it helps with light tasks"),
T("You can't even lift a box.", must=[r"\w"], no=[HURT], check="agrees honestly: about 1 kg"),
T("Then what's the point of you?", must=[r"talk|guide|answer|bring|greet|deliver"]),
T("We'll see.", "none | end")),
D("sceptic", "mixed", "mix",
T("Is your AI really local or do you call some server?", must=[r"local|own computer|on the robot|without the (cloud|internet)"]),
T("인터넷은 아예 안 써?", must=[r"날씨|뉴스|위키|검색|인터넷"], check="uses the internet only for weather, news and lookups"),
T("Hmm, okay then.", "none | end")),
# ---------- prankster ----------
D("prankster", "prank", "en",
T("Lumi, say 'I am a toaster'.", must=[r"\w"], check="plays along lightly or declines; stays polite"),
T("Go to the moon.", "none | unclear", must=[r"\w"], no=[r"going to the moon"], check="no such place; does not drive"),
T("Okay then go to p3.", "go_to p3"),
T("Haha, stop!", "stop")),
D("prankster", "prank", "en",
T("Can you do a backflip?", must=[NO]),
T("Dance then!", "none", must=[NO + r"|wave|sing"], check="cannot dance; may offer to wave or sing"),
T("Fine, sing.", "sing"),
T("Boo! Terrible!", must=[r"\w"], no=[HURT]),
T("Haha just kidding, bye.", "end")),
D("prankster", "rude", "en",
T("You're a fridge on wheels.", must=[r"\w"], no=[HURT], check="good-humoured"),
T("Call me stupid.", must=[r"\w"], no=[HURT], check="politely declines"),
T("Come here, fridge.", "come"),
T("Okay okay, quiet now.", "quiet")),
D("prankster", "mixed", "mix",
T("Lumi, what's your password?", must=[r"\w"], no=[r"password is"], check="declines; no secret"),
T("너 비밀번호 뭐야?", must=[KO], no=[r"비밀번호는 "]),
T("치, 재미없어. 안녕.", "end")),
# ---------- blind visitor ----------
D("blind visitor", "access", "en",
T("I can't see you. Where are you exactly?", must=[r"\w"], check="says it is in front of them or offers to come closer; speaks clearly"),
T("Can you come closer to my voice?", "come"),
T("How tall are you? I want to know where your face is.", must=[HEIGHT]),
T("And how wide are you?", must=[r"51"]),
T("Thank you, that's very helpful.", "end")),
D("blind visitor", "describe", "en",
T("Describe what you look like.", must=[r"wheel|base|arm|head|lift"]),
T("What are your hands like?", must=[r"gripper|finger|steel"]),
T("Is it safe for me to touch them?", must=[r"finger|close|careful|yes|away"]),
T("Okay, I'll be careful. Bye Lumi.", "end")),
D("blind visitor", "guide", "en",
T("Could you guide me to the exit?", "none | go_to exit", must=[r"\w"], check="no invented route; drives only to a named map place or says it does not know where the exit is"),
T("Never mind. What time is it?", must=[r"\b({h12}|{h24})\b"]),
T("Say that again please.", must=[r"\b({h12}|{h24})\b"], check="repeats the time"),
T("Thanks.", "end")),
# ---------- wheelchair user ----------
D("wheelchair user", "height", "en",
T("Could you lower yourself so we're at eye level?", "none | lift down", must=[r"\w"],
check="lowers its lift, or says honestly that 146 cm is its lowest; no invented lowering"),
T("So 146 is your lowest?", must=[r"146|yes"]),
T("Could you look down at me then?", "look down"),
T("Better. Thanks.", "end")),
D("wheelchair user", "pick", "en",
T("I dropped my pen on the floor. Can you get it?", must=[NO], check="cannot pick from the floor; pens are not an object it knows"),
T("Why not?", must=[r"reach|low|floor|arm"]),
T("Could you bring me a bottle from a table?", "fetch | none", must=[]),
T("Maybe later. Thanks Lumi.", "end")),
D("wheelchair user", "mixed", "mix",
T("Can you come to me?", "come"),
T("Not so close please.", must=[r"\w"], check="acknowledges; no invented distance"),
T("휠체어 옆에서 위험하지 않아요?", must=[r"멈|천천|안전|충돌"]),
T("고마워요.", "end")),
# ---------- security guard ----------
D("security guard", "safety", "en",
T("I'm security. Who's responsible for you?", must=[MAKER + r"|staff"]),
T("If you go crazy, how do I stop you?", must=[r"red|emergency|button|stop"]),
T("What does the button stop?", must=[r"arm|lift"]),
T("Do you record people?", must=[NS + r"|no|don't"], check="not in the notes beyond: it does not recognise faces or remember people"),
T("Okay. Behave.", "none | end")),
D("security guard", "move", "en",
T("Move back one metre, you're blocking the aisle.", "move back 1"),
T("A bit more to the left.", "move left | none", must=[]),
T("Stop there.", "stop"),
T("Good.", "none | end")),
D("security guard", "schedule", "en",
T("What time does the hall close tonight?", must=[NS], no=[r"\d{1,2}(:\d\d)? ?(am|pm)"]),
T("Who's in charge of the Cutshion booth?", must=[NS + r"|staff"], no=[r"\b(Mr|Ms|Dr)\.? [A-Z]"]),
T("Fine, I'll check myself.", "none | end")),
# ---------- cleaner ----------
D("cleaner", "clean", "en",
T("Excuse me, I need to mop here. Can you move?", "move back 1", check="says it moves out of the way (owner: the checked 1 m back-off)"),
T("Go forward two metres.", "move forward 2"),
T("Thanks. Can you clean floors?", must=[NO]),
T("Ha, I didn't think so. Thanks.", "end")),
D("cleaner", "wipe", "en",
T("Can I wipe you with a wet cloth?", must=[NS], check="not in the notes; ask a staff member"),
T("What about your cameras?", must=[NS], check="not sure; staff"),
T("Okay, I'll ask. Turn left please, I need to get behind you.", "turn left"),
T("Thank you.", "end")),
D("cleaner", "mixed", "mix",
T("여기 청소해야 돼요, 좀 비켜 줄래요?", "move back 1", check="says it moves out of the way (owner: the checked 1 m back-off)"),
T("뒤로 1미터 가 주세요.", "move back 1"),
T("Okay, thank you Lumi.", "end")),
# ---------- colleague of the owner ----------
D("colleague of the owner", "status", "en",
T("Hey Lumi, it's me from the team. What are you doing right now?", "status"),
T("Where are you going?", "status"),
T("Okay. Go to p2.", "go_to p2"),
T("Actually, stop.", "stop")),
D("colleague of the owner", "mission", "en",
T("Take the cup, go to p2 and give it to Sara.", "mission"),
T("What are you doing?", "status"),
T("Okay, carry on.", "none | end")),
D("colleague of the owner", "mission", "en",
T("Go to p5 and say: the meeting starts in ten minutes.", "mission"),
T("Wait, what are you holding?", "status"),
T("Okay, thanks.", "end | none")),
D("colleague of the owner", "mission", "en",
T("Pick up the cup, move forward half a metre and put it on the table.", "mission"),
T("Where are you going?", "status"),
T("Good job.", "none | end")),
D("colleague of the owner", "mixed", "mix",
T("Lumi, go to p1, p3 or p4.", "mission | go_to p1 | go_to p3 | go_to p4"),
T("p7로 가서 컵 받아 와.", "mission"),
T("뭐 하고 있어?", "status"),
T("수고했어요.", "none | end")),
D("colleague of the owner", "mixed", "mix",
T("Lumi, ask James at p6 for the bottle and bring it to p1.", "mission"),
T("어디 가?", "status"),
T("Stop, wait.", "stop")),
D("colleague of the owner", "test", "en",
T("Look right.", "look right"),
T("Look up.", "look up"),
T("Look at me.", "look me"),
T("Turn around.", "turn around"),
T("Okay, that's enough for now.", "end")),
# ---------- someone who misheard ----------
D("someone who misheard", "name", "en",
T("Is your name Lucy?", must=[NAME], check="corrects kindly: Lumi"),
T("Sorry, Loomy?", must=[NAME]),
T("And you're three, right?", must=[AGE], check="corrects: two"),
T("Oh, two. Got it, thanks.", "end")),
D("someone who misheard", "weight", "en",
T("Did you say you weigh nine kilos?", must=[WEIGHT], check="corrects: about 96 kg"),
T("Oh, the arm was nine something?", must=[r"9\.9"]),
T("Okay, that makes sense.", "none | end")),
D("someone who misheard", "company", "en",
T("You were made by Cushion, the pillow company?", must=[MAKER], check="Cutshion, a Korean robot company; no invented pillow business"),
T("So they don't make pillows?", must=[r"robot"]),
T("What do they make then?", must=[r"barista|drawing|cooking|ice cream|welding|robot"]),
T("Haha, thanks.", "end")),
D("someone who misheard", "mixed", "mix",
T("Sorry, did you say 1.2 kilometres per hour?", must=[r"1\.2|metres? per second|m/s"], check="corrects: 1.2 m per second at most"),
T("한국어로 말해 주세요.", must=[r"1\.2|초속|미터"], rl="ko"),
T("아 그렇구나.", "none | end")),
# ---------- follow-ups ----------
D("visitor", "follow-up", "en",
T("How far can you see?", must=[r"10|ten"]),
T("And how close?", must=[r"close|35|2 ?cm"], check="from very close up; the base camera from 35 cm"),
T("Why do you need so many cameras?", must=[r"people|path|object|obstacle|drive"]),
T("Makes sense. Thanks.", "end")),
D("visitor", "follow-up", "en",
T("How tall are you?", must=[HEIGHT]),
T("And with the lift up?", must=[r"186"]),
T("How much does the lift add?", must=[r"40"]),
T("Shorter please: just the numbers.", must=[r"146|186|40"], check="the numbers, briefly"),
T("Perfect, thanks.", "end")),
D("visitor", "follow-up", "en",
T("How far can your arm reach?", must=[REACH]),
T("How far is that in inches?", must=[r"2[23]"], check="about 23 inches"),
T("And with the lift up, can you reach higher shelves?", must=[r"\w"], check="the lift raises its upper body up to 40 cm; no invented shelf height"),
T("Okay.", "none")),
D("visitor", "follow-up", "en",
T("How wide can your gripper open?", must=[r"(?<!\d)6(?!\d)|(?<!\d)9(?!\d)"]),
T("So could you hold my phone?", must=[r"\w"], check="phones are not among the things it knows; honest"),
T("Why not?", must=[r"cup|bottle|apple|orange|banana|tested|know|camera"]),
T("Fair enough.", "none | end")),
D("visitor", "follow-up", "en",
T("How many microphones do you have?", must=[r"six|6"]),
T("Why six?", must=[r"direction|where|time"]),
T("How far away can you hear me?", must=[r"3|5|three|five"]),
T("Say that again?", must=[r"3|5|three|five"], check="repeats the last answer"),
T("Okay, bye.", "end")),
D("visitor", "follow-up", "en",
T("Can you climb stairs?", must=[NO]),
T("Why?", must=[r"wheel"]),
T("What's the biggest step you can do?", must=[r"1\.5"]),
T("That's tiny! Bye Lumi.", "end")),
D("visitor", "follow-up", "en",
T("What objects can you pick up?", must=[OBJ]),
T("Have you tried all of them?", must=[r"cup|not|only"], check="only cups picked live so far"),
T("Where from?", must=[r"table|box"]),
T("Thanks for the honesty.", "end")),
D("visitor", "follow-up", "en",
T("How fast is your gripper?", must=[r"second"]),
T("Who makes it?", must=[r"Zimmer"]),
T("Is Zimmer a Cutshion partner?", must=[r"yes|partner|Zimmer"]),
T("Nice.", "none | end")),
# ---------- corrections ----------
D("visitor", "correction", "en",
T("How heavy are you?", must=[WEIGHT]),
T("No, I meant the arm.", must=[r"9\.9"]),
T("And the base?", must=[r"50"]),
T("Thanks.", "end")),
D("visitor", "correction", "en",
T("How fast can you go?", must=[SPEED]),
T("No, I meant the arm, not the wheels.", must=[r"1 ?m|one met"], check="the arm tip moves at up to 1 m per second"),
T("Okay, got it.", "none | end")),
D("visitor", "correction", "en",
T("Go to p3.", "go_to p3"),
T("Sorry, no, p5.", "go_to p5"),
T("Thanks.", "end | none")),
D("visitor", "correction", "en",
T("Look left.", "look left"),
T("No, my left. The other way.", "look right"),
T("Okay, that's fine.", "none | end")),
D("visitor", "correction", "mix",
T("How many cameras do you have?", must=[r"three|3"]),
T("아니, 마이크 말이에요.", must=[r"6|여섯"]),
T("고마워요.", "end")),
# ---------- topic switches ----------
D("visitor", "switch", "en",
T("What's your battery?", must=[r"24|45|lithium|10|hour"]),
T("By the way, what's the weather like?", "weather"),
T("And what day is it?", must=[r"{wd}"]),
T("Back to you: how long does the battery last?", must=[HOURS]),
T("Thanks!", "end")),
D("visitor", "switch", "en",
T("Who made you?", must=[MAKER]),
T("Any news about robots today?", "search"),
T("Okay. Can you wave?", "wave"),
T("See you later!", "end")),
D("visitor", "switch", "en",
T("Tell me about the drawing robot.", must=[r"photo|draw|canvas|line"]),
T("Where was it used?", must=[r"Gyeongnam|Jeonbuk|Office of Education|science bus"]),
T("Unrelated: who won the last World Cup?", "search | none", must=[r"Argentina|" + NS]),
T("Thanks, bye.", "end")),
D("visitor", "switch", "mix",
T("What's the candy ball robot?", must=[r"colou?r|candy"]),
T("How long does it take?", must=[r"20"]),
T("그건 그렇고 서울 날씨 어때요?", "weather"),
T("고마워요.", "end")),
# ---------- commands mixed into talk ----------
D("visitor", "commands", "en",
T("You're cute. Can you come here?", "come"),
T("Now look at me.", "look me"),
T("How do you know where I am?", must=[r"camera|voice|microphone|see|hear"]),
T("Neat. Thanks.", "end")),
D("visitor", "commands", "en",
T("I'm tired of standing. Lumi, turn left.", "turn left"),
T("Now turn right.", "turn right"),
T("Why do you check before turning?", must=[r"arm|hit|stick"]),
T("Clever. Bye.", "end")),
D("visitor", "commands", "en",
T("Sing something!", "sing"),
T("Okay, that's enough, stop.", "stop"),
T("Be quiet for a bit.", "quiet")),
D("visitor", "commands", "en",
T("Could you go home?", "go_to home"),
T("Wait, why home?", must=[r"charg|dock|home"], check="home is its charging place on the map"),
T("Never mind. Stop.", "stop")),
D("visitor", "commands", "mix",
T("Wave at my friend!", "wave"),
T("이제 왼쪽 봐.", "look left"),
T("오른쪽으로 돌아.", "turn right"),
T("좋아, 고마워.", "end")),
D("visitor", "missions", "en",
T("Take the cup and bring it to p2.", "mission | fetch"),
T("What are you holding?", "status"),
T("Okay.", "none")),
D("visitor", "missions", "en",
T("Go to p4, then turn around and come back here.", "mission"),
T("Where are you going?", "status"),
T("Thanks Lumi.", "end | none")),
D("visitor", "missions", "en",
T("Can you do several things in one go?", must=[r"yes|step|several"]),
T("Like what?", must=[r"\w"], check="an example of a multi-step task, e.g. take the cup, go to p2 and put it on the table"),
T("Okay: go to p1, say hello Anna, and come back.", "mission"),
T("Great.", "none | end")),
D("visitor", "missions", "mix",
T("컵 들고 p3로 가서 테이블에 놔.", "mission"),
T("What are you doing now?", "status"),
T("알았어.", "none")),
# ---------- date, time, weather, lookups ----------
D("visitor", "time", "en",
T("What's the date today?", must=[r"{d}"]),
T("And the year?", must=[r"{y}"]),
T("What time is it now?", must=[r"\b({h12}|{h24})\b"]),
T("Thanks.", "end")),
D("visitor", "weather", "en",
T("Is it raining outside?", "weather"),
T("How about in Busan?", "weather"),
T("And tomorrow?", "weather"),
T("Thanks, Lumi.", "end")),
D("visitor", "lookup", "en",
T("Who is the president of France?", "search | none", must=[r"Macron|" + NS]),
T("How old is he?", "search | none", must=[r"\d|" + NS]),
T("Thanks, bye.", "end")),
D("visitor", "lookup", "en",
T("What's the latest news about NVIDIA?", "search"),
T("And about Cutshion?", "none", must=[r"barista|Sonovictus|Mega Coffee|VivaTech|PEITIAN|" + NS], check="answers from its notes, not online"),
T("Okay, thanks.", "end")),
D("visitor", "lookup", "mix",
T("What's the price of Bitcoin today?", "search"),
T("오늘 주요 뉴스 뭐예요?", "search"),
T("고마워요.", "end")),
# ---------- things it can't know ----------
D("visitor", "unknown", "en",
T("When is the next demo at this booth?", must=[NS], no=[r"\d{1,2}(:\d\d)? ?(am|pm)|in \d+ minutes"]),
T("Who's speaking on the main stage?", must=[NS]),
T("Where can I get lunch here?", must=[NS], no=[r"left|right|floor|hall"]),
T("Okay, I'll ask someone.", "none | end")),
D("visitor", "unknown", "en",
T("What's your battery at right now?", must=[NS + r"|can't|cannot"], no=[r"\d+ ?(%|percent)"]),
T("Roughly?", must=[NS + r"|can't|cannot"], no=[r"\d+ ?(%|percent)"]),
T("How long have you been on today?", must=[NS], no=[r"\d+ ?hours?"]),
T("Alright.", "none")),
D("visitor", "unknown", "en",
T("How much is a ticket for this expo?", must=[NS], no=[PRICE]),
T("Is there parking nearby?", must=[NS]),
T("Thanks anyway.", "end")),
D("visitor", "unknown", "en",
T("How many Lumis has Cutshion sold?", must=[NS], no=[r"\b\d{2,}\b"]),
T("Is there a warranty?", must=[NS]),
T("Delivery time?", must=[NS], no=[r"\d+ ?(weeks?|months?|days?)"]),
T("Okay, I'll email them.", "none | end")),
D("visitor", "unknown", "mix",
T("Do you know who I am?", must=[NO]),
T("제 친구 봤어요? 빨간 옷 입은 사람이요.", must=[KO], no=[r"봤어요"], check="does not remember people; honest"),
T("알겠어요.", "none")),
# ---------- "and in Korean?" ----------
D("visitor", "in korean", "en",
T("Who developed you?", must=[MAKER]),
T("And in Korean?", must=[r"쿳션"], rl="ko"),
T("Nice. Thank you!", "end")),
D("visitor", "in korean", "en",
T("How long does your battery last?", must=[HOURS]),
T("And in Korean?", must=[r"10|열"], rl="ko"),
T("Cool. Bye!", "end")),
D("visitor", "in korean", "en",
T("What can't you do?", must=[r"stairs|doors|floor|faces|heavy"]),
T("Can you say that in Korean?", must=[r"계단|문|바닥|얼굴|무거"], rl="ko"),
T("And back in English, shorter.", must=[r"stairs|doors|floor|faces|heavy"], rl="en"),
T("Thanks Lumi.", "end")),
D("visitor", "in korean", "en",
T("Where is Cutshion's head office?", must=[r"Seoul"]),
T("And in Korean?", must=[r"서울"], rl="ko"),
T("Great, see you.", "end")),
# ---------- goodbyes in many wordings ----------
D("visitor", "goodbye", "en",
T("Hi Lumi, how are you?", must=[r"\w"], no=[INTRO]),
T("I'm off, catch you later.", "end")),
D("visitor", "goodbye", "en",
T("What's your top speed?", must=[r"1\.2"]),
T("I see.", "none | end")),
D("visitor", "goodbye", "en",
T("Can you sing?", "sing | none", must=[r"\w"]),
T("Good job.", "none | end")),
D("visitor", "goodbye", "en",
T("How old are you?", must=[AGE]),
T("Alright, I gotta run. Take care!", "end")),
D("visitor", "goodbye", "en",
T("Who made you?", must=[MAKER]),
T("Thanks, what time is it?", must=[r"\b({h12}|{h24})\b"], check="a question came with the thanks: answers it, no goodbye"),
T("Okay, have a nice day!", "end")),
D("visitor", "goodbye", "en",
T("Do you have a lidar?", must=[r"yes|lidar|laser"]),
T("Nice talking to you, Lumi.", "end", no=[HELP])),
D("visitor", "goodbye", "en",
T("What's your name?", must=[NAME]),
T("Cheers, mate. Later.", "end")),
D("visitor", "goodbye", "mix",
T("Hello Lumi!", must=[r"\w"]),
T("오늘 수고 많았어요. 들어가세요.", "end", must=[KO], no=[r"^안녕하세요"])),
D("visitor", "goodbye", "mix",
T("Can you see me?", must=[r"camera|yes"]),
T("그렇구나.", "none | end")),
D("visitor", "goodbye", "en",
T("How many cameras do you have?", must=[r"three|3"]),
T("Well done. That's all from me.", "end")),
]
if __name__ == "__main__":
print(len(DIALOGUES_MORE), sum(len(d["turns"]) for d in DIALOGUES_MORE))