Improve attention, voice direction, reach, pick and follow from live feedback

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 20:22:32 +09:00
co-authored by Claude Opus 5.5
parent 2e8dc226ff
commit e3fa2d95b3
92 changed files with 2183 additions and 307 deletions
+15 -3
View File
@@ -23,7 +23,9 @@ Every value here is a constant at the top of its file, with a comment on what it
| `robot/motion.py` | `STILL_S` | 2 s | An arm standing this long short of its target has stopped short: stopped, nothing more sent |
| `robot/motion.py` | `SETTLE_S` | 0.3 s | After each arrival (inpos, joints within 0.3°) the arm stands this long before the next move of a route or wave. Estimate |
| `manipulation/arm_route.py` | `HEAD_CLEAR_MM` | 250 mm | The gripper (flange, grasp point, finger tips) keeps this from the head's turning centre (`head_cam.head_centre()`) on every pose-graph move, the wave and straight moves with an object. The head camera is 102 mm from that centre; `look` keeps 327 mm. Estimate (head size not measured) |
| `manipulation/arm_route.py` | `EDGES` | give–carry, carry–look, look–wave_out, wave_out–wave_start, wave_start–wave, look–ready | The only joint moves between named poses |
| `manipulation/arm_route.py` | `EDGES` | give–carry, carry–look, look–wave_out, wave_out–wave_start, wave_start–wave, look–ready | The only joint moves between named poses with something in the hand (never a `WAVE_POSES` pose); with an empty hand they win ties |
| `manipulation/arm_route.py` | `NO_EDGES` | look–wave_start | Pose pairs never joined by one joint move with an empty hand (any other pair may be, when its move passes the checks) |
| `manipulation/arm_route.py` | `STOP_DEG` | 10° | Joint travel one more stop on an empty-hand route counts as when routes are compared (estimate) |
| `manipulation/arm_route.py` | `LINK_HEAD_CLEAR_MM` | 220 mm | Every arm link (elbow, wrist) keeps this from the head's turning centre on every pose-graph move. Estimate below the least of the taught graph (267 mm at `wave`) |
| `manipulation/arm_route.py` | `JOIN_DEG` | 20° | An arm at no pose (free drive, stopped half way) joins the graph by one checked joint move to a pose, the nearest first; joins further than this run at the slow speed |
| `manipulation/arm_route.py` | `UP_MM` | 100, 200 mm | When no direct join passes the checks, the arm first goes this far straight up, then joins |
@@ -48,6 +50,9 @@ Every value here is a constant at the top of its file, with a comment on what it
| `robot/nav_guard.py` | `MARGIN_M`, `LOOKAHEAD_M`, `STEP_M`, `TURN_AHEAD_S` | 0.10 m, 0.30 m, 0.15 m, 0.5 s | While navigation drives (go to, missions, fetch legs, come here, dock): flange, grasp point and finger tips are checked at the base's pose, turned on at its turn rate for `TURN_AHEAD_S`, and every `STEP_M` along the planned path up to `LOOKAHEAD_M`; an arm point nearer than `MARGIN_M` to anything the lidar / map shows (and nearer than now) cancels the move. Estimates |
| `robot/nav_guard.py` | `CLEAR_S`, `BLOCK_S` | 1 s, 10 s | The same goal is sent again after the way has been clear this long; blocked this long in all: "I stopped: my arm would hit something on the way" |
| `tasks/fetch.py` | `STUCK_S`, `STUCK_M` | 30 s, 0.1 m | A navigation drive that has not moved this far in this time is cancelled |
| `assistant/lumi.py` | `LOOK_ME_PITCH`, `LOOK_ME_TOP_ROW`, `LOOK_ME_UP_STEP`, `LOOK_ME_MIN_DEG`, `LOOK_ME_TRIES`, `LOOK_ME_SETTLE_S` | 0°, 0.08, 10°, 2°, 3, 0.6 s | "Look at me": first head pitch (level); then the head tilts until the person's head sits this share of the image height from the top, tilting up a step while their head is cut, smaller changes not made, at most this many times, each after this wait for new frames |
| `assistant/lumi.py` | `LOOK_WAIST_MAX` | 120° | "Look at me" from past the head's reach with Patrol off: the waist turns in place at most this far (with Patrol the base turns) |
| `assistant/lumi.py` | `FOCUS_EVERY_S`, `FOCUS_DEG`, `FOCUS_REFIND_DEG` | 0.5 s, 8°, 15° | Keeping the head on the person Lumi talks with: checked this often, followed once they are this far off the head's direction; a lost track's person is taken again as a new track within this angle |
| `assistant/lumi.py` | `FOLLOW_VOICE_DEG`, `FOLLOW_SORRY_S` | 35°, 20 s | While following, a voice this near the followed person's angle is theirs (estimate); the "I'm following someone" line at most this often |
| `tasks/follow.py` | `FOLLOW_GAP_M`, `NEAR_STOP_M` | 1.0 m, 0.8 m | "Follow me": camera distance kept to the person (nearer: no forward); nearer than `NEAR_STOP_M` no turn either. Estimate |
| `tasks/follow.py` | `FOLLOW_MAX_MS`, `SPEED_GAIN` | 0.5 m/s, 0.8 /s | Follow speed cap (joy_control's own clamp, [05_AGV_BASE.md](05_AGV_BASE.md)); speed = their walking speed + this per m beyond the gap |
@@ -57,7 +62,8 @@ Every value here is a constant at the top of its file, with a comment on what it
| `tasks/follow.py` | `STALE_S`, `COAST_S`, `LOST_S` | 0.4 s, 1.0 s, 3 s | A sighting older than `STALE_S` is not new; unseen, the base drives on toward where they should be for `COAST_S`, then slows; "I lost you" after `LOST_S` |
| `tasks/follow.py` | `VEL_TAU_S`, `WALK_MAX_MS` | 0.5 s, 2 m/s | Walking-velocity filter time constant; faster estimates are noise |
| `tasks/follow.py` | `JUMP_M`, `GATE_GROW_MS`, `SWITCH_M`, `RELOCK_LOOK` | 0.5 m, 0.7 m/s, 0.15 m, 0.6 | Keeping the person: a sighting further than `JUMP_M` (+ `GATE_GROW_MS` per s unseen) from where they should be is someone else; another track must be `SWITCH_M` nearer to be taken; clothes `reid.same` below `RELOCK_LOOK` never taken. Estimates |
| `tasks/follow.py` | `HEAD_YAW_MAX`, `HEAD_PITCH`, `HEAD_STEP_DEG`, `HEAD_LEAD_S`, `HEAD_VEL` | 180°, 10°, 3°, 0.3 s, 50 % | Head on the person while following: yaw limit (the body API range; right behind it keeps the side it came from), fixed pitch, smallest move, sent where they will be this much later, speed |
| `tasks/follow.py` | `HEAD_REL_MAX`, `HEAD_PITCH`, `HEAD_STEP_DEG`, `HEAD_LEAD_S`, `HEAD_VEL` | 30°, 10°, 3°, 0.3 s, 50 % | Head on the person while following: always straight on them (up to ±180° on the waist); a person further than `HEAD_REL_MAX` from the base heading turns the waist for the rest; fixed pitch, smallest move, sent where they will be this much later, speed |
| `tasks/follow.py` | `WAIST_FOLLOW_MAX`, `WAIST_STEP_DEG`, `WAIST_FOLLOW_VEL`, `WAIST_DRIVE_DEG`, `WAIST_RETRY_S` | 90°, 8°, 50 %, 15°, 1 s | Waist toward the person while following, at the same time as the head and the base: at most this far from the front (the base turns for the rest; it unwinds as the base turns), at most `WAIST_STEP_DEG` per body move (the head goes to its full target in the same move) at `WAIST_FOLLOW_VEL`, each step checked along the arm's sweep; the base drives forward only with the person near ahead and the waist within `WAIST_DRIVE_DEG` of the front; a blocked waist turn is tried again after `WAIST_RETRY_S`. Estimates |
| `tasks/follow.py` | `BRAKE_S`, `BLOCKED_END_S` | 0.5 s, 5 s | Each command is checked where the base (`BASE_HALF_M + CLEAR_M`) and the arm (`ARM_CLEAR_M`) would be this much later; blocked this long: "Something is in my way" |
| `tasks/follow.py` | `TICK_S`, `LOG_S` | 0.1 s, 1 s | Command rate (steady); `follow: v … w … driven … person … head … tick` line (driven = the base's real speed from its pose) in `logs/lumi_console.log` |
| `assistant/lumi.py` | `MATCH_DEG_PER_M` | 10 °/m | Person tracking: each m of distance difference counts as this many degrees when a detection is given to a track. Estimate |
@@ -123,7 +129,7 @@ Every value here is a constant at the top of its file, with a comment on what it
| `assistant/steps.py` | `WAIT_ORDER_S` | 5 min | "do what they tell you": no instruction by then, the mission goes on with its rest |
| `tasks/fetch.py` | `RECEIVE_REACH_MM`, `RECEIVE_SHORT_MM`, `RECEIVE_MIN_MM` | 150, 100, 20 mm | "Take this from my hand" and "reach out to me": the hand moves at most this far from `give` towards the thing in the hand (or their hand), stops this far before it, leaves out a shorter move. Estimates |
| `tasks/fetch.py` | `REACH_BODY_MM` | 300 mm | "Reach out to me" with no hand of theirs seen: the hand stops this far before the person's body. Estimate |
| `assistant/lumi.py` | `REACH_FRONT_DEG` | 20° | "Reach out to me": a person further to the side is turned to first with the waist (Patrol) or asked to stand in front (Greeter). Estimate |
| `assistant/lumi.py` | `REACH_FRONT_DEG` | 20° | "Reach out to me": a person further to the side is turned to first with the waist (Greeter or Patrol; the base stays). Estimate |
| `assistant/lumi.py` | `REACH_HOLD_S` | 30 s | The hand stays held out this long after a reach without "thanks" / "okay", then the arm folds back to `look`. Estimate |
| `tasks/fetch.py` | `POINT_STEPS_MM` | 0, ±50, ±100 mm | "Put it here" with pointing: spot grid around the pointed point |
| `tasks/fetch.py` | `RECEIVE_DI_S` | 0.5 s | `receive`: the finger sensor (DI_1) must see something this long before Lumi asks the person to let go (the hand closes on their "okay") |
@@ -182,6 +188,10 @@ Every value here is a constant at the top of its file, with a comment on what it
| `audio/mouth.py` | `STEPS` | 4 | Supertonic synthesis steps (quality / speed). On the GPU a step takes a few ms, on the CPU 0.1–0.27 s |
| `audio/mouth.py` | `NOISE_SEED` | 7 | The fixed noise every sentence starts from (one voice for every sentence; another seed is a slightly different voice) |
| `audio/mouth.py` | `ECHO_MIN`, `ECHO_TOP_DB`, `ECHO_MIN_FRAMES`, `ECHO_LAG_S`, `ECHO_KEEP_S` | 0.6, 15 dB, 12, −0.3…1.0 s, 30 s | Lumi's own voice in the clip mic: a clip-mic utterance whose spectrogram (16 bands, its frames within `ECHO_TOP_DB` of its loudest, at least `ECHO_MIN_FRAMES`) correlates at least `ECHO_MIN` with what the speaker played `ECHO_LAG_S` earlier is dropped before whisper (`mouth.own_voice`; check: `tests/echo_check.py`). Estimate |
| `audio/mic.py` | `PEEK_S`, `PEEK_WINDOW_S`, `PEEK_MIN_S` | 0.7 s, 2.0 s, 0.5 s | While Lumi talks or sings, its own voice in the clip mic keeps an utterance from ending: every `PEEK_S` its last `PEEK_WINDOW_S` are transcribed (from `PEEK_MIN_S` on) and a stop word in them stops Lumi at once (`lumi.peeked_stop`). Each check is one whisper run (~0.5 s on the GPU) |
| `audio/doa.py` | `CLIP_MAX_LAG_S`, `CLIP_MIN_SCORE` | 0.3 s, 8 | Sound direction with the clip mic (used only with `USE_CLIP_REF`, off: live confidences 0.03–0.07): how far apart in time the clip voice is looked for in the head array's audio, and how clearly it must be found there (correlation peak over its spread; unrelated audio gives 3–5). Below it the plain array estimate is used |
| `assistant/lumi.py` | `DOA_MIN_CONF`, `DOA_CLIP_MIN_CONF` | 0.12, 0.05 | Sound direction trusted from this confidence: plain array estimate / clip voice found in the array (clip-weighted confidences run lower). `DOA_CLIP_MIN_CONF`: estimate |
| `assistant/lumi.py` | `VOICE_KEEP_S` | 20 s | A sure voice direction stands this long for following words whose own direction is too weak |
| `audio/tts_gpu.py` | `MAX_LEN` | 640 | Longest text / latent (~44 s of speech) the TensorRT engines take; longer goes to the CPU. A change needs `tts_gpu.py build` |
| `audio/ears.py` | `WHISPER_MODEL` | `ggml-large-v3-turbo.bin` (f16) | Speech-to-text model; takes effect when the whisper-server is started again (check: `tests/asr_check.py`) |
| `audio/ears.py` | `PROMPT`, `LANG_PROMPT` | "Hi Lumi. Hey Lumi. 루미야."; one per language | Whisper's prompt (spells the name); `LANG_PROMPT` when asked again in one language |
@@ -192,6 +202,8 @@ Every value here is a constant at the top of its file, with a comment on what it
| `audio/ears.py` | `NOT_SAID` | no word, a leading "-", 자막 / 시청해 주셔서 / thanks for watching | Whisper's subtitle texts for music, dropped |
| `audio/ears.py` | `BEAM_SIZE` | 0 (greedy) | Whisper beam search |
| `audio/sing.py` | `BANK_SIM`, `BANK_MARGIN` | 0.80, 0.05 | Song bank (`assistant/song_bank.py`): words this similar (bge-m3) to a wording that asks for a song / the songs, and this much closer than to any wording of another kind, sing / list at once without the LLM. Lower catches more and risks wrong songs |
| `audio/sing.py` | `REPEAT_S` | 10 s | After a song starts, its request said again within this time is a repeat and does not stop the song |
| `audio/sing.py` | `SPEECH_PER_SYLLABLE` | 0.12 s | Words heard over a song need this much speech per syllable, else they came from the music and don't stop the song |
| `audio/sing.py` | `BANK_MIN_WORDS` | 3 | The song bank reads only words with a song / music word and at least this many words |
| `audio/ears.py` | `MERGE_WAIT_S` | 1.5 s | A sentence cut off by a pause (it ends on "let's", "can you", "and", "저기" …: `CUT_OFF`) waits this long for the rest, heard as one sentence (`mic.END_SILENCE` is 0.6 s) |
| `audio/mic.py` | `EARLY_QUIET_S`, `EARLY_MIN_S`, `EARLY_MAX_S` | 0.3 s, 0.4 s, 4.0 s | After this much quiet inside an utterance (0.4–4 s long so far) whisper starts on it; the result is used when the utterance ends with no new speech. Longer utterances are talk with pauses, where each early run delays the last |