Repository navigation
feat: finish finite policy runs and support replay - #10
Merged
Merged
Conversation
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.
关联
无独立 Issue:来自用户要求,为 UniSuperMimic 和 Instinct-SuperMimic 两个独立示例提供最小公共运行结束能力。与 BotLab #60 同批评审,等两例一起收口;不推进 FAT、PyPI 或生产。
改动
PolicyController(end_after_steps=...)支持固定正整数预算,或按离散参数映射预算;每次复位后的首个控制步确定预算。原生运行在最后一个物理步完成后返回,HeadlessRun.completed可读,reset()清除完成状态并恢复重播。没有配置预算的旧工程仍连续运行。修复只执行第 0 步后 reset 未重新应用 motion 初始姿态的问题。公共
_controllers.py/_run_end.py与 BotLab canonical 源逐字节一致;native runner 仅修改本仓。没有把既有_robot.pyIMU 镜像差异顺带同步进来。测试方式
python -m botlab._runtime.golden_check tests/fixtures/processors.json:54 组对照通过,退出码 0;ruff 通过。python scripts/verify_wheel.py <candidate.whl> --browser-runtime <archive.zip> --out <new-dir>:release 模式通过,退出码 0;覆盖安装路径/入口/文档、native、viewer、独立缓存、静态站构建与输入产物不变。候选 SDK 提交
3a228a7ecbf1623db1ada2e68ab76ff2805263ee;wheel SHA-25698c7136041689038a65d2a46d67c7fda2e7d9961cf2da66e6b4fab042a7a34f9;runtime SHA-2567cbc1cb9ff6b42356069913f10d0280725d3514e10ca5ac347fe6a3485781249。均为本地候选,不是已发布版本。远端 CI:run 40110850465,当前提交的 Python 3.10 / 3.11 / 3.12 / 3.13 全部通过。
风险
当前预算仅支持单个无 Python modifier 的 PolicyController,不引入训练 episode、失败判断或自动循环。新字段要求新 runtime;两仓经项总审核后成组推进,再从合并提交重建并固定产物。Mac 原生深度路径有已有的 ARB_clip_control 精度提示;这些检查验证生命周期,不宣称上游策略成功率。
AI 使用说明: