proofmass-check 0.1.0__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.
Files changed (60) hide show
  1. proofmass_check-0.1.0/.gitattributes +5 -0
  2. proofmass_check-0.1.0/.github/CODEOWNERS +1 -0
  3. proofmass_check-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +40 -0
  4. proofmass_check-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  5. proofmass_check-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +8 -0
  6. proofmass_check-0.1.0/.github/dependabot.yml +6 -0
  7. proofmass_check-0.1.0/.github/workflows/ci.yml +27 -0
  8. proofmass_check-0.1.0/.github/workflows/release.yml +37 -0
  9. proofmass_check-0.1.0/.gitignore +11 -0
  10. proofmass_check-0.1.0/CHANGELOG.md +27 -0
  11. proofmass_check-0.1.0/CONTRIBUTING.md +113 -0
  12. proofmass_check-0.1.0/LICENSE +202 -0
  13. proofmass_check-0.1.0/NOTICE +5 -0
  14. proofmass_check-0.1.0/PKG-INFO +138 -0
  15. proofmass_check-0.1.0/README.md +110 -0
  16. proofmass_check-0.1.0/SECURITY.md +9 -0
  17. proofmass_check-0.1.0/docs/spec.md +244 -0
  18. proofmass_check-0.1.0/docs/wheeled-robots.md +82 -0
  19. proofmass_check-0.1.0/pyproject.toml +66 -0
  20. proofmass_check-0.1.0/src/proofmass_check/__init__.py +9 -0
  21. proofmass_check-0.1.0/src/proofmass_check/__main__.py +9 -0
  22. proofmass_check-0.1.0/src/proofmass_check/checks/__init__.py +51 -0
  23. proofmass_check-0.1.0/src/proofmass_check/checks/drop.py +44 -0
  24. proofmass_check-0.1.0/src/proofmass_check/checks/grip.py +143 -0
  25. proofmass_check-0.1.0/src/proofmass_check/checks/joints.py +80 -0
  26. proofmass_check-0.1.0/src/proofmass_check/checks/load.py +50 -0
  27. proofmass_check-0.1.0/src/proofmass_check/checks/passive.py +116 -0
  28. proofmass_check-0.1.0/src/proofmass_check/checks/speed.py +62 -0
  29. proofmass_check-0.1.0/src/proofmass_check/checks/text.py +25 -0
  30. proofmass_check-0.1.0/src/proofmass_check/checks/wheeled.py +150 -0
  31. proofmass_check-0.1.0/src/proofmass_check/cli.py +111 -0
  32. proofmass_check-0.1.0/src/proofmass_check/engines/__init__.py +33 -0
  33. proofmass_check-0.1.0/src/proofmass_check/engines/base.py +167 -0
  34. proofmass_check-0.1.0/src/proofmass_check/engines/newton.py +289 -0
  35. proofmass_check-0.1.0/src/proofmass_check/engines/physx.py +422 -0
  36. proofmass_check-0.1.0/src/proofmass_check/geometry.py +61 -0
  37. proofmass_check-0.1.0/src/proofmass_check/model.py +240 -0
  38. proofmass_check-0.1.0/src/proofmass_check/plan.py +91 -0
  39. proofmass_check-0.1.0/src/proofmass_check/report.py +69 -0
  40. proofmass_check-0.1.0/src/proofmass_check/results.schema.json +63 -0
  41. proofmass_check-0.1.0/src/proofmass_check/rules.py +112 -0
  42. proofmass_check-0.1.0/src/proofmass_check/runner.py +94 -0
  43. proofmass_check-0.1.0/src/proofmass_check/usd_names.py +45 -0
  44. proofmass_check-0.1.0/src/proofmass_check/usd_reader.py +462 -0
  45. proofmass_check-0.1.0/tests/conftest.py +60 -0
  46. proofmass_check-0.1.0/tests/fake_engine.py +115 -0
  47. proofmass_check-0.1.0/tests/test_checks_grip.py +119 -0
  48. proofmass_check-0.1.0/tests/test_checks_joints.py +115 -0
  49. proofmass_check-0.1.0/tests/test_checks_load_drop.py +64 -0
  50. proofmass_check-0.1.0/tests/test_checks_passive.py +81 -0
  51. proofmass_check-0.1.0/tests/test_checks_wheeled.py +103 -0
  52. proofmass_check-0.1.0/tests/test_cli.py +48 -0
  53. proofmass_check-0.1.0/tests/test_engines_gpu.py +65 -0
  54. proofmass_check-0.1.0/tests/test_geometry.py +39 -0
  55. proofmass_check-0.1.0/tests/test_plan.py +43 -0
  56. proofmass_check-0.1.0/tests/test_runner_report.py +53 -0
  57. proofmass_check-0.1.0/tests/test_spec.py +41 -0
  58. proofmass_check-0.1.0/tests/test_usd_reader.py +152 -0
  59. proofmass_check-0.1.0/tests/usd_assets.py +208 -0
  60. proofmass_check-0.1.0/uv.lock +504 -0
