livingproof-unitree-g1 2.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- livingproof_unitree_g1-2.6.1/.git_archival.txt +3 -0
- livingproof_unitree_g1-2.6.1/.gitattributes +3 -0
- livingproof_unitree_g1-2.6.1/.gitignore +11 -0
- livingproof_unitree_g1-2.6.1/LICENSE +201 -0
- livingproof_unitree_g1-2.6.1/PKG-INFO +108 -0
- livingproof_unitree_g1-2.6.1/README.md +91 -0
- livingproof_unitree_g1-2.6.1/configurations/playground.json +411 -0
- livingproof_unitree_g1-2.6.1/configurations/stock.json +343 -0
- livingproof_unitree_g1-2.6.1/manifest.json +465 -0
- livingproof_unitree_g1-2.6.1/pins.json +248 -0
- livingproof_unitree_g1-2.6.1/pyproject.toml +74 -0
- livingproof_unitree_g1-2.6.1/robot.json +55 -0
- livingproof_unitree_g1-2.6.1/runner.json +5 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/__init__.py +34 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/adapter.py +173 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/collision_audit.py +87 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/measure.py +22 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/profiles.py +161 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/reference.py +382 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/route.py +94 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/runtime.py +115 -0
- livingproof_unitree_g1-2.6.1/src/lpl_g1/scene.py +39 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: livingproof-unitree-g1
|
|
3
|
+
Version: 2.6.1
|
|
4
|
+
Summary: Unitree G1 robot package: pinned model, published controllers and the MuJoCo adapter
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Requires-Dist: imageio[ffmpeg]==2.38.2
|
|
9
|
+
Requires-Dist: jsonschema==4.26.0
|
|
10
|
+
Requires-Dist: livingproof-sim-mujoco[media,torch]
|
|
11
|
+
Requires-Dist: mujoco==3.17.0
|
|
12
|
+
Requires-Dist: numpy==2.4.6; python_version < '3.12'
|
|
13
|
+
Requires-Dist: numpy==2.5.4; python_version >= '3.12'
|
|
14
|
+
Requires-Dist: pyyaml==6.0.3
|
|
15
|
+
Requires-Dist: referencing==0.37.0
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# livingproof-unitree-g1
|
|
19
|
+
|
|
20
|
+
**Start here: documentation** — [manual source/preview](docs/index.md).
|
|
21
|
+
The deployment workflow is proposed; the live manual is not yet verified.
|
|
22
|
+
|
|
23
|
+
Living Proof Labs robot package for the Unitree G1 humanoid, in the [robot-capability-specs](https://github.com/Living-Proof-Labs/robot-capability-specs) v2.3.0 format (`specs/robots/`). It pins an official model and two published, ready-made walking controllers, and exposes them through a MuJoCo adapter.
|
|
24
|
+
|
|
25
|
+
Living Proof Labs does not train controllers. A robot is checked only with a controller its maker or a maintained project has already published, run unchanged.
|
|
26
|
+
|
|
27
|
+
This package publishes the adapter and the configuration profiles. The adapter does not select a world or a scenario. The definitions in `verifications/` do, for CI only: every change is checked with the [Verification Reports Action](https://github.com/Living-Proof-Labs/verification-reports-action), and successful same-commit reports accompany the released manual at [Unitree G1's verification reports](https://docs.livingprooflabs.com/livingproof-unitree-g1/reports/). The earlier results are kept in the archived [livingproof-verification reports](https://docs.livingprooflabs.com/livingproof-verification/reports/index.html).
|
|
28
|
+
|
|
29
|
+
## Files
|
|
30
|
+
|
|
31
|
+
- `robot.json`: robot profile (`livingproof-robot-profile/0.1`). Covers the model source pinned by commit and sha256, the dimensions (each `measured`, `published` or `chosen`), the offered configurations, and `simulators: [mujoco]`.
|
|
32
|
+
- `manifest.json`: robot manifest (`livingproof-robot-manifest/0.1`). It cites the profile, the configuration profiles and every pinned asset, and lists the scenarios the adapter supports. It does not select a world or a scenario for a run.
|
|
33
|
+
- `configurations/<name>.json`: configuration profiles (`livingproof-configuration-profile/0.1`). `stock` is version 1.1.1 and `playground` is version 1.0.1. Each holds its controller artifact, gains, limits and locomotion heights. Tests check the gains and limits against the pinned upstream files.
|
|
34
|
+
- `pins.json`: every upstream file by repository, commit and sha256, including the robot, configuration and robot-manifest schemas at v2.3.0 (`57317e6`). The pytest session (`livingproof_sim_mujoco.pins.fetch`) downloads them into `.cache/` and verifies each one. Nothing is vendored.
|
|
35
|
+
- `runner.json`: runner settings that are not part of the spec, marked `chosen`: the sample rate and the stand length. A trial this adapter starts itself uses the configuration's nominal pose. There is no seed and no noise.
|
|
36
|
+
- `src/lpl_g1/`: the adapter, profile and schema validation, the robot scene, and the publisher reference check. Nothing here grades, and nothing here loads a world.
|
|
37
|
+
- `pyproject.toml` pins `livingproof-sim-mujoco` at tag `v3.0.4`. The adapter tests import that release. The pin is a tag, not a branch. v3 owns the world, and its `evidence` and `walk stand` commands take `--lock`. This package calls neither and does not add a world.
|
|
38
|
+
|
|
39
|
+
| Configuration | Controller | Publisher | License |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| `stock` | unitree_rl_gym `deploy/pre_train/g1/motion.pt` @ 276801e (TorchScript LSTM, torch CPU), with gains from `deploy_real/configs/g1.yaml` | Unitree Robotics | BSD-3-Clause |
|
|
42
|
+
| `playground` (default) | mujoco_playground `g1_policy.onnx` @ 12ad7f3 (onnxruntime), with gains from the Playground G1 MJCF | Google DeepMind | Apache-2.0 |
|
|
43
|
+
|
|
44
|
+
The robot model is the Playground G1 MJCF (Apache-2.0) with menagerie `unitree_g1` meshes @ 1b86ece (BSD-3-Clause, © Unitree). The model is the same for both configurations; selecting a configuration is the toggle.
|
|
45
|
+
|
|
46
|
+
## Actuation
|
|
47
|
+
|
|
48
|
+
Both configurations use the same in-step PD. Every 0.002 s physics step runs `mj_step1`, writes `kp (q* - q) - kd dq` from the current state into motor actuators, then runs `mj_step2`. This is the fix from [unitree-foxglove-sdk](https://github.com/Living-Proof-Labs/unitree-foxglove-sdk) (`MotorFirmwareBridge`). With the Playground gains, a test shows it reproduces the MJCF `<position>` actuators to 1e-6. The runner is `OnnxPolicy` in livingproof-sim-mujoco.
|
|
49
|
+
|
|
50
|
+
## Tasks
|
|
51
|
+
|
|
52
|
+
For a wheel or source-archive installation, prepare a **new**, writable directory for
|
|
53
|
+
the bundled profiles and the checksum-verified upstream files. This does not
|
|
54
|
+
write into the installed package or site-packages. Choose a path without symlinks
|
|
55
|
+
and use a fresh directory when changing releases.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
unset LIVINGPROOF_UNITREE_G1_ROOT
|
|
59
|
+
python -m lpl_g1.runtime "$HOME/.cache/livingproof/g1-first-run" --fetch
|
|
60
|
+
export LIVINGPROOF_UNITREE_G1_ROOT="$HOME/.cache/livingproof/g1-first-run"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Omit `--fetch` to copy the bundled data without network access. Before running a
|
|
64
|
+
controller, fetch the declared files with `livingproof_sim_mujoco.pins.fetch` if they have
|
|
65
|
+
not been fetched already. Installed tools that download pins or write reference
|
|
66
|
+
evidence require the prepared external root even when you specify another output.
|
|
67
|
+
The adapter remains `lpl_g1.adapter:ROBOT`.
|
|
68
|
+
Run source checkouts as before:
|
|
69
|
+
|
|
70
|
+
Needs [uv](https://docs.astral.sh/uv/), [Task](https://taskfile.dev) and OSMesa (`libosmesa6`).
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
uv sync && uv run pytest tests # uv sync + tests (the session fetches and verifies every pin)
|
|
74
|
+
uv run ruff check . && uv run ruff format --check . # ruff
|
|
75
|
+
uv run pytest tests # schemas, gains vs upstream, nominal pose, PD
|
|
76
|
+
task reference # tick-by-tick match against the publishers' loops
|
|
77
|
+
task profile:measure # width, length, mass for robot.json
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The adapter entry point is `lpl_g1.adapter:ROBOT` (`[tool.livingproof] adapter`).
|
|
81
|
+
|
|
82
|
+
GitHub Actions runs that pytest command and ruff on `ubuntu-24.04` and `ubuntu-24.04-arm` for pull requests and pushes to `main`.
|
|
83
|
+
|
|
84
|
+
### Package publication and reports
|
|
85
|
+
|
|
86
|
+
The native `Test` matrix proves a standalone wheel and sdist through
|
|
87
|
+
`bash tools/check_distributions.sh build ABSOLUTE_NEW_DIRECTORY`. The protected
|
|
88
|
+
PR and merge-group `Robot verification gate` still requires native tests, real
|
|
89
|
+
reports and the report-site build. On main, the native gate drives the existing
|
|
90
|
+
attempt-bound Release → relay → Trusted Publishing chain independently of Pages.
|
|
91
|
+
Main reports run separately; manual publication waits for both the immutable
|
|
92
|
+
release and a successful report from that exact protected commit. Missing or
|
|
93
|
+
failed reports never become a successful Pages deployment.
|
|
94
|
+
|
|
95
|
+
The root Git simulator source and verification locks remain report-scoped and
|
|
96
|
+
unchanged. Installed package proof uses `tools/package-proof-requirements.txt`,
|
|
97
|
+
a hash-locked public CPU dependency closure, for both candidate and original
|
|
98
|
+
released archives. It does not present a registry installation as a Git snapshot.
|
|
99
|
+
This closure was exported from registry candidate #161's lock using pinned
|
|
100
|
+
`uv 0.13.8 export --frozen --no-dev --no-emit-project --no-header`; regeneration
|
|
101
|
+
requires review of the corresponding registry-only source lock. It is not used
|
|
102
|
+
by report generation and does not change the package's dependency metadata.
|
|
103
|
+
|
|
104
|
+
The receiver verifies the original wheel/sdist bytes, with isolated installs,
|
|
105
|
+
`pip check`, all pinned runtime assets and stock/Playground parity before upload.
|
|
106
|
+
Local hosts without OSMesa can explicitly select `MUJOCO_GL=egl` and
|
|
107
|
+
`PYOPENGL_PLATFORM=egl`; hosted native checks retain OSMesa on both architectures.
|
|
108
|
+
No old tag is published, and no manual upload is part of this path.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# livingproof-unitree-g1
|
|
2
|
+
|
|
3
|
+
**Start here: documentation** — [manual source/preview](docs/index.md).
|
|
4
|
+
The deployment workflow is proposed; the live manual is not yet verified.
|
|
5
|
+
|
|
6
|
+
Living Proof Labs robot package for the Unitree G1 humanoid, in the [robot-capability-specs](https://github.com/Living-Proof-Labs/robot-capability-specs) v2.3.0 format (`specs/robots/`). It pins an official model and two published, ready-made walking controllers, and exposes them through a MuJoCo adapter.
|
|
7
|
+
|
|
8
|
+
Living Proof Labs does not train controllers. A robot is checked only with a controller its maker or a maintained project has already published, run unchanged.
|
|
9
|
+
|
|
10
|
+
This package publishes the adapter and the configuration profiles. The adapter does not select a world or a scenario. The definitions in `verifications/` do, for CI only: every change is checked with the [Verification Reports Action](https://github.com/Living-Proof-Labs/verification-reports-action), and successful same-commit reports accompany the released manual at [Unitree G1's verification reports](https://docs.livingprooflabs.com/livingproof-unitree-g1/reports/). The earlier results are kept in the archived [livingproof-verification reports](https://docs.livingprooflabs.com/livingproof-verification/reports/index.html).
|
|
11
|
+
|
|
12
|
+
## Files
|
|
13
|
+
|
|
14
|
+
- `robot.json`: robot profile (`livingproof-robot-profile/0.1`). Covers the model source pinned by commit and sha256, the dimensions (each `measured`, `published` or `chosen`), the offered configurations, and `simulators: [mujoco]`.
|
|
15
|
+
- `manifest.json`: robot manifest (`livingproof-robot-manifest/0.1`). It cites the profile, the configuration profiles and every pinned asset, and lists the scenarios the adapter supports. It does not select a world or a scenario for a run.
|
|
16
|
+
- `configurations/<name>.json`: configuration profiles (`livingproof-configuration-profile/0.1`). `stock` is version 1.1.1 and `playground` is version 1.0.1. Each holds its controller artifact, gains, limits and locomotion heights. Tests check the gains and limits against the pinned upstream files.
|
|
17
|
+
- `pins.json`: every upstream file by repository, commit and sha256, including the robot, configuration and robot-manifest schemas at v2.3.0 (`57317e6`). The pytest session (`livingproof_sim_mujoco.pins.fetch`) downloads them into `.cache/` and verifies each one. Nothing is vendored.
|
|
18
|
+
- `runner.json`: runner settings that are not part of the spec, marked `chosen`: the sample rate and the stand length. A trial this adapter starts itself uses the configuration's nominal pose. There is no seed and no noise.
|
|
19
|
+
- `src/lpl_g1/`: the adapter, profile and schema validation, the robot scene, and the publisher reference check. Nothing here grades, and nothing here loads a world.
|
|
20
|
+
- `pyproject.toml` pins `livingproof-sim-mujoco` at tag `v3.0.4`. The adapter tests import that release. The pin is a tag, not a branch. v3 owns the world, and its `evidence` and `walk stand` commands take `--lock`. This package calls neither and does not add a world.
|
|
21
|
+
|
|
22
|
+
| Configuration | Controller | Publisher | License |
|
|
23
|
+
|---|---|---|---|
|
|
24
|
+
| `stock` | unitree_rl_gym `deploy/pre_train/g1/motion.pt` @ 276801e (TorchScript LSTM, torch CPU), with gains from `deploy_real/configs/g1.yaml` | Unitree Robotics | BSD-3-Clause |
|
|
25
|
+
| `playground` (default) | mujoco_playground `g1_policy.onnx` @ 12ad7f3 (onnxruntime), with gains from the Playground G1 MJCF | Google DeepMind | Apache-2.0 |
|
|
26
|
+
|
|
27
|
+
The robot model is the Playground G1 MJCF (Apache-2.0) with menagerie `unitree_g1` meshes @ 1b86ece (BSD-3-Clause, © Unitree). The model is the same for both configurations; selecting a configuration is the toggle.
|
|
28
|
+
|
|
29
|
+
## Actuation
|
|
30
|
+
|
|
31
|
+
Both configurations use the same in-step PD. Every 0.002 s physics step runs `mj_step1`, writes `kp (q* - q) - kd dq` from the current state into motor actuators, then runs `mj_step2`. This is the fix from [unitree-foxglove-sdk](https://github.com/Living-Proof-Labs/unitree-foxglove-sdk) (`MotorFirmwareBridge`). With the Playground gains, a test shows it reproduces the MJCF `<position>` actuators to 1e-6. The runner is `OnnxPolicy` in livingproof-sim-mujoco.
|
|
32
|
+
|
|
33
|
+
## Tasks
|
|
34
|
+
|
|
35
|
+
For a wheel or source-archive installation, prepare a **new**, writable directory for
|
|
36
|
+
the bundled profiles and the checksum-verified upstream files. This does not
|
|
37
|
+
write into the installed package or site-packages. Choose a path without symlinks
|
|
38
|
+
and use a fresh directory when changing releases.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
unset LIVINGPROOF_UNITREE_G1_ROOT
|
|
42
|
+
python -m lpl_g1.runtime "$HOME/.cache/livingproof/g1-first-run" --fetch
|
|
43
|
+
export LIVINGPROOF_UNITREE_G1_ROOT="$HOME/.cache/livingproof/g1-first-run"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Omit `--fetch` to copy the bundled data without network access. Before running a
|
|
47
|
+
controller, fetch the declared files with `livingproof_sim_mujoco.pins.fetch` if they have
|
|
48
|
+
not been fetched already. Installed tools that download pins or write reference
|
|
49
|
+
evidence require the prepared external root even when you specify another output.
|
|
50
|
+
The adapter remains `lpl_g1.adapter:ROBOT`.
|
|
51
|
+
Run source checkouts as before:
|
|
52
|
+
|
|
53
|
+
Needs [uv](https://docs.astral.sh/uv/), [Task](https://taskfile.dev) and OSMesa (`libosmesa6`).
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
uv sync && uv run pytest tests # uv sync + tests (the session fetches and verifies every pin)
|
|
57
|
+
uv run ruff check . && uv run ruff format --check . # ruff
|
|
58
|
+
uv run pytest tests # schemas, gains vs upstream, nominal pose, PD
|
|
59
|
+
task reference # tick-by-tick match against the publishers' loops
|
|
60
|
+
task profile:measure # width, length, mass for robot.json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The adapter entry point is `lpl_g1.adapter:ROBOT` (`[tool.livingproof] adapter`).
|
|
64
|
+
|
|
65
|
+
GitHub Actions runs that pytest command and ruff on `ubuntu-24.04` and `ubuntu-24.04-arm` for pull requests and pushes to `main`.
|
|
66
|
+
|
|
67
|
+
### Package publication and reports
|
|
68
|
+
|
|
69
|
+
The native `Test` matrix proves a standalone wheel and sdist through
|
|
70
|
+
`bash tools/check_distributions.sh build ABSOLUTE_NEW_DIRECTORY`. The protected
|
|
71
|
+
PR and merge-group `Robot verification gate` still requires native tests, real
|
|
72
|
+
reports and the report-site build. On main, the native gate drives the existing
|
|
73
|
+
attempt-bound Release → relay → Trusted Publishing chain independently of Pages.
|
|
74
|
+
Main reports run separately; manual publication waits for both the immutable
|
|
75
|
+
release and a successful report from that exact protected commit. Missing or
|
|
76
|
+
failed reports never become a successful Pages deployment.
|
|
77
|
+
|
|
78
|
+
The root Git simulator source and verification locks remain report-scoped and
|
|
79
|
+
unchanged. Installed package proof uses `tools/package-proof-requirements.txt`,
|
|
80
|
+
a hash-locked public CPU dependency closure, for both candidate and original
|
|
81
|
+
released archives. It does not present a registry installation as a Git snapshot.
|
|
82
|
+
This closure was exported from registry candidate #161's lock using pinned
|
|
83
|
+
`uv 0.13.8 export --frozen --no-dev --no-emit-project --no-header`; regeneration
|
|
84
|
+
requires review of the corresponding registry-only source lock. It is not used
|
|
85
|
+
by report generation and does not change the package's dependency metadata.
|
|
86
|
+
|
|
87
|
+
The receiver verifies the original wheel/sdist bytes, with isolated installs,
|
|
88
|
+
`pip check`, all pinned runtime assets and stock/Playground parity before upload.
|
|
89
|
+
Local hosts without OSMesa can explicitly select `MUJOCO_GL=egl` and
|
|
90
|
+
`PYOPENGL_PLATFORM=egl`; hosted native checks retain OSMesa on both architectures.
|
|
91
|
+
No old tag is published, and no manual upload is part of this path.
|