Skip to content

Conversation

@txp666
Copy link
Contributor

@txp666 txp666 commented Apr 1, 2025

增加GIF大表情播放界面:
目前测试了ESP32S3N16R8+240*240,暗黑模式效果更佳

otto.mp4

txp666 added 2 commits April 1, 2025 19:36
增加GIF大表情播放界面:
目前测试了ESP32S3N16R8+240*240,暗黑模式效果更佳
@txp666
Copy link
Contributor Author

txp666 commented Apr 1, 2025

增加OttoRobot板的支持

ottoShow.mp4

@isamu2025
Copy link

大佬,立创上没有你开源项目,或者在什么店铺里有出售。

@txp666
Copy link
Contributor Author

txp666 commented Apr 6, 2025

大佬,立创上没有你开源项目,或者在什么店铺里有出售。

要过几天,在审核

@isamu2025
Copy link

大佬,立创上没有你开源项目,或者在什么店铺里有出售。

要过几天,在审核
期待中

@xunnew18
Copy link

我尝试增加一个自定义的表情,编译就会报错 cmd.exe /C "cd . && D:\setup\espidf\tools\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32S3=0 -Wl,--Map=D:/AiHard/xiaozhi-esp32-otto/build/xiaozhi.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32s3.peripherals.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.wdt.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib.ld -T memory.ld -T sections.ld @CMakeFiles\xiaozhi.elf.rsp -o xiaozhi.elf && cd ."
D:/setup/espidf/tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(lcd_display.cc.obj):(.rodata+0x10): undefined reference to `girlhappy'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

  • The terminal process "d:\setup\espidf\tools\tools\ninja\1.11.1\ninja.exe" terminated with exit code: 1.

@txp666
Copy link
Contributor Author

txp666 commented Apr 10, 2025

我尝试增加一个自定义的表情,编译就会报错 cmd.exe /C "cd . && D:\setup\espidf\tools\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32S3=0 -Wl,--Map=D:/AiHard/xiaozhi-esp32-otto/build/xiaozhi.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32s3.peripherals.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.wdt.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib.ld -T memory.ld -T sections.ld @CMakeFiles\xiaozhi.elf.rsp -o xiaozhi.elf && cd ." D:/setup/espidf/tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(lcd_display.cc.obj):(.rodata+0x10): undefined reference to `girlhappy' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed.

  • The terminal process "d:\setup\espidf\tools\tools\ninja\1.11.1\ninja.exe" terminated with exit code: 1.

首先下面的代码可以直接上传文件,建议删一下;
自定义表情添加步骤:
1、 main/assets/gif 文件夹添加表情c代码
2、main/display/lcd_display.cc 18-25行声明一下新增的表情
3、main/display/lcd_display.cc 689-692 新增表情

txp666 and others added 7 commits April 22, 2025 12:34
1.修改otto-robot目录与文件风格与主仓库一致
2删除otto任务超时机制,任务结束自动删除,修复突然“瘫痪”bug
- 类成员变量:修改为下划线后缀(如 amplitude_)
- 方法名:修改为首字母大写的驼峰式(如 Walk, AttachServos)
- 参数名:使用更具描述性的名称(如 period 代替 T, height 代替 h)
- 常量名:使用全大写下划线式(如 RIGHT_LEG_PIN)
@78
Copy link
Owner

78 commented Apr 26, 2025

你好,还需要做一点小改动。

  1. 图片大小控制在50KB以内,保持跟其他代码相同的约定。
  2. LcdDisplay的改动,可否使用类继承的方式,然后重载 SetChatMessage 和 SetEmotion 方法?

@txp666 txp666 changed the title 增加GIF大表情播放界面 增加GIF大表情播放界面和otto-robot板的支持 Apr 26, 2025
@txp666
Copy link
Contributor Author

txp666 commented Apr 26, 2025

你好,还需要做一点小改动。

  1. 图片大小控制在50KB以内,保持跟其他代码相同的约定。
  2. LcdDisplay的改动,可否使用类继承的方式,然后重载 SetChatMessage 和 SetEmotion 方法?

好的虾哥,我研究下

@yusuhua
Copy link
Contributor

yusuhua commented May 22, 2025

@txp666 表情挺可爱的,可以做成可选主题,像微信主题一样,让用户选择使用~!

@txp666
Copy link
Contributor Author

txp666 commented May 25, 2025

@txp666 表情挺可爱的,可以做成可选主题,像微信主题一样,让用户选择使用~!
是的,可以选的

Repository owner deleted a comment from xunnew18 May 26, 2025
@78
Copy link
Owner

78 commented May 26, 2025

后面MCP会成为主要的IOT控制协议。

1.增加任务优先级防止聆听状态变慢
2.动作任务常驻,不detach解决“抽筋”bug,但是会增加耗电
3.home恢复500
@78
Copy link
Owner

78 commented Jun 4, 2025

Hi,我在研究如何合并该PR,请看看遇到的问题:

  1. 考虑不要修改公共的LcdDisplay,而是写一个CustomLcdDisplay的类,重写有关的方法?
  2. GIF 的 c 文件,看是否可以暂时放在板级目录下,或者类似 esp-hi 创建一个素材的 component 其实更好
  3. 使用MCP协议重写动作,使用方式:https://github.com/78/xiaozhi-esp32/blob/main/docs/mcp-usage.md

1.使用MCP协议控制机器人
2.gif继承lcdDisplay,避免修改lcdDisplay
@txp666
Copy link
Contributor Author

txp666 commented Jun 4, 2025

Hi,我在研究如何合并该PR,请看看遇到的问题:

  1. 考虑不要修改公共的LcdDisplay,而是写一个CustomLcdDisplay的类,重写有关的方法?
  2. GIF 的 c 文件,看是否可以暂时放在板级目录下,或者类似 esp-hi 创建一个素材的 component 其实更好
  3. 使用MCP协议重写动作,使用方式:https://github.com/78/xiaozhi-esp32/blob/main/docs/mcp-usage.md

好的虾哥 1和3已经ok 我再看看2

txp666 added 3 commits June 5, 2025 15:03
1.增加electronBot支持
2.mcp协议
3.gif 作为组件
4.display子类
@txp666 txp666 closed this Jun 5, 2025
@AIEntropy
Copy link

大佬,我是萌新,是不是将对应【提交】修改的代码添加进去就可以用了。我想使用的是【增加GIF大表情播放界面】功能,我把对应修改代码,给放入我的项目中了,这样可以嘛?还需要进行操作或者是配置嘛?不同版本会不兼容嘛?望大佬回答,或者有讨论群也行哝!感谢感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants