Skip to content

test(lost_void): 覆盖寻路卡住判定与脱困策略 - #63

Open
pumpkinperson996 wants to merge 2 commits into
OneDragon-Anything:mainfrom
pumpkinperson996:fix/lost-void-move-stuck
Open

test(lost_void): 覆盖寻路卡住判定与脱困策略#63
pumpkinperson996 wants to merge 2 commits into
OneDragon-Anything:mainfrom
pumpkinperson996:fix/lost-void-move-stuck

Conversation

@pumpkinperson996

@pumpkinperson996 pumpkinperson996 commented Aug 21, 2026

Copy link
Copy Markdown

为什么改

配套主仓 PR OneDragon-Anything/ZenlessZoneZero-OneDragon#2738(迷失之地寻路卡住判定重构 + 分阶段脱困),补对应测试。

改动要点

  • 新增 test_move_by_det_stuck.py
    • is_same_box_constellation 纯逻辑(相同/抖动/位移/尺寸变化/数量变化/空列表)
    • check_stuck 时间窗判定:静止带抖动约 4 秒判卡、正常靠近(框变大+位移)不误判、目标丢失后原位重现不清零、无累计前进时长不判卡
    • get_out_of_stuck 阶段策略:0-3 阶段同侧两次再换侧(含横滑按键时长)、4 阶段后撤+平移、5 阶段转向绕行并翻转优先侧、脱困后清除跟踪目标、超上限返回执行超时
    • LostVoidRunLevel.handle_find_target_fail 重开成功后重建 stuck_state

关联

配套主仓 LostVoidMoveByDet 卡住判定重构(时间窗快照对比)与6阶段脱困:
快照配对纯逻辑、静止抖动约4秒判卡、正常靠近不误判、目标丢失重现不清零、
前进时长门槛、各阶段按键与方向、超上限返回执行超时、重开后重置 stuck_state。
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 930c795e-e19a-44b1-bdb0-f53bdf6e2a92


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant