feat: add conversation gaze behavior#72
Open
xuruiray wants to merge 3 commits into
Open
Conversation
Summary: - Add ConversationGazeModifier to hold a focused eye/head pose while AI Agent is listening or speaking. - Attach and remove it from Xiaozhi display status transitions. - Expose normalized target input for future face or audio tracking. Rationale: - Gives StackChan a stable conversation gaze behavior without adding heavy vision dependencies. Tests: - . /Users/xurui/esp/esp-idf-v5.5.4/export.sh >/tmp/idf554_export.log 2>&1 && idf.py build Co-authored-by: Codex <codex@openai.com>
Summary: - Add lightweight visual target detection to StackChanCamera using sampled skin and motion cues. - Feed detected camera targets into ConversationGazeModifier during listening and speaking. - Guard camera frame access with a mutex while sharing capture paths. Tests: - . /Users/xurui/esp/esp-idf-v5.5.4/export.sh >/tmp/idf554_export.log 2>&1 && idf.py build - . /Users/xurui/esp/esp-idf-v5.5.4/export.sh >/tmp/idf554_export.log 2>&1 && idf.py -p /dev/cu.usbmodem21301 flash - . /Users/xurui/esp/esp-idf-v5.5.4/export.sh >/tmp/idf554_export.log 2>&1 && idf.py -p /dev/cu.usbmodem21301 monitor Co-authored-by: Codex <codex@openai.com>
Author
|
wip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ConversationGazeModifierfor AI Agent conversation states.LISTENINGorSPEAKING, then removes the modifier when the display returns to other statuses.Notes
Test plan
/Users/xurui/esp/esp-idf-v5.5.4.python3 ./fetch_repos.py.. /Users/xurui/esp/esp-idf-v5.5.4/export.sh >/tmp/idf554_export.log 2>&1 && idf.py build./dev/cu.usbmodem21301withidf.py -p /dev/cu.usbmodem21301 flash.idf.py -p /dev/cu.usbmodem21301 monitor; boot, PSRAM, LCD, camera, touch, RTC, IMU, servo, LVGL, Launcher, and AI Agent initialization completed without panic/backtrace/reboot loop during the observed startup window.