diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..5e6d8d0e5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,27 @@ +# Build context for docker/eval/Dockerfile: the two packages and their metadata, nothing that is downloaded, +# generated or a working copy. Assets live in the mounted roboverse_data, never in the image. +.git +.github +**/__pycache__ +**/*.pyc +**/.pytest_cache +**/.mypy_cache +**/.ruff_cache +.coverage +roboverse_data +packages/metasim/roboverse_data +packages/metasim/docs +packages/metasim/Dockerfile +docs +results +bench_results +gate_out +scratch* +scratchpad +wt +venv* +.venv* +*.egg-info +third_party +tools +examples diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7c8662427..271cb59b3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -41,8 +41,19 @@ updates: python-deps: patterns: ["*"] labels: ["dependencies", "no-changelog"] + - package-ecosystem: pip + # the benchmark environment lock: every bump here is a real pin change the evaluation image picks up + directory: /requirements + schedule: + interval: weekly + day: monday + groups: + bench-lock: + patterns: ["*"] + labels: ["dependencies", "no-changelog"] - package-ecosystem: github-actions directory: / schedule: interval: monthly + # actions are pinned by commit SHA with the version in a trailing comment; Dependabot keeps both current labels: ["dependencies", "no-changelog"] diff --git a/.github/workflows/attribution.yml b/.github/workflows/attribution.yml index b4af2aabe..cb144ece2 100644 --- a/.github/workflows/attribution.yml +++ b/.github/workflows/attribution.yml @@ -22,15 +22,18 @@ on: - "tests/test_attribution.py" - ".github/workflows/attribution.yml" push: - branches: [main, develop] + branches: [main] workflow_dispatch: +permissions: + contents: read + jobs: attribution: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" - run: python -m pip install --upgrade pip pytest diff --git a/.github/workflows/backend-compat.yml b/.github/workflows/backend-compat.yml index 67ccf4903..479ee4f6a 100644 --- a/.github/workflows/backend-compat.yml +++ b/.github/workflows/backend-compat.yml @@ -35,8 +35,8 @@ jobs: install: "superdex-physics superdex-robotics pyrender trimesh" name: ${{ matrix.backend }} @ latest (py${{ matrix.python }}) steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: ${{ matrix.python }} - name: Install MetaSim, then the backend at its newest release @@ -55,7 +55,15 @@ jobs: env: MUJOCO_GL: disable METASIM_SKIP_VERSION_CHECK: "1" # the point is to run on versions outside `tested` - run: python -m pytest -k "${{ matrix.backend }}" -q -rs -p no:cacheprovider + # --continue-on-collection-errors: a -k selection still collects every module, and a module that imports + # another backend at import time (mujoco in a renderer test) must not fail this lane + run: python -m pytest -k "${{ matrix.backend }}" -q -rs -p no:cacheprovider --continue-on-collection-errors + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: backend-compat-${{ matrix.backend }} + path: doctor.txt + if-no-files-found: warn - name: Open or update the tracking issue on failure if: failure() env: @@ -65,5 +73,6 @@ jobs: run: | title="backend-compat: ${BACKEND} @ latest fails" body=$(printf 'The weekly compatibility run of the **%s** backend against its newest release failed.\n\nRun: %s/%s/actions/runs/%s\n\n```\n%s\n```\n\nNext: fix or shim in `packages/metasim/metasim/sim/%s/`, then update `spec` / `tested` in `metasim/sim/_versions.py`.' "$BACKEND" "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" "$VERSIONS" "$BACKEND") + gh label create backend-compat --color B60205 --description "weekly newest-backend run failed" --force >/dev/null 2>&1 || true existing=$(gh issue list --search "\"$title\" in:title" --state open --json number --jq '.[0].number') if [ -n "$existing" ]; then gh issue comment "$existing" --body "$body"; else gh issue create --title "$title" --body "$body" --label backend-compat; fi diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 31bbe9420..d02c8b759 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,11 +7,14 @@ on: pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] +permissions: + contents: read + jobs: changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 - name: Require a CHANGELOG entry for library changes diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 0252bf2a8..2c6282b1c 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,29 +1,35 @@ name: Deploy docs to Cloudflare Pages +# Runs after the Tests workflow succeeded on main (a red main never publishes), and on every release tag, +# which gets its own frozen copy of the site at .roboverse-release.pages.dev. on: - push: + workflow_run: + workflows: ["Tests"] + types: [completed] branches: [main] - paths: - - 'docs/**' - - 'packages/metasim/docs/**' - - 'scripts/docs/**' - - 'roboverse_pack/tasks/**' - - '.github/workflows/deploy-docs.yml' + push: + tags: ["v*"] workflow_dispatch: concurrency: group: deploy-docs cancel-in-progress: true +permissions: + contents: read + jobs: build-and-deploy: + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest permissions: contents: read steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + ref: ${{ github.event.workflow_run.head_sha || github.sha }} - - uses: actions/setup-python@v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: '3.11' cache: pip @@ -40,8 +46,9 @@ jobs: METASIM_REF: main - name: Deploy to Cloudflare Pages - uses: cloudflare/wrangler-action@v4 + uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy public --project-name=roboverse-release --branch=main + # main is the production branch; a tag deploys under its own name (v1.0.0 -> v1-0-0..pages.dev) + command: pages deploy public --project-name=roboverse-release --branch=${{ github.ref_type == 'tag' && github.ref_name || 'main' }} diff --git a/.github/workflows/eval-image.yml b/.github/workflows/eval-image.yml new file mode 100644 index 000000000..fd9b76332 --- /dev/null +++ b/.github/workflows/eval-image.yml @@ -0,0 +1,93 @@ +# The evaluation container (docker/eval/Dockerfile): built on every change that can affect it and smoke-tested +# by scoring one task end to end inside the image; published to GHCR on a release tag only, after the tag is +# checked against the package versions, with the version, commit, schema and protocol in its labels and the +# image digest in the run summary. `latest` moves only for a final release, never for a pre-release tag. +name: eval-image + +on: + pull_request: + paths: + - docker/eval/** + - .dockerignore + - pyproject.toml + - packages/metasim/pyproject.toml + - requirements/bench-cpu.lock.txt + - .github/workflows/eval-image.yml + push: + tags: ["v*"] + workflow_dispatch: + +permissions: + contents: read + +env: + IMAGE: ghcr.io/${{ github.repository_owner }}/roboverse-eval + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 60 + permissions: + contents: read + packages: write # used by the publish steps only, which run on a release tag + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Version from the tag (or the branch's pyproject for a PR build) + id: ver + run: | + python3 -m pip install --quiet tomli + pv=$(python3 -c "import tomli; print(tomli.load(open('pyproject.toml','rb'))['project']['version'])") + if [[ "$GITHUB_REF" == refs/tags/v* ]]; then + tag="${GITHUB_REF_NAME#v}" + if [[ "$pv" != "$tag" ]]; then echo "::error::tag v$tag != roboverse-py version $pv; no image for a mismatched tag"; exit 1; fi + echo "version=$tag" >> "$GITHUB_OUTPUT" + else + echo "version=$pv.dev+${GITHUB_SHA::10}" >> "$GITHUB_OUTPUT" + fi + - name: Build + run: >- + docker build -t roboverse-eval:ci -f docker/eval/Dockerfile + --build-arg VERSION="${{ steps.ver.outputs.version }}" --build-arg GIT_SHA="$GITHUB_SHA" . + - name: "Smoke test: score the replay baseline on one task inside the image" + run: | + mkdir -p roboverse_data out + docker run --rm \ + -v "$PWD/roboverse_data:/opt/roboverse/roboverse_data" -v "$PWD/out:/out" \ + roboverse-eval:ci bench run --task pick_cube --sim mujoco --policy replay --episodes 1 --device cpu \ + --video /out/videos --out /out/pick_cube.json + docker run --rm -v "$PWD/out:/out" roboverse-eval:ci bench validate /out/pick_cube.json + docker run --rm --entrypoint cat roboverse-eval:ci /opt/roboverse/IMAGE_FREEZE.txt > out/IMAGE_FREEZE.txt + docker inspect roboverse-eval:ci --format '{{json .Config.Labels}}' | tee out/labels.json + ls -la out out/videos + python3 -c "import json; r=json.load(open('out/pick_cube.json')); print(r['notes']['command']); print(r['provenance']['backend_versions'])" + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: eval-image-smoke + path: out/ + if-no-files-found: error + - name: Log in to GHCR + if: startsWith(github.ref, 'refs/tags/v') + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin + - name: Publish the release image + if: startsWith(github.ref, 'refs/tags/v') + run: | + tag="${{ steps.ver.outputs.version }}" + image="$(echo "$IMAGE" | tr '[:upper:]' '[:lower:]')" + docker tag roboverse-eval:ci "$image:$tag" + docker push "$image:$tag" + # a pre-release (1.1.0rc1, 1.1.0a1, 1.1.0b2) never moves `latest` + if [[ ! "$tag" =~ [0-9](a|b|rc)[0-9] ]]; then + docker tag roboverse-eval:ci "$image:latest" + docker push "$image:latest" + fi + digest=$(docker inspect --format='{{index .RepoDigests 0}}' "$image:$tag") + { + echo "## roboverse-eval $tag" + echo + echo "- image: \`$image:$tag\`" + echo "- digest: \`$digest\`" + echo "- commit: \`$GITHUB_SHA\`" + echo + echo "Pull by digest to cite the exact environment: \`docker pull $digest\`" + } >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/metasim-premerge.yml b/.github/workflows/metasim-premerge.yml index 7e3d81fa2..71b3a3cc7 100644 --- a/.github/workflows/metasim-premerge.yml +++ b/.github/workflows/metasim-premerge.yml @@ -32,7 +32,7 @@ jobs: timeout-minutes: 720 steps: - name: Checkout code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - run: aws --version ############# Prebuild ############ - name: pre_build @@ -427,13 +427,13 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} run: | set -euo pipefail - echo "Checking if .github/workflows/premerge-ci.yml is modified in PR #$PR_NUMBER..." + echo "Checking if .github/workflows/metasim-premerge.yml is modified in PR #$PR_NUMBER..." CHANGES=$(gh pr diff "$PR_NUMBER" --name-only -R ${{ github.repository }}) - if echo "$CHANGES" | grep -q "^.github/workflows/premerge-ci.yml$"; then + if echo "$CHANGES" | grep -q "^.github/workflows/metasim-premerge.yml$"; then echo "โŒ Critical workflow modification detected!" echo "For security reasons, this workflow file cannot be modified via Pull Request." - echo "Please revert changes to .github/workflows/premerge-ci.yml to pass this check." + echo "Please revert changes to .github/workflows/metasim-premerge.yml to pass this check." exit 1 fi diff --git a/.github/workflows/mirror-metasim.yml b/.github/workflows/mirror-metasim.yml index eca4d2390..bfcd96c74 100644 --- a/.github/workflows/mirror-metasim.yml +++ b/.github/workflows/mirror-metasim.yml @@ -19,12 +19,15 @@ concurrency: group: mirror-metasim cancel-in-progress: false +permissions: + contents: read + jobs: mirror: runs-on: ubuntu-latest if: ${{ vars.METASIM_MIRROR_ENABLED == 'true' }} steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 - name: Split packages/metasim and push to the mirror diff --git a/.github/workflows/nightly-gate.yml b/.github/workflows/nightly-gate.yml new file mode 100644 index 000000000..051ceaffa --- /dev/null +++ b/.github/workflows/nightly-gate.yml @@ -0,0 +1,100 @@ +# The nightly task gate: the replay baseline, the hold-policy floor and the determinism check on every +# registered task, on the backends the release stands behind, plus the robot sweep. A task that is red here +# two nights in a row is unregistered by the next PR (roboverse_pack/tasks/RETIRED_TASKS.md). +# +# Two lanes. MuJoCo runs on a hosted runner inside the evaluation image built from this checkout (the same +# environment a submitter's result comes from); Isaac Sim needs the self-hosted GPU runner (labels: +# self-hosted, gpu, roboverse). Each lane uploads its report, writes it to the run summary, and on a red +# night opens (or comments on) the tracking issue, so a failure never sits unseen in the Actions tab. +name: nightly-gate + +on: + schedule: + - cron: "15 3 * * *" + workflow_dispatch: + inputs: + sim: + description: backend (mujoco, isaacsim, both) + default: mujoco + +permissions: + contents: read + +jobs: + mujoco: + if: ${{ github.event_name == 'schedule' || inputs.sim == 'mujoco' || inputs.sim == 'both' }} + runs-on: ubuntu-latest + timeout-minutes: 300 + permissions: + contents: read + issues: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Build the evaluation image from this checkout + run: docker build -t roboverse-eval:gate -f docker/eval/Dockerfile --build-arg GIT_SHA="$GITHUB_SHA" . + - name: Restore the asset cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + with: + path: roboverse_data + key: roboverse-data-${{ hashFiles('roboverse_pack/tasks/**/*.py', 'roboverse_pack/robots/**/*.py') }} + restore-keys: roboverse-data- + - name: Run the gate inside the image + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + run: | + mkdir -p roboverse_data gate_out/mujoco + docker run --rm -v "$PWD:/work" -w /work -e HF_TOKEN -e ROBOVERSE_GATE_PYTHON=python \ + --entrypoint bash roboverse-eval:gate tools/gate/nightly.sh mujoco gate_out/mujoco + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() # the gate exits 1 when a task fails; that is exactly when the report matters + with: + name: gate-mujoco + path: gate_out/mujoco/ + if-no-files-found: error + - name: Summary + if: always() + run: | + cat gate_out/mujoco/health.md >> "$GITHUB_STEP_SUMMARY" + if [ -f gate_out/mujoco/robots/robots.md ]; then + { echo; echo "## Robot sweep (mujoco)"; cat gate_out/mujoco/robots/robots.md; } >> "$GITHUB_STEP_SUMMARY" + fi + - name: Open or update the tracking issue on a red night + if: failure() + env: + GH_TOKEN: ${{ github.token }} + run: tools/gate/report_failure.sh mujoco gate_out/mujoco + + isaacsim: + if: ${{ github.event_name == 'schedule' || inputs.sim == 'isaacsim' || inputs.sim == 'both' }} + runs-on: [self-hosted, gpu, roboverse] + timeout-minutes: 300 + permissions: + contents: read + issues: write + env: + # the self-hosted runner's Isaac Sim 6 interpreter (tools/install/isaacsim6.sh); the script fails fast + # with the path it looked for when this is not an executable + ROBOVERSE_GATE_PYTHON: ${{ vars.ISAACSIM_PYTHON || '/opt/isaacsim6/bin/python' }} + HF_TOKEN: ${{ secrets.HF_TOKEN }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Run the gate + run: tools/gate/nightly.sh isaacsim gate_out/isaacsim + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: gate-isaacsim + path: gate_out/isaacsim/ + if-no-files-found: error + - name: Summary + if: always() + run: | + cat gate_out/isaacsim/health.md >> "$GITHUB_STEP_SUMMARY" + if [ -f gate_out/isaacsim/robots/robots.md ]; then + { echo; echo "## Robot sweep (isaacsim)"; cat gate_out/isaacsim/robots/robots.md; } >> "$GITHUB_STEP_SUMMARY" + fi + - name: Open or update the tracking issue on a red night + if: failure() + env: + GH_TOKEN: ${{ github.token }} + run: tools/gate/report_failure.sh isaacsim gate_out/isaacsim diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index fa8c71cdc..47b79ecf0 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -12,7 +12,7 @@ jobs: permissions: pull-requests: read steps: - - uses: amannn/action-semantic-pull-request@v6 + - uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 266e52674..064eae210 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,23 +1,26 @@ name: release -# Tag vX.Y.Z on main -> verify version, build, GitHub Release, PyPI (trusted publishing, when the -# `pypi` environment exists). See RELEASING.md. +# Tag vX.Y.Z on main -> verify the version and the CHANGELOGs, build, publish to PyPI (trusted publishing, +# once the `pypi` environment exists and the PYPI_PUBLISH repository variable is "true"), then the GitHub +# Release with the CHANGELOG sections as notes. The Release is cut only after PyPI succeeded (or was +# deliberately skipped), so a Release never points at wheels that are not on the index. See RELEASING.md. on: push: tags: ["v*"] permissions: - contents: write + contents: read jobs: build: runs-on: ubuntu-latest outputs: version: ${{ steps.ver.outputs.version }} + prerelease: ${{ steps.ver.outputs.prerelease }} steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" - name: Tag must equal pyproject version @@ -30,56 +33,67 @@ jobs: if [[ "$pv" != "$tag" ]]; then echo "::error::tag v$tag != roboverse-py version $pv"; exit 1; fi if [[ "$mv" != "$tag" ]]; then echo "::error::tag v$tag != roboverse-metasim version $mv (packages are released in lockstep)"; exit 1; fi echo "version=$pv" >> "$GITHUB_OUTPUT" + # PEP 440 pre-release segments: 1.1.0a1, 1.1.0b2, 1.1.0rc1 + if [[ "$tag" =~ [0-9](a|b|rc)[0-9] ]]; then echo "prerelease=true" >> "$GITHUB_OUTPUT"; else echo "prerelease=false" >> "$GITHUB_OUTPUT"; fi + - name: CHANGELOGs have this version and an empty Unreleased section + env: + VERSION: ${{ steps.ver.outputs.version }} + run: python tools/release/changelog_check.py --version "$VERSION" --require-empty-unreleased + - name: Lock is current + run: | + python -m pip install uv + tools/release/lock.sh --check - run: python -m pip install build twine - run: python -m build --outdir dist packages/metasim && python -m build --outdir dist . - - run: python -m twine check dist/* - - name: Extract this version's CHANGELOG section - run: | - python - <<'PY' - import re, os - v = os.environ["VERSION"] - parts = [] - for name, path in [("roboverse-py", "CHANGELOG.md"), ("roboverse-metasim", "packages/metasim/CHANGELOG.md")]: - text = open(path, encoding="utf-8").read() - m = re.search(rf"^## \[{re.escape(v)}\][^\n]*\n(.*?)(?=^## \[|\Z)", text, re.S | re.M) - parts.append(f"## {name} {v}\n\n" + (m.group(1).strip() if m else f"See {path} for {v}.")) - body = "\n\n".join(parts) - open("release_notes.md", "w", encoding="utf-8").write(body + "\n") - PY + - run: python -m twine check --strict dist/* + - name: Extract this version's CHANGELOG sections as the release notes env: VERSION: ${{ steps.ver.outputs.version }} - - uses: actions/upload-artifact@v7 + run: python tools/release/changelog_check.py --version "$VERSION" --notes release_notes.md + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: dist path: | dist/* release_notes.md - github-release: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v8 - with: - name: dist - - uses: softprops/action-gh-release@v3 - with: - body_path: release_notes.md - prerelease: ${{ contains(github.ref_name, 'rc') || contains(github.ref_name, 'a') || contains(github.ref_name, 'b') }} - files: dist/*.whl dist/*.tar.gz - pypi: - # Runs only after the `pypi` environment with a trusted publisher exists (RELEASING.md ยง5); - # without it the job fails on the OIDC exchange and the GitHub Release above still stands. + # Trusted publishing needs the `pypi` environment (RELEASING.md ยง5). The job runs only once the + # PYPI_PUBLISH repository variable is "true", so a tag before that set-up skips it instead of failing + # on the OIDC exchange; the GitHub Release below then says so. needs: build + if: ${{ vars.PYPI_PUBLISH == 'true' }} runs-on: ubuntu-latest environment: pypi permissions: id-token: write steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: name: dist path: dist - run: rm -f dist/release_notes.md - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1 + + github-release: + needs: [build, pypi] + # after PyPI succeeded, or when PyPI was skipped on purpose; never after a PyPI failure + if: ${{ always() && needs.build.result == 'success' && needs.pypi.result != 'failure' && needs.pypi.result != 'cancelled' }} + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + with: + name: dist + - name: Note when the wheels are not on PyPI yet + if: ${{ needs.pypi.result == 'skipped' }} + run: | + printf '\n> PyPI publishing was skipped (the `pypi` environment is not configured yet); install from the attached wheels.\n' >> release_notes.md + - uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3 + with: + body_path: release_notes.md + prerelease: ${{ needs.build.outputs.prerelease == 'true' }} + files: | + dist/*.whl + dist/*.tar.gz diff --git a/.github/workflows/task-contract.yml b/.github/workflows/task-contract.yml index 177d33af0..40cd59cdc 100644 --- a/.github/workflows/task-contract.yml +++ b/.github/workflows/task-contract.yml @@ -12,17 +12,29 @@ on: - "tests/test_task_reset_seed_contract.py" - ".github/workflows/task-contract.yml" push: - branches: [main, develop] + branches: [main] workflow_dispatch: +permissions: + contents: read + jobs: task-contract: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" - - run: python -m pip install --upgrade pip pytest + - run: python -m pip install --upgrade pip pytest huggingface_hub - name: Run task-contract guardrail - run: python -m pytest tests/test_task_reset_seed_contract.py -v + run: python -m pytest tests/test_task_reset_seed_contract.py tests/test_task_contract_static.py -v + - name: Every roboverse_data path the packs name exists on the Hub + # allow: the robot template's placeholder paths; the Blender asset root (a directory prefix the loader lists + # at run time); openarm_wuji and sharpa_wave, whose assets are not on the Hub yet (TODO(upload): remove once uploaded; + # scratch/hf_upload_1.0.0.py carries sharpa_wave); + # EmbodiedGen / Kujiale (manycore) collections, fetched by their own downloaders, not from the Hub dataset + run: >- + python tools/assets/check_manifest.py --hub-only + --allow roboverse_data/robots/your_robot roboverse_data/blender roboverse_data/robots/openarm_wuji + roboverse_data/robots/sharpa_wave roboverse_data/assets/EmbodiedGenData roboverse_data/scenes/manycore diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b762b513..95f626b8f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,14 +22,17 @@ concurrency: group: tests-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: lint: # Same ruff version as .pre-commit-config.yaml so local pre-commit and CI agree. runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" - run: python -m pip install "ruff==0.14.5" @@ -45,11 +48,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] # 3.12 is the interpreter of the Isaac Sim 6 and SuperDex lanes name: metasim general (${{ matrix.python-version }}) steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: ${{ matrix.python-version }} cache: pip @@ -73,7 +76,7 @@ jobs: run: | echo "### MetaSim coverage (py${{ matrix.python-version }})" >> "$GITHUB_STEP_SUMMARY" python -m coverage report --format=markdown --skip-covered --sort=cover | head -60 >> "$GITHUB_STEP_SUMMARY" || true - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 if: always() with: name: coverage-metasim-py${{ matrix.python-version }} @@ -84,8 +87,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" cache: pip @@ -107,12 +110,18 @@ jobs: # Reset 2026-11-28 to the measured value after the task curation (3083 -> 62 task classes) removed # content together with its tests: 40.4% of 12,910 statements. From here it only moves up. run: python -m pytest tests/ -rs --cov=roboverse_pack --cov=roboverse_learn --cov-report=xml --cov-report=term --cov-fail-under=40 + - name: Leaderboard page matches the result files + run: python tools/bench/leaderboard.py --check + - name: Robots page matches the configs and the robot result files + run: python docs/source/dataset_benchmark/dataset/generate_robot_docs.py --check + - name: Task inventory page matches the registry + run: python docs/source/dataset_benchmark/tasks/generate_task_docs.py --check - name: Coverage summary if: always() run: | echo "### RoboVerse coverage" >> "$GITHUB_STEP_SUMMARY" python -m coverage report --format=markdown --skip-covered --sort=cover | head -60 >> "$GITHUB_STEP_SUMMARY" || true - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 if: always() with: name: coverage-roboverse @@ -125,8 +134,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 with: python-version: "3.11" - run: python -m pip install --upgrade pip build twine tomli @@ -152,5 +161,23 @@ jobs: print("roboverse-py", a, "roboverse-metasim", b) sys.exit(0 if a == b else 1) PY + - name: CHANGELOGs have a section for the pyproject version (so main is always taggable) + run: | + v=$(python -c "import tomli; print(tomli.load(open('pyproject.toml','rb'))['project']['version'])") + python tools/release/changelog_check.py --version "$v" - run: python -m build --outdir dist packages/metasim && python -m build --outdir dist . - run: python -m twine check --strict dist/* + + lock: + # The benchmark environment lock (requirements/bench-cpu.lock.txt) is what the evaluation image installs; + # it must be regenerated when either pyproject or the pins change, by tools/release/lock.sh. + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 + with: + python-version: "3.11" + - run: python -m pip install uv + - name: requirements/bench-cpu.lock.txt is current + run: tools/release/lock.sh --check diff --git a/.github/workflows/verify-submissions.yml b/.github/workflows/verify-submissions.yml new file mode 100644 index 000000000..1d4e93942 --- /dev/null +++ b/.github/workflows/verify-submissions.yml @@ -0,0 +1,81 @@ +name: Verify submissions + +# Re-run every reproducible leaderboard submission (results/// without PROVISIONAL.md) from its own +# files inside the evaluation image built from this checkout, and record the outcome next to it as VERIFIED.json +# (tools/bench/verify_submission.py). The page shows the status. Runs weekly and on demand; the records are +# uploaded as an artifact and, when the repository variable VERIFY_OPEN_PR is "true", pushed as a pull request. +# Submissions made with a served policy cannot be re-run here (no model server on a hosted runner) and are +# recorded as skipped with the command that would verify them. + +on: + schedule: + - cron: "0 3 * * 0" # Sundays 03:00 UTC, after the nightly gate + workflow_dispatch: + inputs: + submission: + description: "one submission (results//), default: every reproducible one" + required: false + type: string + +permissions: + contents: read + +concurrency: + group: verify-submissions + cancel-in-progress: false + +jobs: + verify: + runs-on: ubuntu-latest + timeout-minutes: 360 + permissions: + contents: write # the VERIFIED.json branch, only when VERIFY_OPEN_PR is set + pull-requests: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Build the evaluation image from this checkout + run: docker build -t roboverse-eval:verify -f docker/eval/Dockerfile --build-arg GIT_SHA="$GITHUB_SHA" . + - name: Restore the asset cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + with: + path: roboverse_data + key: roboverse-data-${{ hashFiles('roboverse_pack/suites/manifests/*.json') }} + restore-keys: roboverse-data- + - name: Re-run the submissions inside the image + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + TARGET: ${{ inputs.submission }} + run: | + mkdir -p roboverse_data bench_results/verify + if [ -n "$TARGET" ]; then args="$TARGET"; else args="--all"; fi + docker run --rm -v "$PWD:/work" -w /work -e HF_TOKEN -e PYTHONPATH=/work/packages/metasim:/work \ + -e ROBOVERSE_IMAGE="roboverse-eval:verify@$GITHUB_SHA" -e ROBOVERSE_VERIFIER="github-actions" \ + --entrypoint python roboverse-eval:verify tools/bench/verify_submission.py $args --write \ + --out bench_results/verify | tee bench_results/verify/summary.txt + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: always() + with: + name: verified + path: | + bench_results/verify/**/VERIFIED.json + bench_results/verify/**/run.log + bench_results/verify/summary.txt + if-no-files-found: warn + - name: Summary + if: always() + run: | + { echo "## Submission verification"; echo; echo '```'; cat bench_results/verify/summary.txt; echo '```'; } >> "$GITHUB_STEP_SUMMARY" + - name: Open a pull request with the records + if: vars.VERIFY_OPEN_PR == 'true' + env: + GH_TOKEN: ${{ github.token }} + run: | + git add results/*/*/VERIFIED.json + if git diff --cached --quiet; then echo "no record changed"; exit 0; fi + branch="bot/verified-$(date -u +%F)" + git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \ + commit -m "chore(results): record the $(date -u +%F) verification run" + git push --force origin "HEAD:$branch" + gh pr create --head "$branch" --title "chore(results): verification run $(date -u +%F)" \ + --body "VERIFIED.json written by the verify-submissions workflow (run $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID). Regenerate the leaderboard page before merging: \`python tools/bench/leaderboard.py\`." \ + || echo "the pull request could not be opened (the Actions setting 'Allow GitHub Actions to create pull requests' may be off); the records are in the artifact" diff --git a/.gitignore b/.gitignore index 4aa906e8c..f60080f79 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,8 @@ outputs/ il_outputs/ eval_outputs/ tmp/ -results/ +# experiment outputs; the results registry (results///) is tracked +results/**/*.log RoboVersePage unused/ Open6DOR @@ -143,3 +144,11 @@ third_party/ INTEGRATION_LOG.md *.hdf5 libero_datasets/ + +# benchmark runs, gates and coverage written by the CLI and CI; results/ is the committed registry +bench_results/ +gate_out/ +.coverage +coverage.xml +scratch*/ +wt/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 1672d803a..5d02ffdf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,51 @@ release. ## [Unreleased] +### Added +- `tools/bench/verify_submission.py` and the weekly `verify-submissions` workflow: every reproducible leaderboard submission is re-run from its files inside the evaluation image, the per-task success rates compared within a tolerance, and the outcome recorded next to it as `VERIFIED.json` (`reproduced` / `partial` / `failed`), which the leaderboard page shows; a served policy is skipped with the command that would verify it (`--policy-url` re-runs it against a server). +- `roboverse_pack/suites/manifests/tabletop-mujoco.json`, frozen by `tools/assets/freeze_suite_manifest.py --suite tabletop-mujoco` (`--check` compares the local files): the 73 files the suite's five tasks load on MuJoCo (the Franka MJCF with its meshes, one demo file per task) with their sha256 and the Hub revision they were fetched at. The suite pins its downloads to that revision, a run on other bytes is refused, and `tests/test_suites.py` checks the manifest against the local assets where they exist. +- `requirements/bench-cpu.lock.txt` (`tools/release/lock.sh`, checked for drift by the `lock` CI job): the resolved benchmark environment (MuJoCo on CPU, the engine versions pinned to the `tested` ones of `metasim/sim/_versions.py`). The evaluation container installs from it on a digest-pinned base, with the two RoboVerse packages added `--no-deps`, carries the version, commit, result schema and wire protocol in its OCI labels and its `pip freeze` in `IMAGE_FREEZE.txt`; the publish step writes the image digest to the run summary and moves `latest` for final releases only. +- `tools/release/changelog_check.py`: both CHANGELOGs must name the version being released (every PR, in `release-dry-run`) and leave nothing under `[Unreleased]` (on the tag); it also writes the release notes. `CITATION.cff` for GitHub's "Cite this repository" and Zenodo. +- The nightly gate's MuJoCo lane runs on a hosted runner inside the evaluation image built from the checkout (the Isaac Sim lane keeps the self-hosted runner, with the interpreter path as a repository variable and a fail-fast check); a red night opens or updates a `nightly-gate` tracking issue with the health table (`tools/gate/report_failure.sh`), and the README carries the gate and tests badges. +- The leaderboard page ends each submission with a provenance table, one row per result file: tier, episodes, seed, episode cap and its source, seconds per episode (the run's wall clock over its episodes, for budgeting), checkpoint hash, usage counters (model calls, tokens, tool calls) and the recorded command, so a row can be judged for comparability and re-run from the page alone; `tools/bench/leaderboard.py` is now driven by `tests/test_leaderboard_generator.py` (layout rule, schema failure, `--check`). +- `docker/eval/Dockerfile`: the evaluation container (MuJoCo on CPU, EGL / OSMesa headless rendering, entry point `python -m metasim`), built from the checkout with CPU torch; `.github/workflows/eval-image.yml` builds it on every pull request that touches it, scores the replay baseline on one task inside it with `--video`, validates the result file, and publishes `ghcr.io/roboverseorg/roboverse-eval:` on a release tag. One command in, result files out, for a CI job or an air-gapped machine with a mounted asset directory. +- `tests/test_roboverse_robot_cfg_validation.py` checks that every robot config's asset fields name a file of their format (`usd_path` a USD, `mjcf_path` an MJCF, `urdf_path` a URDF; `metasim.utils.asset_check.check_asset_fields`): the mjlab g1, go1, YAM and cartpole configs pointed `usd_path` and `urdf_path` at their MJCF, which Isaac Sim 6 spawned as an empty prim ("no rigid bodies under the prim"). +- `docs/source/dataset_benchmark/tasks/inventory.md`, generated from the task registry by `generate_task_docs.py` (every registered name with its module, by pack; the suites; the number of distinct retired tasks by family) with a `--check` step in CI. It replaces the hand-written `descriptions.md` and `task_groups.md` and the 42 per-task pages the Sphinx build used to generate under `tasks_md/`, which described retired source families with placeholder text and were in no toctree; the build-time hook is gone. +- `results/robots/`: the robot kit's result files (`--check/robots.json` from `robot check --all`, `-parity--/.json` from `robot parity`), and `generate_robot_docs.py` renders the newest of each into the Robots page (self-check and cross-engine parity tables) with a `--check` step in CI, so the robot numbers in the docs are generated like the leaderboard's. First entries: the MuJoCo sweep (42 robots, 17 pass) and the MuJoCo vs Isaac Sim 6 parity runs of 2026-11-28. +- `docs/source/start/add_a_robot.md`: the robot kit route (`robot add` from the MJCF, the six-row self-check with the new `actuators` row, `robot parity` MuJoCo vs Isaac Sim 6) with the measured Franka and YAM results and the parity sweep of every dual-asset robot (Franka, UR5e, UR10e, Z1 and Gen3 agree within 0.04 rad at 0.63 rad/s, Franka within 0.004 rad at 1.5 rad/s; H1 reported not judged; iiwa14's USD does not build); `robot_template.py` points at it. +- `FrankaCfg` docstring: the measured MuJoCo vs Isaac Sim 6 tracking agreement (within 0.005 rad), the unpinned effort limits (MJCF +-40 N m vs USD 87 / 12 N m, no `effort_limit_sim` set) and why they stay unpinned (pinning them drops the MuJoCo replay baseline of stack_cube to 0.6). +- `SECURITY.md`: private vulnerability reporting through GitHub, acknowledgement in 3 working days, coordinated disclosure within 90 days, supported versions. +- `tools/assets/check_manifest.py`: every `roboverse_data/...` literal in the content packs must exist on the Hub (or locally); runs in the `task-contract` workflow on every pull request. It would have caught the 2587 generated ManiSkill tasks whose assets never existed. +- `tests/test_task_contract_static.py`: the task contract checked in source on every pull request: unique registered names, one registration per class, at most 16 registered classes per module (variants are parameters, not generated classes), a class-level scenario or a pack base class, `traj_filepath` under `roboverse_data/`. +- `.github/workflows/nightly-gate.yml` + `tools/gate/nightly.sh`: the nightly task gate (`bench health --floor --repeat 2`) on MuJoCo and Isaac Sim 6 for every registered task, on the self-hosted GPU runner, with the health table as the job summary. +- `results/`: the results registry (one dated directory per submission, every file validated against the result schema) and `tools/bench/leaderboard.py`, which generates `docs/source/dataset_benchmark/benchmark/leaderboard.md` from it (methods x tiers per suite, per-submission tables with provenance); CI fails when the page is stale. First submission: the 2026-11-27 methods x perspectives proof of concept (45 result files). +- Three start pages (`docs/source/start/`): evaluate a policy in ten minutes, add a task, add a robot: the contract and the commands, with the gate as the review. +- `docs/source/dataset_benchmark/dataset/generate_robot_docs.py` regenerates `robots.md` from the robot configs; the hand-written table listed robots that had no config. + +### Fixed +- `tools/release/lock.sh --check` starts from the committed lock, so the lock gate is red only when the inputs changed, not whenever a transitive dependency publishes a release. `tools/assets/freeze_suite_manifest.py` hashes what the launched handler loads (robots, objects and a scene, through the same enumeration as the provenance) and resolves a demo directory by the loader's rule, so a manifest cannot disagree with the provenance of the runs it checks. +- The weekly backend-compat run could never file its issue (the `backend-compat` label did not exist) and its PyBullet lane failed on collecting a MuJoCo test module; the label is created on demand, collection errors no longer fail the lane, and the version report is uploaded as an artifact. The MetaSim pre-merge workflow's integrity check guarded a file that does not exist. +- The task registry no longer reports an import failure for `beyondmimic.tracking_g1` on an install without `wandb`: the RSL-RL tracking config imports it only when a run path has to be resolved. `.gitignore` covers `bench_results/`, `gate_out/`, coverage files, `scratch*/` and `wt/`. +- H1, H1-wrist, H1-hand and H1-simple-hand spawn standing: the four configs declare `default_position` (pelvis at 1.14 / 1.20 m) because their MJCF roots the pelvis at the origin, so a bare scenario (robot check, a gallery render, a first run on the robot) put the legs 1.1 to 1.2 m below the floor. Tasks were unaffected (their initial states carry the root pose). `tests/test_roboverse_robot_cfg_validation.py` now judges every floating-base robot with an MJCF at its default pose. +- Eight robot configs that `robot check` failed in the config row now carry what the handlers were silently falling back to: `default_joint_positions` for fetch, sawyer, unitree_dex3_1_left, kinova_gen3_robotiq_2f85, h1_simple_hand and h1_hand (the zero pose clamped into the limits, or the MJCF defaults when there is an MJCF; the Franka home pose for franka_with_gripper_extension), `joint_limits` for the 48 Shadow-hand joints of h1_hand (from its MJCF) and for google_robot_static (from its URDF). +- `MjlabG1Cfg` loads the 29-dof g1 USD and URDF on the Hub (`roboverse_data/robots/g1/`, the same joint names as its mjlab MJCF) on Isaac Sim and the URDF backends; `MjlabGo1Cfg`, `MjlabYamCfg` and `MjlabCartpoleCfg` declare no USD or URDF (none exists on the Hub) and are `n/a` on those backends instead of failing with an unrelated error. +- The iiwa14 USD on the Hub is a shell over `usd/configuration/*.usd`; MetaSim now fetches a USD's folder (and, on a USD backend, its composition), so the robot builds on Isaac Sim 6 from a fresh machine and passes `robot check --sim isaacsim`. +- Docs build warnings: the SmolVLA page linked a pi0 README outside the docs tree (now the repository link); the orphan Dreamer page described a method that is not in the tree and is removed. The build is warning-free on the pages this release touches. +- `tools/bench/leaderboard.py` skips `results/robots/` (robot check and parity runs are not benchmark results; the check crashed on them). `tools/assets/check_manifest.py` keeps checking a static `roboverse_data/...` literal when the same path also appears in an f-string elsewhere (it used to drop it). The nightly gate uploads the whole gate directory (robot sweep tables, child logs) and no longer forces `MUJOCO_GL=egl`; the entry rule in `metasim.sim.gl` decides. +- The benchmark task base asks `metasim.sim.gl.apply_headless_gl()` for a headless MuJoCo render backend instead of forcing `MUJOCO_GL=egl` on its own (one rule, probed for the library, Linux only). +- Robot configs corrected by `python -m metasim robot check` (2026-11-28 sweep of all 43 configs on MuJoCo): so_arm100, koch_1, ur5e, ur10e, lite6 and arx_l5 named a tool body (`tool0`) their MJCF does not have and now name the real last link; so_arm100, koch_1, gen3 and iiwa14 carried another arm's joint limits and now match their MJCF ranges (so_arm100's wrist default was 0.7 rad outside the reachable range); the ARX L5 gripper actuator is keyed by its joint (`joint7`). `AlohaAgilexCfg`, `ArxL5Cfg` and `Z1Cfg` are exported from `roboverse_pack.robots` (they were unreachable by name). The sweep table and the remaining backlog are in `docs/source/start/add_a_robot.md`. + +### Changed +- Docs: the landing page leads with "Evaluate a policy in ten minutes", the benchmark page and the leaderboard; `dataset_benchmark/index.md` lists the suites that exist (`bench suite list`) instead of invented ones; `benchmark/overview.md` is the canonical page on what is scored, what a result file guarantees, the baselines and how a row enters; the new `benchmark/remote_protocol.md` is the observation and action contract (paths, dtypes, shapes, units, frames per tier; routes; usage; auth; failure semantics) a served policy implements; the ten-minute page has the real install (Python range, clone, CPU torch, repository root, asset download, data and GL variables), scores ten episodes rather than one, and ends with the six-step submission; the usage page's health table names every status and its stale replay and matrix copies point at the generated leaderboard; the MetaSim README (the PyPI page) describes the monorepo install and the engines actually verified; CONTRIBUTING installs pre-commit with pip and links the task and robot guides; the README shows the first command. +- Release pipeline: the GitHub Release is cut only after PyPI accepted the wheels (or publishing was skipped on purpose through the `PYPI_PUBLISH` variable, which the notes then say), never after a failed upload; a pre-release is recognised by its PEP 440 segment, not by the letter `a` anywhere in the tag; the lock must be current. Every workflow references its actions by commit SHA with the version in a comment and runs with a read-only token unless a step needs more; the `develop` branch is gone from the triggers; the docs deploy follows a green `Tests` run on main and publishes a frozen copy per release tag. RELEASING.md ยง6 now describes the ruleset that actually protects `main`, the checks it must require, and the variables and secrets the pipeline reads. Dependabot gets a group for the lock. +- The leaderboard generator is the submission gate. A result file under `results//-/` must be reproducible from its contents (`metasim.bench.submission_problems`: the suite's protocol on the suite's backend, a clean commit, the recorded command, the instance-pool hash, the policy's weights or model), or the submission carries a `PROVISIONAL.md` saying why and is rendered in its own section, never pooled with or ranked against the reproducible rows. A file anywhere else under `results/` (except `results/robots/`), a submission directory that is not `-`, an unknown suite, a byte-identical duplicate or a schema failure fails the build instead of being skipped. The headline matrix judges partial task coverage against the suite's task list, every cell is escaped, each submission lists every commit its files came from (dirty trees starred) and shows the nightly runner's `VERIFIED.json` when there is one. The three existing submissions (`2026-11-27-poc`, `2026-11-28-isaacsim-twin`, `2026-11-28-il-ddpm-dit`) are marked provisional: all were produced from dirty working trees under protocol revision 1 without the command recorded, and the learned `lift_peg_upright` row was scored on a locally corrected demo file under the task's cap rather than the suite's. +- Dependency floors raised past the open advisories: `torch>=2.6` at run time, `setuptools>=78.1.1` at build time, the `robosplatter` extra no longer pins `setuptools==59.5.0`. + ### Removed +- Five more robot configs whose asset paths point outside the Hub tree or declare no asset (aloha, iiwa, ur5e_2f85, h1_2_without_hand, vega): nothing could fetch them, so no backend could load them (`RETIRED_TASKS.md`, second batch). `iiwa14` is the KUKA arm that is on the Hub. +- The pure passthrough packs `dm_control`, `gym_robotics`, `metaworld`, `myosuite` and `robosuite` (with `tools/robosuite_integration/`): they re-registered another library's `gym` ids under a RoboVerse prefix, registered no MetaSim task, bridged no data and had no tests or docs page. A pack earns its place by registering tasks the gate runs or by bridging an external benchmark's data or environments into MetaSim formats with tests and a docs page (the RoboTwin, LIBERO-plus, ManiSkill and mjlab integrations stay). `roboverse_pack/tasks/RETIRED_TASKS.md` lists them with the restore commit. +- `libero_90.kitchen_scene4_close_the_bottom_drawer_of_the_cabinet` and with it the `libero_90` pack: its demo file stores `panda_finger_joint2` in robosuite's sign (-0.034 in a [0, 0.04] joint), which the gate's `invalid` status now rejects, and with the sign mirrored into range the demos replay at 0.78 over 50 episodes (threshold 0.80). Restore commit in `RETIRED_TASKS.md`. +- Robot configs whose asset files exist neither on the Hub nor in a checkout (agibot_a2, allegrohand, ant, anymal, brainco hands, cartpole, go2, inspire hands, kinova_gen3, psihand, walker, g1_feet) and the dead `mjx_mjcf_path` of aloha / h1_body_collision; dead alternate asset paths on the kept tasks (a config now declares only files that exist). Listed in `roboverse_pack/tasks/RETIRED_TASKS.md`. - **Task registry curated to what passes the release gate.** Every registered task class was run through `python -m metasim bench health --floor --repeat 2` (its demos replay at or above 0.80 on their own backend, the hold policy scores 0, two replays agree; demo-less RL tasks must build, step and reset) on MuJoCo, and on Isaac Sim 6 where MuJoCo cannot build the assets. 3021 of 3083 classes failed and are removed from `roboverse_pack`; 62 remain (9 demo tasks: pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright, plug_charger, rlbench.close_box, libero.pick_butter, libero_90 kitchen_scene4 close-bottom-drawer; 52 RL / dense-reward tasks). The two generated ManiSkill variant families (`pick_single_egad_*`, 1588 classes with no demos or assets on the Hub; `peg_insertion_side_*`, 999 classes whose USD assets are not on the Hub) are 86 % of the removals; the LIBERO ports (242 classes) replay their own demos at 0.00 to 0.65; the RLBench USD ports fail to build their articulations on Isaac Sim 6. Nothing is lost: `roboverse_pack/tasks/RETIRED_TASKS.md` and `retired_tasks.csv` list every retired class with its registry names, file, reason and the commit to restore it from (`git checkout 56a0e67b -- `). - With the tasks: the SIMPLER (SAPIEN-only) task package and its parity tools, the bimanual multi-agent dataset example and page, the robosuite wrappers, and the tests that existed only for retired tasks. `docs/source/dataset_benchmark/benchmark/results.md` no longer carries the 2025 imitation-learning table (unreproducible under the protocol; kept in git history) and points at the methods x perspectives matrix instead. diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 000000000..d4ee84ed3 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,100 @@ +cff-version: 1.2.0 +message: "If you use RoboVerse, please cite the paper below (preferred-citation) and this software release." +title: "RoboVerse: a unified platform, dataset and benchmark for scalable and generalizable robot learning" +type: software +version: 1.0.0 +date-released: 2026-11-27 +license: Apache-2.0 +repository-code: https://github.com/RoboVerseOrg/RoboVerse +url: https://roboverse.wiki +abstract: >- + RoboVerse is a simulator-agnostic robot learning platform: one task, robot and scene description runs on + MuJoCo, Isaac Sim and other engines; one evaluation protocol scores any policy under declared + information-access tiers and writes a self-describing, reproducible result file; a generated leaderboard + accepts only rows that can be re-run from their contents. +authors: + - name: "The RoboVerse contributors" +preferred-citation: + type: article + title: "RoboVerse: Towards a Unified Platform, Dataset and Benchmark for Scalable and Generalizable Robot Learning" + year: 2025 + url: https://arxiv.org/abs/2504.18904 + identifiers: + - type: other + value: arXiv:2504.18904 + description: arXiv preprint + authors: + - family-names: Geng + given-names: Haoran + - family-names: Wang + given-names: Feishi + - family-names: Wei + given-names: Songlin + - family-names: Li + given-names: Yuyang + - family-names: Wang + given-names: Bangjun + - family-names: An + given-names: Boshi + - family-names: Cheng + given-names: Charlie Tianyue + - family-names: Lou + given-names: Haozhe + - family-names: Li + given-names: Peihao + - family-names: Wang + given-names: Yen-Jen + - family-names: Liang + given-names: Yutong + - family-names: Goetting + given-names: Dylan + - family-names: Xu + given-names: Chaoyi + - family-names: Chen + given-names: Haozhe + - family-names: Qian + given-names: Yuxi + - family-names: Geng + given-names: Yiran + - family-names: Mao + given-names: Jiageng + - family-names: Wan + given-names: Weikang + - family-names: Zhang + given-names: Mingtong + - family-names: Lyu + given-names: Jiangran + - family-names: Zhao + given-names: Siheng + - family-names: Zhang + given-names: Jiazhao + - family-names: Zhang + given-names: Jialiang + - family-names: Zhao + given-names: Chengyang + - family-names: Lu + given-names: Haoran + - family-names: Ding + given-names: Yufei + - family-names: Gong + given-names: Ran + - family-names: Wang + given-names: Yuran + - family-names: Kuang + given-names: Yuxuan + - family-names: Wu + given-names: Ruihai + - family-names: Jia + given-names: Baoxiong + - family-names: Sferrazza + given-names: Carlo + - family-names: Dong + given-names: Hao + - family-names: Huang + given-names: Siyuan + - family-names: Wang + given-names: Yue + - family-names: Malik + given-names: Jitendra + - family-names: Abbeel + given-names: Pieter diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e5ef939c..6adad2c10 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ be under the Apache 2 License, as dictated by that Before making your first commit, please install pre-commit hooks: ```bash -sudo apt install pre-commit +python -m pip install pre-commit pre-commit install ``` @@ -24,6 +24,28 @@ And install the [ruff vscode extension](https://marketplace.visualstudio.com/ite The `.vscode/settings.json` is configured aligning with the pre-commit hooks. Whenever you save the file, it will be formatted automatically. -To migrate new tasks, please refer to the [developer guide](https://roboverse.wiki/metasim/developer_guide/new_task). +To add a task, follow [Add a task](docs/source/start/add_a_task.md) (register it, record its demos, pass the health gate); to add a robot, [Add a robot](docs/source/start/add_a_robot.md). A leaderboard row enters through `python -m metasim bench submit` and a pull request ([evaluate a policy](docs/source/start/evaluate_a_policy.md)). Branches, pull-request gates, versioning and the release checklist are defined in [`RELEASING.md`](./RELEASING.md); engineering rules in [`AGENTS.md`](./AGENTS.md). + +## The gate is the review + +Content is accepted on evidence, not on reading. A task is registered when its demos replay at 0.80 or +better on their own backend, the hold policy scores 0 and two replays agree (`python -m metasim bench health +--floor --repeat 2`); a robot lands when `python -m metasim robot check ` passes on every engine it declares +an asset for, `robot parity` agrees across MuJoCo and Isaac Sim 6 where it has both, and one gated task uses it; a +benchmark number enters by result file (`results/`, validated against the schema), and so does a robot sweep or +parity run (`results/robots/`, rendered into the Robots page). Reviewers spend their time on contracts and names, not on +whether the task runs. The walk-throughs: [evaluate a policy](docs/source/start/evaluate_a_policy.md), +[add a task](docs/source/start/add_a_task.md), [add a robot](docs/source/start/add_a_robot.md). + +Every `roboverse_data/...` path you write must exist on the Hub (`python tools/assets/check_manifest.py +--hub-only`), and a module may register at most 16 task classes (variants are parameters). A task that goes +red on the nightly gate twice is unregistered by the next pull request and listed in +`roboverse_pack/tasks/RETIRED_TASKS.md` with the commit to restore it from. + +A pack under `roboverse_pack/tasks/` is one of two things: a task pack, which registers MetaSim tasks the gate +runs, or an integration pack, which bridges an external benchmark's data or environments into MetaSim formats +(demos the task bases load, assets on the Hub, a conversion tool) and comes with tests and a docs page under +`docs/source/dataset_benchmark/integrations/`. A module that re-registers another library's `gym` ids under a +RoboVerse prefix is neither and is not accepted; the five that existed were retired on 2026-11-28. diff --git a/README.md b/README.md index bd416eccc..64ff90f29 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ Project Page Paper Documentation + Tests + Nightly gate Issues Discussions Discord @@ -16,7 +18,21 @@

