Repository navigation
fix(physical): PRESET 호출 전용 SDK 대기 60초와 실패 뒤 10초 보류 (#120) - #123
Merged
Merged
Conversation
실기에서 Dance1 이 SDK_RC_3104(10초 클라이언트 타임아웃)로 실패 보고됐지만 로봇은 춤을 췄다. PRESET 호출에만 SDK 응답 대기를 60초로 늘리고(호출 직후 복원), PRESET 이 실패하면 10초간 다음 물리 명령을 보내지 않는다. 마지막 SDK 반환 코드를 last_result_code 로 노출한다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 11, 2026
…eout-failure-hold
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.
Refs #120 (이슈는 닫지 않는다: 간헐 실패
SDK_RC_4201은 미해결)무엇을 바꾸나
오늘(2026-11-11) 운영 Agent(
r10, 기준e392017)에 손으로 얹은 패치 두 개 중 develop 에 아직 없는 부분만 반영한다.PRESET_RPC_TIMEOUT_SECONDS), 호출이 끝나면(예외 포함) 10초로 복원. 다른 호출은 그대로.OpenMotionActions.preset_failure_hold_seconds). 실패 시각부터 계산, 보류 중 취소하면 아무것도 보내지 않음, STOP 은 보류하지 않음.UnitreeSdkCommandClient.last_result_code(마지막 SDK 호출의 정수 반환 코드).docs/controlled-motion-open.md.v1 패치는 왜 넣지 않았나 (중복 확인)
agent-fix-r10.patch(v1: 이동·회전 뒤 PRESET 앞BalanceStand→2초 대기,execution_physical_sdk_call로그)는 develop 의 #122(64070e6)에 이미 들어 있다. #122 쪽이 설정값(POPPY_PHYSICAL_BALANCE_BEFORE_PRESET_SETTLE_S)·검증·테스트까지 갖춘 상위 구현이고, #121(66b9e05, 이동 뒤 정지 대기POPPY_PHYSICAL_SETTLE_BEFORE_ACTION_S)은 운영 r10 에 없는 별개의 수정이다. 같은 기능을 두 번 넣으면 충돌하므로 v1 은 제외했고, v2 를 #122 의 구조(OpenMotionActions,_last_motion_ended_at,clock)에 맞춰 다시 썼다.왜 develop 기반 새 브랜치인가 (#95 에 얹지 않은 이유)
feature/94-arena-position-safety)는 아직 머지 전이고, develop 과config/open_motion.py에서 충돌한다(내가git merge --no-commit로 확인). feat(physical): 안전 검사를 공간 위치 기반으로 교체 (최대 6 m × 6 m) #95 위에 얹으면 develop 의 fix(physical): 이동 직후 PRESET·POSTURE 전 정지 대기 #121·fix(physical): 이동 뒤 PRESET 은 BalanceStand 를 먼저 보내고 SDK 호출 단위 로그를 남긴다 #122 와 같은 코드를 또 만지게 된다.hardware/unitree.py,hardware/unitree_sdk.py, 테스트, 문서뿐이고config/open_motion.py는 건드리지 않는다. 다만 이 브랜치는 develop 위에 있으므로 feat(physical): 안전 검사를 공간 위치 기반으로 교체 (최대 6 m × 6 m) #95 와 합칠 때 나는 충돌(config/open_motion.py, develop 의 fix(physical): 이동 직후 PRESET·POSTURE 전 정지 대기 #121·fix(physical): 이동 뒤 PRESET 은 BalanceStand 를 먼저 보내고 SDK 호출 단위 로그를 남긴다 #122 와 feat(physical): 안전 검사를 공간 위치 기반으로 교체 (최대 6 m × 6 m) #95 의 설정 변경)은 이 PR 과 무관하게 이미 있는 충돌이다(#95 ← develop만 합쳐도 같은 파일에서 난다, 직접 확인). 운영 릴리스를#95 + 이 수정으로 만들려면 feat(physical): 안전 검사를 공간 위치 기반으로 교체 (최대 6 m × 6 m) #95 쪽에서 develop 을 먼저 맞춰야 한다.오늘 실기로 확인된 것 (로그 기준)
BalanceStand OK → Hello OK → BalanceStand OK).SDK_RC_4201로 실패, 39초 뒤 같은 구성이 성공.4201 = SPORT_ERR_SERVER_OVERTIME(로봇 sport 서버가 돌려준 오류, 클라이언트 타임아웃 아님). 이 PR 은 4201 을 막지 않는다.SDK_RC_3104(클라이언트 10초 타임아웃)로 실패 보고됐지만 로봇은 실제로 춤을 췄다. 항목 1·2 가 이를 겨냥한다. v2(20:51 적용) 이후 실기 검증은 이 PR 작성 시점에 확인하지 못했다.검증
last_result_code.harness_check,ruff check,ruff format --check,mypy,pytest(490) 통과.머지하지 않는다
needs-robot-test: 로봇 실기 검증(춤 단독 성공 보고, 이동→하트 반복)이 끝나기 전에는 머지하지 않는다. 실기 전에는 60초·10초 값이 충분한지 알 수 없다.🤖 Generated with Claude Code