@@ -0,0 +1,5 @@
1
+ # Keep LF line endings in the repository, also when it is edited on Windows.
2
+ * text=auto eol=lf
3
+ *.usd binary
4
+ *.usdc binary
5
+ *.usdz binary
@@ -0,0 +1 @@
1
+ * @pawelkikta
@@ -0,0 +1,40 @@
1
+ name: Wrong result or crash
2
+ description: A check gives a result you think is wrong, or proofmass-check stops with an error.
3
+ body:
4
+ - type: markdown
5
+ attributes:
6
+ value: |
7
+ Thank you. Please attach results.json: it holds the versions and every number we need.
8
+ Questions about installing Isaac Sim or Newton belong to NVIDIA's forums, not here.
9
+ - type: dropdown
10
+ id: engine
11
+ attributes:
12
+ label: Engine
13
+ options: [physx, newton]
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: what
18
+ attributes:
19
+ label: What happened, and what did you expect?
20
+ validations:
21
+ required: true
22
+ - type: textarea
23
+ id: command
24
+ attributes:
25
+ label: The command you ran
26
+ render: shell
27
+ validations:
28
+ required: true
29
+ - type: textarea
30
+ id: results
31
+ attributes:
32
+ label: results.json
33
+ description: Drag the file here, or paste it.
34
+ validations:
35
+ required: true
36
+ - type: input
37
+ id: asset
38
+ attributes:
39
+ label: Where can we get the asset?
40
+ description: A link, if the asset is public. We never ask you to share a private asset.
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Isaac Sim installation and setup
4
+ url: https://docs.isaacsim.omniverse.nvidia.com/
5
+ about: Installing or running Isaac Sim itself is covered by NVIDIA's documentation.
@@ -0,0 +1,8 @@
1
+ ## What this changes and why
2
+
3
+ ## Checklist
4
+
5
+ - [ ] `uv run ruff check .`, `uv run ruff format --check .` and `uv run pytest` pass.
6
+ - [ ] A change to a rule or a number also changes `docs/spec.md`, `SPEC_VERSION` and `CHANGELOG.md`.
7
+ - [ ] A change to a check was run on a real engine; the PR says which engine, version and assets.
8
+ - [ ] Comments follow "How we write comments" in `CONTRIBUTING.md`.
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
@@ -0,0 +1,27 @@
1
+ # Lint and unit tests. The checks that need Isaac Sim or Newton on a GPU are marked "gpu"
2
+ # and do not run here; see CONTRIBUTING.md.
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ test:
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest, windows-latest]
19
+ python: ["3.11", "3.12"]
20
+ runs-on: ${{ matrix.os }}
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+ - uses: astral-sh/setup-uv@v7
24
+ - run: uv sync --locked --python ${{ matrix.python }}
25
+ - run: uv run ruff check .
26
+ - run: uv run ruff format --check .
27
+ - run: uv run pytest
@@ -0,0 +1,37 @@
1
+ # Builds the package for a version tag (v0.1.0) and publishes it to PyPI.
2
+ # Publishing uses PyPI Trusted Publishing, so there is no API token in the repository secrets.
3
+ # Before the first release, add this repository as a trusted publisher on PyPI
4
+ # (workflow "release.yml", environment "pypi").
5
+ name: Release
6
+
7
+ on:
8
+ push:
9
+ tags: ["v*"]
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+ - uses: astral-sh/setup-uv@v7
20
+ - run: uv build
21
+ - uses: actions/upload-artifact@v7
22
+ with:
23
+ name: dist
24
+ path: dist/
25
+
26
+ publish:
27
+ needs: build
28
+ runs-on: ubuntu-latest
29
+ environment: pypi
30
+ permissions:
31
+ id-token: write
32
+ steps:
33
+ - uses: actions/download-artifact@v8
34
+ with:
35
+ name: dist
36
+ path: dist/
37
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ build/
5
+ dist/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .ruff_cache/
9
+
10
+ # results of local runs
11
+ proofmass-check-*/
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are written here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
5
+ [Semantic Versioning](https://semver.org/). While the version is 0.x, a MINOR version can change
6
+ how checks decide. A change to a rule or a number in docs/spec.md always raises the MINOR version
7
+ and the spec version.
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [0.1.0] - 2026-11-15
12
+
13
+ The first release. The checks follow docs/spec.md, version 0.2.
14
+
15
+ ### Added
16
+
17
+ - The checks LOAD, DROP, HOLD, TRACK, LIMIT, STABLE, SPEED, PASSIVE, GRIP and SHAKE.
18
+ - Wheeled robots: STAND, DRIVE, TURN and STEER, and joint checks with the base held up.
19
+ They read the robot's wheels from SimReady_Metadata.mobile (docs/wheeled-robots.md).
20
+ - A USD reader for packages from any maker, in SI units.
21
+ - A plan that decides which checks apply to an asset, the same way for every engine.
22
+ - results.json with a JSON Schema.
23
+ - The `proofmass-check` command: `run` and `list-checks`.
24
+ - Engines: PhysX in Isaac Sim 6.1, and Newton as an experiment.
25
+
26
+ [Unreleased]: https://github.com/proofmass/proofmass-check/compare/v0.1.0...HEAD
27
+ [0.1.0]: https://github.com/proofmass/proofmass-check/releases/tag/v0.1.0
@@ -0,0 +1,113 @@
1
+ # Contributing
2
+
3
+ Thank you for helping. This page says how the project is built, how to change it, and how we
4
+ write code and comments.
5
+
6
+ ## Set up
7
+
8
+ You need [uv](https://docs.astral.sh/uv/).
9
+
10
+ ```bash
11
+ uv sync
12
+ uv run pytest
13
+ uv run ruff check .
14
+ uv run ruff format --check .
15
+ ```
16
+
17
+ These need no GPU and no engine. They run in CI on Linux and Windows.
18
+
19
+ ## How the code is built
20
+
21
+ | Module | What it does |
22
+ |---|---|
23
+ | `usd_reader.py` | reads the USD into the classes of `model.py`, in SI units |
24
+ | `model.py` | `Asset`, `Body`, `Joint`, `GripperSite` |
25
+ | `rules.py` | every number of the spec, in one place |
26
+ | `plan.py` | which checks apply to an asset, and why the others do not |
27
+ | `checks/` | one module per check: what it asks the engine, and how it decides |
28
+ | `engines/base.py` | the `Engine` protocol: the operations an engine must give |
29
+ | `engines/<name>.py` | one engine adapter |
30
+ | `runner.py` | runs the plan on one engine |
31
+ | `report.py` | writes `results.json` |
32
+
33
+ An engine only simulates. It never decides which checks run or whether they pass. This keeps the
34
+ engines comparable: a different result in two engines comes from the engines, not from our code.
35
+
36
+ ## Changing a rule or a number
37
+
38
+ A rule or a number is part of the spec. To change one:
39
+
40
+ 1. Change `rules.py` and `docs/spec.md` together. `tests/test_spec.py` fails when they differ.
41
+ 2. Raise `SPEC_VERSION` in `rules.py`.
42
+ 3. Add a line to `CHANGELOG.md` that says what changed and why.
43
+ 4. In the pull request, say which engine, engine version and assets you ran it on, and what changed
44
+ in their results.
45
+
46
+ ## Adding a check
47
+
48
+ 1. Write down the rule in `docs/spec.md` first: what it checks in one sentence, why, the setup and
49
+ the pass rule.
50
+ 2. Add the module in `checks/`, its title in `checks/__init__.py`, and when it applies in `plan.py`.
51
+ 3. If the check needs a new engine operation, add it to `engines/base.py` and to every engine. An
52
+ engine that cannot do it yet leaves the check out of its `supported` set, and the plan reports
53
+ `N/A`.
54
+ 4. Add unit tests with `tests/fake_engine.py`.
55
+
56
+ ## Adding an engine
57
+
58
+ Implement the `Engine` protocol in `engines/base.py` in a new module with a `create()` function,
59
+ and add it to `ENGINES` in `engines/__init__.py`. Import the engine's own packages inside that
60
+ module only.
61
+
62
+ ## Tests that need a GPU
63
+
64
+ Tests that run a real engine have the `gpu` marker and are in `tests/test_engines_gpu.py`. They do
65
+ not run in CI. Run them in the engine's Python environment, with pytest installed there:
66
+
67
+ ```bash
68
+ pytest tests/test_engines_gpu.py -m gpu --engine physx
69
+ ```
70
+
71
+ ```bash
72
+ pytest tests/test_engines_gpu.py -m gpu --engine newton
73
+ ```
74
+
75
+ Give the file name: the other test files import pxr when pytest collects them, and in Isaac Sim
76
+ pxr exists only after Isaac Sim has started. Isaac Sim ends the process when it closes, so
77
+ `conftest.py` closes the engine after pytest's summary, with pytest's exit status.
78
+
79
+ Run them for every change to an engine adapter or to a check, and say in the pull request which
80
+ engine versions you used.
81
+
82
+ ## How we write comments
83
+
84
+ Write for a person who knows Python and physics, but not this code.
85
+
86
+ - Say why, not what. The code already says what.
87
+ - One idea per sentence. Split a sentence that has a semicolon or a second colon.
88
+ - Give the unit every time: m, kg, s, rad, N, N m.
89
+ - Use one name for one thing. A "joint" is not also an "axis" or a "DOF" in the next line.
90
+ - When a rule comes from somewhere, name it: an NVIDIA rule ID, a section of the spec, an engine
91
+ issue.
92
+ - No history ("changed on...", "used to..."). Git and `CHANGELOG.md` keep history.
93
+ - No notes to yourself ("kept", "hack", "see above"). Write the full sentence.
94
+ - A docstring starts with what the function returns or does, in one sentence. Details follow as
95
+ short sentences or a list.
96
+
97
+ Before: `# kept: its prims expire with it`
98
+ After: `# Keep a reference to the stage. Its prims become invalid when the stage is freed.`
99
+
100
+ ## Code style
101
+
102
+ - `ruff` formats and lints the code. Lines are at most 120 characters.
103
+ - Type hints on functions that other modules call.
104
+ - Full names for values that travel between functions (`settings`, not `st`). Short names are
105
+ fine inside a few lines.
106
+ - Every file starts with the two SPDX lines (copyright and license).
107
+
108
+ ## Pull requests
109
+
110
+ - One change per pull request. The title says what changes, for example "PASSIVE: push from the
111
+ handle of a revolute joint".
112
+ - We merge with squash, so the title becomes the commit message.
113
+ - By sending a pull request, you agree that your contribution is licensed under Apache-2.0.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ proofmass-check
2
+ Copyright 2026 Paweł Kikta
3
+ Developed by Proofmass (https://proofmass.com)
4
+
5
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.5
2
+ Name: proofmass-check
3
+ Version: 0.1.0
4
+ Summary: Physics checks for SimReady OpenUSD assets: does the asset behave in a simulator?
5
+ Project-URL: Homepage, https://github.com/proofmass/proofmass-check
6
+ Project-URL: Issues, https://github.com/proofmass/proofmass-check/issues
7
+ Project-URL: Changelog, https://github.com/proofmass/proofmass-check/blob/main/CHANGELOG.md
8
+ Author: Paweł Kikta
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: isaac-sim,newton,openusd,physics,robotics,simready,simulation
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Operating System :: Microsoft :: Windows
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
22
+ Classifier: Topic :: Scientific/Engineering :: Physics
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: numpy>=1.26
25
+ Provides-Extra: usd
26
+ Requires-Dist: usd-core>=25.5; extra == 'usd'
27
+ Description-Content-Type: text/markdown
28
+
29
+ # proofmass-check
30
+
31
+ **Does this asset behave in a simulator?**
32
+
33
+ proofmass-check runs a fixed set of physics checks on a SimReady OpenUSD asset: it does not fall
34
+ through the floor, its drives hold and reach their targets, its doors and drawers open, its gripper
35
+ holds its rated payload. Each check has one pass rule and fixed numbers, written in
36
+ [docs/spec.md](docs/spec.md).
37
+
38
+ A metadata validator tells you that an asset follows the rules. proofmass-check tells you what the
39
+ asset does when physics runs.
40
+
41
+ > **Status: alpha, in development.** The checks run in PhysX (Isaac Sim 6.1) and, as an
42
+ > experiment, in Newton. The rules and numbers may still change before version 1.0; each change
43
+ > raises the spec version.
44
+
45
+ ## The checks
46
+
47
+ | ID | What it checks | Runs on |
48
+ |---|---|---|
49
+ | `LOAD` | The engine builds every joint and the same total mass as the USD | every asset |
50
+ | `DROP` | Dropped from 10 cm, it comes to rest on the floor | assets that are not fixed to the world and have no position drives |
51
+ | `HOLD` | Drives hold the rest pose under gravity | joints with a position drive |
52
+ | `TRACK` | Drives reach 25 % and 75 % of their range | driven joints with limits |
53
+ | `LIMIT` | Limits stop a drive commanded past them | driven joints with limits |
54
+ | `STABLE` | No explosion in random poses inside the limits | driven joints with limits |
55
+ | `SPEED` | At a 60 Hz physics step, drives stay under their speed limits | driven joints with limits and a speed limit |
56
+ | `PASSIVE` | A door or drawer, pushed, reaches both limits and stops there | limited joints without a position drive |
57
+ | `GRIP` | The gripper holds 85 % of its rated payload, pulled two ways | gripper sites (NVIDIA rules GR.001 to GR.004) |
58
+ | `SHAKE` | The grip holds that load shaken at up to 2 g | gripper sites |
59
+ | `STAND` | Dropped with its wheels braked, it stands upright and still | wheeled robots |
60
+ | `DRIVE` | It drives straight along +X at the commanded speed | wheeled robots |
61
+ | `TURN` | It turns in place at the expected rate | differential and skid-steer robots |
62
+ | `STEER` | It drives the circle its steering gives | Ackermann robots |
63
+
64
+ A check that does not apply to an asset reports `N/A` with the reason. `N/A` does not fail a run.
65
+
66
+ A wheeled robot needs a short description of its wheels in the USD: see
67
+ [docs/wheeled-robots.md](docs/wheeled-robots.md).
68
+
69
+ ## Engines
70
+
71
+ | Engine | Status | Runs in | Not yet |
72
+ |---|---|---|---|
73
+ | `physx` | reference engine | Isaac Sim 6.1's Python | joints between free rigid bodies get LOAD, DROP and PASSIVE only |
74
+ | `newton` | experimental, needs an NVIDIA GPU; results can differ from run to run ([spec, section 5](docs/spec.md#5-engines)) | a Python with `newton[sim,importers]` | SPEED; STAND, DRIVE, TURN, STEER; the single axes of a D6 joint |
75
+
76
+ proofmass-check runs in the Python environment that has the engine. It does not look for other
77
+ Python installations.
78
+
79
+ **NVIDIA license.** Isaac Sim asks you to accept the NVIDIA Omniverse License Agreement the first
80
+ time it starts. proofmass-check never accepts it for you.
81
+
82
+ ## Install
83
+
84
+ Install it in the Python environment of your engine: Isaac Sim's Python for `physx`, or the Python
85
+ that has Newton for `newton`.
86
+
87
+ ```bash
88
+ pip install proofmass-check
89
+ ```
90
+
91
+ The development version, from GitHub:
92
+
93
+ ```bash
94
+ pip install "proofmass-check @ git+https://github.com/proofmass/proofmass-check"
95
+ ```
96
+
97
+ ## Run
98
+
99
+ ```bash
100
+ proofmass-check run path/to/asset.usd --engine physx
101
+ proofmass-check list-checks
102
+ ```
103
+
104
+ | Option | What it does |
105
+ |---|---|
106
+ | `--engine physx` or `newton` | the engine to run on (default `physx`) |
107
+ | `--variant SET=VALUE` | select a variant; repeat for more than one. The engine's own variant set (`PhysX`, `Newton`) is selected when the asset has it |
108
+ | `--no-floor` | no floor, for a pinned arm whose links reach below its base |
109
+ | `--settle S` | seconds a drive gets for a move (spec: 1.5). A run with another value says so in its results |
110
+ | `--out DIR` | where to write `results.json` (default `./proofmass-check-<asset name>`) |
111
+
112
+ The exit status is 0 when no check failed, 1 when a check failed, and 2 when the run could not
113
+ finish. `results.json` holds every verdict and number, the versions of the tool, the spec and the
114
+ engine, and the SHA-256 of the asset file.
115
+ [src/proofmass_check/results.schema.json](src/proofmass_check/results.schema.json) describes it.
116
+
117
+ ## How a run works
118
+
119
+ 1. **Read.** The reader reads bodies, joints and gripper sites from the USD, with the variants
120
+ selected. The file on disk does not change.
121
+ 2. **Plan.** The plan decides which checks apply to the asset, and gives the reason for each one
122
+ that does not. The plan is the same for every engine.
123
+ 3. **Simulate.** The engine runs short simulations, each from the asset's rest pose, and reports
124
+ what it measured.
125
+ 4. **Judge.** Each check compares the measurements with its rule in [docs/spec.md](docs/spec.md).
126
+
127
+ proofmass-check only measures. It never repairs an asset and never changes a setting to make a
128
+ check pass.
129
+
130
+ ## Contributing
131
+
132
+ See [CONTRIBUTING.md](CONTRIBUTING.md). To report a security problem, see [SECURITY.md](SECURITY.md).
133
+
134
+ ## License
135
+
136
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
137
+
138
+ Developed by [Proofmass](https://proofmass.com).