Repository navigation
fix(physical): 이동 뒤 PRESET 은 BalanceStand 를 먼저 보내고 SDK 호출 단위 로그를 남긴다 - #122
Merged
Merged
Conversation
…120) 1초 대기를 넣어도 HELLO 가 시작 5초 뒤 실패했다(Hello 뒤 BalanceStand 실패와 같은 시각). 이동·회전 직후 PRESET 은 BalanceStand → 대기(POPPY_PHYSICAL_BALANCE_BEFORE_PRESET_SETTLE_S, 기본 2.0) → PRESET → 정착 대기 → BalanceStand 순서로 보낸다. 각 SDK 호출의 이름·성공 여부·반환 코드를 execution_physical_sdk_call 로그로 남긴다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 11, 2026
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 (1차 수정은 #121 로 머지됨. 실기 확인 전이라 이슈는 열어 둔다.)
배경 — 실기 로그 추가 정보
1초 대기(#121)를 넣고 다시 돌린 로그: 대기는 정확히 1.000초 들어갔는데
HELLO가 여전히 실패했다.실패가 시작 후 정확히 5.0초다. 코드상
Hello호출 → 정착 대기(5초) →BalanceStand순서라,Hello가 즉시 거절된 것이 아니라 뒤따르는 BalanceStand 가 실패한 것과 같은 시각이다(SDK 호출 제한시간은 10초). 다만 SDK 반환 코드를 로그에 남기지 않아 로그만으로는 확정할 수 없었다.변경
execution_physical_sdk_call: 모든 SDK 호출(Move·StopMove제외, 각각 50ms 마다/요약 로그가 있음)의 이름(sdk_operation)·OK/FAILED·SDK 반환 코드(sdk_result_code)·예외 종류를 한 줄씩 남긴다. 이제 실패한 호출이 Hello 인지 BalanceStand 인지, 어떤 코드인지 로그로 구분된다.(정지 대기) → BalanceStand → 대기 → PRESET → 정착 대기 → BalanceStand.POPPY_PHYSICAL_BALANCE_BEFORE_PRESET_SETTLE_S(선택, 기본 2.0, 0 이면 사전 BalanceStand 를 끔, 최대 15). 설정을 안 써도 기본값으로 동작한다.rt/lowstate만 구독하고 자세·모드를 읽는rt/sportmodestate는 구독하지 않아 "기본 자세가 된 것을 확인하고 진행"은 아직 못 한다. 고정 대기를 쓰고, 연결되면 확인으로 바꾼다(후속).검증 (로봇 없이)
ruff check ./ruff format --check ./mypy/pytest(480 passed, 이번에 새 테스트 8개) /scripts/harness-check.sh통과실기 확인 필요 (사람) — 순서대로
execution_physical_sdk_call로그에서 실패한 호출과sdk_result_code를 확인한다.🤖 Generated with Claude Code