Repository navigation
fix(physical): 이동 직후 PRESET·POSTURE 전 정지 대기 - #121
Merged
Merged
Conversation
실기에서 MOVE 가 끝나고 0.1초 뒤 보낸 HELLO 를 SDK 가 거절했다. 직전에 MOVE·TURN 이 있었으면 모션 종료 시각부터 POPPY_PHYSICAL_SETTLE_BEFORE_ACTION_S(기본 2.0초) 지난 뒤 PRESET·POSTURE 를 보낸다. WAIT 로 이미 기다린 시간은 차감하고, 한 모션 뒤에는 한 번만 기다리며, 실행 시간 상한 계산에는 넣지 않는다. 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.
Closes #120
배경
2026-11-11 실기에서 이동(MOVE) 직후 PRESET 을 보내면 SDK 가 거절했다(
HELLO가 MOVE 종료 0.1초 뒤UnitreeSdkCommandError). 로봇이 아직 멈추는 중이었다. 시연 문장 "앞으로 1미터 가고 하트 해줘"가 동작하지 않는다.변경
UnitreeCommandBackend: MOVE·TURN 이 끝난 시각(어떤 결과든)을 기록하고, 다음 PRESET·POSTURE 를 SDK 에 보내기 전에POPPY_PHYSICAL_SETTLE_BEFORE_ACTION_S(기본 2.0초)가 지날 때까지 기다린다.POPPY_PHYSICAL_SETTLE_BEFORE_ACTION_S는 선택이다. 안 써도 기본 2.0초로 고쳐진 상태이고,0이면 끄고, 15초 초과·음수·숫자 아님은 실기를 차단하고 사유를 보인다(필수 키 목록에는 넣지 않음).rt/lowstate만 구독하고 속도를 주는rt/sportmodestate는 구독하지 않는다(feat(physical): MOVE·TURN을 sportmodestate 기반 폐루프로 전환 (r11) #97 에만 있음). 그래서 기본은 고정 대기다. 속도 확인 방식(속도 0.05 m/s 미만까지, 최소 0.3초·최대 3초·0.1초 간격, 초과 시execution_physical_settle경고 후 진행)은OpenMotionActions.speed_probe로 연결만 하면 쓸 수 있게 두었고 운영에는 연결하지 않았다.execution_physical_settle(action,execution_status,elapsed_seconds).docs/controlled-motion-open.md,docs/configuration.md.검증 (로봇 없이)
ruff check ./ruff format --check ./mypy/pytest(472 passed, 새 테스트 19개) /scripts/harness-check.sh통과실기 확인 필요 (사람)
POPPY_PHYSICAL_SETTLE_BEFORE_ACTION_S를 올린다)🤖 Generated with Claude Code