Repository navigation
Conversation
… before it Every command carries the mode_machine of the newest /lowstate that reported the profile's, read from every sample, as Unitree's examples copy it; mode_pr stays the profile's (0, pitch/roll), as Unitree's examples choose it. Nothing is written before such a /lowstate, nor, before engaging, while the newest /lowstate is another robot's (relay_held). /lowstate's mode_pr is checked too: another value refuses engaging and, once engaged, latches. An estop that latches before the robot's first /lowstate writes from that /lowstate on (estop_waiting); after a foreign mode_machine the estop commands keep our robot's last value, never the other's. The suite passes (237 tests). The real-robot lmg_deploy bags replayed through it relay every command unchanged and latch at the same moments as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015EG7p8sgY1ZVi6unbbLp4J
This was referenced Nov 17, 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.
What
Following Unitree's examples for the
LowCmdheader:/lowstate. No/lowcmduntil a/lowstatereports the profile'smode_machine(H1-2 6, G1 5), nor, before engaging, while the newest/lowstatereports another (relay_held, Warn, at most every 5 s).mode_machinecopied from/lowstate, read from every sample: every command carries the newest matching/lowstate's value.mode_prstays the profile's (0, pitch/roll), as Unitree's examples choose it./lowstate'smode_pris checked too: another value refuses engaging (the zero stream goes on withmode_pr0) and, once engaged, latches. Foreignmode_machinestill latches once engaged.mode_machinelatch the estop commands carry our robot's lastmode_machine, never the other robot's. An estop that latches before the robot's first/lowstatewrites nothing until it arrives (estop_waiting, Error), then its burst.docs/g1, launch docstrings) updated.Testing
golem_safetysuite: 237 tests, 0 failures, 0 skipped (new: header follows every/lowstate, foreignmode_machineafter engaging keeps our header,mode_prmust match, nothing before the first/lowstatefor both robots).lmg_deploybags (policy_bag_walk,reach) replayed through it: every relayed command bit-identical to its inputs (28,556/28,562 and 11,813/11,813; the 6 are the first 11 ms before the leg input's first command), header (6, 0), estops at the same moments as on the robot (57.11 s ankle roll q, 23.63 s hardware estop), 50-frame burst.tests/sim,tests/g1).Unmeasured
The real G1's
/lowstatemode_prhas not been read; if it is not 0 the G1 will not engage (it refuses, logged).🤖 Generated with Claude Code
https://claude.ai/code/session_015EG7p8sgY1ZVi6unbbLp4J