+## What RoboVerse is (1.0) + +RoboVerse is an **evaluation entry for robot policies**: one evaluator, one result schema, explicit +information-access tiers (what a policy may see is part of the protocol), tasks that passed a replay gate on +the engines the release stands behind (MuJoCo and Isaac Sim 6), and a leaderboard where every number has a +result file. Policies plug in as a tiny Python protocol or are served over HTTP from their own environment, +so a model never has to leave your infrastructure to be scored. + +- [Evaluate a policy in ten minutes](docs/source/start/evaluate_a_policy.md) +- [Add a task](docs/source/start/add_a_task.md) and [add a robot](docs/source/start/add_a_robot.md): the gate is the review +- [Leaderboard](docs/source/dataset_benchmark/benchmark/leaderboard.md), generated from `results/` +- `roboverse_pack/tasks/RETIRED_TASKS.md`: what was removed by the gate and how to bring it back + ## ๐Ÿ’ก News +- [2026-11-28] 1.0: the benchmark protocol (`python -m metasim bench`), information-access tiers, the methods x perspectives matrix, and a task registry curated to what passes the gate. - [2025-04-10] RoboVerse gets accepted by RSS 2025! - [2025-04-03] Code released! This codebase is actively evolving, and we are continuously working to improve it. Contributions from the open-source community are highly encouraged, and we welcome feedback and bug reports through the GitHub Issues page. @@ -30,6 +46,18 @@ cd RoboVerse python -m pip install -e "packages/metasim[mujoco]" -e ".[mujoco]" # MetaSim first, then RoboVerse ``` +Your first result, from the repository root (assets download on first use): + +```bash +python -m metasim bench run --task pick_cube --sim mujoco --policy replay --episodes 10 # the task's demo ceiling +python -m metasim bench validate bench_results/*.json # the file checks against itself +``` + +Then [evaluate a policy in ten minutes](docs/source/start/evaluate_a_policy.md): plug in your own policy, in +process or served over HTTP, pick what it may see, score the suite, and submit a leaderboard row. The +[benchmark page](docs/source/dataset_benchmark/benchmark/overview.md) says what a number means and the +[leaderboard](docs/source/dataset_benchmark/benchmark/leaderboard.md) is generated from the committed results. + For development: ```bash diff --git a/RELEASING.md b/RELEASING.md index f5814f98f..d30b221b0 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -77,27 +77,60 @@ Patch releases: branch `release/vX.Y` from the tag, cherry-pick fixes, repeat st - Add a *trusted publisher* on the PyPI project: owner `RoboVerseOrg`, repository `RoboVerse`, workflow `release.yml`, environment `pypi`. - In the GitHub repo create the `pypi` environment (Settings โ†’ Environments), restricted to tags - `v*`, with required reviewers = the release managers. Until this exists the publish job is - skipped and the GitHub Release still happens. - -## 6. Repository settings (applied through `gh api`; re-apply after any change) + `v*`, with required reviewers = the release managers, then set the repository variable + `PYPI_PUBLISH` to `true`. Until the variable is set the publish job is skipped (not failed) and the + GitHub Release says the wheels are attached only; once it is set, the Release is cut only after PyPI + accepted the upload. +- Rehearse once with a pre-release tag (`v1.0.0rc1`): it exercises the version check, the CHANGELOG + guard, the build, the image publish (no `latest`) and the notes, and marks the Release a pre-release. + +## 6. Repository settings (rulesets; re-apply after any change) + +`main` is protected by the ruleset "Protect main branch" (Settings โ†’ Rules โ†’ Rulesets). What it must +require, so that a green merge means what the docs say it means: + +- status checks: `lint`, `tests`, `lock`, `metasim general (3.10)`, `metasim general (3.11)`, + `metasim general (3.12)`, `release-dry-run`, `pr-title`, `changelog`, `pre-commit.ci - pr` + (`task-contract` and `attribution` are path-filtered and cannot be required as they stand); + strict (the branch must be up to date); +- a pull request before merging, squash only, conversation resolution required, linear history, + no deletion, no force push; +- bypass: repository administrators only. ```bash -gh api -X PUT repos/RoboVerseOrg/RoboVerse/branches/main/protection --input - <<'JSON' -{ - "required_status_checks": {"strict": true, "contexts": ["lint", "tests", "task-contract", "pr-title", "changelog"]}, - "enforce_admins": false, - "required_pull_request_reviews": {"required_approving_review_count": 0, "dismiss_stale_reviews": true}, - "restrictions": null, - "allow_force_pushes": false, - "allow_deletions": false, - "required_linear_history": true, - "required_conversation_resolution": true -} +gh api repos/RoboVerseOrg/RoboVerse/rulesets --jq '.[] | {id, name}' # find the ruleset id +gh api -X PUT repos/RoboVerseOrg/RoboVerse/rulesets/ --input - <<'JSON' +{"name":"Protect main branch","target":"branch","enforcement":"active", + "conditions":{"ref_name":{"include":["~DEFAULT_BRANCH"],"exclude":[]}}, + "rules":[{"type":"deletion"},{"type":"non_fast_forward"},{"type":"required_linear_history"}, + {"type":"pull_request","parameters":{"required_approving_review_count":0,"dismiss_stale_reviews_on_push":true, + "require_code_owner_review":false,"require_last_push_approval":false,"required_review_thread_resolution":true, + "allowed_merge_methods":["squash"]}}, + {"type":"required_status_checks","parameters":{"strict_required_status_checks_policy":true,"do_not_enforce_on_create":false, + "required_status_checks":[{"context":"lint"},{"context":"tests"},{"context":"lock"},{"context":"metasim general (3.10)"}, + {"context":"metasim general (3.11)"},{"context":"metasim general (3.12)"},{"context":"release-dry-run"}, + {"context":"pr-title"},{"context":"changelog"},{"context":"pre-commit.ci - pr","integration_id":68672}]}}]} JSON -gh api -X PATCH repos/RoboVerseOrg/RoboVerse -f allow_squash_merge=true -f allow_merge_commit=false -f allow_rebase_merge=false -f delete_branch_on_merge=true -f squash_merge_commit_title=PR_TITLE -f squash_merge_commit_message=PR_BODY +gh api -X PATCH repos/RoboVerseOrg/RoboVerse -F allow_squash_merge=true -F allow_merge_commit=false \ + -F allow_rebase_merge=false -F delete_branch_on_merge=true -f squash_merge_commit_title=PR_TITLE \ + -f squash_merge_commit_message=PR_BODY +# Actions: read-only default token, only the actions this repo uses, SHA pinning required +gh api -X PUT repos/RoboVerseOrg/RoboVerse/actions/permissions/workflow -f default_workflow_permissions=read \ + -F can_approve_pull_request_reviews=false ``` +Also under Settings โ†’ Code security: secret scanning, push protection, Dependabot security updates and +private vulnerability reporting (SECURITY.md points at it) all on. The workflows reference every action by +commit SHA with the version in a trailing comment; Dependabot keeps both current. + +Variables and secrets the release path reads: `PYPI_PUBLISH` (variable, `"true"` once the `pypi` +environment with its trusted publisher exists, ยง5); `HF_TOKEN` (secret, the nightly gate's Hub downloads); +`CLOUDFLARE_API_TOKEN` / `CLOUDFLARE_ACCOUNT_ID` (docs deploy); `ISAACSIM_PYTHON` (variable, the +self-hosted runner's Isaac Sim interpreter, default `/opt/isaacsim6/bin/python`); `VERIFY_OPEN_PR` (variable, +`"true"` lets the weekly `verify-submissions` workflow open a pull request with the `VERIFIED.json` records it +wrote, which also needs Settings โ†’ Actions โ†’ "Allow GitHub Actions to create and approve pull requests"; until +then the records are an artifact of the run). + ## 7. Package boundary MetaSim (`packages/metasim`) owns the simulator contract, config types and the registry; the repo diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..06cac90f8 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,44 @@ +# Security policy + +RoboVerse and MetaSim run simulators, load assets and trajectories from the Hugging Face Hub, and +execute policies served over HTTP. We treat anything that lets a crafted asset, trajectory, result +file or network message run code or read data it should not as a security issue. + +## Reporting a vulnerability + +Please report privately through GitHub's vulnerability reporting for this repository: +**Security โ†’ Report a vulnerability** (https://github.com/RoboVerseOrg/RoboVerse/security/advisories/new). +It reaches the maintainers only. Do not open a public issue for a suspected vulnerability. + +If you cannot use GitHub, open an issue that says only "security contact requested" and a +maintainer will reply with a private channel within three working days. + +What helps us: the affected version or commit, the component (simulator backend, asset loader, +trajectory format, `bench serve` / `RemotePolicy`, the CLI), a reproduction, and the impact you see. + +## What to expect + +- Acknowledgement within 3 working days, an assessment within 10. +- We agree a disclosure date with you. Our default is coordinated disclosure within **90 days** of the + report, sooner when a fix ships earlier, and we credit reporters in the release notes unless they + prefer not to be named. +- Fixes land in a patch release of the current minor (`1.0.x`) and are listed under `### Security` + in the CHANGELOGs. + +## Supported versions + +| version | supported | +|---|---| +| 1.0.x (`main`) | yes | +| 1.0.0-beta and earlier | no: upgrade | + +## Scope notes + +- Trajectory files (`*.pkl`, `*.pkl.gz`) are Python pickles. Load them only from sources you trust; + `metasim.utils.trajectory` episode files (`.npz` + JSON) are the pickle-free format and are preferred. +- `python -m metasim bench serve` binds to `127.0.0.1` by default. Exposing it on another interface + is the operator's choice; set a bearer token for it (`--token` or `ROBOVERSE_BENCH_TOKEN`, checked on + every request) because the protocol has no other authentication, and the server warns when it is + bound beyond localhost without one. +- Simulator engines (MuJoCo, Isaac Sim, ...) are third-party software; issues in them should go to + their maintainers, but tell us if RoboVerse makes one reachable in a new way. diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 941426c0a..c4373b96b 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -58,10 +58,8 @@ below. If you cannot name the upstream and its license, do not merge it. | `roboverse_pack/randomization/humanoid.py` (`randomize_prop_by_op`, `_validate_scale_range`, the bucketed material sampling) | [Isaac Lab](https://github.com/isaac-sim/IsaacLab) ยฉ 2022-2025 The Isaac Lab Project Developers | BSD-3-Clause | Adapted | `roboverse_pack/randomization/LICENSE.isaaclab` | | `roboverse_pack/tasks/mjlab/` | [mjlab](https://github.com/mujocolab/mjlab) | Apache-2.0 | Adapted (port) | `roboverse_pack/tasks/mjlab/LICENSE` | | `packages/metasim/metasim/bench/suite.py`, `packages/metasim/metasim/bench/prompts.py`, `packages/metasim/metasim/bench/remote.py`, the demo-derived episode budget in `packages/metasim/metasim/bench/instances.py` | [HandsOn](https://github.com/TsinghuaC3I/HandsOn) ยฉ 2026 HandsOn contributors (evaluation design: task splits scored task-macro, a 3x P75 demo-length budget, canonical / training / held-out instruction paraphrases drawn per episode by hash, a policy served over HTTP with an NPZ observation packet) | MIT | Reimplemented | `packages/metasim/LICENSE.handson` | -| `roboverse_pack/tasks/robosuite/_osc.py`, `roboverse_pack/tasks/robosuite/native.py` | [robosuite](https://github.com/ARISE-Initiative/robosuite) ยฉ 2022 Stanford Vision and Learning Lab & UT Robot Perception and Learning Lab | MIT | Adapted (port) | `roboverse_pack/tasks/robosuite/LICENSE` | | `roboverse_pack/tasks/maniskill/_native/control.py` | [ManiSkill](https://github.com/haosulab/ManiSkill) | Apache-2.0 | Adapted | `roboverse_pack/tasks/maniskill/_native/LICENSE` | | `roboverse_pack/tasks/pick_place/` | [MuJoCo Playground](https://github.com/google-deepmind/mujoco_playground) ยฉ Google DeepMind | Apache-2.0 | Reimplemented | `roboverse_pack/tasks/mujoco_playground/LICENSE` | -| `roboverse_pack/tasks/libero_90/_site_predicates.py` | [LIBERO](https://github.com/Lifelong-Robot-Learning/LIBERO) ยฉ 2023 Lifelong Robot Learning | MIT | Adapted | `roboverse_pack/tasks/libero_90/LICENSE.LIBERO` | | `scripts/mesh_tools/mesh2obj.py` | [MuJoCo](https://github.com/google-deepmind/mujoco) ยฉ 2023 DeepMind Technologies Limited | Apache-2.0 | Adapted | `scripts/mesh_tools/LICENSE.mujoco` | | `scripts/conversion/convert_mjcf.py`, `scripts/conversion/mjcf2usd.py`, `scripts/conversion/urdf2usd.py` | [Isaac Lab](https://github.com/isaac-sim/IsaacLab) ยฉ 2022-2025 The Isaac Lab Project Developers | BSD-3-Clause | Adapted | [below](#bsd-3-clause-isaac-lab-and-rsl-rl) | | `third_party/gsnet/pointnet2/` | [Pointnet2_PyTorch](https://github.com/erikwijmans/Pointnet2_PyTorch), as repackaged by Facebook ยฉ Facebook, Inc. and its affiliates (the notice each file carries) | MIT | Vendored | `third_party/gsnet/LICENSE.pointnet2` | diff --git a/docker/eval/Dockerfile b/docker/eval/Dockerfile new file mode 100644 index 000000000..99128f369 --- /dev/null +++ b/docker/eval/Dockerfile @@ -0,0 +1,58 @@ +# The RoboVerse evaluation container: MuJoCo on CPU, headless rendering, one command in, result files out. +# +# docker build -t roboverse-eval -f docker/eval/Dockerfile . +# docker run --rm -v "$PWD/roboverse_data:/opt/roboverse/roboverse_data" -v "$PWD/out:/out" roboverse-eval \ +# bench run --task pick_cube --sim mujoco --policy replay --episodes 10 --out /out/pick_cube.json +# +# Reproducible by construction: the base image is pinned by digest, every third-party package comes from +# requirements/bench-cpu.lock.txt (tools/release/lock.sh; the engine versions are the `tested` ones of +# metasim/sim/_versions.py), and the two RoboVerse packages are installed from this checkout with --no-deps. +# /opt/roboverse/IMAGE_FREEZE.txt lists what was installed; the OCI labels carry the release version, the git +# commit, the result schema version and the wire protocol, so a result file maps back to the image bytes. +# +# Assets and demos download from the Hub into the mounted roboverse_data on first use (asset paths are relative +# to /opt/roboverse, the working directory). A served policy is reached with --policy-url (use --network host or +# the compose network); nothing in the image phones home. Built and smoke-tested by .github/workflows/eval-image.yml. +FROM python:3.11-slim-bookworm@sha256:ef56ae98435cc40d8a27020b0b32a9941515acd5840f0fba34858bb34dd362d1 + +ARG VERSION=dev +ARG GIT_SHA=unknown +LABEL org.opencontainers.image.title="roboverse-eval" \ + org.opencontainers.image.description="RoboVerse benchmark evaluation (MuJoCo on CPU): python -m metasim" \ + org.opencontainers.image.source="https://github.com/RoboVerseOrg/RoboVerse" \ + org.opencontainers.image.licenses="Apache-2.0" \ + org.opencontainers.image.version="${VERSION}" \ + org.opencontainers.image.revision="${GIT_SHA}" \ + ai.roboverse.bench.schema="roboverse.bench.result/1" \ + ai.roboverse.bench.protocol="roboverse.bench.remote/1" + +ENV PIP_NO_CACHE_DIR=1 \ + PYTHONUNBUFFERED=1 \ + PIP_DISABLE_PIP_VERSION_CHECK=1 + +# EGL / OSMesa for MuJoCo's offscreen renderer (metasim picks MUJOCO_GL at the entry point), libglib for OpenCV. +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + libegl1 libgl1 libgl1-mesa-dri libglib2.0-0 libosmesa6 libxext6 libxrender1 ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /opt/roboverse + +# Every dependency at its locked version; the lock carries the CPU torch index, so no CUDA wheel can be pulled. +COPY requirements/bench-cpu.lock.txt /opt/roboverse/requirements/bench-cpu.lock.txt +RUN python -m pip install --no-deps -r requirements/bench-cpu.lock.txt + +# The two packages from this checkout, MetaSim first, without re-resolving anything. +COPY packages/metasim /opt/roboverse/packages/metasim +COPY pyproject.toml LICENSE NOTICE THIRD_PARTY_NOTICES.md README.md metasim.toml /opt/roboverse/ +COPY roboverse_pack /opt/roboverse/roboverse_pack +COPY roboverse_learn /opt/roboverse/roboverse_learn +RUN python -m pip install --no-deps "./packages/metasim" \ + && python -m pip install --no-deps "." \ + && python -m pip check \ + && python -m pip freeze > /opt/roboverse/IMAGE_FREEZE.txt \ + && python -m metasim doctor --backend mujoco + +VOLUME ["/opt/roboverse/roboverse_data"] +ENTRYPOINT ["python", "-m", "metasim"] +CMD ["bench", "list"] diff --git a/docs/source/conf.py b/docs/source/conf.py index 94fb5d8fe..b979574e5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,5 +1,4 @@ import os -import subprocess import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../..")) @@ -240,18 +239,5 @@ def skip_member(app, what, name, obj, skip, options): return None -def generate_task_markdown(app): - script_path = os.path.join(app.srcdir, "dataset_benchmark", "tasks", "generate_task_docs.py") - if not os.path.exists(script_path): - # print(f"[Sphinx] โŒ generate_task_docs.py not found at {script_path}") - return - - # print(f"[Sphinx] ๐Ÿ›  Generating task markdown pages with: {script_path}") - result = subprocess.run( - [sys.executable, script_path], cwd=os.path.dirname(script_path), capture_output=True, text=True, check=False - ) - - def setup(app): app.connect("autodoc-skip-member", skip_member) - app.connect("builder-inited", generate_task_markdown) diff --git a/docs/source/dataset_benchmark/benchmark/leaderboard.md b/docs/source/dataset_benchmark/benchmark/leaderboard.md new file mode 100644 index 000000000..f4b61527c --- /dev/null +++ b/docs/source/dataset_benchmark/benchmark/leaderboard.md @@ -0,0 +1,320 @@ +# Leaderboard + +Generated by `tools/bench/leaderboard.py` from the result files under `results/`; do not edit by hand. +A row enters by pull request: add the result files of one `bench suite run` under `results//-/`. +Every file validates against the result schema and must be reproducible from its contents: the suite's +protocol on the suite's backend, a clean commit, the command, the instance-pool hash and the policy's weights +or model are all recorded (`python -m metasim bench validate --suite ` runs the same checks). +Methods are comparable within a tier column only; `*` marks a method scored on fewer tasks than the suite. +Submissions that cannot pass those checks are listed as provisional, apart, and are never pooled or ranked. + +## tabletop-mujoco + +0 reproducible submission(s), 3 provisional; 60 result files. Tasks: pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright. + +### Methods x tiers + +No reproducible submission yet. + +### Provisional submissions + +Listed for the record, not comparable with the rows above and not ranked: each says why. + +| method | privileged | agent-privileged | agent-skills | visual | +|---|---|---|---|---| +| llm-agent @mujoco (agent) | | 0.880 (5 tasks, 50 ep) | 0.120 (5 tasks, 50 ep) | | +| il @mujoco (il) | | | | 0.710 (5 tasks, 100 ep) | +| scripted @isaacsim (scripted) | 0.740 (5 tasks, 50 ep) | | | | +| scripted @mujoco (scripted) | 0.900 (5 tasks, 50 ep) | | | | +| hold @mujoco | 0.000 (5 tasks, 50 ep) | | | 0.000 (5 tasks, 50 ep) | +| openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 (5 tasks, 50 ep) | +| random @mujoco | 0.000 (5 tasks, 50 ep) | | | 0.000 (5 tasks, 50 ep) | +| replay @isaacsim | 0.980 (5 tasks, 50 ep) | | | | +| replay @mujoco | 0.960 (5 tasks, 50 ep) | | | | + +`*`: fewer tasks than the full set; macros are not comparable across such cells. `mixed protocols`: the cell received results that are not comparable (different robots, caps, instance pools, revisions or num_envs) and is not pooled. + +| task | method | privileged | agent-privileged | agent-skills | visual | +|---|---|---|---|---|---| +| lift_peg_upright | llm-agent @mujoco (agent) | | 0.700 [0.40, 0.89] n=10 | 0.000 [0.00, 0.28] n=10 | | +| lift_peg_upright | il @mujoco (il) | | | | 0.700 [0.48, 0.85] n=20 | +| lift_peg_upright | scripted @isaacsim (scripted) | 0.000 [0.00, 0.28] n=10 | | | | +| lift_peg_upright | scripted @mujoco (scripted) | 0.900 [0.60, 0.98] n=10 | | | | +| lift_peg_upright | hold @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| lift_peg_upright | openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 [0.00, 0.28] n=10 | +| lift_peg_upright | random @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| lift_peg_upright | replay @isaacsim | 1.000 [0.72, 1.00] n=10 | | | | +| lift_peg_upright | replay @mujoco | 1.000 [0.72, 1.00] n=10 | | | | +| pick_cube | llm-agent @mujoco (agent) | | 1.000 [0.72, 1.00] n=10 | 0.000 [0.00, 0.28] n=10 | | +| pick_cube | il @mujoco (il) | | | | 0.750 [0.53, 0.89] n=20 | +| pick_cube | scripted @isaacsim (scripted) | 1.000 [0.72, 1.00] n=10 | | | | +| pick_cube | scripted @mujoco (scripted) | 1.000 [0.72, 1.00] n=10 | | | | +| pick_cube | hold @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| pick_cube | openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 [0.00, 0.28] n=10 | +| pick_cube | random @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| pick_cube | replay @isaacsim | 0.900 [0.60, 0.98] n=10 | | | | +| pick_cube | replay @mujoco | 0.900 [0.60, 0.98] n=10 | | | | +| pull_cube | llm-agent @mujoco (agent) | | 0.800 [0.49, 0.94] n=10 | 0.000 [0.00, 0.28] n=10 | | +| pull_cube | il @mujoco (il) | | | | 0.900 [0.70, 0.97] n=20 | +| pull_cube | scripted @isaacsim (scripted) | 0.700 [0.40, 0.89] n=10 | | | | +| pull_cube | scripted @mujoco (scripted) | 0.700 [0.40, 0.89] n=10 | | | | +| pull_cube | hold @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| pull_cube | openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 [0.00, 0.28] n=10 | +| pull_cube | random @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| pull_cube | replay @isaacsim | 1.000 [0.72, 1.00] n=10 | | | | +| pull_cube | replay @mujoco | 1.000 [0.72, 1.00] n=10 | | | | +| push_cube | llm-agent @mujoco (agent) | | 1.000 [0.72, 1.00] n=10 | 0.600 [0.31, 0.83] n=10 | | +| push_cube | il @mujoco (il) | | | | 1.000 [0.84, 1.00] n=20 | +| push_cube | scripted @isaacsim (scripted) | 1.000 [0.72, 1.00] n=10 | | | | +| push_cube | scripted @mujoco (scripted) | 1.000 [0.72, 1.00] n=10 | | | | +| push_cube | hold @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| push_cube | openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 [0.00, 0.28] n=10 | +| push_cube | random @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| push_cube | replay @isaacsim | 1.000 [0.72, 1.00] n=10 | | | | +| push_cube | replay @mujoco | 1.000 [0.72, 1.00] n=10 | | | | +| stack_cube | llm-agent @mujoco (agent) | | 0.900 [0.60, 0.98] n=10 | 0.000 [0.00, 0.28] n=10 | | +| stack_cube | il @mujoco (il) | | | | 0.200 [0.08, 0.42] n=20 | +| stack_cube | scripted @isaacsim (scripted) | 1.000 [0.72, 1.00] n=10 | | | | +| stack_cube | scripted @mujoco (scripted) | 0.900 [0.60, 0.98] n=10 | | | | +| stack_cube | hold @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| stack_cube | openvla-7b\[bridge_orig\] @mujoco | | | | 0.000 [0.00, 0.28] n=10 | +| stack_cube | random @mujoco | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | +| stack_cube | replay @isaacsim | 1.000 [0.72, 1.00] n=10 | | | | +| stack_cube | replay @mujoco | 0.900 [0.60, 0.98] n=10 | | | | + +### 2026-11-27-poc + +- simulators: mujoco; policies: hold, llm-agent, openvla-7b\[bridge_orig\], random, replay, scripted; 450 episodes in 45 files +- MetaSim 1.0.0b0; commit(s) `8256273ed2`, `92a2244deb`, `d55cbee01b`, `f0973c431a`, `fdaad3c95d` (dirty working tree); dm-control 1.0.45, mujoco 3.12.0 +- verification: not yet re-run (`tools/bench/verify_submission.py`) + +**Provisional.** Proof-of-concept run of the methods x perspectives matrix (2026-11-27), scored before the leaderboard required reproducible rows. Produced from a dirty working tree on several WIP commits of the feat/bench-poc branch with MetaSim 1.0.0b0, without the command or the instance-pool hash recorded, under protocol revision 1; the LLM-agent rows do not record the model id. To be re-run from the tagged release image before 1.0.0 is cited. + +Why these files are not reproducible from their contents: + +- `agentpriv_llm/core__lift_peg_upright__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__pull_cube__franka__llm-agent.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentpriv_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__lift_peg_upright__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__pick_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__pull_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__push_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `agentskills_llm/core__stack_cube__franka__llm-agent.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); an 'agent' policy must record the model id it called (policy.model); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__lift_peg_upright__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__pick_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__pull_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__push_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_replay/core__stack_cube__franka__replay.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__lift_peg_upright__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__pick_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__pull_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__push_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `priv_scripted/core__stack_cube__franka__scripted.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__lift_peg_upright__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__pick_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__pull_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__push_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_hold/core__stack_cube__franka__hold.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__lift_peg_upright__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__pick_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__pull_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__push_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_openvla/core__stack_cube__franka__openvla-7b\[bridge_orig\].json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__lift_peg_upright__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__pick_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__pull_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__push_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `visual_random/core__stack_cube__franka__random.json`: protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) + +| task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | agent-privileged | llm-agent | 1 | 10 | 0.700 | [0.397, 0.892] | 277.2 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | agent-skills | llm-agent | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | visual | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | visual | openvla-7b\[bridge_orig\] | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | visual | random | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | privileged | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | privileged | random | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 150.7 | +| lift_peg_upright | franka | mujoco | first, budget 3x p75 | privileged | scripted | 1 | 10 | 0.900 | [0.596, 0.982] | 231.9 | +| pick_cube | franka | mujoco | first, budget 3x p75 | agent-privileged | llm-agent | 1 | 10 | 1.000 | [0.722, 1.000] | 96.6 | +| pick_cube | franka | mujoco | first, budget 3x p75 | agent-skills | llm-agent | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | visual | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | visual | openvla-7b\[bridge_orig\] | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | visual | random | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | privileged | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | privileged | random | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | privileged | replay | 1 | 10 | 0.900 | [0.596, 0.982] | 91.0 | +| pick_cube | franka | mujoco | first, budget 3x p75 | privileged | scripted | 1 | 10 | 1.000 | [0.722, 1.000] | 95.9 | +| pull_cube | franka | mujoco | first, budget 3x p75 | agent-privileged | llm-agent | 1 | 10 | 0.800 | [0.490, 0.943] | 174.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | agent-skills | llm-agent | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | visual | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | visual | openvla-7b\[bridge_orig\] | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | visual | random | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | privileged | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | privileged | random | 1 | 10 | 0.000 | [0.000, 0.278] | 237.0 | +| pull_cube | franka | mujoco | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 63.1 | +| pull_cube | franka | mujoco | first, budget 3x p75 | privileged | scripted | 1 | 10 | 0.700 | [0.397, 0.892] | 184.6 | +| push_cube | franka | mujoco | first, budget 3x p75 | agent-privileged | llm-agent | 1 | 10 | 1.000 | [0.722, 1.000] | 114.3 | +| push_cube | franka | mujoco | first, budget 3x p75 | agent-skills | llm-agent | 1 | 10 | 0.600 | [0.313, 0.832] | 134.9 | +| push_cube | franka | mujoco | first, budget 3x p75 | visual | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 216.0 | +| push_cube | franka | mujoco | first, budget 3x p75 | visual | openvla-7b\[bridge_orig\] | 1 | 10 | 0.000 | [0.000, 0.278] | 216.0 | +| push_cube | franka | mujoco | first, budget 3x p75 | visual | random | 1 | 10 | 0.000 | [0.000, 0.278] | 216.0 | +| push_cube | franka | mujoco | first, budget 3x p75 | privileged | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 216.0 | +| push_cube | franka | mujoco | first, budget 3x p75 | privileged | random | 1 | 10 | 0.000 | [0.000, 0.278] | 216.0 | +| push_cube | franka | mujoco | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 57.3 | +| push_cube | franka | mujoco | first, budget 3x p75 | privileged | scripted | 1 | 10 | 1.000 | [0.722, 1.000] | 114.2 | +| stack_cube | franka | mujoco | first, budget 3x p75 | agent-privileged | llm-agent | 1 | 10 | 0.900 | [0.596, 0.982] | 183.5 | +| stack_cube | franka | mujoco | first, budget 3x p75 | agent-skills | llm-agent | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | visual | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | visual | openvla-7b\[bridge_orig\] | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | visual | random | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | privileged | hold | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | privileged | random | 1 | 10 | 0.000 | [0.000, 0.278] | 250.0 | +| stack_cube | franka | mujoco | first, budget 3x p75 | privileged | replay | 1 | 10 | 0.900 | [0.596, 0.982] | 140.1 | +| stack_cube | franka | mujoco | first, budget 3x p75 | privileged | scripted | 1 | 10 | 0.900 | [0.596, 0.982] | 183.5 | + +Provenance, one row per result file: + +| task | policy | tier | episodes | seed | commit | cap (source) | s / episode | checkpoint | usage | command | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | hold | privileged | 10 | 0 | `d55cbee01b`\* | 534 (demos) | 0.4 | - | - | - | +| lift_peg_upright | hold | visual | 10 | 0 | `f0973c431a`\* | 534 (demos) | 2.5 | - | - | - | +| lift_peg_upright | llm-agent | agent-privileged | 10 | 0 | `fdaad3c95d`\* | 534 (demos) | 6.1 | - | llm_calls 23, llm_tokens 45124, tool_calls 23 | - | +| lift_peg_upright | llm-agent | agent-skills | 10 | 0 | `8256273ed2`\* | 534 (demos) | 15.7 | - | llm_calls 48, llm_tokens 79834, tool_calls 46 | - | +| lift_peg_upright | openvla-7b\[bridge_orig\] | visual | 10 | 0 | `92a2244deb`\* | 534 (demos) | 51.3 | - | - | - | +| lift_peg_upright | random | privileged | 10 | 0 | `d55cbee01b`\* | 534 (demos) | 0.5 | - | - | - | +| lift_peg_upright | random | visual | 10 | 0 | `f0973c431a`\* | 534 (demos) | 2.5 | - | - | - | +| lift_peg_upright | replay | privileged | 10 | 0 | `d55cbee01b`\* | 534 (demos) | 0.2 | - | - | - | +| lift_peg_upright | scripted | privileged | 10 | 0 | `d55cbee01b`\* | 534 (demos) | 0.4 | - | - | - | +| pick_cube | hold | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.4 | - | - | - | +| pick_cube | hold | visual | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 1.5 | - | - | - | +| pick_cube | llm-agent | agent-privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 1.9 | - | llm_calls 10, llm_tokens 17349, tool_calls 10 | - | +| pick_cube | llm-agent | agent-skills | 10 | 0 | `f0973c431a`\* | 250 (task (below the demo budget)) | 9.4 | - | llm_calls 51, llm_tokens 76422, tool_calls 51 | - | +| pick_cube | openvla-7b\[bridge_orig\] | visual | 10 | 0 | `8256273ed2`\* | 250 (task (below the demo budget)) | 27.2 | - | - | - | +| pick_cube | random | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.4 | - | - | - | +| pick_cube | random | visual | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 1.5 | - | - | - | +| pick_cube | replay | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.3 | - | - | - | +| pick_cube | scripted | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.3 | - | - | - | +| pull_cube | hold | privileged | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 0.2 | - | - | - | +| pull_cube | hold | visual | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 1.1 | - | - | - | +| pull_cube | llm-agent | agent-privileged | 10 | 0 | `f0973c431a`\* | 237 (demos) | 3.2 | - | llm_calls 11, llm_tokens 20742, tool_calls 11 | - | +| pull_cube | llm-agent | agent-skills | 10 | 0 | `f0973c431a`\* | 237 (demos) | 14.3 | - | llm_calls 43, llm_tokens 72447, tool_calls 41 | - | +| pull_cube | openvla-7b\[bridge_orig\] | visual | 10 | 0 | `92a2244deb`\* | 237 (demos) | 22.8 | - | - | - | +| pull_cube | random | privileged | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 0.2 | - | - | - | +| pull_cube | random | visual | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 1.1 | - | - | - | +| pull_cube | replay | privileged | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 0.1 | - | - | - | +| pull_cube | scripted | privileged | 10 | 0 | `d55cbee01b`\* | 237 (demos) | 0.3 | - | - | - | +| push_cube | hold | privileged | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 0.2 | - | - | - | +| push_cube | hold | visual | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 1.0 | - | - | - | +| push_cube | llm-agent | agent-privileged | 10 | 0 | `f0973c431a`\* | 216 (demos) | 1.9 | - | llm_calls 10, llm_tokens 17893, tool_calls 10 | - | +| push_cube | llm-agent | agent-skills | 10 | 0 | `f0973c431a`\* | 216 (demos) | 14.8 | - | llm_calls 42, llm_tokens 70406, tool_calls 41 | - | +| push_cube | openvla-7b\[bridge_orig\] | visual | 10 | 0 | `92a2244deb`\* | 216 (demos) | 20.5 | - | - | - | +| push_cube | random | privileged | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 0.2 | - | - | - | +| push_cube | random | visual | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 1.1 | - | - | - | +| push_cube | replay | privileged | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 0.1 | - | - | - | +| push_cube | scripted | privileged | 10 | 0 | `d55cbee01b`\* | 216 (demos) | 0.2 | - | - | - | +| stack_cube | hold | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.3 | - | - | - | +| stack_cube | hold | visual | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 1.2 | - | - | - | +| stack_cube | llm-agent | agent-privileged | 10 | 0 | `f0973c431a`\* | 250 (task (below the demo budget)) | 7.1 | - | llm_calls 27, llm_tokens 55203, tool_calls 27 | - | +| stack_cube | llm-agent | agent-skills | 10 | 0 | `f0973c431a`\* | 250 (task (below the demo budget)) | 26.7 | - | llm_calls 78, llm_tokens 141141, tool_calls 77 | - | +| stack_cube | openvla-7b\[bridge_orig\] | visual | 10 | 0 | `92a2244deb`\* | 250 (task (below the demo budget)) | 24.5 | - | - | - | +| stack_cube | random | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.3 | - | - | - | +| stack_cube | random | visual | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 1.2 | - | - | - | +| stack_cube | replay | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.2 | - | - | - | +| stack_cube | scripted | privileged | 10 | 0 | `d55cbee01b`\* | 250 (task (below the demo budget)) | 0.4 | - | - | - | + +### 2026-11-28-il-ddpm-dit + +- simulators: mujoco; policies: il; 100 episodes in 5 files +- MetaSim 1.0.0; commit(s) `1eca9a92a6`, `293c3b5478`, `b48b24c1a7` (dirty working tree); dm-control 1.0.50, mujoco 3.17.0 +- verification: not yet re-run (`tools/bench/verify_submission.py`) + +**Provisional.** First learned row (a diffusion policy trained on scripted demos, 2026-11-28). Produced from a dirty working tree without the command or the instance-pool hash, under protocol revision 1; the checkpoints are local files whose hashes are recorded but which are not published. The lift_peg_upright row was scored on a locally corrected 10-instance demo file (fingers inside their limits) under the task's 800-step cap, not the suite's 534-step budget; it is not comparable with the other rows of that task until the corrected demos are published as the task's official instances. + +Why these files are not reproducible from their contents: + +- `core__lift_peg_upright__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); demo_budget_factor=None (suite: 3.0); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); notes.demos names a demo file without its sha256; a local demo file is not reproducible; a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__pick_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file) +- `core__pull_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__push_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) +- `core__stack_cube__franka__ddpm_dit.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); a 'il' policy must name its weights: policy.checkpoint_sha256 + policy.checkpoint_url, or the served policy's checkpoint_sha256 / model_revision metadata; the demo file the instances came from was not recorded (notes.demo_file) + +| task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | franka | mujoco | first | visual | il | 1 | 20 | 0.700 | [0.481, 0.855] | 383.8 | +| pick_cube | franka | mujoco | first, budget 3x p75 | visual | il | 1 | 20 | 0.750 | [0.531, 0.888] | 158.9 | +| pull_cube | franka | mujoco | first, budget 3x p75 | visual | il | 1 | 20 | 0.900 | [0.699, 0.972] | 211.4 | +| push_cube | franka | mujoco | first, budget 3x p75 | visual | il | 1 | 20 | 1.000 | [0.839, 1.000] | 162.8 | +| stack_cube | franka | mujoco | first, budget 3x p75 | visual | il | 1 | 20 | 0.200 | [0.081, 0.416] | 243.6 | + +Provenance, one row per result file: + +| task | policy | tier | episodes | seed | commit | cap (source) | s / episode | checkpoint | usage | command | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | il | visual | 20 | 0 | `293c3b5478`\* | 800 (task) | 31.0 | `f025538698` | - | - | +| pick_cube | il | visual | 20 | 0 | `1eca9a92a6`\* | 250 (task (below the demo budget)) | 15.6 | `299ffba9d3` | - | - | +| pull_cube | il | visual | 20 | 0 | `b48b24c1a7`\* | 237 (demos) | 17.5 | `3312081932` | - | - | +| push_cube | il | visual | 20 | 0 | `b48b24c1a7`\* | 216 (demos) | 14.0 | `2408c853c6` | - | - | +| stack_cube | il | visual | 20 | 0 | `b48b24c1a7`\* | 250 (task (below the demo budget)) | 20.1 | `0d6d1ead8e` | - | - | + +### 2026-11-28-isaacsim-twin + +- simulators: isaacsim; policies: replay, scripted; 100 episodes in 10 files +- MetaSim 1.0.0; commit(s) `0910190db4`, `1eca9a92a6`, `2eb3afb341`, `c4713e22b3` (dirty working tree); isaaclab 16.4.0, isaacsim 6.0.1.0 +- verification: not yet re-run (`tools/bench/verify_submission.py`) + +**Provisional.** The tabletop-mujoco suite re-run on Isaac Sim 6 (2026-11-28) as a cross-engine check. The suite is defined on MuJoCo, so these rows cannot enter it; they are kept to show how far the demos and the scripted skills transfer. Also produced from a dirty working tree, without the command or the instance-pool hash, under protocol revision 1. + +Why these files are not reproducible from their contents: + +- `replay/core__lift_peg_upright__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__pick_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__pull_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__push_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `replay/core__stack_cube__franka__replay.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__lift_peg_upright__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__pick_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__pull_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__push_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest +- `scripted/core__stack_cube__franka__scripted.json`: not written by \`bench suite run --suite tabletop-mujoco\` (notes.suite is None, expected {'name': 'tabletop-mujoco', 'split': 'core'}); protocol differs from the suite's: revision=1 (suite: 2); run on 'isaacsim'; the suite is defined on 'mujoco'; produced from a dirty or unknown working tree (provenance.git_dirty must be false); the command that produced it was not recorded (notes.command); the instance pool was not fingerprinted (notes.instance_pool_hash); the demo file the instances came from was not recorded (notes.demo_file); roboverse_data/robots/franka/usd/franka_v2.usd is not in the suite's asset manifest + +| task | robots | simulator | rule | access | policy | runs | episodes | success rate | 95% CI | mean steps | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | franka | isaacsim | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 92.7 | +| lift_peg_upright | franka | isaacsim | first, budget 3x p75 | privileged | scripted | 1 | 10 | 0.000 | [0.000, 0.278] | 534.0 | +| pick_cube | franka | isaacsim | first, budget 3x p75 | privileged | replay | 1 | 10 | 0.900 | [0.596, 0.982] | 91.1 | +| pick_cube | franka | isaacsim | first, budget 3x p75 | privileged | scripted | 1 | 10 | 1.000 | [0.722, 1.000] | 94.2 | +| pull_cube | franka | isaacsim | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 63.1 | +| pull_cube | franka | isaacsim | first, budget 3x p75 | privileged | scripted | 1 | 10 | 0.700 | [0.397, 0.892] | 195.1 | +| push_cube | franka | isaacsim | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 57.6 | +| push_cube | franka | isaacsim | first, budget 3x p75 | privileged | scripted | 1 | 10 | 1.000 | [0.722, 1.000] | 114.1 | +| stack_cube | franka | isaacsim | first, budget 3x p75 | privileged | replay | 1 | 10 | 1.000 | [0.722, 1.000] | 124.8 | +| stack_cube | franka | isaacsim | first, budget 3x p75 | privileged | scripted | 1 | 10 | 1.000 | [0.722, 1.000] | 177.9 | + +Provenance, one row per result file: + +| task | policy | tier | episodes | seed | commit | cap (source) | s / episode | checkpoint | usage | command | +|---|---|---|---|---|---|---|---|---|---|---| +| lift_peg_upright | replay | privileged | 10 | 0 | `2eb3afb341`\* | 534 (demos) | 3.1 | - | - | - | +| lift_peg_upright | scripted | privileged | 10 | 0 | `1eca9a92a6`\* | 534 (demos) | 19.3 | - | - | - | +| pick_cube | replay | privileged | 10 | 0 | `c4713e22b3`\* | 250 (task (below the demo budget)) | 3.1 | - | - | - | +| pick_cube | scripted | privileged | 10 | 0 | `c4713e22b3`\* | 250 (task (below the demo budget)) | 3.5 | - | - | - | +| pull_cube | replay | privileged | 10 | 0 | `2eb3afb341`\* | 237 (demos) | 2.1 | - | - | - | +| pull_cube | scripted | privileged | 10 | 0 | `0910190db4`\* | 237 (demos) | 6.6 | - | - | - | +| push_cube | replay | privileged | 10 | 0 | `2eb3afb341`\* | 216 (demos) | 2.1 | - | - | - | +| push_cube | scripted | privileged | 10 | 0 | `2eb3afb341`\* | 216 (demos) | 4.0 | - | - | - | +| stack_cube | replay | privileged | 10 | 0 | `2eb3afb341`\* | 250 (task (below the demo budget)) | 4.5 | - | - | - | +| stack_cube | scripted | privileged | 10 | 0 | `2eb3afb341`\* | 250 (task (below the demo budget)) | 7.0 | - | - | - | diff --git a/docs/source/dataset_benchmark/benchmark/overview.md b/docs/source/dataset_benchmark/benchmark/overview.md index 968b41a4c..228d9ca52 100644 --- a/docs/source/dataset_benchmark/benchmark/overview.md +++ b/docs/source/dataset_benchmark/benchmark/overview.md @@ -1,12 +1,107 @@ -# Benchmark Overview +# Benchmark -With the collected tasks, assets, and trajectories, RoboVerse establishes standardized -benchmarks for robot learning, including both imitation learning and -reinforcement learning. We define a unified training and evaluation protocol within -the RoboVerse platform and implement standardized baselines and learning frameworks -for benchmarking. Specifically, for imitation learning, we introduce different -levels of generalization benchmarks to assess the generalization capability of -models. +RoboVerse is an evaluation entry: one evaluator, one result schema, explicit information-access tiers, +suites whose every task passed the release gate, and a leaderboard that accepts only rows it could re-run. +This page says what is scored and what a number means; [usage](usage.md) lists every command, and +[evaluate a policy in ten minutes](../../start/evaluate_a_policy.md) is the hands-on path. -The generalization benchmark is based on randomization options that automatically applied to any task. We implemented it as an environment wrapper. +## What is scored +An **episode** starts from a fixed **instance** (an initial state from the task's recorded demos, with a +content-addressed id) and runs the policy until the task reports success, the task's own time-out, or the +protocol's episode cap. The task's per-step success predicate becomes one verdict per episode through the +protocol's **success rule** (`first`: held at any step; `final`: at the last step; `held`: for *n* +consecutive steps). A run's **success rate** is the fraction of solved episodes, always reported with a +95% Wilson interval; a suite's number is the **task-macro** mean over its tasks and is `INCOMPLETE` until +every task has a defined score. + +Episode `i` of a run always starts from instance `i mod n` of the pool, so no seed can choose the easy +instances; the seed drives the simulator's randomness only. The protocol carries a **revision** number +(`metasim.bench.PROTOCOL_REVISION`) that changes whenever these rules change, and results of different +revisions are never pooled. + +## What a policy may see + +Two policies are comparable only when they were given the same information. The **access tier** is part of +the protocol and of every result: + +| tier | observation | tools the policy may call | memory across episodes | +|---|---|---|---| +| `privileged` | the full simulator state | simulator queries | yes | +| `visual` | RGB of the allowed cameras + the robot's own state | none | no | +| `visual-depth` | RGB + depth + robot state | none | no | +| `agent-skills` | RGB + robot state | scripted skills | no | +| `agent-planner` | RGB + depth + robot state | a motion planner | no | +| `agent-privileged` | the full state | simulator queries | no | + +The harness **enforces** the observation (object states, extras and segmentation never reach a policy below +`privileged`), the camera set, the proprioception, the instance identity (a restricted policy gets an opaque +per-run handle, not the pool index) and the per-episode compute budget (judged on the time spent inside the +policy, not on simulator stepping). It **records** what only the policy can honour: the tools it called and +the model calls and tokens it reports. Every result says which is which (`notes.access_enforced`, +`notes.access_declared`), and a leaderboard column is one tier. + +## What a result file guarantees + +`python -m metasim bench run` and `bench suite run` write one JSON file per task +(`metasim.bench.BenchmarkResult`, schema `roboverse.bench.result`, version 1). It is readable without +RoboVerse and checked against itself by `bench validate`: the episode count matches the protocol, the +indices and instances are the ones planned, every number is finite, a named checkpoint carries its sha256, +and the embedded summary is what the episode rows give. It records: + +- the **protocol** (rule, cap and where the cap came from, seed, instances, instruction split, tier, revision); +- the **policy** (name, family, checkpoint hash, a served policy's metadata, self-reported usage); +- one row per **episode** (instance id, seed, success, steps, time-out, reward, first success step, prompt, + wall time, policy time, a policy failure when one ended the episode); +- **provenance**: simulator and package versions, physics time step, the robot asset's sha256, the Hub + revision the assets were fetched at, the git commit and whether the tree was dirty, the exact command, + the hash of the instance pool and of the demo file it came from. + +Assets live on the Hugging Face Hub, where a path can change under a name. A suite therefore carries an +**asset manifest** (`roboverse_pack/suites/manifests/.json`, frozen by +`tools/assets/freeze_suite_manifest.py`): every file its tasks load with its sha256, and the Hub revision. +`bench suite run` pins downloads to that revision and exits 1 when the loaded bytes differ from the manifest +(`--allow-unpinned-assets` for a local experiment, which the result then says); the leaderboard refuses such a +row. Re-publishing an asset or a demo set means re-freezing the manifest in the same pull request. + +Two results are **comparable** (`metasim.bench.result_key`) when task, robots, simulator, `num_envs`, +instance pool and protocol agree; `bench summarize` pools exactly those, and names a policy with its +checkpoint hash when two checkpoints share a name. + +## Baselines every task carries + +| baseline | what it is | what it bounds | +|---|---|---| +| `replay` | the task's own demo actions | the ceiling a task allows on this backend; a healthy task replays at 0.9 or better | +| `hold` | the robot keeps its default pose | the floor; a task the hold policy "solves" has a broken success check | +| `random` | uniform joint targets inside the limits | noise | +| `metasim.bench.skills:ScriptedPolicy` | closed-loop IK skills on the true object poses | what a perfect perception stack could reach | +| `metasim.bench.agent:LLMAgentPolicy` | a language-model agent that calls the skills as tools | the perception gap between `agent-privileged` and `agent-skills` | + +`python -m metasim bench health` runs the replay baseline, the hold floor and a determinism check on every +task that ships demos; a task that fails it is not in any suite. The nightly gate runs it on the engines the +release stands behind and opens an issue on a red night. + +## How a number reaches the leaderboard + +1. Run the suite under one tier: `python -m metasim bench suite run --suite tabletop-mujoco ...`. +2. Check it the way the build will: `python -m metasim bench validate --suite tabletop-mujoco `. +3. Assemble the submission: `python -m metasim bench submit --suite tabletop-mujoco --name -`. +4. Commit `results/tabletop-mujoco//`, run `python tools/bench/leaderboard.py`, open a pull request. + +The generator refuses a row that cannot be re-run from its file: the suite's protocol on the suite's +backend, a clean commit, the recorded command, the instance-pool hash and the policy's weights (a +checkpoint URL and hash, or a served policy's checkpoint or model revision) are all required. A submission +that cannot meet that carries a `PROVISIONAL.md` saying why and is listed apart, never pooled or ranked. +A submission is re-run from its files alone, weekly on CI inside the evaluation image or by anyone with +`python tools/bench/verify_submission.py results// --write`; the outcome (`reproduced`, `partial` +when a served policy could not be re-run there, `failed`) is recorded next to it as `VERIFIED.json` and shown +on the page. See the [leaderboard](leaderboard.md). + +## The engines a number stands on + +The benchmark numbers RoboVerse publishes are produced on **MuJoCo** (CPU) in the evaluation container +(`ghcr.io/roboverseorg/roboverse-eval:`, built from `requirements/bench-cpu.lock.txt` on a +digest-pinned base, labelled with the commit, the schema and the wire protocol). Isaac Sim 6 is the second +verified engine; a result from another engine is another row, never pooled with a MuJoCo one. The +installed versions are checked at launch against `python -m metasim doctor`'s table. diff --git a/docs/source/dataset_benchmark/benchmark/remote_protocol.md b/docs/source/dataset_benchmark/benchmark/remote_protocol.md new file mode 100644 index 000000000..415203152 --- /dev/null +++ b/docs/source/dataset_benchmark/benchmark/remote_protocol.md @@ -0,0 +1,104 @@ +# Policy server protocol + +A policy that lives in another process, environment or machine is scored over HTTP: `python -m metasim +bench serve` wraps it, `bench run --policy-url` drives it. The wire protocol is **`roboverse.bench.remote/1`** +(plain HTTP, JSON and NumPy NPZ, no pickle), so a server can be written in any language. This page is the +contract: what a policy receives, what it returns, and what happens when it fails. `python -m metasim bench +conformance --policy-url --robot franka` exercises every part of it without a simulator. + +## Routes + +| route | request | reply | +|---|---|---| +| `GET /metadata` | - | JSON `{"protocol": "roboverse.bench.remote/1", "name": ..., "features": [...], ...}`; every other field (`checkpoint`, `checkpoint_sha256`, `model`, `model_revision`, `family`) is copied into the result's policy record. `features` lists the optional parts the server implements (`"usage"`, `"auth"`); a client needs none of them. | +| `POST /reset` | JSON `{"context": {...}, "env_ids": [...], "instances": [...]}` | JSON `{"ok": true}` | +| `POST /act` | NPZ (`application/octet-stream`), see below | JSON `{"actions": ..., "usage": {...}}` | + +`--require-metadata key=value` on the client makes a mismatch in `/metadata` fail before the first episode. +With a token (`bench serve --token`, `RemotePolicy(token=...)`, or `ROBOVERSE_BENCH_TOKEN` on either side) +every request carries `Authorization: Bearer ` and a request without it is answered `401`. + +## The context (`/reset`) + +`context` is the `PolicyContext` the evaluator built, without `extras` (the simulator's scenario does not +cross the wire; a policy that needs the robot config looks it up by name, `metasim.utils.setup_util.get_robot`): + +| field | type | meaning | +|---|---|---| +| `task` | string | the task's registry name | +| `simulator` | string | `mujoco`, `isaacsim`, ... | +| `robots` | list of strings | robot config names, in order | +| `num_envs` | int | parallel env slots; every batch below has this many rows | +| `seed` | int | the protocol's base seed | +| `max_episode_steps` | int | the cap the evaluator applies | +| `action_joint_names` | `{robot: [joint, ...]}` | the action order, per robot, concatenated into one row | +| `action_low`, `action_high`, `default_action` | lists of floats, length `action_dim` | the action box (joint limits in action order, radians and metres) and the "hold" action | +| `default_joint_positions` | `{robot: {joint: float}}` | the robots' default pose | +| `instruction` | string or null | the task's canonical instruction (null under a train or held-out prompt split: the instruction is then per episode, in the instance) | +| `access` | object or null | the tier (`metasim.bench.AccessProfile.to_dict()`); null means `privileged` | + +`instances` has one object per starting env: `index`, `seed`, `instance_id`, `prompt`, `prompt_variant`. +Below the `privileged` tier the index is an opaque per-run handle and seed and hash are blank: the pool is +the task's public demo file, so a real index would be a lookup key for the hidden initial state. The result +still records the real instance. + +## The observation (`/act`) + +Every array leaf of the observation is one NPZ entry under `obs/`, plus `prompt` (one string per env, +`""` for none), `request` (a counter) and `task`. Paths follow `metasim.types.TensorState`; the client sends +only what the tier allows and what `--obs-key` keeps. Shapes are per batch (`N = num_envs`): + +| path | dtype | shape | unit / frame | +|---|---|---|---| +| `obs/robots//joint_pos` | float32 | `(N, J)` | radians (metres for prismatic joints), the robot's joint order (`action_joint_names` when the robot's action is its joints) | +| `obs/robots//joint_vel` | float32 | `(N, J)` | rad/s or m/s | +| `obs/robots//root_state` | float32 | `(N, 13)` | `[pos xyz (m), quat wxyz, lin_vel xyz (m/s), ang_vel xyz (rad/s)]` in the world frame | +| `obs/robots//body_state` | float32 | `(N, B, 13)` | the same per body, when the backend provides it | +| `obs/robots//joint_pos_target`, `joint_vel_target`, `joint_effort_target` | float32 | `(N, J)` | the last commanded targets, when the backend provides them | +| `obs/objects//root_state`, `body_state`, `joint_pos`, `joint_vel` | float32 | as above | **`privileged` only**: never sent below it | +| `obs/cameras//rgb` | uint8 | `(N, H, W, 3)` | RGB, 0..255 | +| `obs/cameras//depth` | float32 | `(N, H, W)` | metres; **`visual-depth` and `privileged` only** | +| `obs/cameras//pos`, `quat_world` | float32 | `(N, 3)`, `(N, 4)` | camera pose in the world frame (quat wxyz), when the backend provides it | +| `obs/cameras//intrinsics` | float32 | `(N, 3, 3)` | pinhole intrinsics, when provided | +| `obs/extras/...` | - | - | **`privileged` only** | + +Segmentation masks (`instance_seg`, `instance_id_seg`) are sent under `privileged` only. Half-precision +tensors arrive as float32. Lists of names (`body_names`) are not arrays and are not sent. On the server a +`PolicyServer` rebuilds the tree as nested mappings with attribute access (`obs.robots["franka"].joint_pos`), +so a policy written against `TensorState` runs unchanged as long as it reads tensors only. + +## The action (`/act` reply) + +`actions` is a nested list of finite numbers of shape `(N, action_dim)`, or `(N, horizon, action_dim)` for +an action chunk, in the order of `action_joint_names` (joint position targets, radians and metres) when the +task's actions are its joints, or the task's own normalised box otherwise (the context's `action_low` / +`action_high` say which). The simulator clips to the box. The client executes each env's chunk step by step +and asks for a new batch only for the envs whose chunk ran out, so a chunked policy behaves per env exactly +as with `num_envs=1`. A policy that keeps per-env state keys it by env id; `/reset` names the envs that start. + +`usage` is optional: `{"llm_calls": n, "llm_tokens": n, "tool_calls": n}` with the counts **since the previous +reply** (the client sums them; the result records them as `usage_source: "self-reported"`). The agent tiers' +budgets are judged on these. + +## Failures + +| what the server does | what the evaluator does | +|---|---| +| answers 5xx, or a 200 whose body is not `{"actions": ...}` of the right shape, or non-finite numbers | the episodes in flight end as time-outs with `policy_error` set (`"PolicyError: policy server POST .../act answered 500: ..."`), scored by the success rule over the steps taken; the run goes on | +| takes longer than `--policy-timeout` (default 180 s), or the connection drops mid-request | the same; the request is never replayed (the server may already have acted) | +| fails `--max-policy-errors` times in a row (default 3) | the run aborts with the last error; no result file is written (the partial `.episodes.jsonl` remains) | +| is unreachable at the handshake, speaks another protocol, or mismatches `--require-metadata` | the run does not start | + +A failed episode is the policy's loss, not the harness's: an unstable model loses the episodes it crashed on +instead of leaving the run without a number. `notes.policy_errors` counts them. + +## Limits and good practice + +- The server reads at most 1 GiB per request and drops a client that stalls for 30 s; it serves connections on + threads but calls the policy under one lock, one `reset` or `act` at a time. +- `--obs-key robots --obs-key cameras/front/rgb` keeps the payload to what the policy reads (a 480p RGB batch + is about 0.9 MB per env per request uncompressed). +- Bind to `127.0.0.1` (the default) unless the evaluator is on another machine; then set a token. +- Report the weights: `bench serve --checkpoint` hashes them into `/metadata`; a model fetched from a hub + reports `model` and `model_revision` through the policy's `metadata` dict. The leaderboard requires one or + the other for a learned policy. diff --git a/docs/source/dataset_benchmark/benchmark/results.md b/docs/source/dataset_benchmark/benchmark/results.md index 64fbefb76..3ed529ba3 100644 --- a/docs/source/dataset_benchmark/benchmark/results.md +++ b/docs/source/dataset_benchmark/benchmark/results.md @@ -1,9 +1,10 @@ # Benchmark Results -The benchmark results RoboVerse stands behind are the ones produced by the protocol in -[usage](usage.md): one evaluator, one result schema, task-macro success with Wilson intervals, scored per -information-access tier. The current table is the methods x perspectives matrix in that page -("Methods x perspectives: the first matrix"), reproducible with the commands listed there. +The benchmark results RoboVerse stands behind are the ones produced by the protocol in the +[benchmark page](overview.md): one evaluator, one result schema, task-macro success with Wilson intervals, +scored per information-access tier. The one table is the generated [leaderboard](leaderboard.md), built +from the result files under `results/`; a row is reproducible from its file, or it is listed as provisional +and says why. Nothing on that page is typed by hand, and this page carries no second copy. ## Retired: the 2025 imitation-learning table diff --git a/docs/source/dataset_benchmark/benchmark/usage.md b/docs/source/dataset_benchmark/benchmark/usage.md index 161e732ef..92ccce91e 100644 --- a/docs/source/dataset_benchmark/benchmark/usage.md +++ b/docs/source/dataset_benchmark/benchmark/usage.md @@ -28,9 +28,9 @@ python -m metasim bench run --task stack_cube --sim mujoco --robot franka \ python -m metasim bench run --task stack_cube --sim mujoco --policy my_pkg.eval:MyPolicy \ --checkpoint ckpt/policy.pt --policy-arg device=cuda --episodes 50 --seed 0 -# pool result files into a leaderboard table; check files against the schema +# pool result files into a leaderboard table; check files (or a whole submission directory) against the schema python -m metasim bench summarize results/ -python -m metasim bench validate results/*.json +python -m metasim bench validate results/tabletop-mujoco/2026-11-28-il-ddpm-dit ``` `bench run` builds the task from its registry name, applies `--sim`, `--robot`, `--num-envs` @@ -96,14 +96,18 @@ python -m metasim bench health --sim mujoco --task stack_cube --task pick_cube | status | meaning | |---|---| -| `ok` / `low` | replay success at / below `--threshold` | +| `ok` / `low` | replay success at / below `--threshold` (a `low` row names the failed episodes and the result file) | +| `unreliable` | `--floor`: the hold policy (doing nothing) also "succeeds"; the success check is broken | +| `flaky` | `--repeat N`: two replays of the same instances disagree; the task is not deterministic on this backend | +| `invalid` | an initial state puts a robot joint outside its limits; every consumer resolves it differently | | `undefined` | the task declares no success signal | | `unsupported` | the task does not run on `--sim` (`supported_simulators`) or has no class-level scenario | -| `no-demos` | no demo file (skipped in the default sweep, reported for an explicit `--task`) | +| `no-demos` | no demo file, or one that could not be read (skipped in the default sweep, reported for an explicit `--task`) | | `error` | construction or evaluation raised; the first line of the error is the detail | It writes the ordinary result files, `health.json` and `health.md` to `--out-dir` and exits 1 when any -task is `low` or `error`, so it can guard a release. +task is `low`, `unreliable`, `flaky`, `invalid` or `error`, so it can guard a release. The nightly gate runs +it with `--floor --repeat 2` on every registered task (`tools/gate/nightly.sh`). ## Suites @@ -138,11 +142,17 @@ register_suite(BenchmarkSuite( )) ``` -| suite | backend | splits | tasks | replay baseline (3 episodes per task, 2026-10-26) | -|---|---|---|---|---| -| `tabletop-mujoco` | MuJoCo | `core` | pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright | task-macro 0.933 (pick_cube 2/3: its demo 0 fails on MuJoCo) | +| suite | backend | splits | tasks | +|---|---|---|---| +| `tabletop-mujoco` | MuJoCo | `core` | pick_cube, stack_cube, push_cube, pull_cube, lift_peg_upright | -Only tasks whose demos replay on the suite's backend belong in a suite. `bench health` is the gate. +The replay ceiling of every suite task on its backend is a row of the [leaderboard](leaderboard.md), from +the committed result files; this page keeps no copy of it. + +Only tasks whose demos replay on the suite's backend belong in a suite. `bench health` is the gate. A suite +also freezes the bytes it is scored on: `roboverse_pack/suites/manifests/.json` lists every asset and +demo file with its sha256 and the Hub revision (`tools/assets/freeze_suite_manifest.py --suite `); +`bench suite run` pins downloads to it and refuses a run on other bytes unless `--allow-unpinned-assets`. In `tabletop-mujoco` the demo budget tightens push_cube (216 steps), pull_cube (237) and lift_peg_upright (534). pick_cube and stack_cube keep their 250-step time-out, because their recorded demos run that long even when the task is solved by about step 120. Every task in the suite has a @@ -194,6 +204,77 @@ adapter is expected to honour, and a served policy reads them from `PolicyContex scores a result only under its own tier (`bench suite run --access` and `bench suite report --access` set it for the whole suite); `bench summarize` shows the tier of every row. +## Suites on Isaac Sim + +Isaac Sim boots once per process and ends the process in `close()`, so the tasks of a suite cannot share one +interpreter there. `bench suite run --isolate auto` (the default) scores each task in a child `bench run` +on such backends and collects the result files; `--isolate always` does the same on any backend, `never` +keeps one process: + +```bash +python -m metasim bench suite run --suite tabletop-mujoco --sim isaacsim --policy replay --episodes 10 +``` + +## Recording demos with a policy + +A task needs demos before the replay gate can judge it. `bench record` drives a task with any policy +through the same evaluator, keeps the episodes the task scores as successful, and writes the +`{robot: [{"init_state", "actions", "states"}]}` file that `get_traj` loads and `bench health` replays. +The default policy is the scripted skills, so a new tabletop task gets a gated demo set without a human +in the loop: + +```bash +python -m metasim bench record --task pick_cube --sim mujoco --episodes 50 \ + --out roboverse_data/trajs/maniskill/pick_cube/v2/franka_v2.pkl.gz # scripted skills by default +python -m metasim bench health --sim mujoco --task pick_cube --floor --repeat 2 \ + --demos roboverse_data/trajs/maniskill/pick_cube/v2 # gate the recorded set +python -m metasim bench run --task pick_cube --sim mujoco --policy replay --demos # evaluate against it +``` + +`--demos` on `bench run` and `bench health` points the instance pool at another demo file or directory +than the task's own, so a recorded set is checked before it replaces the published one. `--keep-failures` +also writes the failed episodes (for failure datasets); a JSON sidecar next to the file records the +policy, protocol, and how many episodes were kept. Recorded this way on 2026-11-28: the five tabletop +tasks, 20 episodes each with the scripted skills, every set replaying at 1.0 under the gate. + +## Evidence videos + +A result file says *that* a policy succeeded; a reviewer of a leaderboard row, a checker under +suspicion or a freshly recorded demo set needs to see *how*. `--video DIR` on `bench run`, +`bench health` and `bench suite run` writes one mp4 per scored episode, from a camera the task +renders, exactly as the backend rendered it for the policy (no extra lights, no overlay): + +```bash +python -m metasim bench run --task pick_cube --sim mujoco --policy replay --episodes 10 \ + --video results/videos/pick_cube # pick_cube__franka__mujoco__replay__ep000.mp4 ... +python -m metasim bench health --sim mujoco --floor --repeat 2 --video results/videos/health \ + --video-episodes 1 # the first replay episode of every task +python -m metasim bench suite run --suite tabletop-mujoco --policy-url http://127.0.0.1:8000 \ + --access visual --camera front --video results/videos/tabletop # one folder per split +``` + +The files are numbered by episode index, so a row of the result's `episodes` list and its file +match by number, and the result's `notes["videos"]` records the directory, the camera, the frame +size and the files (plus `not_recorded` when `--video-episodes N` capped the set). A task whose +scenario renders no camera gets the `front` preset added for the run; `--video-camera NAME` picks +one of the task's cameras or a preset (`front`, `side`, `top`, `il`). Every frame is one control +step, from the reset that starts the episode to the step that ends it, encoded H.264 at 30 fps. + +From Python the same recorder hangs off the evaluator's observation hook: + +```python +from metasim.bench import EpisodeVideoRecorder, EvalProtocol, ReplayPolicy, evaluate + +rec = EpisodeVideoRecorder("videos", stem="pick_cube__franka__mujoco__replay", camera="front") +result = evaluate(env, ReplayPolicy(), EvalProtocol(episodes=10), + on_episode=rec.on_episode, on_observation=rec.on_observation) +result.notes["videos"] = rec.summary() +``` + +`on_observation(obs, running)` receives every observation the policy is about to act on, with +`{env slot: episode index}` for the slots scoring an episode at that moment; it sees the full +observation, not the access-restricted one the policy gets, so it also serves observation logs. + ## Methods x perspectives: the first matrix The tiers only pay off when several *method families* are scored under several of them with one @@ -226,60 +307,17 @@ python -m metasim bench matrix bench_results/suites/tabletop-mujoco/*/ # met `bench matrix` pools every result file it is given into one table (task-macro success per method and tier, with task and episode counts; a method scored on fewer tasks is starred) followed by the per-task -rows with Wilson intervals. A policy declares its family with a class attribute (`family = "vla"`), which -the result records under `policy["family"]`. +rows with Wilson intervals. `--suite ` judges the macros against the suite's full task list rather +than the tasks seen, and `--json` (on `bench summarize` too) writes the cells and rows as data +(`metasim.bench.matrix_cells`, `metasim.bench.summarize_rows`) for a nightly job or a plotting script. +A policy declares its family with a class attribute (`family = "vla"`), which the result records under +`policy["family"]`. -Measured on 2026-11-27 (`bench matrix` output, 10 episodes per task; the suite protocol is 50): +The numbers themselves are on the [leaderboard](leaderboard.md), generated from the committed result +files (the first matrix, measured on 2026-11-27 with 10 episodes per task, is listed there as provisional); +a second copy here would go stale. -| method | privileged | agent-privileged | agent-skills | visual | -|---|---|---|---|---| -| llm-agent (agent) | | 0.880 (5 tasks, 50 ep) | 0.120 (5 tasks, 50 ep) | | -| scripted (scripted) | 0.900 (5 tasks, 50 ep) | | | | -| hold | 0.000 (5 tasks, 50 ep) | | | 0.000 (5 tasks, 50 ep) | -| openvla-7b[bridge_orig] | | | | 0.000 (5 tasks, 50 ep) | -| random | 0.000 (5 tasks, 50 ep) | | | 0.000 (5 tasks, 50 ep) | -| replay | 0.960 (5 tasks, 50 ep) | | | | - -`*`: fewer tasks than the full set; macros are not comparable across such cells. - -
Per task, with 95 % Wilson intervals - -| task | method | privileged | agent-privileged | agent-skills | visual | -|---|---|---|---|---|---| -| lift_peg_upright | llm-agent (agent) | | 0.700 [0.40, 0.89] n=10 | 0.000 [0.00, 0.28] n=10 | | -| lift_peg_upright | scripted (scripted) | 0.900 [0.60, 0.98] n=10 | | | | -| lift_peg_upright | hold | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| lift_peg_upright | openvla-7b[bridge_orig] | | | | 0.000 [0.00, 0.28] n=10 | -| lift_peg_upright | random | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| lift_peg_upright | replay | 1.000 [0.72, 1.00] n=10 | | | | -| pick_cube | llm-agent (agent) | | 1.000 [0.72, 1.00] n=10 | 0.000 [0.00, 0.28] n=10 | | -| pick_cube | scripted (scripted) | 1.000 [0.72, 1.00] n=10 | | | | -| pick_cube | hold | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| pick_cube | openvla-7b[bridge_orig] | | | | 0.000 [0.00, 0.28] n=10 | -| pick_cube | random | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| pick_cube | replay | 0.900 [0.60, 0.98] n=10 | | | | -| pull_cube | llm-agent (agent) | | 0.800 [0.49, 0.94] n=10 | 0.000 [0.00, 0.28] n=10 | | -| pull_cube | scripted (scripted) | 0.700 [0.40, 0.89] n=10 | | | | -| pull_cube | hold | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| pull_cube | openvla-7b[bridge_orig] | | | | 0.000 [0.00, 0.28] n=10 | -| pull_cube | random | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| pull_cube | replay | 1.000 [0.72, 1.00] n=10 | | | | -| push_cube | llm-agent (agent) | | 1.000 [0.72, 1.00] n=10 | 0.600 [0.31, 0.83] n=10 | | -| push_cube | scripted (scripted) | 1.000 [0.72, 1.00] n=10 | | | | -| push_cube | hold | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| push_cube | openvla-7b[bridge_orig] | | | | 0.000 [0.00, 0.28] n=10 | -| push_cube | random | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| push_cube | replay | 1.000 [0.72, 1.00] n=10 | | | | -| stack_cube | llm-agent (agent) | | 0.900 [0.60, 0.98] n=10 | 0.000 [0.00, 0.28] n=10 | | -| stack_cube | scripted (scripted) | 0.900 [0.60, 0.98] n=10 | | | | -| stack_cube | hold | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| stack_cube | openvla-7b[bridge_orig] | | | | 0.000 [0.00, 0.28] n=10 | -| stack_cube | random | 0.000 [0.00, 0.28] n=10 | | | 0.000 [0.00, 0.28] n=10 | -| stack_cube | replay | 0.900 [0.60, 0.98] n=10 | | | | - -
- -What the matrix is meant to show, and what the first one does show: the replay ceiling and the scripted +What the matrix is meant to show, and what the first one did show: the replay ceiling and the scripted oracle bound what a perfect perception stack could reach; the same agent drops from near the oracle to near zero when its object poses are taken away, which is the perception gap the `agent-skills` tier isolates; and a zero-shot generalist VLA on a robot and scene it never saw sits at the floor, so a @@ -325,10 +363,17 @@ of the observation and gets back actions of shape `(num_envs, action_dim)`, or for each env. When some envs run out, it asks for the batch and gives the new rows only to those envs, so a chunked policy behaves per env as it does with `num_envs=1`. -The server binds `127.0.0.1` unless `--host` says otherwise, and has no authentication. It serves -connections on threads, drops a client that stalls for 30 seconds, and calls the policy under one -lock. The client retries a request only when the connection was refused, so a `reset` or `act` the -server may already have run is never sent twice. The policy sees observations as nested mappings of +The server binds `127.0.0.1` unless `--host` says otherwise; `--token` (or `ROBOVERSE_BENCH_TOKEN` on +both sides) makes it require `Authorization: Bearer` on every request, and it warns when bound beyond +localhost without one. It serves connections on threads, drops a client that stalls for 30 seconds, and +calls the policy under one lock. The client retries a request only when the connection was refused, so a +`reset` or `act` the server may already have run is never sent twice. A 5xx, a time-out +(`--policy-timeout`, default 180 s), a lost connection or a malformed reply is a `PolicyError`: the episodes +in flight end as time-outs with the error recorded (`EpisodeResult.policy_error`) and the run goes on, until +`--max-policy-errors` (default 3) consecutive failures abort it. `/act` replies may carry `usage` deltas +(`llm_calls`, `llm_tokens`, `tool_calls`), summed by the client and recorded as self-reported, which is how +the agent tiers' budgets work for a served policy. The observation and action contract, per tier, is the +[policy server protocol](remote_protocol.md) page. The policy sees observations as nested mappings of tensors with attribute access and string keys. Lists of names such as `body_names` are skipped. A list of values, a string array or a key containing `/` is refused on the client rather than dropped. The simulator's scenario does not cross the wire, so `ctx.extras` is empty on the server. `--policy-url` cannot be combined with `--policy`, @@ -354,7 +399,8 @@ What a robot config promises, and what the MuJoCo and Newton handlers enforce: - **Joints.** `joint_limits` and `default_joint_positions` list every joint of the asset, in any order; the handler's joint vector is the asset's joints sorted by name, and that is the layout of `joint_pos`, `joint_pos_target` and the action tensor. -- **Actuators are named after their joint.** `RobotCfg.actuators` is keyed by joint name. A joint the +- **Actuators are matched to joints by their transmission.** `RobotCfg.actuators` is keyed by joint name; + the asset's actuator names are free (a Menagerie hand's `lh_A_WRJ2` drives `lh_WRJ2`). A joint the MJCF actuates keeps the asset's servo unless the config sets `stiffness` / `damping`; a joint the MJCF does not actuate gets a servo synthesized from the config (so Menagerie and mjlab files that ship no `` block work as-is). A joint in neither place is **passive**: it is observed, it diff --git a/docs/source/dataset_benchmark/dataset/generate_robot_docs.py b/docs/source/dataset_benchmark/dataset/generate_robot_docs.py new file mode 100644 index 000000000..6387246bc --- /dev/null +++ b/docs/source/dataset_benchmark/dataset/generate_robot_docs.py @@ -0,0 +1,216 @@ +"""Regenerate robots.md from the robot configs and the robot result files (no hand-written rows). + + python docs/source/dataset_benchmark/dataset/generate_robot_docs.py # rewrite the page + python docs/source/dataset_benchmark/dataset/generate_robot_docs.py --check # exit 1 if the page is stale (CI) + +Three generated tables: the configs in ``roboverse_pack.robots`` (class, name, joints, asset formats); the latest +``robot check --all`` sweep per simulator from ``results/robots/--check/robots.json``; and the latest +``robot parity`` runs from ``results/robots/-parity--/.json``. A number on this page is always +traceable to one of those files. +""" + +from __future__ import annotations + +import argparse +import importlib +import inspect +import json +import pkgutil +import re +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[4] +sys.path.insert(0, str(ROOT)) +sys.path.insert(0, str(ROOT / "packages" / "metasim")) + +import roboverse_pack.robots as robots_pkg +from metasim.scenario.robot import RobotCfg +from metasim.utils.robot_check import CheckRow, RobotReport, row_verdict + +FIELDS = (("mjcf_path", "MuJoCo"), ("usd_path", "Isaac Sim"), ("urdf_path", "URDF"), ("mjx_mjcf_path", "MJX")) +CHECKS = ("config", "assets", "kinematics", "limits", "actuators", "hold") +RESULTS = ROOT / "results" / "robots" +_CHECK_DIR = re.compile(r"^(\d{4}-\d{2}-\d{2})-(.+)-check$") +_PARITY_DIR = re.compile(r"^(\d{4}-\d{2}-\d{2})-parity-(.+)$") + + +def config_rows() -> list[tuple[str, str, str, str, str]]: + """``(module, class, joints, asset formats, name)`` for every robot config the pack defines.""" + rows = [] + for mod in pkgutil.iter_modules(robots_pkg.__path__): + if mod.name.startswith("_") or mod.name in ("robot_template",): + continue + try: + module = importlib.import_module(f"roboverse_pack.robots.{mod.name}") + except Exception as err: # a robot that needs an optional library is listed with the error, not hidden + rows.append((mod.name, "", "", f"import failed: {type(err).__name__}", "")) + continue + for _, cls in inspect.getmembers(module, inspect.isclass): + if not issubclass(cls, RobotCfg) or cls is RobotCfg or cls.__module__ != module.__name__: + continue + try: + cfg = cls() + except Exception as err: + rows.append((mod.name, cls.__name__, "", f"construct failed: {type(err).__name__}", "")) + continue + assets = [ + label for field, label in FIELDS if isinstance(getattr(cfg, field, None), str) and getattr(cfg, field) + ] + rows.append(( + mod.name, + cls.__name__, + str(getattr(cfg, "num_joints", "") or ""), + ", ".join(assets), + getattr(cfg, "name", ""), + )) + rows.sort(key=lambda r: r[0]) + return rows + + +def latest_dirs(pattern: re.Pattern, results: Path = RESULTS) -> dict[str, tuple[str, Path]]: + """``{key: (date, dir)}`` for the newest directory per key (the simulator, or the engine pair).""" + out: dict[str, tuple[str, Path]] = {} + if not results.is_dir(): + return out + for d in sorted(results.iterdir()): + m = pattern.match(d.name) + if not m or not d.is_dir(): + continue + date, key = m.group(1), m.group(2) + if key not in out or out[key][0] < date: + out[key] = (date, d) + return out + + +def as_report(record: dict) -> RobotReport: + """A result-file record as the library's report, so the page uses the one verdict rule (``RobotReport.verdict``).""" + rows = [ + CheckRow(r["check"], bool(r["ok"]), str(r["detail"]), bool(r.get("applicable", True))) + for r in record.get("rows", []) + ] + return RobotReport(robot=record["robot"], simulator=record.get("simulator", ""), rows=rows) + + +def render_check(sim: str, date: str, data: dict) -> list[str]: + """The ``robot check --all`` sweep as a table plus the named failures.""" + robots = data.get("robots", []) + reports = {r["robot"]: as_report(r) for r in robots} + verdicts = {name: rep.verdict for name, rep in reports.items()} + n_ok = sum(v == "pass" for v in verdicts.values()) + n_na = sum(v == "n/a" for v in verdicts.values()) + lines = [ + f"### Self-check on {sim} ({date})", + "", + f"`python -m metasim robot check --all --sim {sim}`: {len(robots)} robots, {n_ok} pass, " + f"{len(robots) - n_ok - n_na} fail, {n_na} n/a (no asset declared for this backend, nothing else wrong). " + f"Source: `results/robots/{date}-{sim}-check/robots.json`.", + "", + "| robot | " + " | ".join(CHECKS) + " | verdict |", + "|---|" + "---|" * (len(CHECKS) + 1), + ] + + for name, rep in reports.items(): + by = {row.check: row for row in rep.rows} + cells = ["-" if c not in by else row_verdict(by[c]) for c in CHECKS] + lines.append(f"| `{name}` | " + " | ".join(cells) + f" | {verdicts[name]} |") + failures = [(name, row) for name, rep in reports.items() for row in rep.rows if row.applicable and not row.ok] + if failures: + lines += ["", "Named failures (the first per robot and check):", ""] + for robot, row in failures: + # inline code: a detail may carry regex fragments (``env_[^/]+``) or brackets MyST would read as markup + detail = row.detail.replace("|", "/").replace("\n", " ").replace("`", "'") + lines.append(f"- `{robot}` / {row.check}: `{detail[:220]}`") + return lines + + +def render_parity(pair: str, date: str, files: list[Path]) -> list[str]: + """The ``robot parity`` runs of one engine pair, one row per result file.""" + lines = [ + f"### Cross-engine parity: {pair.replace('-', ' vs ')} ({date})", + "", + "`python -m metasim robot parity --sims " + + pair.replace("-", " ") + + "`: the same canned joint trajectory on both " + f"engines, judged per joint. Source: `results/robots/{date}-parity-{pair}/`.", + "", + "| robot | run | control steps | peak speed | worst joint | max diff | verdict |", + "|---|---|---|---|---|---|---|", + ] + for path in sorted(files): + d = json.loads(path.read_text()) + rows = d.get("rows", []) + worst = max(rows, key=lambda r: r.get("max_diff", 0.0)) if rows else None + unit = "m" if worst and worst.get("kind") == "slide" else "rad" + if not d.get("judged", True): + verdict = "reported, not judged (floating base)" + else: + verdict = "pass" if d.get("ok") else "FAIL" + peak = f"{d['peak_velocity']:.2f}/s" if d.get("peak_velocity") is not None else "-" + run = path.stem.split("__", 1)[1].replace("_", " ") if "__" in path.stem else "default" + lines.append( + f"| `{d.get('robot', path.stem)}` | {run} | {d.get('steps', '-')} | {peak} | " + + (f"`{worst['joint']}` | {worst['max_diff']:.4f} {unit} | " if worst else "- | - | ") + + f"{verdict} |" + ) + return lines + + +def render(results: Path = RESULTS) -> str: + """The whole page.""" + rows = config_rows() + lines = [ + "# Robots", + "", + "Generated from `roboverse_pack/robots` and `results/robots/` by `generate_robot_docs.py`; do not edit by hand.", + "A robot is listed with the asset formats its config declares; `tools/assets/check_manifest.py` verifies on", + "every pull request that each declared file exists on the Hub. Robots whose assets did not exist were retired", + "on 2026-11-28 (`roboverse_pack/tasks/RETIRED_TASKS.md`). The self-check and parity tables come from the newest", + "result files per simulator; how to add a robot and pass them is in [Add a robot](../../start/add_a_robot.md).", + "", + "## Configs", + "", + "| config module | class | `name` | joints | asset formats |", + "|---|---|---|---|---|", + ] + for mod_name, cls_name, joints, assets, name in rows: + lines.append(f"| `{mod_name}` | `{cls_name}` | `{name}` | {joints} | {assets} |") + lines += ["", f"{sum(1 for r in rows if r[1])} robot configs."] + checks = latest_dirs(_CHECK_DIR, results) + if checks: + lines += ["", "## Self-check", ""] + for sim, (date, d) in sorted(checks.items()): + path = d / "robots.json" + if path.exists(): + lines += render_check(sim, date, json.loads(path.read_text())) + [""] + parity = latest_dirs(_PARITY_DIR, results) + if parity: + lines += ["## Cross-engine parity", ""] + for pair, (date, d) in sorted(parity.items()): + lines += render_parity(pair, date, list(d.glob("*.json"))) + [""] + return "\n".join(lines).rstrip("\n") + "\n" + + +def main(argv=None) -> int: + ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0]) + ap.add_argument("--check", action="store_true", help="fail when the committed page differs from the generated one") + args = ap.parse_args(argv) + out = Path(__file__).with_name("robots.md") + text = render() + if args.check: + current = out.read_text(encoding="utf-8") if out.exists() else "" + if current != text: + sys.stderr.write(f"{out} is stale: run python {Path(__file__).relative_to(ROOT)}\n") + return 1 + sys.stderr.write(f"{out}: up to date\n") + return 0 + out.write_text(text, encoding="utf-8") + sys.stderr.write(f"{out}: {text.count(chr(10))} lines\n") + return 0 + + +if __name__ == "__main__": + from metasim.sim.gl import apply_headless_gl + + apply_headless_gl() + sys.exit(main()) diff --git a/docs/source/dataset_benchmark/dataset/robots.md b/docs/source/dataset_benchmark/dataset/robots.md index 0a4ef323d..193ce1aea 100644 --- a/docs/source/dataset_benchmark/dataset/robots.md +++ b/docs/source/dataset_benchmark/dataset/robots.md @@ -1,36 +1,208 @@ -# Robots in RoboVerse - -## Scenes - -RoboVerse currently includes some robots. - -| Robot Name | Category | Number of DoFs | Config Name | -| ------ | --------- | ---------------- | ------------ | -| Fetch | Wheeled | 14 | fetch | -| Franka | Arm | 9 | franka | -| Franka Slide | Arm with moving base | 11 | franka_slide | -| Google Robot | Arm | 11 | google_robot_static | -| H1 | Humanoid | 19 | h1 | -| H1 Hand | Humanoid with dexterous hand | 69 | h1_hand | -| H1 Simple Hand | Humanoid with simple hand | 45 | h1_smple_hand | -| IIWA | Arm | 9 | iiwa | -| Sawyer | Arm | 10 | sawyer | -| Sawyer Mujoco | Arm | 9 | sawyer_mujoco | -| UR5e | Arm | 6 | ur5e_2f85 | -| Walker | Bipedal | 6 | walker | -| Ant | Quadreuped | 12 | ant | - -## Dexterous Hands - -RoboVerse includes support for various dexterous hands for manipulation tasks. - -| Robot Name | Number of DoFs | Config Name | Notes | -| ------ | ---------------- | ------------ | ----- | -| Allegro Hand | 16 | allegrohand | 4-finger anthropomorphic hand | -| BrainCo Hand (Left) | 11 | brainco_hand_left | 6 actuated + 5 mimic/passive joints, prosthetic hand | -| BrainCo Hand (Right) | 11 | brainco_hand_right | 6 actuated + 5 mimic/passive joints, prosthetic hand | -| Inspire Hand (Left) | 12 | inspire_hand_left | 6 actuated + 6 mimic/passive (coupled) joints | -| Inspire Hand (Right) | 12 | inspire_hand_right | 6 actuated + 6 mimic/passive (coupled) joints | -| PSIHand (Left) | 21 | psihand_left | All 21 joints actuated. Known issues with IsaacGym, use MuJoCo/Genesis | -| PSIHand (Right) | 21 | psihand_right | All 21 joints actuated. Known issues with IsaacGym, use MuJoCo/Genesis | -| XHand | 12 | xhand | Compact dexterous hand | +# Robots + +Generated from `roboverse_pack/robots` and `results/robots/` by `generate_robot_docs.py`; do not edit by hand. +A robot is listed with the asset formats its config declares; `tools/assets/check_manifest.py` verifies on +every pull request that each declared file exists on the Hub. Robots whose assets did not exist were retired +on 2026-11-28 (`roboverse_pack/tasks/RETIRED_TASKS.md`). The self-check and parity tables come from the newest +result files per simulator; how to add a robot and pass them is in [Add a robot](../../start/add_a_robot.md). + +## Configs + +| config module | class | `name` | joints | asset formats | +|---|---|---|---|---| +| `aloha_agilex_cfg` | `AlohaAgilexCfg` | `aloha_agilex` | 16 | | +| `arx_l5_mjcf_cfg` | `ArxL5Cfg` | `arx_l5` | 8 | MuJoCo, MJX | +| `fetch_cfg` | `FetchCfg` | `fetch` | 9 | URDF | +| `franka_cfg` | `FrankaCfg` | `franka` | 9 | MuJoCo, Isaac Sim, URDF, MJX | +| `franka_slide_urdf_cfg` | `FrankaSlideUrdfCfg` | `franka` | 9 | URDF | +| `franka_slide_urdf_sapien_cfg` | `FrankaSlideUrdfSapienCfg` | `franka` | 9 | URDF | +| `franka_urdf_cfg` | `FrankaUrdfCfg` | `franka` | 9 | URDF | +| `franka_urdf_sapien_cfg` | `FrankaUrdfSapienCfg` | `franka` | 9 | URDF | +| `franka_with_gripper_extension_cfg` | `FrankaWithGripperExtensionCfg` | `franka_with_gripper_extension` | 9 | Isaac Sim, URDF | +| `g1_cfg` | `G1Dof12Cfg` | `g1_dof12` | 12 | MuJoCo, Isaac Sim, URDF, MJX | +| `g1_cfg` | `G1Dof23Cfg` | `g1_dof23` | 23 | | +| `g1_cfg` | `G1Dof27Cfg` | `g1_dof27` | 27 | | +| `g1_cfg` | `G1Dof29Cfg` | `g1_dof29` | 29 | MuJoCo, Isaac Sim, URDF, MJX | +| `g1_cfg` | `G1Dof29Dex3Cfg` | `g1_dof29_dex3` | 43 | | +| `g1_tracking` | `G1TrackingCfg` | `g1_tracking` | 29 | MuJoCo, Isaac Sim, URDF, MJX | +| `gen3_cfg` | `Gen3Cfg` | `gen3` | 7 | MuJoCo, Isaac Sim, URDF, MJX | +| `google_robot_static_cfg` | `GoogleRobotStaticCfg` | `google_robot_static` | 11 | URDF | +| `h1_body_collision` | `H1BodyCollisionCfg` | `h1` | 26 | MuJoCo, Isaac Sim, URDF, MJX | +| `h1_cfg` | `H1Cfg` | `h1` | 26 | MuJoCo, Isaac Sim, URDF, MJX | +| `h1_hand_cfg` | `H1HandCfg` | `h1_hand` | 76 | MuJoCo, MJX | +| `h1_simple_hand_cfg` | `H1SimpleHandCfg` | `h1_simple_hand` | 52 | MuJoCo, MJX | +| `h1_wrist_cfg` | `H1WristCfg` | `h1_wrist` | 19 | MuJoCo, Isaac Sim, URDF, MJX | +| `iiwa14_cfg` | `Iiwa14Cfg` | `iiwa14` | 7 | MuJoCo, Isaac Sim, URDF, MJX | +| `kinova_gen3_robotiq_2f85` | `KinovaGen3Robotiq2f85Cfg` | `kinova_gen3_robotiq_2f85` | 9 | Isaac Sim | +| `koch_mjcf_cfg` | `KochCfg` | `koch_1` | 6 | MuJoCo, MJX | +| `lite6_mjcf_cfg` | `Lite6Cfg` | `lite6` | 6 | MuJoCo, MJX | +| `mjlab_cartpole_cfg` | `MjlabCartpoleCfg` | `cartpole` | 2 | MuJoCo, MJX | +| `mjlab_g1_cfg` | `MjlabG1Cfg` | `g1` | 29 | MuJoCo, Isaac Sim, URDF, MJX | +| `mjlab_go1_cfg` | `MjlabGo1Cfg` | `go1` | 12 | MuJoCo, MJX | +| `mjlab_yam_cfg` | `MjlabYamCfg` | `yam` | 8 | MuJoCo, MJX | +| `openarm_wuji_cfg` | `OpenarmBimanualWujiCfg` | `openarm_bimanual_wuji` | 54 | MuJoCo, Isaac Sim, URDF, MJX | +| `openarm_wuji_cfg` | `OpenarmWujiCfg` | `openarm_wuji` | 54 | MuJoCo, Isaac Sim, URDF, MJX | +| `sawyer_cfg` | `SawyerCfg` | `sawyer` | 10 | Isaac Sim, URDF | +| `sawyer_mujoco_cfg` | `SawyerMujocoCfg` | `sawyer` | 9 | MuJoCo, Isaac Sim, MJX | +| `shadow_hand_cfg` | `ShadowHandCfg` | `shadow_hand` | 24 | MuJoCo, MJX | +| `sharpa_wave_cfg` | `SharpaWaveLeftCfg` | `sharpa_wave_left` | 22 | MuJoCo, MJX | +| `sharpa_wave_cfg` | `SharpaWaveRightCfg` | `sharpa_wave_right` | 22 | MuJoCo, MJX | +| `so_arm100_mjcf_cfg` | `SoArm100Cfg` | `so_arm100` | 6 | MuJoCo, MJX | +| `unitree_dex3_1_cfg` | `UnitreeDex31LeftCfg` | `unitree_dex3_1_left` | 7 | URDF | +| `ur10e_cfg` | `Ur10ECfg` | `ur10e` | 6 | MuJoCo, Isaac Sim, URDF, MJX | +| `ur5e_cfg` | `Ur5ECfg` | `ur5e` | 6 | MuJoCo, Isaac Sim, URDF, MJX | +| `xhand_cfg` | `XhandRightCfg` | `xhand_right` | 12 | URDF | +| `yam_mjcf_cfg` | `YamCfg` | `yam` | 8 | MuJoCo, MJX | +| `z1_cfg` | `Z1Cfg` | `z1` | 6 | MuJoCo, Isaac Sim, URDF, MJX | + +44 robot configs. + +## Self-check + +### Self-check on isaacsim (2026-11-28) + +`python -m metasim robot check --all --sim isaacsim`: 37 robots, 13 pass, 6 fail, 18 n/a (no asset declared for this backend, nothing else wrong). Source: `results/robots/2026-11-28-isaacsim-check/robots.json`. + +| robot | config | assets | kinematics | limits | actuators | hold | verdict | +|---|---|---|---|---|---|---|---| +| `aloha_agilex` | FAIL | n/a | ok | ok | ok | n/a | FAIL | +| `arx_l5` | ok | n/a | ok | ok | ok | n/a | n/a | +| `cartpole` | ok | n/a | ok | ok | ok | n/a | n/a | +| `fetch` | ok | n/a | ok | ok | ok | n/a | n/a | +| `franka` | ok | ok | ok | ok | ok | ok | pass | +| `franka_with_gripper_extension` | ok | ok | ok | ok | ok | ok | pass | +| `g1` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof12` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof23` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_dof27` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_dof29` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof29_dex3` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_tracking` | FAIL | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `gen3` | ok | ok | ok | ok | ok | ok | pass | +| `go1` | ok | n/a | ok | ok | ok | n/a | n/a | +| `google_robot_static` | ok | n/a | ok | ok | ok | n/a | n/a | +| `h1` | ok | ok | ok | ok | ok | ok | pass | +| `h1_hand` | ok | n/a | ok | ok | ok | n/a | n/a | +| `h1_simple_hand` | ok | n/a | ok | ok | ok | n/a | n/a | +| `h1_wrist` | ok | ok | ok | ok | ok | ok | pass | +| `iiwa14` | ok | ok | ok | ok | ok | ok | pass | +| `kinova_gen3_robotiq_2f85` | ok | ok | ok | ok | ok | ok | pass | +| `koch_1` | ok | n/a | ok | ok | ok | n/a | n/a | +| `lite6` | ok | n/a | ok | ok | ok | n/a | n/a | +| `openarm_bimanual_wuji` | ok | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `openarm_wuji` | ok | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `sawyer` | ok | ok | ok | ok | ok | FAIL | FAIL | +| `shadow_hand` | ok | n/a | ok | FAIL | FAIL | n/a | FAIL | +| `sharpa_wave_left` | ok | n/a | ok | ok | ok | n/a | n/a | +| `sharpa_wave_right` | ok | n/a | ok | ok | ok | n/a | n/a | +| `so_arm100` | ok | n/a | ok | ok | ok | n/a | n/a | +| `unitree_dex3_1_left` | ok | n/a | ok | ok | ok | n/a | n/a | +| `ur10e` | ok | ok | ok | ok | ok | ok | pass | +| `ur5e` | ok | ok | ok | ok | ok | ok | pass | +| `xhand_right` | ok | n/a | ok | ok | ok | n/a | n/a | +| `yam` | ok | n/a | ok | ok | ok | n/a | n/a | +| `z1` | ok | ok | ok | ok | ok | ok | pass | + +Named failures (the first per robot and check): + +- `aloha_agilex` / config: `no joint_limits for ['fl_joint1', 'fl_joint2', 'fl_joint3', 'fl_joint4', 'fl_joint5', 'fl_joint6', 'fl_joint7', 'fl_joint8', 'fr_joint1', 'fr_joint2', 'fr_joint3', 'fr_joint4', 'fr_joint5', 'fr_joint6', 'fr_joint7', 'fr_` +- `g1_tracking` / config: `no default position for ['left_ankle_pitch_joint', 'left_ankle_roll_joint', 'left_elbow_joint', 'left_hip_pitch_joint', 'left_hip_roll_joint', 'left_hip_yaw_joint', 'left_knee_joint', 'left_shoulder_yaw_joint', 'left_wri` +- `g1_tracking` / assets: `['/workspace/roboverse_maint/RoboVerse/roboverse_data/unitree_description/usd/g1/g1.usd'] not local and not fetched from the Hub (Exception)` +- `g1_tracking` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'` +- `g1_tracking` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'` +- `g1_tracking` / hold: `not attempted: a cheaper check already failed` +- `openarm_bimanual_wuji` / assets: `['roboverse_data/robots/openarm_wuji/openarm_wuji.usd'] not local and not fetched from the Hub (Exception)` +- `openarm_bimanual_wuji` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_bimanual_wuji` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_bimanual_wuji` / hold: `not attempted: a cheaper check already failed` +- `openarm_wuji` / assets: `['roboverse_data/robots/openarm_wuji/openarm_wuji.usd'] not local and not fetched from the Hub (Exception)` +- `openarm_wuji` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_wuji` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_wuji` / hold: `not attempted: a cheaper check already failed` +- `sawyer` / hold: `child exited 1 without a report: RuntimeError: Failed to create articulation at: /World/envs/env_[^/]+/sawyer/root_joint. Please check PhysX logs.` +- `shadow_hand` / limits: `MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate' Element 'option', line 4 ` +- `shadow_hand` / actuators: `MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate' Element 'option', line 4 ` + +### Self-check on mujoco (2026-11-28) + +`python -m metasim robot check --all --sim mujoco`: 37 robots, 19 pass, 8 fail, 10 n/a (no asset declared for this backend, nothing else wrong). Source: `results/robots/2026-11-28-mujoco-check/robots.json`. + +| robot | config | assets | kinematics | limits | actuators | hold | verdict | +|---|---|---|---|---|---|---|---| +| `aloha_agilex` | FAIL | n/a | ok | ok | ok | n/a | FAIL | +| `arx_l5` | ok | ok | ok | ok | ok | FAIL | FAIL | +| `cartpole` | ok | ok | ok | ok | ok | FAIL | FAIL | +| `fetch` | ok | n/a | ok | ok | ok | n/a | n/a | +| `franka` | ok | ok | ok | ok | ok | ok | pass | +| `franka_with_gripper_extension` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof12` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof23` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_dof27` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_dof29` | ok | ok | ok | ok | ok | ok | pass | +| `g1_dof29_dex3` | ok | n/a | ok | ok | ok | n/a | n/a | +| `g1_tracking` | FAIL | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `gen3` | ok | ok | ok | ok | ok | ok | pass | +| `go1` | ok | ok | ok | ok | ok | ok | pass | +| `google_robot_static` | ok | n/a | ok | ok | ok | n/a | n/a | +| `h1` | ok | ok | ok | ok | ok | ok | pass | +| `h1_hand` | ok | ok | ok | ok | ok | ok | pass | +| `h1_simple_hand` | ok | ok | ok | ok | ok | ok | pass | +| `h1_wrist` | ok | ok | ok | ok | ok | ok | pass | +| `iiwa14` | ok | ok | ok | ok | ok | ok | pass | +| `kinova_gen3_robotiq_2f85` | ok | n/a | ok | ok | ok | n/a | n/a | +| `koch_1` | ok | ok | ok | ok | ok | FAIL | FAIL | +| `lite6` | ok | ok | ok | ok | ok | ok | pass | +| `openarm_bimanual_wuji` | ok | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `openarm_wuji` | ok | FAIL | ok | FAIL | FAIL | FAIL | FAIL | +| `sawyer` | ok | n/a | ok | ok | ok | n/a | n/a | +| `shadow_hand` | ok | ok | ok | FAIL | FAIL | FAIL | FAIL | +| `sharpa_wave_left` | ok | ok | ok | ok | ok | ok | pass | +| `sharpa_wave_right` | ok | ok | ok | ok | ok | ok | pass | +| `so_arm100` | ok | ok | ok | ok | ok | ok | pass | +| `unitree_dex3_1_left` | ok | n/a | ok | ok | ok | n/a | n/a | +| `ur10e` | ok | ok | ok | ok | ok | ok | pass | +| `ur5e` | ok | ok | ok | ok | ok | ok | pass | +| `xhand_right` | ok | n/a | ok | ok | ok | n/a | n/a | +| `yam` | ok | ok | ok | ok | ok | ok | pass | +| `z1` | ok | ok | ok | ok | ok | ok | pass | + +Named failures (the first per robot and check): + +- `aloha_agilex` / config: `no joint_limits for ['fl_joint1', 'fl_joint2', 'fl_joint3', 'fl_joint4', 'fl_joint5', 'fl_joint6', 'fl_joint7', 'fl_joint8', 'fr_joint1', 'fr_joint2', 'fr_joint3', 'fr_joint4', 'fr_joint5', 'fr_joint6', 'fr_joint7', 'fr_` +- `arx_l5` / hold: `after 200 steps at the default pose: max joint deviation 0.0616 rad (joint7), base moved 0.0000 m` +- `cartpole` / hold: `could not build the robot on mujoco: FatalError: add_pair: broadphase buffer full` +- `g1_tracking` / config: `no default position for ['left_ankle_pitch_joint', 'left_ankle_roll_joint', 'left_elbow_joint', 'left_hip_pitch_joint', 'left_hip_roll_joint', 'left_hip_yaw_joint', 'left_knee_joint', 'left_shoulder_yaw_joint', 'left_wri` +- `g1_tracking` / assets: `['roboverse_data/unitree_description/mjcf/g1.xml'] not local and not fetched from the Hub (Exception)` +- `g1_tracking` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'` +- `g1_tracking` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'` +- `g1_tracking` / hold: `could not build the robot on mujoco: Exception: File roboverse_data/unitree_description/mjcf/g1.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/roboverse_da` +- `koch_1` / hold: `after 200 steps at the default pose: max joint deviation 0.2189 rad (pitch), base moved 0.0000 m` +- `openarm_bimanual_wuji` / assets: `['roboverse_data/robots/openarm_wuji/openarm_wuji.xml'] not local and not fetched from the Hub (Exception)` +- `openarm_bimanual_wuji` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_bimanual_wuji` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_bimanual_wuji` / hold: `could not build the robot on mujoco: Exception: File roboverse_data/robots/openarm_wuji/openarm_wuji.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/robover` +- `openarm_wuji` / assets: `['roboverse_data/robots/openarm_wuji/openarm_wuji.xml'] not local and not fetched from the Hub (Exception)` +- `openarm_wuji` / limits: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_wuji` / actuators: `MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'` +- `openarm_wuji` / hold: `could not build the robot on mujoco: Exception: File roboverse_data/robots/openarm_wuji/openarm_wuji.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/robover` +- `shadow_hand` / limits: `MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate' Element 'option', line 4 ` +- `shadow_hand` / actuators: `MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate' Element 'option', line 4 ` +- `shadow_hand` / hold: `could not build the robot on mujoco: AttributeError: Line 4: error while parsing element /roboverse/ for Robo ::::{grid} 2 :gutter: 3 +:::{grid-item-card} Evaluate a policy in ten minutes +:link: start/evaluate_a_policy +:link-type: doc + +Install, score the baselines, plug in your policy (in process or served), pick its access tier, submit a row. +::: + +:::{grid-item-card} Benchmark +:link: dataset_benchmark/benchmark/overview +:link-type: doc + +What is scored and how: instances, success rules, access tiers, what a result file guarantees, how a row enters the leaderboard. +::: + +:::{grid-item-card} Leaderboard +:link: dataset_benchmark/benchmark/leaderboard +:link-type: doc + +Generated from the committed result files: methods x tiers per suite, every row reproducible from its file. +::: + +:::{grid-item-card} Add a task or a robot +:link: start/add_a_task +:link-type: doc + +Register a task, record its demos, pass the health gate; or bring a robot through the robot kit. +::: + :::{grid-item-card} Dataset & Benchmark :link: dataset_benchmark/index :link-type: doc -Explore RoboVerse tasks, assets, robot configurations, and benchmark protocols. +Tasks, assets, robot configurations and the suites. ::: :::{grid-item-card} RoboVerse Learn @@ -47,14 +75,14 @@ Train and evaluate policies with IL, RL, and VLA workflows. :link: /metasim/get_started/installation.html :link-type: url -Install the simulator framework used by RoboVerse. +Install the simulator framework used by RoboVerse, per backend. ::: :::{grid-item-card} MetaSim Quick Start :link: /metasim/get_started/quick_start/index.html :link-type: url -Create scenes and control robots through the standalone simulator docs. +Create scenes and control robots through the simulator docs. ::: :::: @@ -135,6 +163,17 @@ If you find this work useful in your research, please consider citing: } ``` +```{toctree} +:caption: Start here +:maxdepth: 1 +:titlesonly: +:hidden: + +Evaluate a policy in ten minutes +Add a task +Add a robot +``` + ```{toctree} :caption: Dataset & Benchmark :maxdepth: 2 @@ -142,14 +181,15 @@ If you find this work useful in your research, please consider citing: :hidden: Tasks Overview -Task Descriptions -Task Groups +Task Inventory Robots Objects Scenes -Benchmark Overview -Benchmark Results +Benchmark +Leaderboard Benchmark Usage +Policy Server Protocol +Benchmark Results LIBERO + LIBERO-plus Integration ManiSkill Integration mjlab Integration @@ -184,6 +224,7 @@ SAC TD3 SkillBlender Humanoid +BeyondMimic (retired) ``` ```{toctree} diff --git a/docs/source/roboverse_learn/imitation_learning/smolvla.md b/docs/source/roboverse_learn/imitation_learning/smolvla.md index d844c4024..e4e747f70 100644 --- a/docs/source/roboverse_learn/imitation_learning/smolvla.md +++ b/docs/source/roboverse_learn/imitation_learning/smolvla.md @@ -218,7 +218,7 @@ roboverse_learn/vla/SmolVLA/ - [LeRobot GitHub](https://github.com/huggingface/lerobot) - [SmolVLA on Hugging Face](https://huggingface.co/lerobot/smolvla) - [OpenVLA Documentation](./openvla.md) -- [pi0 Documentation](../../vla/pi0/README.md) +- [pi0 Documentation](https://github.com/RoboVerseOrg/RoboVerse/blob/main/roboverse_learn/vla/pi0/README.md) ## Related Documentation diff --git a/docs/source/roboverse_learn/reinforcement_learning/beyondmimic.md b/docs/source/roboverse_learn/reinforcement_learning/beyondmimic.md index 975e98425..73c27acbb 100644 --- a/docs/source/roboverse_learn/reinforcement_learning/beyondmimic.md +++ b/docs/source/roboverse_learn/reinforcement_learning/beyondmimic.md @@ -73,6 +73,13 @@ python roboverse_pack/tasks/beyondmimic/scripts/replay_npz.py --registry_name={y ## Policy Training +> **Retired on 2026-11-27.** The tracking tasks named below (`motion-tracking`, `motion-tracking-isaaclab`, +> `motion-tracking-isaaclab-deploy`) are no longer registered: the release gate could not run them without the +> WandB motion registry, so they are listed in `roboverse_pack/tasks/RETIRED_TASKS.md` with the commit to restore +> them from. The training code under `roboverse_pack/tasks/beyondmimic/` and `roboverse_learn/rl/rsl_rl/` is +> kept; the commands below work once the registrations are restored. + + - Isaac Lab-Native ```bash diff --git a/docs/source/roboverse_learn/reinforcement_learning/dreamer.md b/docs/source/roboverse_learn/reinforcement_learning/dreamer.md deleted file mode 100644 index ae78f8f78..000000000 --- a/docs/source/roboverse_learn/reinforcement_learning/dreamer.md +++ /dev/null @@ -1 +0,0 @@ -# Dreamer diff --git a/docs/source/start/add_a_robot.md b/docs/source/start/add_a_robot.md new file mode 100644 index 000000000..5414691d0 --- /dev/null +++ b/docs/source/start/add_a_robot.md @@ -0,0 +1,155 @@ +# Add a robot + +A robot is a `RobotCfg` under `roboverse_pack/robots/` plus the asset files it names. It lands when +one gated task uses it. The generated table in [Robots](../dataset_benchmark/dataset/robots.md) lists +what exists; the configs whose assets did not exist were retired on 2026-11-28. + +## 1. The config + +Generate it from the MJCF, then review it: + +```bash +python -m metasim robot add --mjcf roboverse_data/robots//mjcf/.xml --name \ + [--usd ...] [--default joint2=1.047 ...] [--ee-body ] [--gripper-joints ...] +``` + +`robot add` reads the joints and their ranges, the servo gains of the MJCF actuators (`kp`, `kv`, the force range as +`effort_limit_sim`; a motor becomes an effort-controlled joint), the `home` keyframe or `--default` values for the +default pose, the gripper joints (slide joints and finger / jaw / gripper names, `is_ee=True`), the tool body (the +gripper joints' common parent) and a grasp or tool-centre site on it (`curobo_tcp_rel_pos`). A joint an `` +couples to a driven one is passive: kept in the limits and defaults, left out of `actuators`, its default mirrored. +The file goes to `roboverse_pack/robots/_cfg.py`; everything the generator guessed is a `TODO` comment and a +line under "Generator notes", and the self-check below runs on the file immediately. On 2026-11-28 the generated +Franka and YAM configs reproduce the hand-written limits, gains, tool bodies and the YAM grasp site exactly; the +default pose is the one thing a Menagerie file without a keyframe cannot provide (`--default` fills it). + +`roboverse_pack/robots/robot_template.py` is the hand-written route. The fields that matter to the harness: + +| field | what it is | who reads it | +|---|---|---| +| `name` | the key every task and result uses | everything | +| `mjcf_path`, `usd_path`, `urdf_path` | one per backend you ship; declare only files that exist | the handlers | +| `actuators` | joint -> stiffness, damping, limits; `is_ee=True` on gripper joints | every backend's PD | +| `joint_limits`, `default_joint_positions` | the action box and the "hold" action | the evaluator, `random`, `hold` | +| `ee_body_name`, `ee_joint_names` | the tool body and the gripper joints | the skills, the kinematics self-test | +| `control_type` | position or effort per joint | the handlers, the action-clip rule | + +Joint names must match the asset exactly; the handler's action order is the sorted joint-name list. + +## 2. Assets + +Put the files under `roboverse_data/robots//{mjcf,usd,urdf}/` on the Hub with a licence row in +`THIRD_PARTY_NOTICES.md`. `tools/assets/check_manifest.py --hub-only` fails the pull request for a path +that is not there. MuJoCo and Isaac Sim 6 are the verified backends; a USD that Isaac Lab 3 cannot +build as an articulation is not support, it is a red gate row. + +## 3. Self-tests before any task + +```bash +python -m metasim robot check # MuJoCo: config, assets, kinematics, limits, actuators, hold +python -m metasim robot check --sim isaacsim # the same on Isaac Sim 6 +``` + +Six rows, each a pass or a named failure: the config has limits and defaults for every actuator, the +defaults lie inside the limits and each asset field names a file of its format (`usd_path` a USD, `mjcf_path` +an MJCF, `urdf_path` a URDF; four mjlab configs pointed `usd_path` at their MJCF, which Isaac Sim spawned as an +empty prim); the asset files the config names for that backend exist (locally or on the Hub, the whole asset +folder is fetched) and, on a USD backend, the USD's payloads and references resolve (the iiwa14 USD is a shell +over `configuration/*.usd`); the MJCF loads in MuJoCo's model, the end-effector body is found and +forward kinematics of the default pose is finite (the skill library and the IL adapters depend on this; a robot +without `ee_body_name` is not judged here); the config's joint limits agree with the ranges the MJCF declares; +every joint the config drives exists in the MJCF and is driven by at most one MJCF actuator (the handler matches +an actuator to its joint by its transmission, so a Menagerie hand's `lh_A_WRJ2` drives `lh_WRJ2` as is; a tendon- or +site-driven actuator has no action slot and is reported); and holding the default pose for 200 steps leaves every joint within 0.05 rad and a +fixed base within 1 cm (a floating base is reported, not judged; give a legged robot whose MJCF roots it at the origin a `default_position` so it spawns standing, as the H1 configs do). `tests/test_roboverse_robot_cfg_validation.py` +runs the config part on every pull request. On 2026-11-28 Franka, YAM and the Sharpa hand pass all six on +MuJoCo, and Franka passes them on Isaac Sim 6 (YAM has no USD, which the assets row says). + +```bash +python -m metasim robot list # every config the robot packages define +python -m metasim robot check --all --out-dir gate/robots # the sweep: one row per robot, robots.json / robots.md +python -m metasim robot check --all --sim isaacsim --out-dir gate/robots_isaac # one child process per robot +``` + +The nightly gate runs the sweep on both engines after the task gate and publishes the tables; the Robots page +renders the newest run per engine from `results/robots/`. + +On Isaac Sim 6 (2026-11-28, one child process per robot) 13 of the 37 pass: franka, franka_with_gripper_extension, +g1, g1_dof12, g1_dof29, gen3, h1, h1_wrist, iiwa14, kinova_gen3_robotiq_2f85, ur10e, ur5e, z1; 18 are `n/a` (no USD, +nothing else wrong); 6 fail: three assets missing on the Hub (g1_tracking, openarm_wuji, openarm_bimanual_wuji), +shadow_hand's MJCF (`apirate`), aloha_agilex's limits, and sawyer's USD, which Isaac Lab 3 cannot create an +articulation from. In the morning the same sweep read 9 pass, 23 fail, 10 n/a over 42 configs: the iiwa14 USD was a +shell whose payloads (`usd/configuration/*.usd`) the single-file fetch never brought, and the mjlab g1 config pointed +`usd_path` at its MJCF; both were reported as "no rigid bodies under the prim". The downloader now fetches a USD's +folder and the asset-field rule in the config row names a path of the wrong format. The generated page carries each +robot's detail. + +### The sweep of 2026-11-28 (MuJoCo, 37 configs) + +The table itself is generated: [Robots, self-check](../dataset_benchmark/dataset/robots.md#self-check) renders the +newest `results/robots/-mujoco-check/robots.json` (19 pass, 8 fail, 10 n/a). A robot with no MJCF is `n/a` on +MuJoCo unless a backend-independent row (config, limits, actuators) fails it. The eight failures, by cause: three +have assets missing on the Hub (g1_tracking, openarm_wuji, openarm_bimanual_wuji); shadow_hand's MJCF uses the +removed `apirate` option; cartpole is a scene file whose standalone build overflows MuJoCo's broadphase buffer; +aloha_agilex has no joint limits (its URDF lives in the RoboTwin checkout); arx_l5 sags 0.06 rad at `joint7` (its +MJCF `gripper` servo against the config's gains) and koch_1 0.22 rad at `pitch`. The generated page carries each +robot's detail. + +The morning of that day the sweep read 17 pass, 21 fail, 4 n/a over 42 configs. Six passes were failures until noon: +so_arm100, koch_1, ur5e, ur10e, lite6 and arx_l5 named a tool body (`tool0`) their MJCF does not have, and so_arm100, +koch_1, gen3 and iiwa14 carried another arm's joint limits (the `limits` row found them). In the evening eight +configs received the `default_joint_positions` (and, for h1_hand and google_robot_static, the `joint_limits`) the +handlers had been falling back to silently, h1_simple_hand's placeholder limits were replaced by its MJCF ranges, +five configs whose asset paths point outside the Hub tree were retired (aloha, iiwa, ur5e_2f85, h1_2_without_hand, +vega; `roboverse_pack/tasks/RETIRED_TASKS.md`), and the MuJoCo handler started matching actuators to joints by their +transmission, which let h1_hand (48 servos named `lh_A_*`) and arx_l5 build at all. The remaining rows are the robot +backlog, in the order above. + +## 4. Cross-engine parity + +```bash +python -m metasim robot parity --sims mujoco isaacsim # one process, both engines +python -m metasim robot parity --sims mujoco --save mj.json # or one engine per environment: +python -m metasim robot parity --load mj.json --sims isaacsim # ... compared in the second one +``` + +The same canned joint trajectory on both engines: 50 control steps settling at the default pose, then 400 steps +(6 s at the pinned 1 ms x 15 control step) of a sinusoid per joint at a quarter of its half range, phase-shifted +joint by joint, clipped to the limits. The report is one row per joint: the largest and the RMS difference between +the two engines' measured positions, each engine's own tracking error against the command (reported, not judged: +it depends on the gains), and a verdict against `--tol` (0.05 rad for a hinge joint) or `--tol-slide` (5 mm for a +slide joint). A robot that passes `robot check` on both engines and fails parity is a config whose gains or limits +the two engines read differently; the row names the joint. Where the asset exists for both engines, a robot lands +only with this green. + +### The sweep of 2026-11-28 (MuJoCo vs Isaac Sim 6, every config with an MJCF and a USD) + +The table is generated: [Robots, cross-engine parity](../dataset_benchmark/dataset/robots.md#cross-engine-parity) +renders `results/robots/2026-11-28-parity-mujoco-isaacsim/`. Gen3 (0.0004 rad), Z1 (0.0011), Franka (0.0043), UR5e +(0.028) and UR10e (0.036) pass at 0.63 rad/s peak; H1 and H1-wrist are reported, not judged (floating base: the knees +end 1.1 to 1.7 rad apart as the two engines let the robot fall); iiwa14 has no comparison because Isaac Lab 3 cannot +build its USD (no rigid bodies under the prim), and so_arm100, lite6 and koch_1 have no USD. + +How the trajectory is shaped is the verdict's fine print, and the sweep had to learn it. Its first version began +each phase-shifted joint with a step from the default to the first sample; that step saturated the position servos +(Franka's joint 1 drifted 0.17 rad apart between engines, Z1's 30 N m wrist servos lagged half a second on MuJoCo, +Gen3's unlimited wrist joint swung a radian) and every arm failed. With the amplitude ramped in over the first period +the table above is what remains, and Franka also agrees within 0.004 rad at the full-range probe (`--amplitude-max 0`, +1.5 rad/s peak, near its velocity limit). Two facts from the detour are kept: `FrankaCfg` sets no `effort_limit_sim`, +so MuJoCo clamps at the Menagerie MJCF's +-40 N m while the USD carries 87 N m (joints 1 to 4) and 12 N m (5 to 7), +a difference these trajectories do not expose; and pinning the datasheet limits changes the MuJoCo dynamics the +shipped demos were recorded under (`bench health` then replays stack_cube at 0.6 and pick_cube at 0.8), so the limits +stay unpinned until the demos are re-recorded for a protocol bump. The default amplitude cap of 0.3 rad (0.63 rad/s, +the speed of a tabletop demo) keeps the verdict in the regime the benchmark runs in. + +## 5. One gated task + +Pin the robot on a tabletop task (`--robot ` on `bench record` and `bench health`), record demos +with the skills, pass the gate. Where the asset exists for both engines, run the gate on Isaac Sim 6 too. + +## What is coming + +`robot add` from a URDF or a USD (today the MJCF is the source; the other paths are declared, not read), a USD for +iiwa14 that Isaac Lab 3 can build, and re-recording the tabletop demos under pinned Franka effort limits as a protocol +bump. The order of planned robots is Franka (reference), YAM, Sharpa, the Wuji hand, UR5e, xArm7, +SO-101, G1, bimanual. diff --git a/docs/source/start/add_a_task.md b/docs/source/start/add_a_task.md new file mode 100644 index 000000000..75a609cc2 --- /dev/null +++ b/docs/source/start/add_a_task.md @@ -0,0 +1,70 @@ +# Add a task + +A task is registered only after it passes the gate. The gate is not a review step you negotiate with; +it is what the word "task" means here. This page is the whole path from a file to a green row. + +## What a task is + +One module under `roboverse_pack/tasks//`, one class, decorated once: + +- a class-level `scenario` (`ScenarioCfg`: robots, objects with asset paths that exist, optional cameras); +- a checker (`metasim.task.checkers`: position shift, relative bounding box, joint position, site + predicates) or, for a dense-reward RL task, `_reward`; +- a `prompt_bank` (canonical instruction plus train and held-out paraphrases); +- a demo file (`traj_filepath`, a `roboverse_data/trajs/...` path) or an explicit `no_demos = True`; +- `supported_simulators` when the assets exist for some backends only. + +Start from `roboverse_pack/tasks/task_template.py`. Variants are parameters or instances, never +generated classes: a module may register at most 16 classes (`tests/test_task_contract_static.py`). + +## 1. Assets that exist + +Every `roboverse_data/...` path you write must exist on the Hub dataset. The pull-request check +`tools/assets/check_manifest.py --hub-only` fails otherwise; run it locally first: + +```bash +python tools/assets/check_manifest.py --paths roboverse_pack/tasks//.py +``` + +Declare only the formats you ship (an MJCF for MuJoCo, a USD for Isaac). A path to a file that does +not exist is not "support for that backend", it is a broken config. + +## 2. Demos without a human + +Write a scripted plan over the skill library (`metasim.bench.skills`: `pick`, `place_on`, `push_to`, +`stand_upright`, or `MoveTo` / `Gripper` primitives with your own targets), register it in +`TABLETOP_PLANS` or pass it as the policy, and record: + +```bash +python -m metasim bench record --task --sim mujoco --episodes 120 \ + --policy metasim.bench.skills:ScriptedPolicy --out demos//v2/franka_v2.pkl.gz +``` + +Only the episodes the task scored as successful are kept, so the recorder also tells you whether the +checker agrees with the plan. A trained policy or a served model records the same way. + +## 3. The gate + +```bash +python -m metasim bench health --sim mujoco --task --demos demos//v2 --episodes 20 --floor --repeat 2 +``` + +Green means: the demos replay at 0.80 or better on the backend they were recorded on, the hold policy +(no motion) scores exactly 0, two replays of the same instances agree, and every initial state keeps each +robot joint inside its limits. `low`, `unreliable`, `flaky`, `invalid` and `error` are each a different bug, +named in the row. Fix the task, not the threshold. (`invalid` caught the shipped `lift_peg_upright` demos +on 2026-11-28: the fingers start at 1.0 in a 0 to 0.04 range, and the gate and the IL collector resolved +that differently, so the same demos replayed at 1.0 in one and 0.45 in the other.) + +## 4. Publish + +Upload the demo file to the Hub under `trajs///v2/`, set `traj_filepath`, open the +pull request. CI runs the static contract and the manifest check; the nightly gate runs the replay on +MuJoCo and Isaac Sim 6 and publishes the table. A task that is red two nights in a row is unregistered +by the next pull request and listed in `roboverse_pack/tasks/RETIRED_TASKS.md` with the commit to +restore it from. + +## Bringing a retired task back + +`RETIRED_TASKS.md` names the file and the commit. Restore it, make it pass the gate, open the pull +request. The 3021 classes retired on 2026-11-27 are not lost; they are waiting for exactly this. diff --git a/docs/source/start/evaluate_a_policy.md b/docs/source/start/evaluate_a_policy.md new file mode 100644 index 000000000..4eb0ce098 --- /dev/null +++ b/docs/source/start/evaluate_a_policy.md @@ -0,0 +1,146 @@ +# Evaluate a policy in ten minutes + +RoboVerse is an evaluation entry: one evaluator, one result schema, explicit information-access tiers, +and a suite whose every task passed the release gate. This page takes a policy from nothing to a +scored result file and a leaderboard submission. + +## 1. Install + +Python 3.10 to 3.12 on Linux or macOS. Everything below is run **from the repository root**: asset paths +are `roboverse_data/...` relative to the working directory, and the first run of a task downloads its assets +and demos from the Hugging Face Hub into that directory (about 40 MB for `pick_cube`). Set +`ROBOVERSE_DATA_DIR` to share one download store between checkouts. + +```bash +git clone https://github.com/RoboVerseOrg/RoboVerse.git && cd RoboVerse +python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu # CPU torch is enough for MuJoCo +python -m pip install -e "packages/metasim[mujoco]" -e ".[mujoco]" # MetaSim first, then RoboVerse +python -m metasim doctor # installed simulator versions against the supported ranges (a legend follows the table) +python -m metasim bench list # the registered tasks +``` + +Headless machines need no set-up: `MUJOCO_GL=egl` is chosen automatically when a loadable libEGL is present +(`osmesa` otherwise). Isaac Sim 6 is the second verified engine: `tools/install/isaacsim6.sh`. + +The same thing as a container (MuJoCo on CPU, headless rendering, no telemetry), for a CI job or a +machine you do not want to set up. It is built from a locked dependency set on a digest-pinned base, so two +builds of one release are the same environment: + +```bash +docker build -t roboverse-eval -f docker/eval/Dockerfile . # or: docker pull ghcr.io/roboverseorg/roboverse-eval: +docker run --rm -v "$PWD/roboverse_data:/opt/roboverse/roboverse_data" -v "$PWD/out:/out" roboverse-eval \ + bench run --task pick_cube --sim mujoco --policy replay --episodes 10 --out /out/pick_cube.json +docker run --rm --network host -v "$PWD/roboverse_data:/opt/roboverse/roboverse_data" -v "$PWD/out:/out" roboverse-eval \ + bench suite run --suite tabletop-mujoco --policy-url http://127.0.0.1:8000 --access visual --camera front --out-dir /out +``` + +The entry point is `python -m metasim`, so every command below works unchanged after the image name. +Mount `roboverse_data` so the downloaded assets survive between runs, and an output directory for the +result files (and `--video` clips). The image is built and smoke-tested on every pull request that +touches it (`.github/workflows/eval-image.yml`) and published to GHCR on each release tag. + +## 2. Run the baselines + +```bash +python -m metasim bench run --task pick_cube --sim mujoco --policy replay --episodes 10 # the task's own demos: the ceiling +python -m metasim bench run --task pick_cube --sim mujoco --policy hold --episodes 10 # doing nothing: the floor +python -m metasim bench run --task pick_cube --sim mujoco --policy metasim.bench.skills:ScriptedPolicy --episodes 10 +``` + +Ten episodes, not one: the replay ceiling of `pick_cube` on MuJoCo is 0.9, and the one demo that does not +replay is instance 0. Each run prints one line per episode and the score with its 95% interval, and writes +`bench_results/________') + path = tmp_path / "twice.xml" + path.write_text(twice) + row = check_actuators(_cfg(tmp_path, mjcf_path=str(path), actuators={"j1": None, "j2": None, "f_l": None})) + assert not row.ok and "two actuators" in row.detail and "'j2': ['elbow', 'j2_boost']" in row.detail + stray = _ACTUATED_ARM.replace( + "", + '', + ) + path.write_text(stray) + row = check_actuators(_cfg(tmp_path, mjcf_path=str(path), actuators={"j1": None, "j2": None, "f_l": None})) + assert not row.ok and "drive no joint" in row.detail and "'#0'" in row.detail diff --git a/packages/metasim/metasim/utils/api_surface.py b/packages/metasim/metasim/utils/api_surface.py index f2180094f..f135b51ce 100644 --- a/packages/metasim/metasim/utils/api_surface.py +++ b/packages/metasim/metasim/utils/api_surface.py @@ -55,6 +55,7 @@ class (with its public methods and dataclass fields) together with its signature "metasim.bench.prompts", "metasim.bench.suite", "metasim.bench.remote", + "metasim.bench.video", "metasim.queries.base", "metasim.utils.site_util", "metasim.utils.state", diff --git a/packages/metasim/metasim/utils/asset_check.py b/packages/metasim/metasim/utils/asset_check.py new file mode 100644 index 000000000..92e14cb86 --- /dev/null +++ b/packages/metasim/metasim/utils/asset_check.py @@ -0,0 +1,146 @@ +"""Asset files behind a config: the format each field promises, and whether a USD stage's composition resolves. + +A robot or object config names its assets per format (``mjcf_path``, ``urdf_path``, ``usd_path``, ``mjx_mjcf_path``). +Two defects reach a simulator late and fail there with an unrelated message: a field that names a file of another +format (``usd_path`` pointing at an MJCF: Isaac Sim spawns an empty prim and reports "no rigid bodies"), and a USD +whose payloads or references live next to it but were never fetched (the stage opens, with nothing in it). Both are +decided here, from the paths alone, before a backend starts. + +``check_asset_fields`` needs nothing but the config. ``usd_dependencies`` needs the ``pxr`` the process already has +(Isaac Sim's once it is up, or ``usd-core`` imported on purpose); without one the composition is not judged, and the +callers say so instead of guessing. A USD fetched from the Hub comes with its folder, so a fresh machine does not +depend on this check (``metasim.utils.hf_util``). +""" + +from __future__ import annotations + +import os +from dataclasses import dataclass, field + +ASSET_FIELDS: dict[str, tuple[str, ...]] = { + "mjcf_path": (".xml",), + "mjx_mjcf_path": (".xml",), + "urdf_path": (".urdf",), + "usd_path": (".usd", ".usda", ".usdc", ".usdz"), +} +"""Config field -> the file suffixes that field may name.""" + +USD_SUFFIXES = ASSET_FIELDS["usd_path"] + + +def check_asset_fields(cfg) -> list[str]: + """Problems with the asset fields of ``cfg``: a declared path whose suffix is not the field's format. + + A field that is unset, ``None`` or ``dataclasses.MISSING`` is not declared and is not a problem. + """ + problems = [] + for name, suffixes in ASSET_FIELDS.items(): + path = getattr(cfg, name, None) + if not isinstance(path, str) or not path: + continue + if not path.lower().endswith(suffixes): + problems.append(f"{name}={path!r} is not a {' / '.join(suffixes)} file") + return problems + + +@dataclass +class UsdDependencies: + """The files a USD stage composes from (sublayers, references, payloads), followed recursively.""" + + path: str + resolved: list[str] = field(default_factory=list) + unresolved: list[str] = field(default_factory=list) + + @property + def ok(self) -> bool: + """Every file the stage composes from exists.""" + return not self.unresolved + + +def _layer_dependencies(layer) -> list[str]: + """The asset paths one layer composes from, as authored (``GetCompositionAssetDependencies`` when it exists).""" + getter = getattr(layer, "GetCompositionAssetDependencies", None) or layer.GetExternalReferences + return [p for p in getter() if p] # anonymous layers are the empty string + + +def _pxr_sdf(allow_import: bool): + """``pxr.Sdf`` from the ``pxr`` this process already has, or ``None``. + + A process that will start Isaac Sim must not import another ``pxr`` first (the pip ``usd-core`` build and Isaac + Sim's kit build cannot both be loaded: the kit then fails with "module 'omni.usd' has no attribute 'get_context'"), + so by default this only uses a ``pxr`` that is already imported, which is the case once a USD backend is up. + """ + import sys + + if "pxr" not in sys.modules and not allow_import: + return None + try: + from pxr import Sdf, Usd # noqa: F401 # importing Usd registers the .usd / .usdc file formats Sdf opens + except ImportError: + return None + return Sdf + + +def usd_dependencies(path: str, *, allow_import: bool = False) -> UsdDependencies | None: + """Every file ``path`` composes from and whether it exists; ``None`` when no ``pxr`` is available. + + ``allow_import=True`` imports ``pxr`` when the process has not; leave it off in a process that may start Isaac Sim. + """ + Sdf = _pxr_sdf(allow_import) + if Sdf is None: + return None + root = os.path.abspath(path) + deps = UsdDependencies(path=path) + seen: set[str] = set() + stack = [root] + while stack: + layer_path = stack.pop() + if layer_path in seen: + continue + seen.add(layer_path) + if not os.path.exists(layer_path): + if layer_path != root: + deps.unresolved.append(layer_path) + continue + try: + layer = Sdf.Layer.FindOrOpen(layer_path) + except Exception: # pxr raises on a format it has no plugin for; the file is there but is not a layer + layer = None + if layer is None: # exists but is not a layer this USD can read + deps.unresolved.append(layer_path) + continue + base = os.path.dirname(layer_path) + for ref in _layer_dependencies(layer): + target = ref if os.path.isabs(ref) else os.path.normpath(os.path.join(base, ref)) + if os.path.exists(target): + if target not in deps.resolved: + deps.resolved.append(target) + if target.lower().endswith(USD_SUFFIXES): + stack.append(target) + elif target not in deps.unresolved: + deps.unresolved.append(target) + return deps + + +def fetch_usd_dependencies(path: str, *, fetch=None, allow_import: bool = False) -> UsdDependencies | None: + """Resolve ``path``'s composition, fetching each missing file with ``fetch`` (the Hub downloader by default). + + Fetching one layer can reveal the layers it composes from, so the walk repeats until nothing new is missing. + Returns the final state (``None`` without ``pxr``); a file ``fetch`` could not produce stays in ``unresolved``. + """ + if fetch is None: + from metasim.utils.hf_util import check_and_download_single as fetch + tried: set[str] = set() + while True: + deps = usd_dependencies(path, allow_import=allow_import) + if deps is None: + return None + todo = [p for p in deps.unresolved if p not in tried] + if not todo: + return deps + for missing in todo: + tried.add(missing) + try: + fetch(missing) + except Exception: # the Hub has no such file: it stays unresolved and the caller reports it + continue diff --git a/packages/metasim/metasim/utils/hf_util.py b/packages/metasim/metasim/utils/hf_util.py index f1e75045f..582fbaaad 100644 --- a/packages/metasim/metasim/utils/hf_util.py +++ b/packages/metasim/metasim/utils/hf_util.py @@ -33,6 +33,37 @@ """How long a process waits for another process's in-flight download of the same asset tree.""" DATA_REPO_IDS = (REPO_ID, "SomaStacksOrg/roboverse_data") +HUB_REVISION: str | None = os.environ.get("ROBOVERSE_HUB_REVISION") or None +"""The Hub revision (commit sha, tag or branch) every download comes from; ``None`` is the repos' default branch. + +Assets on the Hub can change under a path. A benchmark run that must be reproducible pins the revision: a +suite's asset manifest carries it and ``bench suite run`` applies it (:func:`set_hub_revision`), the +``ROBOVERSE_HUB_REVISION`` environment variable sets it for a whole process, and every result records it in +its provenance (``provenance.hub``). The revision is a commit of :data:`REPO_ID`; the mirror repos in +:data:`DATA_REPO_IDS` are read at their default branch. +""" + + +def set_hub_revision(revision: str | None) -> None: + """Pin (or unpin with ``None``) the Hub revision later downloads use.""" + global HUB_REVISION + HUB_REVISION = revision or None + + +def hub_revision() -> str | None: + """The pinned Hub revision, or ``None`` when downloads follow the default branch.""" + return HUB_REVISION + + +def _revision_kwargs(repo_id: str) -> dict[str, str]: + """The ``revision=`` to pass for ``repo_id``: the pin applies to :data:`REPO_ID`, whose commit it names. + + A commit sha of one repository does not exist in another, so the mirror repos are read at their default + branch; a suite's manifest hashes catch a file that differs there. + """ + return {"revision": HUB_REVISION} if HUB_REVISION and repo_id == REPO_ID else {} + + _UPSTREAM_MIRRORS: dict[str, str] = {} """``roboverse_data``-relative prefix -> URL base of the upstream that publishes the files under it. @@ -95,6 +126,35 @@ def _download_from_upstream(url: str, filepath: str) -> None: _COMPANIONS_PROBED: set[str] = set() """Directories whose licence / README companions were already looked for in this process.""" +_USD_SUFFIXES = (".usd", ".usda", ".usdc", ".usdz") +_USD_COMPOSED: set[str] = set() +"""USD files whose composition (payloads, references, sublayers) was already resolved in this process.""" + + +def _fetch_usd_composition(filepath: str) -> None: + """Fetch the payloads / references / sublayers a USD file composes from, when ``pxr`` can read them. + + A robot USD is often a shell over ``configuration/*.usd`` next to it; a single-file fetch brings the shell and + Isaac Sim then finds no rigid bodies in it. Only a ``pxr`` the process already imported is used (importing one + before Isaac Sim starts breaks its launch); without one nothing is judged here, and the folder fetch above covers + a fresh machine. + """ + if not filepath.lower().endswith(_USD_SUFFIXES): + return + key = os.path.realpath(filepath) + if key in _USD_COMPOSED: + return + _USD_COMPOSED.add(key) + try: + from metasim.utils.asset_check import fetch_usd_dependencies + + deps = fetch_usd_dependencies(filepath, fetch=check_and_download_single) + except Exception as exc: # the file itself is in place; its composition is reported, not raised, here + log.debug(f"USD composition of {filepath} not resolved: {exc}") + return + if deps is not None and deps.unresolved: + log.warning(f"{filepath} composes from files that could not be fetched: {deps.unresolved}") + def _fetch_companions(filepath: str) -> None: """Fetch the licence / README that sit next to a freshly downloaded description file, from wherever it came. @@ -117,7 +177,13 @@ def _fetch_companions(filepath: str) -> None: ) repo_id = _find_data_repo(relpath_posix, is_optional_file=True) if repo_id is not None: - hf_hub_download(repo_id=repo_id, filename=relpath_posix, repo_type="dataset", local_dir=LOCAL_DIR) + hf_hub_download( + repo_id=repo_id, + filename=relpath_posix, + repo_type="dataset", + local_dir=LOCAL_DIR, + **_revision_kwargs(repo_id), + ) continue upstream_url = _upstream_url(relpath_posix) if upstream_url is not None: @@ -149,7 +215,7 @@ def _find_data_repo(relpath_posix: str, *, is_optional_file: bool = False) -> st errors: list[tuple[str, Exception]] = [] for repo_id in DATA_REPO_IDS: try: - if hf_api.file_exists(repo_id, relpath_posix, repo_type="dataset"): + if hf_api.file_exists(repo_id, relpath_posix, repo_type="dataset", **_revision_kwargs(repo_id)): return repo_id except Exception as exc: errors.append((repo_id, exc)) @@ -255,7 +321,13 @@ def _download_tree(relpath_posix: str) -> bool: for repo_id in DATA_REPO_IDS: try: entries = list( - hf_api.list_repo_tree(repo_id, path_in_repo=relpath_posix, repo_type="dataset", recursive=True) + hf_api.list_repo_tree( + repo_id, + path_in_repo=relpath_posix, + repo_type="dataset", + recursive=True, + **_revision_kwargs(repo_id), + ) ) except Exception as exc: # the folder is absent from this repo, or the repo is unreachable: try the next log.debug(f"{repo_id} has no folder {relpath_posix}: {exc}") @@ -264,7 +336,9 @@ def _download_tree(relpath_posix: str) -> bool: if not files: continue for path in files: - hf_hub_download(repo_id=repo_id, filename=path, repo_type="dataset", local_dir=LOCAL_DIR) + hf_hub_download( + repo_id=repo_id, filename=path, repo_type="dataset", local_dir=LOCAL_DIR, **_revision_kwargs(repo_id) + ) log.info(f"Folder {relpath_posix} ({len(files)} file(s)) downloaded from the HuggingFace dataset {repo_id}.") return True return False @@ -285,6 +359,7 @@ def check_and_download_single(filepath: str): if local_exists: ## In this case, the runner has the file in their local machine. log.debug(f"File {filepath} found in local directory.") + _fetch_usd_composition(filepath) return else: ## In this case, we didn't find the file in the local directory, the circumstance is complicated. @@ -342,6 +417,15 @@ def check_and_download_single(filepath: str): "Please update the roboverse_data to the latest version, by running `cd roboverse_data && git pull`." ) + ## A USD composes from the payloads / references next to it (``configuration/*.usd``), which nothing in the + ## file name announces: fetch its folder, so the stage opens with its bodies on a machine without ``pxr``. + if filepath.lower().endswith(_USD_SUFFIXES): + rel_dir = relpath_posix.rsplit("/", 1)[0] if "/" in relpath_posix else "" + if rel_dir and _download_tree(rel_dir) and os.path.exists(filepath): + _fetch_companions(filepath) + _fetch_usd_composition(filepath) + return + ## Finally, download the file from the huggingface dataset. try: # Ensure the filename uses POSIX separators when requesting from HF hub @@ -350,8 +434,12 @@ def check_and_download_single(filepath: str): filename=relpath_posix, repo_type="dataset", local_dir=LOCAL_DIR, + **_revision_kwargs(repo_id), + ) + log.info( + f"File {filepath} downloaded from the HuggingFace dataset {repo_id}" + + (f" @ {HUB_REVISION}." if HUB_REVISION else ".") ) - log.info(f"File {filepath} downloaded from the HuggingFace dataset {repo_id}.") except Exception as e: raise e _fetch_companions(filepath) diff --git a/packages/metasim/metasim/utils/isaacsim_asset_util.py b/packages/metasim/metasim/utils/isaacsim_asset_util.py index 30258a6f7..b72b68e89 100644 --- a/packages/metasim/metasim/utils/isaacsim_asset_util.py +++ b/packages/metasim/metasim/utils/isaacsim_asset_util.py @@ -175,6 +175,13 @@ def resolve_isaacsim_file_path(cfg) -> str: """ existing_usd = _existing_path(getattr(cfg, "usd_path", None)) if existing_usd is not None: + # a USD composes from payloads / references next to it; Isaac Sim is up here, so its pxr resolves them and + # whatever the Hub still has to deliver is fetched before the stage opens an empty shell + from metasim.utils.asset_check import fetch_usd_dependencies + + deps = fetch_usd_dependencies(str(existing_usd)) + if deps is not None and not deps.ok: + log.warning(f"{existing_usd} composes from files that could not be fetched: {deps.unresolved}") return str(existing_usd) urdf = _existing_path(getattr(cfg, "urdf_path", None)) diff --git a/packages/metasim/metasim/utils/robot_check.py b/packages/metasim/metasim/utils/robot_check.py new file mode 100644 index 000000000..4340f4b0b --- /dev/null +++ b/packages/metasim/metasim/utils/robot_check.py @@ -0,0 +1,705 @@ +"""The robot self-check: what a robot config must survive before a task is built on it. + +``python -m metasim robot check `` runs it. Six checks, each reported as a row: + +- **config**: joint limits and default positions exist for every actuator and the defaults lie inside the limits; +- **assets**: the asset files the config names for the chosen backend exist (locally or on the Hub); +- **kinematics**: the MJCF loads in MuJoCo's model, the end-effector body is found and forward kinematics of the + default pose is finite (the skill library and the IL adapters depend on this); +- **limits**: the config's ``joint_limits`` agree with the ranges the MJCF declares (a config copied from another + robot passes the config check and still commands poses the model cannot reach); +- **actuators**: every joint the config drives exists in the MJCF and is driven by at most one MJCF actuator (the + MuJoCo handler matches an actuator to its joint by its transmission, so the actuator's name is free; a tendon- or + site-driven actuator has no action slot and is reported); +- **hold**: on the backend, commanding the default joint positions for ``steps`` steps leaves every joint within + ``joint_tol`` radians of its target and a fixed base within ``base_tol`` metres (a robot that drifts or explodes + at rest cannot be evaluated). + +Returns the rows and an overall verdict; nothing here touches a task. +""" + +from __future__ import annotations + +from dataclasses import asdict, dataclass, field +from typing import Any + +import numpy as np + +from metasim.constants import SimType +from metasim.utils.asset_check import check_asset_fields, fetch_usd_dependencies + + +@dataclass +class CheckRow: + """One check: its name, whether it passed, and the measurement or error behind the verdict. + + ``applicable=False`` marks a check the robot is not a candidate for on this backend (no asset declared for it): + reported as ``n/a``, and it neither passes nor fails the robot. + """ + + check: str + ok: bool + detail: str + applicable: bool = True + + +_OPEN_HANDLERS: list[Any] = [] +"""Simulator handlers the hold check left open; :func:`close_handlers` releases them after the report is printed.""" + + +def close_handlers() -> None: + """Close the handlers the hold checks left open (last: on Isaac Sim this ends the process).""" + while _OPEN_HANDLERS: + handler = _OPEN_HANDLERS.pop() + try: + handler.close() + except Exception: + pass + + +@dataclass +class RobotReport: + """Every check for one robot on one backend.""" + + robot: str + simulator: str + rows: list[CheckRow] = field(default_factory=list) + + @property + def applicable(self) -> bool: + """The robot declares an asset for this backend: the assets row is the one check that knows the backend.""" + assets = [r for r in self.rows if r.check == "assets"] + return assets[0].applicable if assets else all(r.applicable for r in self.rows) + + @property + def ok(self) -> bool: + """Every applicable check passed; a robot that is not a candidate for this backend does not fail it.""" + return all(r.ok for r in self.rows if r.applicable) + + @property + def verdict(self) -> str: + """``FAIL`` / ``n/a`` / ``pass``. + + An applicable row that fails is ``FAIL`` (a config defect is one on every backend); otherwise a robot that is + not a candidate for this backend is ``n/a``; otherwise ``pass``. + """ + if not self.ok: + return "FAIL" + return "pass" if self.applicable else "n/a" + + def table(self) -> str: + """The report as a Markdown table.""" + lines = [f"robot {self.robot} on {self.simulator}", "| check | result | detail |", "|---|---|---|"] + for r in self.rows: + lines.append(f"| {r.check} | {row_verdict(r)} | {r.detail} |") + lines.append(f"verdict: {self.verdict}") + return "\n".join(lines) + + def to_dict(self) -> dict[str, Any]: + """JSON-ready form.""" + return { + "robot": self.robot, + "simulator": self.simulator, + "ok": self.ok, + "applicable": self.applicable, + "verdict": self.verdict, + "rows": [asdict(r) for r in self.rows], + } + + +def row_verdict(row: CheckRow) -> str: + """``ok`` / ``FAIL`` / ``n/a`` for one row.""" + if not row.applicable: + return "n/a" + return "ok" if row.ok else "FAIL" + + +_ASSET_FIELDS = { + "mujoco": ("mjcf_path",), + "mjx": ("mjx_mjcf_path", "mjcf_path"), + "isaacsim": ("usd_path",), + "isaacgym": ("urdf_path",), + "genesis": ("urdf_path", "mjcf_path"), + "newton": ("urdf_path", "mjcf_path", "usd_path"), + "sapien3": ("urdf_path",), + "pybullet": ("urdf_path",), +} +"""Which config fields name the asset each backend loads; any one of them present and existing passes.""" +_ANY_ASSET = ("mjcf_path", "urdf_path", "usd_path") + + +def check_config(cfg) -> CheckRow: + """Limits and defaults exist for every actuator and the defaults lie inside the limits.""" + joints = sorted(getattr(cfg, "actuators", {}) or {}) + limits = getattr(cfg, "joint_limits", None) or {} + defaults = getattr(cfg, "default_joint_positions", None) or {} + if not joints: + return CheckRow("config", False, "no actuators declared") + missing_limits = [j for j in joints if j not in limits] + missing_defaults = [j for j in joints if j not in defaults] + outside = [ + j + for j in joints + if j in limits and j in defaults and not (limits[j][0] - 1e-9 <= defaults[j] <= limits[j][1] + 1e-9) + ] + problems = [] + if missing_limits: + problems.append(f"no joint_limits for {missing_limits}") + if missing_defaults: + problems.append(f"no default position for {missing_defaults}") + if outside: + problems.append(f"default outside limits for {outside}") + # an asset field naming a file of another format (usd_path -> an MJCF) fails on every backend that reads it + problems += check_asset_fields(cfg) + return CheckRow( + "config", + not problems, + "; ".join(problems) or f"{len(joints)} actuators, limits, defaults and asset fields consistent", + ) + + +def check_assets(cfg, sim: str) -> CheckRow: + """The asset files the config names for ``sim`` exist locally or can be fetched from the Hub.""" + import os + + fields = _ASSET_FIELDS.get(sim, _ANY_ASSET) + declared = [ + (f, getattr(cfg, f, None)) for f in fields if isinstance(getattr(cfg, f, None), str) and getattr(cfg, f) + ] + if not declared: + # not a candidate for this backend: reported, neither a pass nor a failure (a URDF-only robot on MuJoCo) + return CheckRow("assets", False, f"no {' / '.join(fields)} declared for {sim}", applicable=False) + missing = [p for _, p in declared if not os.path.exists(p)] + if missing: + try: + from metasim.utils.hf_util import LOCAL_DIR, _download_tree, check_and_download_single + + for p in list(missing): + # the whole asset folder, not just the descriptor: an MJCF/URDF names meshes next to it + rel_dir = os.path.relpath(os.path.realpath(os.path.dirname(p)), os.path.realpath(LOCAL_DIR)) + if not rel_dir.startswith(".."): + _download_tree(rel_dir.replace(os.sep, "/")) + check_and_download_single(p) + if os.path.exists(p): + missing.remove(p) + except Exception as err: # the Hub said no: report the path, not the traceback + return CheckRow("assets", False, f"{missing} not local and not fetched from the Hub ({type(err).__name__})") + if missing: + return CheckRow("assets", False, f"missing files: {missing}") + notes = [] + for f, p in declared: + if f != "usd_path": + continue + # a USD composes from payloads and references next to it; fetch what is missing, fail on what the Hub lacks + deps = fetch_usd_dependencies(p) + if deps is None: + notes.append("USD composition not judged (no pxr)") + elif not deps.ok: + return CheckRow("assets", False, f"{p} composes from files that do not exist: {deps.unresolved}") + else: + notes.append(f"USD composes from {len(deps.resolved)} file(s), all present") + return CheckRow("assets", True, ", ".join([f"{f}={p}" for f, p in declared] + notes)) + + +def check_kinematics(cfg) -> CheckRow: + """The MJCF loads, the end-effector body exists and forward kinematics of the default pose is finite.""" + if not isinstance(getattr(cfg, "mjcf_path", None), str) or not cfg.mjcf_path: + # a URDF / USD-only robot: the skill library and the IL adapters need an MJCF; like limits and actuators, + # this row is not judged without one (it says so), and the backend's own checks decide the robot + return CheckRow( + "kinematics", True, "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)" + ) + if not getattr(cfg, "ee_body_name", None): + return CheckRow("kinematics", True, "no ee_body_name (not an arm): tool kinematics not judged") + try: + from metasim.bench.skills import ArmModel + + arm = ArmModel(cfg) + q = np.array([float((cfg.default_joint_positions or {}).get(j, 0.0)) for j in arm.arm_joints]) + pos, rot = arm.fk(q) + if not (np.isfinite(pos).all() and np.isfinite(rot).all()): + return CheckRow("kinematics", False, "forward kinematics of the default pose is not finite") + return CheckRow( + "kinematics", + True, + f"ee body {cfg.ee_body_name!r} found; {len(arm.arm_joints)} arm joints, {len(arm.gripper_joints)} gripper joints; " + f"default tool pose ({pos[0]:.3f}, {pos[1]:.3f}, {pos[2]:.3f}) m in the base frame", + ) + except Exception as err: + return CheckRow("kinematics", False, f"{type(err).__name__}: {str(err)[:160]}") + + +def load_mjcf(cfg): + """The config's MJCF as a ``mujoco.MjModel``, the exception that stopped it loading, or None without an MJCF.""" + path = getattr(cfg, "mjcf_path", None) + if not isinstance(path, str) or not path: + return None + try: + import mujoco + + return mujoco.MjModel.from_xml_path(path) + except Exception as err: + return err + + +def check_limits(cfg, tol: float = 1e-3, model=None) -> CheckRow: + """The config's joint limits agree with the MJCF's joint ranges (limited joints only).""" + path = getattr(cfg, "mjcf_path", None) + limits = getattr(cfg, "joint_limits", None) or {} + if not isinstance(path, str) or not path or not limits: + return CheckRow("limits", True, "no mjcf_path or no joint_limits: not judged") + import mujoco + + model = load_mjcf(cfg) if model is None else model + if isinstance(model, Exception): + return CheckRow("limits", False, f"MJCF did not load: {type(model).__name__}: {str(model)[:140]}") + mismatches, compared = [], 0 + for joint, (lo, hi) in limits.items(): + jid = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, joint) + if jid < 0 or not model.jnt_limited[jid]: + continue + compared += 1 + mlo, mhi = (float(x) for x in model.jnt_range[jid]) + if abs(mlo - float(lo)) > tol or abs(mhi - float(hi)) > tol: + mismatches.append(f"{joint} cfg [{float(lo):.3f}, {float(hi):.3f}] vs mjcf [{mlo:.3f}, {mhi:.3f}]") + if mismatches: + return CheckRow( + "limits", + False, + f"{len(mismatches)} of {compared} limited joints disagree with the MJCF: " + "; ".join(mismatches[:4]), + ) + return CheckRow("limits", True, f"{compared} limited joints match the MJCF ranges") + + +def check_actuators(cfg, model=None) -> CheckRow: + """Every config joint exists in the MJCF and is driven by at most one MJCF actuator; names are free.""" + path = getattr(cfg, "mjcf_path", None) + joints = sorted(getattr(cfg, "actuators", {}) or {}) + if not isinstance(path, str) or not path or not joints: + return CheckRow("actuators", True, "no mjcf_path or no actuators: not judged") + import mujoco + + model = load_mjcf(cfg) if model is None else model + if isinstance(model, Exception): + return CheckRow("actuators", False, f"MJCF did not load: {type(model).__name__}: {str(model)[:140]}") + problems = [] + unknown = [j for j in joints if mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, j) < 0] + if unknown: + problems.append(f"config drives joints the MJCF does not define: {unknown}") + drivers: dict[str, list[str]] = {} + stray = [] + for a in range(model.nu): + aname = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_ACTUATOR, a) or f"#{a}" + if int(model.actuator_trntype[a]) not in ( + int(mujoco.mjtTrn.mjTRN_JOINT), + int(mujoco.mjtTrn.mjTRN_JOINTINPARENT), + ): + stray.append(aname) # the handler writes one target per joint: a tendon / site actuator has no slot + continue + joint = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_JOINT, int(model.actuator_trnid[a, 0])) + drivers.setdefault(joint, []).append(aname) + twice = {j: names for j, names in drivers.items() if len(names) > 1} + if twice: + problems.append("joints driven by two actuators (the handler writes one target per joint): " + str(twice)) + if stray: + problems.append(f"actuators that drive no joint (tendon / site transmission, unsupported): {stray[:4]}") + driven = [j for j in joints if j in drivers] + renamed = [f"{drivers[j][0]!r} drives {j!r}" for j in driven if drivers[j][0] != j] + synthesized = len(joints) - len(unknown) - len(driven) + detail = "; ".join(problems) or ( + f"{len(driven)} config joints driven by an MJCF actuator" + + (f" ({len(renamed)} named differently, matched by transmission: {'; '.join(renamed[:3])})" if renamed else "") + + (f", {synthesized} joint(s) driven by a servo synthesized from the config" if synthesized else "") + ) + return CheckRow("actuators", not problems, detail) + + +def check_hold(cfg, sim: str, *, steps: int = 200, joint_tol: float = 0.05, base_tol: float = 0.01) -> CheckRow: + """Hold the default pose on ``sim`` for ``steps`` steps; joints and a fixed base must stay put.""" + import torch + + from metasim.scenario.scenario import ScenarioCfg + from metasim.utils.setup_util import get_sim_handler_class + + try: + scenario = ScenarioCfg(robots=[cfg], simulator=sim, num_envs=1, headless=True) + handler = get_sim_handler_class(SimType(sim))(scenario) + _OPEN_HANDLERS.append(handler) # registered before launch: a launch that raises must still be closed + handler.launch() + except Exception as err: + return CheckRow("hold", False, f"could not build the robot on {sim}: {type(err).__name__}: {str(err)[:160]}") + try: + joints = handler.get_joint_names(cfg.name, sort=True) + defaults = {j: float((cfg.default_joint_positions or {}).get(j, 0.0)) for j in joints} + start = handler.get_states(mode="tensor").robots[cfg.name] + base0 = start.root_state[0, :3].detach().cpu().numpy() + target = torch.tensor([defaults[j] for j in joints], dtype=torch.float32) + worst_joint, worst_dev = "", 0.0 + for _ in range(int(steps)): + handler.set_dof_targets([{cfg.name: {"dof_pos_target": dict(defaults)}}]) # one dict per env + handler.simulate() + state = handler.get_states(mode="tensor").robots[cfg.name] + q = state.joint_pos[0].detach().cpu().float() + dev = (q - target).abs() + if not torch.isfinite(q).all(): + return CheckRow("hold", False, "joint positions are not finite after holding the default pose") + i = int(torch.argmax(dev)) + worst_joint, worst_dev = joints[i], float(dev[i]) + base_drift = float(np.linalg.norm(state.root_state[0, :3].detach().cpu().numpy() - base0)) + fixed = bool(getattr(cfg, "fix_base_link", True)) + if not fixed: + # a floating-base robot (legged, humanoid) at its default pose falls under gravity without a controller; + # that is not a config defect, so only finiteness is judged and the drift is reported for the record + return CheckRow( + "hold", + True, + f"floating base: not judged; after {steps} steps max joint deviation {worst_dev:.4f} rad " + f"({worst_joint}), base moved {base_drift:.4f} m", + ) + ok = worst_dev <= joint_tol and base_drift <= base_tol + return CheckRow( + "hold", + ok, + f"after {steps} steps at the default pose: max joint deviation {worst_dev:.4f} rad ({worst_joint}), " + f"base moved {base_drift:.4f} m", + ) + except Exception as err: + return CheckRow("hold", False, f"{type(err).__name__}: {str(err)[:160]}") + # not closed here: Isaac Sim 6 ends the process inside close(), which would take the report with it. + # The caller closes it once the report is printed (close_handlers()); the handler is registered above. + + +def check_robot_cfg( + cfg, *, sim: str = "mujoco", steps: int = 200, hold: bool = True, static: bool = True +) -> RobotReport: + """Run every check for the config object ``cfg`` on ``sim`` (``robot add`` checks the file it just wrote). + + ``static=False`` runs only the assets row and the hold check (a child process whose parent already ran the rest). + """ + report = RobotReport(robot=cfg.name, simulator=sim) + if static: + report.rows.append(check_config(cfg)) + report.rows.append(check_assets(cfg, sim)) + if static: + report.rows.append(check_kinematics(cfg)) + model = load_mjcf(cfg) # one parse for the two MJCF checks + report.rows.append(check_limits(cfg, model=model)) + report.rows.append(check_actuators(cfg, model=model)) + if hold: + if report.applicable: + report.rows.append(check_hold(cfg, sim, steps=steps)) + else: + report.rows.append(CheckRow("hold", False, f"n/a: no asset declared for {sim}", applicable=False)) + return report + + +def check_robot( + name: str, *, sim: str = "mujoco", steps: int = 200, hold: bool = True, static: bool = True +) -> RobotReport: + """Run every check for the robot config ``name`` (a registered robot) on ``sim``.""" + from metasim.utils.setup_util import get_robot + + return check_robot_cfg(get_robot(name), sim=sim, steps=steps, hold=hold, static=static) + + +# --------------------------------------------------------------------------- cross-engine parity + + +@dataclass +class TrackingTrace: + """One backend tracking the canned joint trajectory: what was commanded and what was measured, per step.""" + + simulator: str + joints: list[str] + commanded: np.ndarray + """``(steps, n_joints)`` targets written each control step.""" + measured: np.ndarray + """``(steps, n_joints)`` joint positions read after each control step.""" + control_dt: float | None = None + + @property + def tracking_error(self) -> np.ndarray: + """Per joint, the largest ``|measured - commanded|`` over the trace.""" + return np.abs(self.measured - self.commanded).max(axis=0) + + def lag_steps(self, max_lag: int = 60) -> np.ndarray: + """Per joint, the delay (control steps) at which the measured trace best correlates with the command. + + A servo that follows the command 100 ms late shows a large ``tracking_error`` and a small lag; the two + together say whether an error is slowness or a different path. + """ + n, k = self.measured.shape + lags = np.zeros(k, dtype=int) + for j in range(k): + c, m = self.commanded[:, j], self.measured[:, j] + if np.ptp(c) < 1e-9 or np.ptp(m) < 1e-9 or n < 4: + continue + best, best_s = -np.inf, 0 + for s in range(0, min(max_lag, n - 3)): + cc = c[: n - s] if s else c + mm = m[s:] + if np.std(cc) < 1e-12 or np.std(mm) < 1e-12: + continue + r = float(np.corrcoef(cc, mm)[0, 1]) + if r > best: + best, best_s = r, s + lags[j] = best_s + return lags + + def to_dict(self) -> dict[str, Any]: + """JSON-ready form (arrays as lists).""" + return { + "simulator": self.simulator, + "joints": list(self.joints), + "control_dt": self.control_dt, + "commanded": self.commanded.tolist(), + "measured": self.measured.tolist(), + } + + @classmethod + def from_dict(cls, data: dict[str, Any]) -> TrackingTrace: + """Inverse of :meth:`to_dict`.""" + return cls( + simulator=data["simulator"], + joints=list(data["joints"]), + commanded=np.asarray(data["commanded"], dtype=float), + measured=np.asarray(data["measured"], dtype=float), + control_dt=data.get("control_dt"), + ) + + +def canned_trajectory( + cfg, + joints: list[str], + *, + steps: int = 400, + period_steps: int = 200, + amplitude_frac: float = 0.25, + amplitude_max: float = 0.3, +) -> np.ndarray: + """A joint-space sinusoid around the default pose, inside the limits, one phase offset per joint. + + The same ``(steps, n)`` array is written on every backend, so the traces are comparable step by step. + Amplitude is ``amplitude_frac`` of each joint's half range (0.5 rad for an unlimited joint), at most + ``amplitude_max`` (so a 0.3 rad swing in 3 s peaks at 0.63 rad/s, the speed of a tabletop demo rather than of + a joint at its velocity limit), clipped to the limits. A slide joint keeps the fraction (its range is small). + The amplitude ramps in over the first period, so every joint's command starts at its default and the robot is + never yanked at step 0 (a step on a phase-shifted joint used to swing an unlimited wrist by a radian). + """ + limits = getattr(cfg, "joint_limits", None) or {} + defaults = getattr(cfg, "default_joint_positions", None) or {} + t = np.arange(int(steps), dtype=float) + ramp = np.clip(t / float(period_steps), 0.0, 1.0) # the same for every joint + out = np.zeros((int(steps), len(joints))) + for k, j in enumerate(joints): + q0 = float(defaults.get(j, 0.0)) + lo, hi = limits.get(j, (-np.inf, np.inf)) + lo, hi = float(lo), float(hi) + amp = amplitude_frac * (hi - lo) / 2 if np.isfinite(lo) and np.isfinite(hi) else 0.5 + if np.isfinite(amplitude_max) and amplitude_max > 0: + amp = min(amp, amplitude_max) + q = q0 + ramp * amp * np.sin(2 * np.pi * t / float(period_steps) + k * np.pi / 4) + out[:, k] = np.clip(q, lo, hi) + return out + + +def track_trajectory( + cfg, + sim: str, + *, + steps: int = 400, + period_steps: int = 200, + amplitude_frac: float = 0.25, + amplitude_max: float = 0.3, + settle_steps: int = 50, + dt: float = 0.001, + decimation: int = 15, +) -> TrackingTrace: + """Build the robot alone on ``sim``, settle at the default pose, then track :func:`canned_trajectory`. + + The physics step and decimation are pinned (1 ms x 15 = a 15 ms control step by default) so two backends see + the same command sequence at the same rate. The handler stays open in ``_OPEN_HANDLERS``; call + :func:`close_handlers` after the report is printed. + """ + import torch + + from metasim.scenario.scenario import ScenarioCfg + from metasim.scenario.simulator_params import SimParamCfg + from metasim.utils.setup_util import get_sim_handler_class + + scenario = ScenarioCfg( + robots=[cfg], simulator=sim, num_envs=1, headless=True, sim_params=SimParamCfg(dt=dt), decimation=decimation + ) + handler = get_sim_handler_class(SimType(sim))(scenario) + handler.launch() + _OPEN_HANDLERS.append(handler) + joints = handler.get_joint_names(cfg.name, sort=True) + defaults = {j: float((cfg.default_joint_positions or {}).get(j, 0.0)) for j in joints} + for _ in range(int(settle_steps)): + handler.set_dof_targets([{cfg.name: {"dof_pos_target": dict(defaults)}}]) + handler.simulate() + commanded = canned_trajectory( + cfg, joints, steps=steps, period_steps=period_steps, amplitude_frac=amplitude_frac, amplitude_max=amplitude_max + ) + measured = np.zeros_like(commanded) + for t in range(commanded.shape[0]): + target = {j: float(commanded[t, k]) for k, j in enumerate(joints)} + handler.set_dof_targets([{cfg.name: {"dof_pos_target": target}}]) + handler.simulate() + q = handler.get_states(mode="tensor").robots[cfg.name].joint_pos[0] + measured[t] = q.detach().cpu().float().numpy() if isinstance(q, torch.Tensor) else np.asarray(q, dtype=float) + control_dt = None + try: + control_dt = float(handler.physics_dt) * int(decimation) if handler.physics_dt is not None else None + except Exception: + pass + return TrackingTrace( + simulator=sim, joints=list(joints), commanded=commanded, measured=measured, control_dt=control_dt + ) + + +@dataclass +class ParityRow: + """One joint's cross-engine comparison.""" + + joint: str + kind: str + """``hinge`` (radians) or ``slide`` (metres).""" + max_diff: float + rms_diff: float + tracking_a: float + tracking_b: float + tol: float + lag_a: int = 0 + lag_b: int = 0 + + @property + def ok(self) -> bool: + """The two engines agree within ``tol`` at every step.""" + return bool(np.isfinite(self.max_diff) and self.max_diff <= self.tol) + + +@dataclass +class ParityReport: + """Two backends tracking the same canned trajectory, compared joint by joint.""" + + robot: str + sim_a: str + sim_b: str + rows: list[ParityRow] = field(default_factory=list) + steps: int = 0 + control_dt: float | None = None + peak_velocity: float | None = None + """Largest commanded joint speed in the trajectory (units per second), the regime the verdict holds for.""" + judged: bool = True + """False for a floating-base robot: without a controller it falls, differently on each engine, so the differences + are reported for the record and no verdict is given (the hold check treats a floating base the same way).""" + + @property + def ok(self) -> bool: + """Every joint agrees within its tolerance (a report that is not judged does not fail).""" + if not self.judged: + return True + return bool(self.rows) and all(r.ok for r in self.rows) + + def table(self) -> str: + """The report as a Markdown table.""" + lines = [ + f"robot {self.robot}: {self.sim_a} vs {self.sim_b}, {self.steps} control steps" + + (f" of {self.control_dt * 1000:.1f} ms" if self.control_dt else "") + + (f", peak commanded speed {self.peak_velocity:.2f}/s" if self.peak_velocity is not None else ""), + f"| joint | unit | max diff | rms diff | tracking {self.sim_a} | tracking {self.sim_b} | lag (steps) | tol | result |", + "|---|---|---|---|---|---|---|---|---|", + ] + for r in self.rows: + unit = "rad" if r.kind == "hinge" else "m" + lines.append( + f"| {r.joint} | {unit} | {r.max_diff:.4f} | {r.rms_diff:.4f} | {r.tracking_a:.4f} | {r.tracking_b:.4f} " + f"| {r.lag_a} / {r.lag_b} | {r.tol:.3f} | {('ok' if r.ok else 'FAIL') if self.judged else 'reported'} |" + ) + if self.judged: + lines.append(f"verdict: {'pass' if self.ok else 'FAIL'}") + else: + lines.append( + "verdict: not judged (floating base: the robot falls without a controller, differently on each engine)" + ) + return "\n".join(lines) + + def to_dict(self) -> dict[str, Any]: + """JSON-ready form.""" + return { + "robot": self.robot, + "sim_a": self.sim_a, + "sim_b": self.sim_b, + "steps": self.steps, + "control_dt": self.control_dt, + "peak_velocity": self.peak_velocity, + "judged": self.judged, + "ok": self.ok, + "rows": [{**asdict(r), "ok": r.ok} for r in self.rows], + } + + +def _joint_kinds(cfg, joints: list[str]) -> dict[str, str]: + """``hinge`` / ``slide`` per joint from the MJCF when there is one; every joint is a hinge otherwise.""" + kinds = {j: "hinge" for j in joints} + path = getattr(cfg, "mjcf_path", None) + if not isinstance(path, str) or not path: + return kinds + try: + import mujoco + + model = mujoco.MjModel.from_xml_path(path) + for j in joints: + jid = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, j) + if jid >= 0 and int(model.jnt_type[jid]) == int(mujoco.mjtJoint.mjJNT_SLIDE): + kinds[j] = "slide" + except Exception: + pass + return kinds + + +def compare_traces( + cfg, a: TrackingTrace, b: TrackingTrace, *, tol: float = 0.05, tol_slide: float = 0.005 +) -> ParityReport: + """Joint-by-joint difference between two traces of the same canned trajectory. + + ``tol`` is the largest allowed ``|q_a - q_b|`` for a hinge joint (radians), ``tol_slide`` for a slide joint + (metres). Tracking error against the command is reported for each engine but not judged: it depends on the + gains, and the hold check already covers a robot that cannot hold its pose. + """ + if a.joints != b.joints: + raise ValueError(f"joint order differs: {a.joints} vs {b.joints}") + n = min(a.measured.shape[0], b.measured.shape[0]) + if not np.allclose(a.commanded[:n], b.commanded[:n]): + raise ValueError("the two traces were not driven by the same command sequence") + diff = a.measured[:n] - b.measured[:n] + kinds = _joint_kinds(cfg, a.joints) + report = ParityReport( + robot=cfg.name, + sim_a=a.simulator, + sim_b=b.simulator, + steps=n, + control_dt=a.control_dt, + judged=bool(getattr(cfg, "fix_base_link", True)), + ) + if a.control_dt and n > 1: + report.peak_velocity = float(np.max(np.abs(np.diff(a.commanded[:n], axis=0))) / a.control_dt) + ta, tb = a.tracking_error, b.tracking_error + la, lb = a.lag_steps(), b.lag_steps() + for k, j in enumerate(a.joints): + kind = kinds[j] + report.rows.append( + ParityRow( + joint=j, + kind=kind, + max_diff=float(np.max(np.abs(diff[:, k]))) if n else float("nan"), + rms_diff=float(np.sqrt(np.mean(diff[:, k] ** 2))) if n else float("nan"), + tracking_a=float(ta[k]), + tracking_b=float(tb[k]), + tol=tol_slide if kind == "slide" else tol, + lag_a=int(la[k]), + lag_b=int(lb[k]), + ) + ) + return report diff --git a/packages/metasim/metasim/utils/robot_kit.py b/packages/metasim/metasim/utils/robot_kit.py new file mode 100644 index 000000000..f1384f4a5 --- /dev/null +++ b/packages/metasim/metasim/utils/robot_kit.py @@ -0,0 +1,473 @@ +"""The robot kit: generate a ``RobotCfg`` from an MJCF, then put it through the self-check. + +``python -m metasim robot add --mjcf --name `` runs it. The MJCF is the one description every +RoboVerse backend can be held against (MuJoCo loads it, Newton loads it, the kinematics and limits checks read +it), so it is the source the generator reads: + +- **joints**: every hinge and slide joint, its range (``joint_limits``), and whether a free joint makes the base + floating (``fix_base_link``); +- **actuators**: the servo gains of the MJCF actuator that drives each joint (``kp`` from ``gainprm``, ``kv`` from + ``biasprm``, the force range as ``effort_limit_sim``); a motor becomes an effort-controlled joint; a joint that + no actuator drives but an ```` couples to a driven one is passive (kept in the limits and defaults, + left out of ``actuators``); a joint with neither gets a placeholder servo the generated file marks ``TODO``; +- **defaults**: ``--default joint=value`` first, then the ``home`` keyframe when the MJCF has one, otherwise zero + clipped into the range and the open position for the gripper joints; a passive joint mirrors the joint it is + coupled to; +- **the tool**: gripper joints are the slide joints or the joints named like a finger, jaw or gripper + (``--gripper-joints`` overrides), the end-effector body is their common parent (``--ee-body`` overrides), and a + site on that body named like a grasp or tool-centre point becomes ``curobo_tcp_rel_pos``. + +Everything the generator had to guess is written into the file as a ``TODO`` comment and listed in +:attr:`RobotSpec.notes`; the self-check (:mod:`metasim.utils.robot_check`) then judges the result the same way it +judges a hand-written config. +""" + +from __future__ import annotations + +import datetime as _dt +import importlib.util +import os +import re +import sys +from dataclasses import dataclass, field +from typing import Any + +import numpy as np + +_GRIPPER_NAME = re.compile(r"finger|gripper|jaw|claw|hand_joint|thumb|index|middle|ring|pinky", re.IGNORECASE) +_TCP_SITE_RANK = ("grasp", "tcp", "attachment", "tool", "ee", "end_effector", "pinch") +_PLACEHOLDER_GAINS = (100.0, 10.0) +"""Servo gains written for a joint the MJCF does not actuate; the generated file marks them ``TODO``.""" + + +@dataclass +class JointSpec: + """One hinge or slide joint of the MJCF and what the generator derived for it.""" + + name: str + kind: str + """``"hinge"`` or ``"slide"``.""" + limited: bool + low: float + high: float + default: float + actuator: str | None = None + """The MJCF actuator that drives the joint, if any.""" + control: str = "position" + """``"position"`` for a servo, ``"effort"`` for a motor.""" + stiffness: float | None = None + damping: float | None = None + effort_limit: float | None = None + is_gripper: bool = False + passive: bool = False + """No actuator; coupled to a driven joint by an ```` (kept out of ``actuators``).""" + guessed_gains: bool = False + """No actuator and no coupling: the gains are placeholders.""" + + +@dataclass +class RobotSpec: + """What the generator read from an MJCF, and the notes a reviewer must read.""" + + model_name: str + mjcf_path: str + joints: list[JointSpec] = field(default_factory=list) + floating_base: bool = False + ee_body: str | None = None + ee_body_source: str = "" + tcp_site: str | None = None + tcp_offset: tuple[float, float, float] | None = None + notes: list[str] = field(default_factory=list) + + @property + def gripper_joints(self) -> list[str]: + """The joints the config marks ``is_ee`` (in MJCF order, passive ones included).""" + return [j.name for j in self.joints if j.is_gripper] + + @property + def actuated(self) -> list[JointSpec]: + """Joints that get an entry in ``actuators`` (everything but the passive ones).""" + return [j for j in self.joints if not j.passive] + + +def _body_depth(model, body: int) -> int: + depth = 0 + while body > 0: + body = int(model.body_parentid[body]) + depth += 1 + return depth + + +def _common_ancestor(model, bodies: list[int]) -> int: + def chain(b: int) -> list[int]: + out = [] + while b > 0: + out.append(b) + b = int(model.body_parentid[b]) + return out + + common = set(chain(bodies[0])) + for b in bodies[1:]: + common &= set(chain(b)) + if not common: + return 0 + return max(common, key=lambda b: _body_depth(model, b)) + + +def inspect_mjcf( + path: str, + *, + ee_body: str | None = None, + gripper_joints: list[str] | None = None, + home_key: str = "home", + defaults: dict[str, float] | None = None, +) -> RobotSpec: + """Read ``path`` with MuJoCo and derive the :class:`RobotSpec` the config is rendered from. + + ``defaults`` (joint -> position) overrides the home pose for the joints it names; a passive joint coupled by a + linear ```` to a driven one mirrors that joint's default. + """ + import mujoco + + model = mujoco.MjModel.from_xml_path(path) + name = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_BODY, 0) # "world"; the model name is on the root element + spec = RobotSpec(model_name=_model_name(path) or name, mjcf_path=path) + + # --- the home keyframe, if any + key_qpos = None + for k in range(model.nkey): + if mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_KEY, k) == home_key: + key_qpos = np.array(model.key_qpos[k]) + break + if key_qpos is None and model.nkey > 0: + key_qpos = np.array(model.key_qpos[0]) + spec.notes.append(f"defaults come from the first keyframe (no key named {home_key!r})") + if key_qpos is None: + spec.notes.append("no keyframe: defaults are zero clipped into the joint range (gripper joints open)") + + # --- actuators by joint + act_by_joint: dict[int, int] = {} + for a in range(model.nu): + if int(model.actuator_trntype[a]) == int(mujoco.mjtTrn.mjTRN_JOINT): + jid = int(model.actuator_trnid[a, 0]) + if jid in act_by_joint: + spec.notes.append( + f"joint {mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_JOINT, jid)!r} has more than one actuator; " + "the first one's gains were taken" + ) + continue + act_by_joint[jid] = a + + # --- equality-coupled joints + coupled: set[int] = set() + couplings: list[ + tuple[int, int, list[float]] + ] = [] # (joint1, joint2, polycoef): joint1 - q0_1 = a0 + a1 (joint2 - q0_2) + ... + for e in range(model.neq): + if int(model.eq_type[e]) == int(mujoco.mjtEq.mjEQ_JOINT): + j1, j2 = int(model.eq_obj1id[e]), int(model.eq_obj2id[e]) + coupled.update((j1, j2)) + couplings.append((j1, j2, [float(x) for x in model.eq_data[e, :5]])) + overrides = dict(defaults or {}) + + wanted_grippers = set(gripper_joints or []) + for j in range(model.njnt): + jname = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_JOINT, j) or f"joint{j}" + jtype = int(model.jnt_type[j]) + if jtype == int(mujoco.mjtJoint.mjJNT_FREE): + spec.floating_base = True + continue + if jtype == int(mujoco.mjtJoint.mjJNT_BALL): + spec.notes.append(f"ball joint {jname!r} skipped: RobotCfg describes one scalar per joint") + continue + kind = "slide" if jtype == int(mujoco.mjtJoint.mjJNT_SLIDE) else "hinge" + limited = bool(model.jnt_limited[j]) + low, high = (float(x) for x in model.jnt_range[j]) if limited else (-np.inf, np.inf) + is_gripper = ( + jname in wanted_grippers if wanted_grippers else bool(kind == "slide" or _GRIPPER_NAME.search(jname)) + ) + js = JointSpec(name=jname, kind=kind, limited=limited, low=low, high=high, default=0.0, is_gripper=is_gripper) + + a = act_by_joint.get(j) + if a is not None: + js.actuator = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_ACTUATOR, a) + gain0 = float(model.actuator_gainprm[a, 0]) + bias = [float(x) for x in model.actuator_biasprm[a, :3]] + affine = int(model.actuator_biastype[a]) == int(mujoco.mjtBias.mjBIAS_AFFINE) + if affine and abs(bias[1] + gain0) <= 1e-6 * max(1.0, abs(gain0)): + js.control, js.stiffness, js.damping = "position", gain0, max(0.0, -bias[2]) + elif not affine and abs(gain0 - 1.0) < 1e-9: + js.control = "effort" + if model.actuator_ctrllimited[a]: + js.effort_limit = float(abs(model.actuator_ctrlrange[a, 1])) + else: + js.control, js.stiffness, js.damping = "position", gain0, max(0.0, -bias[2]) + spec.notes.append(f"actuator {js.actuator!r} is not a plain position servo; gains read as kp={gain0}") + if model.actuator_forcelimited[a]: + js.effort_limit = float(abs(model.actuator_forcerange[a, 1])) + if js.actuator != jname: + spec.notes.append( + f"actuator {js.actuator!r} drives joint {jname!r}: RoboVerse names an actuator after its joint, " + f"rename it in the MJCF or the MuJoCo handler will add a second servo on that joint" + ) + elif j in coupled: + js.passive = True + else: + js.stiffness, js.damping = _PLACEHOLDER_GAINS + js.guessed_gains = True + spec.notes.append(f"joint {jname!r} has no actuator: placeholder servo gains {_PLACEHOLDER_GAINS}") + + if jname in overrides: + js.default = float(overrides.pop(jname)) + elif key_qpos is not None: + js.default = float(key_qpos[int(model.jnt_qposadr[j])]) + elif is_gripper and limited: + js.default = high # open + else: + js.default = float(np.clip(0.0, low, high)) if limited else 0.0 + if limited and not (low - 1e-9 <= js.default <= high + 1e-9): + spec.notes.append(f"keyframe puts {jname!r} at {js.default:.4f}, outside [{low:.4f}, {high:.4f}]; clipped") + js.default = float(np.clip(js.default, low, high)) + spec.joints.append(js) + + if overrides: + raise ValueError(f"--default names joints the MJCF does not have: {sorted(overrides)}") + by_id = {mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, j.name): j for j in spec.joints} + for j1, j2, coef in couplings: + a, b = by_id.get(j1), by_id.get(j2) + if a is None or b is None or any(abs(c) > 1e-12 for c in coef[2:]): + continue # not two scalar joints, or not linear: left as read + q1_0, q2_0 = (float(model.qpos0[int(model.jnt_qposadr[k])]) for k in (j1, j2)) + if a.passive and not b.passive: + a.default = q1_0 + coef[0] + coef[1] * (b.default - q2_0) + elif b.passive and not a.passive and abs(coef[1]) > 1e-12: + b.default = q2_0 + (a.default - q1_0 - coef[0]) / coef[1] + else: + continue + for js in (a, b): + if js.passive and js.limited: + js.default = float(np.clip(js.default, js.low, js.high)) + + # --- the tool + grippers = [j for j in spec.joints if j.is_gripper] + if ee_body: + if mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_BODY, ee_body) < 0: + raise ValueError(f"{path} has no body {ee_body!r}") + spec.ee_body, spec.ee_body_source = ee_body, "given" + elif grippers: + bodies = [int(model.jnt_bodyid[mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, g.name)]) for g in grippers] + parents = sorted({int(model.body_parentid[b]) for b in bodies}) + anc = parents[0] if len(parents) == 1 else _common_ancestor(model, bodies) + spec.ee_body = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_BODY, anc) + spec.ee_body_source = "the parent body of the gripper joints" + elif spec.joints and not spec.floating_base: + last = spec.joints[-1] + bid = int(model.jnt_bodyid[mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_JOINT, last.name)]) + spec.ee_body = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_BODY, bid) + spec.ee_body_source = "the body of the last joint (no gripper joints found)" + spec.notes.append(f"no gripper joints: ee_body_name {spec.ee_body!r} is the last joint's body; pass --ee-body") + if spec.ee_body: + eid = mujoco.mj_name2id(model, mujoco.mjtObj.mjOBJ_BODY, spec.ee_body) + sites = [ + (mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_SITE, s), s) + for s in range(model.nsite) + if model.site_bodyid[s] == eid + ] + + def rank(item): + sname = (item[0] or "").lower() + for i, key in enumerate(_TCP_SITE_RANK): + if key in sname: + return i + return len(_TCP_SITE_RANK) + + named = sorted((s for s in sites if rank(s) < len(_TCP_SITE_RANK)), key=rank) + if named: + sname, sid = named[0] + spec.tcp_site = sname + spec.tcp_offset = tuple(round(float(x), 6) for x in model.site_pos[sid]) + else: + spec.notes.append(f"no grasp/tcp site on {spec.ee_body!r}: curobo_tcp_rel_pos left for review") + return spec + + +def _model_name(path: str) -> str | None: + try: + head = open(path, encoding="utf-8", errors="replace").read(4096) + except OSError: + return None + m = re.search(r"]*\bmodel=\"([^\"]+)\"", head) + return m.group(1) if m else None + + +def class_name_for(robot_name: str) -> str: + """``so_arm100`` -> ``SoArm100Cfg``.""" + parts = re.split(r"[^0-9a-zA-Z]+", robot_name) + return "".join(p[:1].upper() + p[1:] for p in parts if p) + "Cfg" + + +def _fmt(x: float) -> str: + if not np.isfinite(x): + return "float('inf')" if x > 0 else "float('-inf')" + s = f"{x:.6f}".rstrip("0").rstrip(".") + return s if s not in ("", "-0") else "0.0" + + +def render_robot_cfg( + spec: RobotSpec, + *, + name: str, + class_name: str | None = None, + mjcf_path: str | None = None, + usd_path: str | None = None, + urdf_path: str | None = None, + command: str | None = None, +) -> str: + """The Python source of a ``RobotCfg`` subclass for ``spec`` (keyed by joint, in MJCF order).""" + class_name = class_name or class_name_for(name) + mjcf_path = mjcf_path or spec.mjcf_path + today = _dt.date.today().isoformat() + cmd = command or f"python -m metasim robot add --mjcf {mjcf_path} --name {name}" + lines: list[str] = [] + w = lines.append + w('"""' + f"{name}: a RobotCfg generated from its MJCF.") + w("") + w(f"Generated by ``{cmd}`` on {today} from ``{mjcf_path}`` (model ``{spec.model_name}``).") + w("Every value below is what that file declares; the TODO comments mark what the generator had to guess.") + w("Run ``python -m metasim robot check " + name + "`` after editing.") + w('"""') + w("") + w("from __future__ import annotations") + w("") + w("from typing import Literal") + w("") + w("from metasim.scenario.robot import BaseActuatorCfg, RobotCfg") + w("from metasim.utils import configclass") + w("") + w("") + w("@configclass") + w(f"class {class_name}(RobotCfg):") + w( + f' """{spec.model_name}: {len(spec.joints)} joints, {len(spec.gripper_joints)} gripper joints; see the module docstring."""' + ) + w("") + w(f' name: str = "{name}"') + w(f" num_joints: int = {len(spec.joints)}") + w(f" fix_base_link: bool = {not spec.floating_base}") + if spec.floating_base: + w( + " # the MJCF has a free joint: a floating base (legged / humanoid); the hold check reports, not judges, its drift" + ) + w(f' mjcf_path: str = "{mjcf_path}"') + if usd_path: + w(f' usd_path: str = "{usd_path}"') + else: + w(' # usd_path: str = "roboverse_data/robots//usd/.usd" # TODO: Isaac Sim needs a USD') + if urdf_path: + w(f' urdf_path: str = "{urdf_path}"') + w(" enabled_gravity: bool = True") + w(" enabled_self_collisions: bool = False") + w("") + w(" actuators: dict[str, BaseActuatorCfg] = {") + for j in spec.actuated: + kw = [] + if j.control == "position": + kw.append(f"stiffness={_fmt(j.stiffness or 0.0)}") + kw.append(f"damping={_fmt(j.damping or 0.0)}") + if j.effort_limit is not None: + kw.append(f"effort_limit_sim={_fmt(j.effort_limit)}") + if j.is_gripper: + kw.append("is_ee=True") + tail = " # TODO: no actuator in the MJCF, placeholder gains" if j.guessed_gains else "" + tail = tail or (f" # MJCF actuator {j.actuator!r}" if j.actuator and j.actuator != j.name else "") + w(f' "{j.name}": BaseActuatorCfg({", ".join(kw)}),{tail}') + w(" }") + w(" joint_limits: dict[str, tuple[float, float]] = {") + for j in spec.joints: + tail = ( + " # passive: coupled by an , not driven" + if j.passive + else ("" if j.limited else " # unlimited in the MJCF") + ) + w(f' "{j.name}": ({_fmt(j.low)}, {_fmt(j.high)}),{tail}') + w(" }") + w(" default_joint_positions: dict[str, float] = {") + for j in spec.joints: + w(f' "{j.name}": {_fmt(j.default)},') + w(" }") + w(' control_type: dict[str, Literal["position", "effort"]] = {') + for j in spec.actuated: + w(f' "{j.name}": "{j.control}",') + w(" }") + w("") + if spec.ee_body: + todo = "" if spec.ee_body_source in ("given", "the parent body of the gripper joints") else " # TODO: verify" + w(f' ee_body_name: str = "{spec.ee_body}"{todo} # {spec.ee_body_source}') + else: + w(" # ee_body_name: str = ... # TODO: the tool body (not needed for a robot that is not an arm)") + driven_grippers = [j.name for j in spec.joints if j.is_gripper and not j.passive] + if driven_grippers: + w(" ee_joint_names: list[str] = [" + ", ".join(f'"{g}"' for g in driven_grippers) + "]") + opens = [_fmt(j.default) for j in spec.joints if j.is_gripper and not j.passive] + closes = [ + _fmt(j.low if j.default >= (j.low + j.high) / 2 else j.high) + for j in spec.joints + if j.is_gripper and not j.passive + ] + w(f" gripper_open_q: list[float] = [{', '.join(opens)}]") + w(f" gripper_close_q: list[float] = [{', '.join(closes)}] # TODO: verify which end of the range closes") + if spec.tcp_offset is not None: + w(f" curobo_tcp_rel_pos: tuple[float, float, float] = {spec.tcp_offset!r} # site {spec.tcp_site!r}") + w(" curobo_tcp_rel_rot: tuple[float, float, float] = (0.0, 0.0, 0.0)") + else: + w( + " # curobo_tcp_rel_pos: tuple[float, float, float] = (0.0, 0.0, 0.0) # TODO: tool centre point in the ee body frame" + ) + if spec.notes: + w("") + w(" # Generator notes:") + for n in spec.notes: + w(f" # - {n}") + return "\n".join(lines) + "\n" + + +def load_cfg_from_file(path: str, class_name: str) -> Any: + """Import the generated module by path and instantiate ``class_name``.""" + modname = "_roboverse_robot_add_" + re.sub(r"\W", "_", os.path.splitext(os.path.basename(path))[0]) + module_spec = importlib.util.spec_from_file_location(modname, path) + if module_spec is None or module_spec.loader is None: + raise ImportError(f"cannot import {path}") + module = importlib.util.module_from_spec(module_spec) + sys.modules[modname] = module + module_spec.loader.exec_module(module) + return getattr(module, class_name)() + + +def add_robot( + *, + mjcf: str, + name: str, + out: str, + usd: str | None = None, + urdf: str | None = None, + ee_body: str | None = None, + gripper_joints: list[str] | None = None, + class_name: str | None = None, + overwrite: bool = False, + command: str | None = None, + defaults: dict[str, float] | None = None, +) -> tuple[RobotSpec, str]: + """Generate the config file for ``mjcf`` at ``out``; returns the spec and the class name written.""" + if os.path.exists(out) and not overwrite: + raise FileExistsError(f"{out} exists; pass --overwrite to replace it") + spec = inspect_mjcf(mjcf, ee_body=ee_body, gripper_joints=gripper_joints, defaults=defaults) + if not spec.joints: + raise ValueError(f"{mjcf} declares no hinge or slide joint; nothing to drive") + cls = class_name or class_name_for(name) + source = render_robot_cfg( + spec, name=name, class_name=cls, mjcf_path=mjcf, usd_path=usd, urdf_path=urdf, command=command + ) + os.makedirs(os.path.dirname(os.path.abspath(out)), exist_ok=True) + with open(out, "w", encoding="utf-8") as fh: + fh.write(source) + return spec, cls diff --git a/packages/metasim/metasim/utils/setup_util.py b/packages/metasim/metasim/utils/setup_util.py index fc9a56283..ed65f9996 100644 --- a/packages/metasim/metasim/utils/setup_util.py +++ b/packages/metasim/metasim/utils/setup_util.py @@ -329,9 +329,11 @@ def _lookup_cfg(attr_name: str, candidate_packages: list[str], cfg_kind: str, *, if len(found) > 1 and (attr_name, found[0][0]) not in _SHADOW_WARNED: _SHADOW_WARNED.add((attr_name, found[0][0])) others = ", ".join(p for p, _ in found[1:]) - log.warning( + message = ( f"{cfg_kind} config '{attr_name}' is defined in several packages; using {found[0][0]} (also in: {others})." ) + # a content pack shadowing MetaSim's built-in example pack is the designed override, not a conflict + (log.debug if all(p.startswith("metasim.example") for p, _ in found[1:]) else log.warning)(message) pkg_name, cfg_cls = found[0] try: return cfg_cls() @@ -367,7 +369,105 @@ def get_robot(robot_name: str) -> RobotCfg: local_modules=local_modules, cwd=cwd, ) - return _lookup_cfg(attr_name, candidate_packages, "Robot", extra_errors=local_errors) + try: + return _lookup_cfg(attr_name, candidate_packages, "Robot", extra_errors=local_errors) + except ValueError as err: + # The class is not named after the robot (``KochCfg`` for ``koch_1``, ``MjlabG1Cfg`` for ``g1``): the + # ``name`` field is the key every task and result uses, so it must resolve too. + by_name = _lookup_robot_by_name(robot_name, candidate_packages) + if by_name is None: + raise ValueError(f"{err} No robot config in those packages declares name={robot_name!r} either.") from err + return by_name + + +def _robot_cfg_default_name(cls) -> str | None: + """The ``name`` a config class instantiates with, read without instantiating it. + + ``@configclass`` turns every default into a ``default_factory``, so the value is neither a class attribute nor + ``field.default``; the factory is called (it is a plain return of the literal). + """ + import dataclasses + + value = getattr(cls, "name", None) + if isinstance(value, str): + return value + field = getattr(cls, "__dataclass_fields__", {}).get("name") + if field is None: + return None + if field.default is not dataclasses.MISSING: + return field.default if isinstance(field.default, str) else None + if field.default_factory is not dataclasses.MISSING: + try: + made = field.default_factory() + except Exception: + return None + return made if isinstance(made, str) else None + return None + + +def _lookup_robot_by_name(robot_name: str, candidate_packages: list[str]): + """The first ``RobotCfg`` subclass exported by a candidate package whose ``name`` default is ``robot_name``.""" + from metasim.scenario.robot import RobotCfg + + for pkg_name in candidate_packages: + try: + pkg = importlib.import_module(pkg_name) + except Exception: + continue + for attr in dir(pkg): + cls = getattr(pkg, attr, None) + if not (isinstance(cls, type) and issubclass(cls, RobotCfg) and cls is not RobotCfg): + continue + if _robot_cfg_default_name(cls) == robot_name: + return cls() + return None + + +def list_robots(packages: list[str] | None = None) -> dict[str, str]: + """Every robot config the robot packages define: ``{name: "module:Class"}``, sorted by name. + + Walks each candidate package (installed packs, ``metasim.toml`` / ``pyproject.toml`` / ``METASIM_ROBOT_PACKAGES``, + then MetaSim's example pack) and every submodule in it, so a class that the package forgot to export is listed + too (the 2026-11-28 sweep found three). The template (``robot_template``) and classes without a ``name`` default + are skipped. A package or module that fails to import is skipped with a warning, not an error: one broken file + must not hide every other robot. + """ + import pkgutil + + from loguru import logger as log + + from metasim.scenario.robot import RobotCfg + + if packages is None: + cwd = os.getcwd() + packages = get_package_candidates("robots", defaults=["metasim.example.example_pack.robots"], cwd=cwd) + found: dict[str, str] = {} + for pkg_name in packages: + try: + pkg = importlib.import_module(pkg_name) + except Exception as err: + log.warning(f"list_robots: cannot import {pkg_name}: {type(err).__name__}: {err}") + continue + modules = [pkg] + for info in pkgutil.iter_modules(getattr(pkg, "__path__", []), prefix=pkg_name + "."): + if info.name.rsplit(".", 1)[-1].startswith("_"): + continue + try: + modules.append(importlib.import_module(info.name)) + except Exception as err: + log.warning(f"list_robots: cannot import {info.name}: {type(err).__name__}: {err}") + for module in modules: + for attr in dir(module): + cls = getattr(module, attr, None) + if not (isinstance(cls, type) and issubclass(cls, RobotCfg) and cls is not RobotCfg): + continue + if cls.__module__ != module.__name__: + continue # re-exported; counted where it is defined + name = _robot_cfg_default_name(cls) + if not name or name == "robot_template": + continue + found.setdefault(name, f"{cls.__module__}:{cls.__name__}") + return dict(sorted(found.items())) def get_scene(scene_name: str) -> SceneCfg: diff --git a/packages/metasim/metasim/utils/trajectory.py b/packages/metasim/metasim/utils/trajectory.py index 22dc08854..3594ba321 100644 --- a/packages/metasim/metasim/utils/trajectory.py +++ b/packages/metasim/metasim/utils/trajectory.py @@ -33,6 +33,7 @@ import platform import subprocess import sys +from collections.abc import Sequence from dataclasses import dataclass, field from datetime import datetime, timezone from pathlib import Path @@ -98,6 +99,8 @@ class Provenance: device: str = "" created_at: str = "" extras: dict[str, Any] = field(default_factory=dict) + hub: dict[str, Any] | None = None + """Where assets come from: ``{"repos": [...], "revision": }`` (``metasim.utils.hf_util``).""" @dataclass @@ -193,6 +196,55 @@ def _resolve_asset(value: str) -> Path | None: return None +def _resolve_dir(value: str) -> Path | None: + """The directory a config path names on this machine, by the same rule as :func:`_resolve_asset`.""" + path = Path(value).expanduser() + if path.is_dir(): + return path + data_dir = os.environ.get("ROBOVERSE_DATA_DIR") + if data_dir and not path.is_absolute(): + parts = path.parts + rel = Path(*parts[1:]) if parts and parts[0] == "roboverse_data" else path + candidate = Path(data_dir).expanduser() / rel + if candidate.is_dir(): + return candidate + return None + + +def resolve_demo_file(traj: str, robot_names: Sequence[str]) -> tuple[str, Path] | None: + """``(configured path, local file)`` of the demo file ``traj`` names, or None when it is not on this machine. + + ``traj`` is a task's ``traj_filepath``: a file, or a directory the loader resolves to the robot's own file + (``_v2.``, ``.``, ``.npz``, ``episode.npz``). The same rule is used here, so the + file the instances were loaded from is the file that is recorded and frozen. The configured path of a file + inside a directory is ``/``. + """ + path = _resolve_asset(traj) + if path is not None: + return traj, path + folder = _resolve_dir(traj) + if folder is None: + return None + from metasim.utils.demo_util.demo_util import _resolve_traj_file + + for robot in robot_names: + try: + found = Path(_resolve_traj_file(str(folder), robot)) + except (FileNotFoundError, ValueError): + continue + return f"{traj.rstrip('/')}/{found.name}", found + return None + + +def scenario_entities(scenario) -> list: + """The configs a backend loads assets for: robots, objects and a structured scene, in that order.""" + entities = list(getattr(scenario, "robots", []) or []) + list(getattr(scenario, "objects", []) or []) + scene = getattr(scenario, "scene", None) + if scene is not None and not isinstance(scene, str): + entities.append(scene) # loaded like any other asset (MuJoCo builds the root model from it) + return entities + + def _asset_files(cfg, simulator: str) -> tuple[dict[str, tuple[str, Path]], list[str]]: """``(label -> (configured path, file), unresolved)`` for the assets the backend loads for ``cfg``. @@ -303,11 +355,7 @@ def provenance_from_handler( decimation = int(getattr(scenario, "decimation", 1)) env_step = env_step_seconds(handler) assets: dict[str, dict[str, Any]] = {} - entities = list(getattr(scenario, "robots", []) or []) + list(getattr(scenario, "objects", []) or []) - scene = getattr(scenario, "scene", None) - if scene is not None and not isinstance(scene, str): - entities.append(scene) # loaded like any other asset (MuJoCo builds the root model from it) - for cfg in entities: + for cfg in scenario_entities(scenario): files, unresolved = _asset_files(cfg, str(getattr(scenario, "simulator", ""))) label = getattr(cfg, "name", type(cfg).__name__) if unresolved: @@ -321,6 +369,12 @@ def provenance_from_handler( } commit, dirty = _git_state(Path(metasim.__file__).resolve().parent) device = getattr(handler, "device", None) + try: + from metasim.utils import hf_util + + hub = {"repos": list(hf_util.DATA_REPO_IDS), "revision": hf_util.hub_revision() or "main"} + except Exception: # the Hub helper is optional for an offline checkout + hub = None return Provenance( simulator=str(getattr(scenario, "simulator", "")), num_envs=int( @@ -339,6 +393,7 @@ def provenance_from_handler( git_commit=commit, git_dirty=dirty, assets=assets, + hub=hub, python=sys.version.split()[0], torch=torch.__version__, numpy=np.__version__, diff --git a/packages/metasim/pyproject.toml b/packages/metasim/pyproject.toml index a63679644..fb5399ed8 100644 --- a/packages/metasim/pyproject.toml +++ b/packages/metasim/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=61.0", "wheel"] +requires = ["setuptools>=78.1.1", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -24,7 +24,7 @@ dependencies = [ "pyyaml", "scipy", "tomli; python_version < '3.11'", - "torch", + "torch>=2.6", # < 2.6: torch.load weights_only bypass (GHSA, critical) "torchvision", ] @@ -43,18 +43,13 @@ visualization = ["rerun-sdk", "trimesh", "viser", "yourdfpy"] isaacsim = [ "isaacsim[all,extscache]==6.0.1.0", ] -isaacsim211 = [ - "torch==2.5.1+cu118", - "torchvision==0.20.1+cu118", - "isaacsim[all,extscache]==4.5.0", -] isaacgym = [ "numpy<2", "fsspec<=2025.3.0", # fsspec==2025.3.1 has bug with python 3.8 ] mujoco = ["mujoco>=3.2,<3.18", "dm-control>=1.0.20,<2"] mjx = ["torch==2.7.0", "mujoco-mjx>=3.2.7,<3.14", "dm-control>=1.0.20,<2", "jax[cuda]==0.6.2"] -sapien2 = ["mani-skill2==0.5.3"] +sapien2 = ["sapien>=2.2,<3"] sapien3 = ["sapien>=3.0.0b1,<4"] pybullet = ["numpy<2", "pybullet>=3.2,<4"] genesis = [ @@ -74,7 +69,7 @@ superdex = [ ] # robo-splatter itself is git-only (PyPI forbids URL dependencies in published metadata): # pip install -r packages/metasim/requirements/robosplatter.txt -robosplatter = ["setuptools==59.5.0"] +robosplatter = [] # robo-splatter is git-only: requirements/robosplatter.txt (its old setuptools==59.5.0 pin was vulnerable) newton = [ "warp-lang>=1.11,<2", "mujoco>=3.3.7,<3.14", @@ -89,10 +84,7 @@ index-strategy = "unsafe-best-match" # Simulator extras pin different torch / CUDA stacks; declare them mutually exclusive so a resolver # fails with a clear message instead of picking one silently (see docs: one environment per simulator). conflicts = [ - [{ extra = "isaacsim" }, { extra = "isaacsim211" }], [{ extra = "isaacsim" }, { extra = "mjx" }], - [{ extra = "isaacsim211" }, { extra = "mjx" }], - [{ extra = "isaacsim211" }, { extra = "isaacgym" }], ] [tool.uv.pip] diff --git a/pyproject.toml b/pyproject.toml index 85553600e..d431e9113 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] # setuptools >= 84.0.0 is the first release where [tool.setuptools] license-files is stable under PEP 639; # an older builder would silently drop NOTICE and the vendored LICENSE files from the wheel. -requires = ["setuptools>=77", "wheel"] +requires = ["setuptools>=78.1.1", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -83,7 +83,6 @@ vla = [ genesis = ["roboverse-metasim[genesis]>=1.0.0,<1.1"] isaacgym = ["roboverse-metasim[isaacgym]>=1.0.0,<1.1"] isaacsim = ["roboverse-metasim[isaacsim]>=1.0.0,<1.1"] -isaacsim211 = ["roboverse-metasim[isaacsim211]>=1.0.0,<1.1"] mjx = ["roboverse-metasim[mjx]>=1.0.0,<1.1"] mujoco = ["roboverse-metasim[mujoco]>=1.0.0,<1.1"] newton = ["roboverse-metasim[newton]>=1.0.0,<1.1"] @@ -230,9 +229,7 @@ roboverse_pack = [ "roboverse_pack/tasks/calvin/**.py" = ["D"] # FIXME: Feishi add docstring and remove this "roboverse_pack/tasks/libero/**.py" = ["D"] # FIXME: Peihao add docstring and remove this "roboverse_pack/tasks/rlbench/**.py" = ["D"] # FIXME: Feishi add docstring and remove this -"roboverse_pack/tasks/robosuite/**.py" = ["D"] # FIXME: Jiangran add docstring and remove this "roboverse_pack/tasks/simpler_env/**.py" = ["D"] # FIXME: Boshi add docstring and remove this -"roboverse_pack/tasks/metaworld/**.py" = ["D"] # FIXME: Siheng add docstring and remove this [tool.ruff.lint.isort] known-first-party = ["metasim", "roboverse_learn", "roboverse_pack", "scripts"] diff --git a/requirements/bench-cpu.in b/requirements/bench-cpu.in new file mode 100644 index 000000000..6bebbe3d5 --- /dev/null +++ b/requirements/bench-cpu.in @@ -0,0 +1,9 @@ +# The benchmark environment the evaluation container and the release numbers stand on: MuJoCo on CPU. +# Compiled into bench-cpu.lock.txt by tools/release/lock.sh (uv pip compile); the two RoboVerse packages +# themselves are installed from the checkout with --no-deps on top of the lock. The engine versions are the +# `tested` ones of packages/metasim/metasim/sim/_versions.py, pinned here so a re-run in a year resolves the +# same bytes; test_backend_versions_general.py keeps the two in step. +-e ./packages/metasim[mujoco,dev] +-e .[mujoco,dev] +mujoco==3.17.0 +dm-control==1.0.45 diff --git a/requirements/bench-cpu.lock.txt b/requirements/bench-cpu.lock.txt new file mode 100644 index 000000000..7fcbb2ff7 --- /dev/null +++ b/requirements/bench-cpu.lock.txt @@ -0,0 +1,72 @@ +--index-url https://download.pytorch.org/whl/cpu +--extra-index-url https://pypi.org/simple +--extra-index-url https://pypi.nvidia.com + +absl-py==2.5.1 +anyio==4.16.0 +attrs==26.1.0 +certifi==2026.11.20 +charset-normalizer==3.5.3 +click==8.5.1 +cloudpickle==3.1.3 +coverage==7.17.5 +defusedxml==0.7.1 +dm-control==1.0.45 +dm-env==2.0 +dm-tree==0.1.10 +etils==1.15.0 +farama-notifications==0.0.6 +filelock==4.3.2 +fsspec==2026.9.0 +glfw==2.11.0 +gymnasium==1.4.0 +h11==0.16.0 +hf-xet==1.8.0 +httpcore2==2.16.2 +httpx2==2.16.2 +huggingface-hub==2.5.0 +idna==3.20 +imageio==2.38.2 +imageio-ffmpeg==0.8.2 +iniconfig==2.3.1 +jinja2==3.1.6 +labmaze==1.0.6 +loguru==0.8.0 +lxml==6.2.0 +markupsafe==3.0.4 +mpmath==1.3.0 +mujoco==3.17.0 +networkx==3.6.1 +numpy==2.4.6 +numpy-quaternion==2024.0.13 +opencv-python==4.11.0.86 +packaging==26.4 +pillow==13.0.0 +pluggy==1.7.0 +portalocker==4.4.2 +protobuf==7.36.2 +psutil==7.2.2 +pygments==2.21.0 +pyopengl==3.1.10 +pyparsing==3.3.3 +pytest==9.2.0 +pytest-cov==7.1.0 +pyyaml==6.0.4 +requests==2.34.2 +ruff==0.17.6 +scipy==1.17.1 +setuptools==84.2.1 +sympy==1.14.0 +torch==2.15.0+cpu +torchvision==0.29.2+cpu +tqdm==4.70.1 +truststore==0.10.5 +typing-extensions==4.16.0 +urllib3==2.8.0 +websockets==17.4 +wrapt==2.5.2 +zipp==4.1.2 + +# The following packages were excluded from the output: +# roboverse-metasim +# roboverse-py diff --git a/results/README.md b/results/README.md new file mode 100644 index 000000000..ba033e7cf --- /dev/null +++ b/results/README.md @@ -0,0 +1,27 @@ +# Results registry + +One directory per submission: `results//-/`, holding the result files one run of +`python -m metasim bench run` or `bench suite run` produced (any sub-directory layout). A submission is a +pull request; CI validates every file against the result schema and regenerates the leaderboard page +(`tools/bench/leaderboard.py`), so no number is typed by hand. + +What a submission must contain: + +- the result files themselves (`bench validate` passes), unmodified; +- a run under one information-access tier per file (the tier is recorded in `protocol.access`); +- a served or packaged policy that a maintainer can re-run: `policy.spec`, `checkpoint_sha256` or the + server metadata are in the file; a row is marked verified once the nightly runner reproduces it. + +The first submission, `tabletop-mujoco/2026-11-27-poc`, is the methods x perspectives proof of concept: +replay, hold, random, scripted skills, an LLM agent under two tiers, and OpenVLA-7B zero-shot, 10 episodes +per task. +`tabletop-mujoco/2026-11-28-isaacsim-twin` is the same suite on Isaac Sim 6 (replay and scripted skills, 10 +episodes per task); `tabletop-mujoco/2026-11-28-il-ddpm-dit` is the first learned row, a diffusion policy trained +on scripted demos per task and scored under the visual tier, 20 episodes per task. + +`results/robots/` holds the robot kit's runs, one directory per run: `--check/robots.json` from +`python -m metasim robot check --all --sim --out-dir`, and `-parity--/.json` from +`python -m metasim robot parity --sims --json`. `generate_robot_docs.py` renders the newest of each +into the Robots page (`--check` in CI keeps it current). The first entries are the MuJoCo sweep of 2026-11-28 +(42 robots: 17 pass, 21 fail, 4 n/a), the Isaac Sim 6 sweep of the same day (9 pass, 23 fail, 10 n/a; one child process per robot) and the MuJoCo vs Isaac Sim 6 parity runs of the same day (five arms within 0.04 rad, the +H1 humanoids reported not judged). diff --git a/results/robots/2026-11-28-isaacsim-check/robots.json b/results/robots/2026-11-28-isaacsim-check/robots.json new file mode 100644 index 000000000..83197b13f --- /dev/null +++ b/results/robots/2026-11-28-isaacsim-check/robots.json @@ -0,0 +1,1670 @@ +{ + "simulator": "isaacsim", + "robots": [ + { + "robot": "aloha_agilex", + "simulator": "isaacsim", + "ok": false, + "applicable": false, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": false, + "detail": "no joint_limits for ['fl_joint1', 'fl_joint2', 'fl_joint3', 'fl_joint4', 'fl_joint5', 'fl_joint6', 'fl_joint7', 'fl_joint8', 'fr_joint1', 'fr_joint2', 'fr_joint3', 'fr_joint4', 'fr_joint5', 'fr_joint6', 'fr_joint7', 'fr_joint8']", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "arx_l5", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link6' found; 7 arm joints, 0 gripper joints; default tool pose (-0.021, -0.103, 0.089) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "8 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator (1 named differently, matched by transmission: 'gripper' drives 'joint7')", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "cartpole", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "1 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "1 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "1 config joints driven by an MJCF actuator (1 named differently, matched by transmission: 'slide' drives 'slider')", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "fetch", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "14 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "franka", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "9 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/franka/usd/franka_v2.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'panda_hand' found; 7 arm joints, 2 gripper joints; default tool pose (0.307, 0.000, 0.487) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "9 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "9 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (panda_finger_joint1), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "franka_with_gripper_extension", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "9 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/franka_with_gripper_extension/usd/franka_with_gripper_extension_v1.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.0000 rad (panda_joint5), base moved 0.1872 m", + "applicable": true + } + ] + }, + { + "robot": "g1", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "29 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/g1/usd/g1_29dof_rev_1_0.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "29 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "0 config joints driven by an MJCF actuator, 29 joint(s) driven by a servo synthesized from the config", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.2300 rad (left_shoulder_pitch_joint), base moved 0.0403 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof12", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "12 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/g1/usd/g1_12dof.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "12 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "12 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 2.7576 rad (left_hip_yaw_joint), base moved 0.0367 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof23", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "23 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "g1_dof27", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "27 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "g1_dof29", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "29 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/g1/usd/g1_29dof_rev_1_0.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "29 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "29 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 2.7576 rad (left_hip_yaw_joint), base moved 0.0381 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof29_dex3", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "43 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "g1_tracking", + "simulator": "isaacsim", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": false, + "detail": "no default position for ['left_ankle_pitch_joint', 'left_ankle_roll_joint', 'left_elbow_joint', 'left_hip_pitch_joint', 'left_hip_roll_joint', 'left_hip_yaw_joint', 'left_knee_joint', 'left_shoulder_yaw_joint', 'left_wrist_pitch_joint', 'left_wrist_roll_joint', 'left_wrist_yaw_joint', 'right_ankle_pitch_joint', 'right_ankle_roll_joint', 'right_elbow_joint', 'right_hip_pitch_joint', 'right_hip_roll_joint', 'right_hip_yaw_joint', 'right_knee_joint', 'right_shoulder_yaw_joint', 'right_wrist_pitch_joint', 'right_wrist_roll_joint', 'right_wrist_yaw_joint', 'waist_pitch_joint', 'waist_roll_joint', 'waist_yaw_joint']", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['/workspace/roboverse_maint/RoboVerse/roboverse_data/unitree_description/usd/g1/g1.usd'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "not attempted: a cheaper check already failed", + "applicable": true + } + ] + }, + { + "robot": "gen3", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/Kinova_Gen3/usd/gen3.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'bracelet_link' found; 7 arm joints, 0 gripper joints; default tool pose (0.292, 0.001, 0.434) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "3 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint_1), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "go1", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "12 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "12 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "0 config joints driven by an MJCF actuator, 12 joint(s) driven by a servo synthesized from the config", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "google_robot_static", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "11 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "h1", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "19 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/h1/usd/h1.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "19 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "19 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.0310 rad (left_hip_pitch), base moved 0.0536 m", + "applicable": true + } + ] + }, + { + "robot": "h1_hand", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "69 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "69 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "69 config joints driven by an MJCF actuator (48 named differently, matched by transmission: 'lh_A_FFJ1' drives 'lh_FFJ1'; 'lh_A_FFJ2' drives 'lh_FFJ2'; 'lh_A_FFJ3' drives 'lh_FFJ3')", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "h1_simple_hand", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "45 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "45 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "45 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "h1_wrist", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "19 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/h1/usd/h1_wrist.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "19 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "19 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.6772 rad (left_knee), base moved 0.0200 m", + "applicable": true + } + ] + }, + { + "robot": "iiwa14", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/KUKA_LBR_IIWA14/usd/iiwa.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link7' found; 7 arm joints, 0 gripper joints; default tool pose (0.710, 0.000, 0.244) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "7 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint1), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "kinova_gen3_robotiq_2f85", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "10 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/kinova_gen3_robotiq_2f85/usd/kinova_gen3_robotiq_2f85_v1.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (left_inner_finger_joint), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "koch_1", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'gripper_static_finger' found; 6 arm joints, 0 gripper joints; default tool pose (-0.189, -0.001, -0.051) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "lite6", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link6' found; 6 arm joints, 0 gripper joints; default tool pose (0.198, -0.000, 0.169) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "openarm_bimanual_wuji", + "simulator": "isaacsim", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "54 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['roboverse_data/robots/openarm_wuji/openarm_wuji.usd'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "not attempted: a cheaper check already failed", + "applicable": true + } + ] + }, + { + "robot": "openarm_wuji", + "simulator": "isaacsim", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "54 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['roboverse_data/robots/openarm_wuji/openarm_wuji.usd'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "not attempted: a cheaper check already failed", + "applicable": true + } + ] + }, + { + "robot": "sawyer", + "simulator": "isaacsim", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "10 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/Rethink_Robotics_Sawyer/usd/sawyer_v2.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "child exited 1 without a report: RuntimeError: Failed to create articulation at: /World/envs/env_[^/]+/sawyer/root_joint. Please check PhysX logs.", + "applicable": true + } + ] + }, + { + "robot": "shadow_hand", + "simulator": "isaacsim", + "ok": false, + "applicable": false, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "24 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate'\nElement 'option', line 4\n", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate'\nElement 'option', line 4\n", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "sharpa_wave_left", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "22 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'left_hand_C_MC' found; 22 arm joints, 0 gripper joints; default tool pose (0.000, 0.000, 0.103) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "22 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "22 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "sharpa_wave_right", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "22 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'right_hand_C_MC' found; 22 arm joints, 0 gripper joints; default tool pose (0.000, 0.000, 0.103) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "22 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "22 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "so_arm100", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'Fixed_Jaw' found; 6 arm joints, 0 gripper joints; default tool pose (0.103, -0.224, 0.320) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "unitree_dex3_1_left", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "ur10e", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/Universal_Robots_UR10e/usd/ur10e.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'wrist_3_link' found; 6 arm joints, 0 gripper joints; default tool pose (0.000, -0.174, 1.588) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (elbow_joint), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "ur5e", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/Universal_Robots_UR5e/usd/ur5e.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'wrist_3_link' found; 6 arm joints, 0 gripper joints; default tool pose (0.000, -0.134, 1.183) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (elbow_joint), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "xhand_right", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "12 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "yam", + "simulator": "isaacsim", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no usd_path declared for isaacsim", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link_6' found; 6 arm joints, 1 gripper joints; default tool pose (0.345, -0.000, 0.393) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "8 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for isaacsim", + "applicable": false + } + ] + }, + { + "robot": "z1", + "simulator": "isaacsim", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "usd_path=roboverse_data/robots/Unitree_Z1_Robotic_Arm/usd/z1.usd, USD composition not judged (no pxr)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link06' found; 6 arm joints, 0 gripper joints; default tool pose (0.089, 0.000, 0.394) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint1), base moved 0.0000 m", + "applicable": true + } + ] + } + ] +} diff --git a/results/robots/2026-11-28-mujoco-check/robots.json b/results/robots/2026-11-28-mujoco-check/robots.json new file mode 100644 index 000000000..d4e5bfc6e --- /dev/null +++ b/results/robots/2026-11-28-mujoco-check/robots.json @@ -0,0 +1,1670 @@ +{ + "simulator": "mujoco", + "robots": [ + { + "robot": "aloha_agilex", + "simulator": "mujoco", + "ok": false, + "applicable": false, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": false, + "detail": "no joint_limits for ['fl_joint1', 'fl_joint2', 'fl_joint3', 'fl_joint4', 'fl_joint5', 'fl_joint6', 'fl_joint7', 'fl_joint8', 'fr_joint1', 'fr_joint2', 'fr_joint3', 'fr_joint4', 'fr_joint5', 'fr_joint6', 'fr_joint7', 'fr_joint8']", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "arx_l5", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/ARX_Robotics_L5_Arm/mjcf/arx_l5.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link6' found; 7 arm joints, 0 gripper joints; default tool pose (-0.021, -0.103, 0.089) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "8 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator (1 named differently, matched by transmission: 'gripper' drives 'joint7')", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "after 200 steps at the default pose: max joint deviation 0.0616 rad (joint7), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "cartpole", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "1 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/mjlab/tasks/cartpole/cartpole.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "1 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "1 config joints driven by an MJCF actuator (1 named differently, matched by transmission: 'slide' drives 'slider')", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "could not build the robot on mujoco: FatalError: add_pair: broadphase buffer full", + "applicable": true + } + ] + }, + { + "robot": "fetch", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "14 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "franka", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "9 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/franka/mjcf/panda.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'panda_hand' found; 7 arm joints, 2 gripper joints; default tool pose (0.307, 0.000, 0.487) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "9 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "9 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (panda_joint5), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "franka_with_gripper_extension", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "9 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "g1", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "29 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/mjlab/asset_zoo/robots/unitree_g1/xmls/g1.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "29 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "0 config joints driven by an MJCF actuator, 29 joint(s) driven by a servo synthesized from the config", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 1.6587 rad (right_elbow_joint), base moved 1.0097 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof12", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "12 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/g1/mjcf/g1_12dof.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "12 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "12 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 2.9813 rad (left_hip_pitch_joint), base moved 0.8910 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof23", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "23 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "g1_dof27", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "27 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "g1_dof29", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "29 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/g1/mjcf/g1_29dof_rev_1_0.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "29 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "29 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 2.7027 rad (left_hip_pitch_joint), base moved 0.8898 m", + "applicable": true + } + ] + }, + { + "robot": "g1_dof29_dex3", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "43 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "g1_tracking", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": false, + "detail": "no default position for ['left_ankle_pitch_joint', 'left_ankle_roll_joint', 'left_elbow_joint', 'left_hip_pitch_joint', 'left_hip_roll_joint', 'left_hip_yaw_joint', 'left_knee_joint', 'left_shoulder_yaw_joint', 'left_wrist_pitch_joint', 'left_wrist_roll_joint', 'left_wrist_yaw_joint', 'right_ankle_pitch_joint', 'right_ankle_roll_joint', 'right_elbow_joint', 'right_hip_pitch_joint', 'right_hip_roll_joint', 'right_hip_yaw_joint', 'right_knee_joint', 'right_shoulder_yaw_joint', 'right_wrist_pitch_joint', 'right_wrist_roll_joint', 'right_wrist_yaw_joint', 'waist_pitch_joint', 'waist_roll_joint', 'waist_yaw_joint']", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['roboverse_data/unitree_description/mjcf/g1.xml'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/unitree_description/mjcf/g1.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "could not build the robot on mujoco: Exception: File roboverse_data/unitree_description/mjcf/g1.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/roboverse_da", + "applicable": true + } + ] + }, + { + "robot": "gen3", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/Kinova_Gen3/mjcf/gen3.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'bracelet_link' found; 7 arm joints, 0 gripper joints; default tool pose (0.292, 0.001, 0.434) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "3 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint_5), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "go1", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "12 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/mjlab/asset_zoo/robots/unitree_go1/xmls/go1.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "12 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "0 config joints driven by an MJCF actuator, 12 joint(s) driven by a servo synthesized from the config", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.2291 rad (RL_thigh_joint), base moved 0.2219 m", + "applicable": true + } + ] + }, + { + "robot": "google_robot_static", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "11 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "h1", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "19 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/h1/mjcf/h1.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "19 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "19 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.1711 rad (right_hip_roll), base moved 6.8485 m", + "applicable": true + } + ] + }, + { + "robot": "h1_hand", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "69 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/h1_hand/mjcf/h1_hand.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "69 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "69 config joints driven by an MJCF actuator (48 named differently, matched by transmission: 'lh_A_FFJ1' drives 'lh_FFJ1'; 'lh_A_FFJ2' drives 'lh_FFJ2'; 'lh_A_FFJ3' drives 'lh_FFJ3')", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.0134 rad (lh_WRJ1), base moved 9.3599 m", + "applicable": true + } + ] + }, + { + "robot": "h1_simple_hand", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "45 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/h1_simple_hand/mjcf/h1_simple_hand.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "45 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "45 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.0135 rad (left_hip_roll), base moved 10.0546 m", + "applicable": true + } + ] + }, + { + "robot": "h1_wrist", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "19 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/h1/mjcf/h1.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "19 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "19 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "floating base: not judged; after 200 steps max joint deviation 0.1711 rad (right_hip_roll), base moved 6.8485 m", + "applicable": true + } + ] + }, + { + "robot": "iiwa14", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "7 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/KUKA_LBR_IIWA14/mjcf/iiwa14.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link7' found; 7 arm joints, 0 gripper joints; default tool pose (0.710, 0.000, 0.244) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "7 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "7 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint6), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "kinova_gen3_robotiq_2f85", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "10 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "koch_1", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/Koch_v1.1_Low-Cost_Robot/mjcf/low_cost_robot_arm.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'gripper_static_finger' found; 6 arm joints, 0 gripper joints; default tool pose (-0.189, -0.001, -0.051) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "after 200 steps at the default pose: max joint deviation 0.2189 rad (pitch), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "lite6", + "simulator": "mujoco", + "ok": true, + "applicable": true, + "verdict": "pass", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "6 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/UFactory_Lite6/mjcf/lite6.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "ee body 'link6' found; 6 arm joints, 0 gripper joints; default tool pose (0.198, -0.000, 0.169) m in the base frame", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "6 limited joints match the MJCF ranges", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "6 config joints driven by an MJCF actuator", + "applicable": true + }, + { + "check": "hold", + "ok": true, + "detail": "after 200 steps at the default pose: max joint deviation 0.0000 rad (joint3), base moved 0.0000 m", + "applicable": true + } + ] + }, + { + "robot": "openarm_bimanual_wuji", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "54 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['roboverse_data/robots/openarm_wuji/openarm_wuji.xml'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "could not build the robot on mujoco: Exception: File roboverse_data/robots/openarm_wuji/openarm_wuji.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/robover", + "applicable": true + } + ] + }, + { + "robot": "openarm_wuji", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "54 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "['roboverse_data/robots/openarm_wuji/openarm_wuji.xml'] not local and not fetched from the Hub (Exception)", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: ParseXML: Error opening file 'roboverse_data/robots/openarm_wuji/openarm_wuji.xml'", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "could not build the robot on mujoco: Exception: File roboverse_data/robots/openarm_wuji/openarm_wuji.xml neither exists in the local directory nor exists in the HuggingFace data sources ('RoboVerseOrg/robover", + "applicable": true + } + ] + }, + { + "robot": "sawyer", + "simulator": "mujoco", + "ok": true, + "applicable": false, + "verdict": "n/a", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "10 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": false, + "detail": "no mjcf_path declared for mujoco", + "applicable": false + }, + { + "check": "kinematics", + "ok": true, + "detail": "no mjcf_path: not judged (the skill library and the IL adapters need an MJCF)", + "applicable": true + }, + { + "check": "limits", + "ok": true, + "detail": "no mjcf_path or no joint_limits: not judged", + "applicable": true + }, + { + "check": "actuators", + "ok": true, + "detail": "no mjcf_path or no actuators: not judged", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "n/a: no asset declared for mujoco", + "applicable": false + } + ] + }, + { + "robot": "shadow_hand", + "simulator": "mujoco", + "ok": false, + "applicable": true, + "verdict": "FAIL", + "rows": [ + { + "check": "config", + "ok": true, + "detail": "24 actuators, limits, defaults and asset fields consistent", + "applicable": true + }, + { + "check": "assets", + "ok": true, + "detail": "mjcf_path=roboverse_data/robots/shadow_hand/mjcf/shadow_hand.xml", + "applicable": true + }, + { + "check": "kinematics", + "ok": true, + "detail": "no ee_body_name (not an arm): tool kinematics not judged", + "applicable": true + }, + { + "check": "limits", + "ok": false, + "detail": "MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate'\nElement 'option', line 4\n", + "applicable": true + }, + { + "check": "actuators", + "ok": false, + "detail": "MJCF did not load: ValueError: XML Error: Schema violation: unrecognized attribute: 'apirate'\nElement 'option', line 4\n", + "applicable": true + }, + { + "check": "hold", + "ok": false, + "detail": "could not build the robot on mujoco: AttributeError: Line 4: error while parsing element