From a51b168f4f169fd81b88de59056e4fd8ba2ec2d7 Mon Sep 17 00:00:00 2001 From: jianglongye <34152111+jianglongye@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:57:28 +0000 Subject: [PATCH] Publish the site's source; Actions builds and deploys it This repo now holds the site's source instead of its built output. On every push to main, GitHub Actions runs the tests, builds the site, checks links and search, and deploys it to openrobokit.com. See README.md to build and preview it locally. --- .claude/launch.json | 11 + .github/workflows/deploy.yml | 46 + .gitignore | 172 + Makefile | 70 + README.md | 165 + assets/brand/skills/README.md | 18 + .../images/robokit/brochure/retargeting.webp | Bin 128492 -> 0 bytes assets/images/robokit/brochure/teaser.webp | Bin 221810 -> 0 bytes brochure/index.html | 329 - data/docs/graspkit.js | 7012 +++ data/docs/retargetingkit.js | 4015 ++ data/docs/robokit.js | 35721 ++++++++++++++++ data/search.json | 1 - docs/graspkit/api-data/index.html | 491 - docs/graspkit/api-envs/index.html | 650 - docs/graspkit/api-grasp-optim/index.html | 940 - docs/graspkit/api-motion-plan/index.html | 699 - docs/graspkit/api-policy/index.html | 613 - docs/graspkit/api-scene/index.html | 394 - docs/graspkit/api-training/index.html | 552 - docs/graspkit/concepts-overview/index.html | 95 - docs/graspkit/concepts-policies/index.html | 85 - docs/graspkit/concepts-sim/index.html | 78 - docs/graspkit/dev/index.html | 83 - docs/graspkit/grasp-optim-backends/index.html | 78 - docs/graspkit/grasp-optim/index.html | 162 - docs/graspkit/index.html | 11 - docs/graspkit/install/index.html | 79 - docs/graspkit/overview/index.html | 78 - docs/graspkit/pipeline/index.html | 131 - docs/graspkit/quickstart/index.html | 78 - docs/graspkit/real-deploy/index.html | 80 - docs/graspkit/ref-assets/index.html | 91 - docs/graspkit/ref-config-system/index.html | 78 - docs/graspkit/ref-data-format/index.html | 75 - docs/graspkit/ref-robot-hands/index.html | 78 - .../ref-scene-descriptions/index.html | 75 - docs/graspkit/sim-deploy/index.html | 83 - docs/graspkit/training/index.html | 125 - docs/index.html | 11 - docs/retargetingkit/ability-hand/index.html | 91 - .../retargetingkit/arm-retargeting/index.html | 145 - docs/retargetingkit/axis-studio/index.html | 85 - docs/retargetingkit/development/index.html | 84 - docs/retargetingkit/dexmate/index.html | 88 - docs/retargetingkit/frames/index.html | 90 - docs/retargetingkit/full-body/index.html | 86 - docs/retargetingkit/g1/index.html | 84 - .../hand-optimization/index.html | 110 - .../humanoid-retargeting/index.html | 118 - docs/retargetingkit/index.html | 11 - docs/retargetingkit/inspire/index.html | 90 - docs/retargetingkit/install/index.html | 83 - docs/retargetingkit/manus/index.html | 88 - docs/retargetingkit/neural-hand/index.html | 122 - docs/retargetingkit/overview/index.html | 95 - docs/retargetingkit/pico/index.html | 98 - docs/retargetingkit/pipeline/index.html | 117 - docs/retargetingkit/protocols/index.html | 83 - docs/retargetingkit/quest3/index.html | 93 - docs/retargetingkit/quickstart/index.html | 93 - docs/retargetingkit/rby1/index.html | 89 - docs/retargetingkit/realsense/index.html | 94 - docs/retargetingkit/ref-arm/index.html | 267 - docs/retargetingkit/ref-assets/index.html | 89 - docs/retargetingkit/ref-frames/index.html | 261 - docs/retargetingkit/ref-hand/index.html | 268 - docs/retargetingkit/ref-humanoid/index.html | 158 - docs/retargetingkit/ref-sources/index.html | 551 - .../ref-target-configs/index.html | 734 - docs/retargetingkit/ref-targets/index.html | 183 - docs/retargetingkit/ref-teleop/index.html | 438 - docs/retargetingkit/sharpa-hand/index.html | 90 - docs/retargetingkit/teleoperation/index.html | 122 - docs/retargetingkit/vision-pro/index.html | 100 - docs/retargetingkit/xarm/index.html | 90 - docs/retargetingkit/xhand/index.html | 91 - docs/retargetingkit/zed/index.html | 92 - docs/robokit/api-geometry/index.html | 1371 - docs/robokit/api-hand-retargeting/index.html | 634 - .../api-hand_eye_calibration/index.html | 543 - .../api-humanoid-retargeting/index.html | 604 - docs/robokit/api-ik/index.html | 460 - docs/robokit/api-motion-plan/index.html | 656 - docs/robokit/api-optimization/index.html | 2325 - docs/robokit/api-robot/index.html | 1552 - docs/robokit/api-sim-mpc/index.html | 2947 -- docs/robokit/api-terms/index.html | 10435 ----- docs/robokit/conventions/index.html | 83 - docs/robokit/dev/index.html | 226 - docs/robokit/geom/index.html | 123 - docs/robokit/hand-retargeting/index.html | 297 - docs/robokit/hand_eye_calibration/index.html | 235 - docs/robokit/humanoid-retargeting/index.html | 264 - docs/robokit/ik/index.html | 353 - docs/robokit/index.html | 11 - docs/robokit/install/index.html | 83 - docs/robokit/motion-planning/index.html | 351 - docs/robokit/opt-gd/index.html | 105 - docs/robokit/opt-lbfgs/index.html | 153 - docs/robokit/opt-lm/index.html | 130 - docs/robokit/optimization/index.html | 252 - docs/robokit/overview/index.html | 88 - docs/robokit/quickstart/index.html | 93 - docs/robokit/ref-assets/index.html | 190 - docs/robokit/rl/index.html | 126 - docs/robokit/robot/index.html | 150 - docs/robokit/sim-mpc/index.html | 202 - docs/robokit/term-com-position/index.html | 93 - docs/robokit/term-configuration/index.html | 93 - docs/robokit/term-force-closure/index.html | 96 - docs/robokit/term-frame-vector/index.html | 112 - docs/robokit/term-frame/index.html | 96 - docs/robokit/term-interaction-mesh/index.html | 94 - docs/robokit/term-manipulability/index.html | 89 - docs/robokit/term-mask-alignment/index.html | 88 - docs/robokit/term-position-limit/index.html | 92 - docs/robokit/term-position/index.html | 89 - docs/robokit/term-rotation/index.html | 111 - docs/robokit/term-scene-collision/index.html | 111 - docs/robokit/term-scene-distance/index.html | 87 - docs/robokit/term-self-collision/index.html | 92 - docs/robokit/term-smoothness/index.html | 108 - docs/robokit/term-velocity-limit/index.html | 92 - scripts/__init__.py | 0 scripts/apihtml.py | 284 + scripts/apimodel.py | 297 + scripts/assemble_landing_teaser.py | 187 + scripts/benchmark_graspkit_optimization.py | 85 + scripts/benchmark_scale.py | 425 + scripts/build_docs.py | 417 + scripts/check_site.py | 127 + scripts/encode_graspkit_optimization.py | 93 + scripts/encode_graspkit_real_world.py | 61 + scripts/encode_showcase.py | 120 + scripts/export_benchmark_image.py | 123 + scripts/import_docs.py | 106 + scripts/import_retargetingkit_docs.py | 74 + scripts/md2doc.py | 557 + scripts/preview.sh | 10 + scripts/serve.py | 104 + scripts/test_apimodel.py | 35 + scripts/test_build_docs.py | 190 + scripts/test_check_site.py | 57 + scripts/test_code_controls.js | 66 + scripts/test_md2doc.py | 206 + 146 files changed, 50854 insertions(+), 38579 deletions(-) create mode 100644 .claude/launch.json create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 assets/brand/skills/README.md delete mode 100644 assets/images/robokit/brochure/retargeting.webp delete mode 100644 assets/images/robokit/brochure/teaser.webp delete mode 100644 brochure/index.html create mode 100644 data/docs/graspkit.js create mode 100644 data/docs/retargetingkit.js create mode 100644 data/docs/robokit.js delete mode 100644 data/search.json delete mode 100644 docs/graspkit/api-data/index.html delete mode 100644 docs/graspkit/api-envs/index.html delete mode 100644 docs/graspkit/api-grasp-optim/index.html delete mode 100644 docs/graspkit/api-motion-plan/index.html delete mode 100644 docs/graspkit/api-policy/index.html delete mode 100644 docs/graspkit/api-scene/index.html delete mode 100644 docs/graspkit/api-training/index.html delete mode 100644 docs/graspkit/concepts-overview/index.html delete mode 100644 docs/graspkit/concepts-policies/index.html delete mode 100644 docs/graspkit/concepts-sim/index.html delete mode 100644 docs/graspkit/dev/index.html delete mode 100644 docs/graspkit/grasp-optim-backends/index.html delete mode 100644 docs/graspkit/grasp-optim/index.html delete mode 100644 docs/graspkit/index.html delete mode 100644 docs/graspkit/install/index.html delete mode 100644 docs/graspkit/overview/index.html delete mode 100644 docs/graspkit/pipeline/index.html delete mode 100644 docs/graspkit/quickstart/index.html delete mode 100644 docs/graspkit/real-deploy/index.html delete mode 100644 docs/graspkit/ref-assets/index.html delete mode 100644 docs/graspkit/ref-config-system/index.html delete mode 100644 docs/graspkit/ref-data-format/index.html delete mode 100644 docs/graspkit/ref-robot-hands/index.html delete mode 100644 docs/graspkit/ref-scene-descriptions/index.html delete mode 100644 docs/graspkit/sim-deploy/index.html delete mode 100644 docs/graspkit/training/index.html delete mode 100644 docs/index.html delete mode 100644 docs/retargetingkit/ability-hand/index.html delete mode 100644 docs/retargetingkit/arm-retargeting/index.html delete mode 100644 docs/retargetingkit/axis-studio/index.html delete mode 100644 docs/retargetingkit/development/index.html delete mode 100644 docs/retargetingkit/dexmate/index.html delete mode 100644 docs/retargetingkit/frames/index.html delete mode 100644 docs/retargetingkit/full-body/index.html delete mode 100644 docs/retargetingkit/g1/index.html delete mode 100644 docs/retargetingkit/hand-optimization/index.html delete mode 100644 docs/retargetingkit/humanoid-retargeting/index.html delete mode 100644 docs/retargetingkit/index.html delete mode 100644 docs/retargetingkit/inspire/index.html delete mode 100644 docs/retargetingkit/install/index.html delete mode 100644 docs/retargetingkit/manus/index.html delete mode 100644 docs/retargetingkit/neural-hand/index.html delete mode 100644 docs/retargetingkit/overview/index.html delete mode 100644 docs/retargetingkit/pico/index.html delete mode 100644 docs/retargetingkit/pipeline/index.html delete mode 100644 docs/retargetingkit/protocols/index.html delete mode 100644 docs/retargetingkit/quest3/index.html delete mode 100644 docs/retargetingkit/quickstart/index.html delete mode 100644 docs/retargetingkit/rby1/index.html delete mode 100644 docs/retargetingkit/realsense/index.html delete mode 100644 docs/retargetingkit/ref-arm/index.html delete mode 100644 docs/retargetingkit/ref-assets/index.html delete mode 100644 docs/retargetingkit/ref-frames/index.html delete mode 100644 docs/retargetingkit/ref-hand/index.html delete mode 100644 docs/retargetingkit/ref-humanoid/index.html delete mode 100644 docs/retargetingkit/ref-sources/index.html delete mode 100644 docs/retargetingkit/ref-target-configs/index.html delete mode 100644 docs/retargetingkit/ref-targets/index.html delete mode 100644 docs/retargetingkit/ref-teleop/index.html delete mode 100644 docs/retargetingkit/sharpa-hand/index.html delete mode 100644 docs/retargetingkit/teleoperation/index.html delete mode 100644 docs/retargetingkit/vision-pro/index.html delete mode 100644 docs/retargetingkit/xarm/index.html delete mode 100644 docs/retargetingkit/xhand/index.html delete mode 100644 docs/retargetingkit/zed/index.html delete mode 100644 docs/robokit/api-geometry/index.html delete mode 100644 docs/robokit/api-hand-retargeting/index.html delete mode 100644 docs/robokit/api-hand_eye_calibration/index.html delete mode 100644 docs/robokit/api-humanoid-retargeting/index.html delete mode 100644 docs/robokit/api-ik/index.html delete mode 100644 docs/robokit/api-motion-plan/index.html delete mode 100644 docs/robokit/api-optimization/index.html delete mode 100644 docs/robokit/api-robot/index.html delete mode 100644 docs/robokit/api-sim-mpc/index.html delete mode 100644 docs/robokit/api-terms/index.html delete mode 100644 docs/robokit/conventions/index.html delete mode 100644 docs/robokit/dev/index.html delete mode 100644 docs/robokit/geom/index.html delete mode 100644 docs/robokit/hand-retargeting/index.html delete mode 100644 docs/robokit/hand_eye_calibration/index.html delete mode 100644 docs/robokit/humanoid-retargeting/index.html delete mode 100644 docs/robokit/ik/index.html delete mode 100644 docs/robokit/index.html delete mode 100644 docs/robokit/install/index.html delete mode 100644 docs/robokit/motion-planning/index.html delete mode 100644 docs/robokit/opt-gd/index.html delete mode 100644 docs/robokit/opt-lbfgs/index.html delete mode 100644 docs/robokit/opt-lm/index.html delete mode 100644 docs/robokit/optimization/index.html delete mode 100644 docs/robokit/overview/index.html delete mode 100644 docs/robokit/quickstart/index.html delete mode 100644 docs/robokit/ref-assets/index.html delete mode 100644 docs/robokit/rl/index.html delete mode 100644 docs/robokit/robot/index.html delete mode 100644 docs/robokit/sim-mpc/index.html delete mode 100644 docs/robokit/term-com-position/index.html delete mode 100644 docs/robokit/term-configuration/index.html delete mode 100644 docs/robokit/term-force-closure/index.html delete mode 100644 docs/robokit/term-frame-vector/index.html delete mode 100644 docs/robokit/term-frame/index.html delete mode 100644 docs/robokit/term-interaction-mesh/index.html delete mode 100644 docs/robokit/term-manipulability/index.html delete mode 100644 docs/robokit/term-mask-alignment/index.html delete mode 100644 docs/robokit/term-position-limit/index.html delete mode 100644 docs/robokit/term-position/index.html delete mode 100644 docs/robokit/term-rotation/index.html delete mode 100644 docs/robokit/term-scene-collision/index.html delete mode 100644 docs/robokit/term-scene-distance/index.html delete mode 100644 docs/robokit/term-self-collision/index.html delete mode 100644 docs/robokit/term-smoothness/index.html delete mode 100644 docs/robokit/term-velocity-limit/index.html create mode 100644 scripts/__init__.py create mode 100644 scripts/apihtml.py create mode 100644 scripts/apimodel.py create mode 100644 scripts/assemble_landing_teaser.py create mode 100644 scripts/benchmark_graspkit_optimization.py create mode 100644 scripts/benchmark_scale.py create mode 100644 scripts/build_docs.py create mode 100644 scripts/check_site.py create mode 100644 scripts/encode_graspkit_optimization.py create mode 100644 scripts/encode_graspkit_real_world.py create mode 100755 scripts/encode_showcase.py create mode 100644 scripts/export_benchmark_image.py create mode 100644 scripts/import_docs.py create mode 100644 scripts/import_retargetingkit_docs.py create mode 100644 scripts/md2doc.py create mode 100755 scripts/preview.sh create mode 100644 scripts/serve.py create mode 100644 scripts/test_apimodel.py create mode 100644 scripts/test_build_docs.py create mode 100644 scripts/test_check_site.py create mode 100644 scripts/test_code_controls.js create mode 100644 scripts/test_md2doc.py diff --git a/.claude/launch.json b/.claude/launch.json new file mode 100644 index 0000000..16e2941 --- /dev/null +++ b/.claude/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.0.1", + "configurations": [ + { + "name": "robokit-site", + "runtimeExecutable": "make", + "runtimeArgs": ["serve"], + "port": 8734 + } + ] +} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b6c3965 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,46 @@ +# Build and check the site on every repo; only the public repo publishes it to GitHub Pages. +name: build + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +concurrency: + group: website-${{ github.ref }} + cancel-in-progress: false + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + - uses: astral-sh/setup-uv@v5 + - run: make test + - run: make site + - run: make check-site + - uses: actions/upload-pages-artifact@v3 + with: + path: _page + + deploy: + if: github.repository == 'openrobokit/website' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..74bb66d --- /dev/null +++ b/.gitignore @@ -0,0 +1,172 @@ +# Built site, assembled by `make site` +/_page/ + +# Logs +logs +*.log +__pycache__/ + +# Local review artifacts are not website assets. +/.playwright-cli/ +/output/ +/playwright-report/ +/test-results/ +/Screenshot*.png +.DS_Store +.venv/ +.pytest_cache/ +.ruff_cache/ +.mypy_cache/ + +# Draft GraspKit renders stay local; its tracked still provides the public fallback. +assets/videos/graspkit*.mp4 + +# Camera footage the showcase clips are cut from: gigabytes of source, not site +# assets. scripts/encode_showcase.py reads it from here. +/footage/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.* +!.env.example + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist +.output + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp directory +.temp + +# Sveltekit cache directory +.svelte-kit/ + +# vitepress build output +**/.vitepress/dist + +# vitepress cache directory +**/.vitepress/cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# Firebase cache directory +.firebase/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# pnpm +.pnpm-store + +# yarn v3 +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Vite files +vite.config.js.timestamp-* +vite.config.ts.timestamp-* +.vite/ + +# VSCode settings +.vscode/ + +# Wrangler local state +.wrangler/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89a9e5e --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +# Only `make import` reaches outside this checkout. A plain build reads the +# committed corpus, so CI and a fresh clone both work with no sibling repos. +PROJECT ?= +SRC ?= +PORT ?= 8734 + +# What a browser is allowed to see. Everything else in the checkout -- the +# scripts, the Makefile, the README -- is how the site is made, not part of it. +PUBLIC = index.html CNAME .nojekyll assets graspkit retargetingkit robokit roboskills + +.PHONY: serve import pages site benchmark-image check-docs check-site test clean + +# The pages use root-relative paths, so the site must be served from this +# built directory — opening HTML over file:// will not resolve /assets or /data. +serve: site + python3 scripts/serve.py $(PORT) _page + +# Convert one product repo's Markdown into its own file under data/docs/, then +# rebuild. Each kit owns one path, so two imports never touch the same file. +# +# make import PROJECT=retargetingkit SRC=../retargetingkit +# +# In CI this runs from the product repo, which then commits the result here. +import: + @test -n "$(PROJECT)" || { echo "PROJECT= is required"; exit 1; } + @test -n "$(SRC)" || { echo "SRC= is required"; exit 1; } + @test -f "scripts/import_$(PROJECT)_docs.py" -o -n "$(filter robokit graspkit,$(PROJECT))" \ + || { echo "no importer for $(PROJECT)"; exit 1; } + uv run scripts/$(if $(filter robokit graspkit,$(PROJECT)),import_docs.py --project $(PROJECT),import_$(PROJECT)_docs.py) $(SRC) + $(MAKE) site + +# Rebuild from the committed corpus. +pages: site + +# Assemble the complete site without writing generated files into source paths. +# Everything it needs is committed here, so this works on a bare clone. +site: clean + mkdir -p _page/data + cp -R $(PUBLIC) _page/ + cp -R data/projects.js data/showcase.js data/showcase _page/data/ + # Notes written for maintainers are not part of the site. + find _page -name README.md -delete + uv run --python 3.12 scripts/build_docs.py + +# The converters use 3.10+ syntax, so pin the interpreter rather than trust +# whatever `python3` happens to be on the machine. +test: + cd scripts && uv run --python 3.12 --with xdoctest --with griffe python -m unittest discover -p 'test_*.py' + node --test scripts/test_code_controls.js + @for file in assets/js/*.js data/*.js data/docs/*.js; do node --check "$$file" || exit 1; done + +# Fails if importing one project's docs would change anything. Needs its source. +check-docs: + $(MAKE) import PROJECT=$(PROJECT) SRC=$(SRC) + git diff --exit-code HEAD -- data/docs/ assets/docs/ + test -z "$$(git ls-files --others --exclude-standard -- data/docs/ assets/docs/)" + +# Render the speed bars as robokit's README image (3120x1356) from the built +# page. OUT defaults to output/robokit-benchmarks.png; .webp is the README's. +# +# make benchmark-image OUT=../robokit/docs/assets/robokit-benchmarks.webp +benchmark-image: site + uv run --python 3.12 --with playwright==1.55.0 --with pillow python scripts/export_benchmark_image.py $(if $(OUT),--out $(OUT)) + +# Check links, search coverage, repeatable output, and unchanged source files. +check-site: + uv run --python 3.12 scripts/check_site.py + +clean: + rm -rf _page diff --git a/README.md b/README.md new file mode 100644 index 0000000..972e2b8 --- /dev/null +++ b/README.md @@ -0,0 +1,165 @@ +# OpenRoboKit website + +A static site — no framework, and nothing rendered at request time. The hand- +written pages are markup only; the documentation is generated once, up front, +into one HTML file per page. All CSS and JS live under `assets/`. + +## Running it + +```shell +./scripts/preview.sh # build, then preview http://localhost:8914/retargetingkit/ +make serve # build, then serve http://localhost:8734 from _page/ +make test # the converter and page-builder tests +make site # rebuild the complete site in ignored _page/ +make check-site # build twice; check links, search, and reproducibility +make clean # remove _page/ +``` + +The preview script works from any directory and accepts an optional port: +`./scripts/preview.sh 8915`. Keep its terminal open while browsing, or run it +in the background from the repository root: + +```shell +mkdir -p output +nohup ./scripts/preview.sh 8914 > output/preview.log 2>&1 < /dev/null & +``` + +When the repository is on a remote machine, forward port 8914 in your editor +or SSH connection before opening the localhost URL on your computer. + +All paths in the site are **root-relative** (`/assets/…`, `/data/…`), so the +site has to be served from `_page/`. Opening an `.html` file over +`file://` will not resolve anything. + +Building requires `make`, `uv`, and Node.js. `uv` selects Python 3.12 for the +build and tests. Everything a build reads is committed here, so `make site` +works on a bare clone — no sibling checkouts. Only `make import` needs one, and +only for the project being imported. + +`scripts/serve.py` serves the built tree with HTTP Range support so the video +scrubbers can seek locally. + +The landing hero and its three kit previews live under +`assets/{videos,images}/landing/`. After updating the hero, regenerate the +matching card clips and posters with +`uv run --python 3.12 python scripts/assemble_landing_teaser.py --previews-only`. +The same script can assemble the hero from existing Blender frames using +`--renders `. + +## Layout + +``` +index.html landing page +robokit/ ┐ +retargetingkit/ ├ one stub each: title, favicon, RK_PROJECT, script tags +graspkit/ ┘ + +assets/css/site.css nav + mobile menu, shared by every page +assets/css/{home,project,docs}.css +assets/js/site.js nav render, menu toggle, hero-video fallback +assets/js/{home,project,docs}.js + docs.js is page behaviour only — no router +assets/{brand,images,videos}/ + +data/projects.js content + theme for the three project pages +data/docs/.js the documentation corpus, one file per kit; + build input, never served + +scripts/ the Python importers and page builder +.github/workflows/ci.yml test, validate, and upload a downloadable site artifact + +_page/ complete built site; ignored by Git +_page/docs/ generated pages and legacy URL redirects +_page/data/search.json full-text search index +``` + +Each project page is a directory so its URL is just its name — +`openrobokit.com/robokit` — which is what paper and preprint links need. +The local server resolves `/robokit` to `robokit/index.html`. + +### Shared chrome + +`assets/css/site.css` owns the nav's structure; every colour in it comes from a +custom property the page sets (`--nav-bg`, `--nav-ink`, `--nav-muted`, +`--nav-hover-bg`, `--nav-dot`, `--brand-shadow`, `--menu-bg`, `--menu-line`). +Re-tint the nav by setting those, not by writing new `nav …` rules. + +The burger and mobile overlay are always in the DOM but hidden; a page opts in +by unhiding `nav .right button.burger` in its own media query. The landing page +deliberately does not, and so has no mobile menu. + +### Adding a project + +1. Copy an existing stub, e.g. `graspkit/index.html`, changing the `` and + `window.RK_PROJECT`. +2. Add the matching entry to `RK_PROJECTS`, `RK_THEMES` and `RK_VIDEOS` in + `data/projects.js`. A project that rotates multiple hero clips can also add + an `RK_HERO_REELS` entry. +3. Add it to `NAV` in `assets/js/site.js`. + +## CI + +On pushes to `main`, pull requests, and manual runs, CI runs the tests and +`make check-site`, then uploads `_page/` as a `site` artifact. Only the public +`openrobokit/website` repo publishes that artifact to GitHub Pages, from `main`. + +`make check-site` checks local HTML links and assets, documentation anchors, +and search-index coverage. It builds twice and compares every output file, +then verifies that source files have not changed. CI also requires a clean +Git checkout. The workflow still needs RoboKit's asset input provisioned. + +Only handwritten pages, assets, scripts, and the documentation corpus are +tracked. Generated HTML, redirects, and the search index live in `_page/`. +The build excludes the corpus, scripts, README, and Makefile from that tree. + +## Documentation + +Every document is a static page at `/docs/<kit>/<id>/`, built from the +committed corpus. Each kit owns one file, so two projects importing at once +never touch the same path: + +```shell +make site # build from the corpus +make import PROJECT=robokit SRC=../robokit # re-convert one project +make check-docs PROJECT=robokit SRC=../robokit # fails if it would change +``` + +`data/docs/<kit>.js` stays the corpus: `scripts/import_docs.py` splices the generated +groups into it, and `scripts/build_docs.py` turns the whole thing into +`_page/docs/<kit>/<id>/index.html` plus `_page/data/search.json`. Importing is +an explicit source update; ordinary builds never rewrite `data/docs/`. + +RoboKit's README and overview images have one source: RoboKit's `docs/assets/`. +The importer rewrites image URLs without copying files into this repository. +`make site` bundles the banner, framework, teaser, and six `built-in-tasks/` images +into `_page/assets/docs/robokit/assets/`; +these are generated output and are never committed. Gallery previews, task videos, +and images used only by the website remain under `assets/`. + +The browser gets no router and no corpus. `assets/js/docs.js` handles only what +needs a live page — syntax highlighting, copy buttons, the scroll-spy rail, the +sidebar folds — and fetches the search index the first time somebody types. + +A page selects reference blocks the way mkdocstrings does — a line of +`::: robokit.opt.GDOptimizer` in the Markdown, next to the prose. What gets +published, and in what order, is decided there rather than in a config file +here. + +`scripts/md2doc.py` turns such a line into a `<div data-api="...">` +placeholder; `scripts/apimodel.py` reads the name out of the source with +griffe, and `scripts/apihtml.py` fills the placeholder in with the signature +card, parameters and members. + +RetargetingKit works the same way: its pages, sidebar order (`docs/nav.yml`), +API reference pages, and device screenshots live in the RetargetingKit repo. +Rebuild them against that checkout: + +```shell +make import PROJECT=retargetingkit SRC=../retargetingkit +``` + +The importer copies the original device screenshots into +`assets/docs/retargetingkit/` and frames the PICO and Vision Pro panels without +changing their pixels. Edit the Markdown in RetargetingKit, never +here. Only `data/docs/retargetingkit.js` is replaced, then the static site is +rebuilt in `_page/`. diff --git a/assets/brand/skills/README.md b/assets/brand/skills/README.md new file mode 100644 index 0000000..a64200c --- /dev/null +++ b/assets/brand/skills/README.md @@ -0,0 +1,18 @@ +# Skill marks + +These upstream marks are stored locally so the skill cards work without external +image requests. Organization marks identify the makers of models without a +dedicated project logo; their original colors are preserved. + +| Asset | Used for | Official source | +| --- | --- | --- | +| `meta.svg` | SAM 3, SAM 3D | [Meta SAM 3 page favicon](https://static.xx.fbcdn.net/rsrc.php/yf/r/-7pQO6hUGK_.svg), linked by [Meta's project page](https://ai.meta.com/research/sam3/) | +| `microsoft.ico` | MoGe | [Microsoft favicon](https://www.microsoft.com/favicon.ico?v2); [MoGe repository](https://github.com/microsoft/MoGe) | +| `nvidia.ico` | Kimodo | [NVIDIA favicon](https://www.nvidia.com/favicon.ico), linked by [Kimodo's project page](https://research.nvidia.com/labs/sil/projects/kimodo/) | +| `blender.svg` | Blender | [Blender favicon](https://www.blender.org/wp-content/themes/bthree/assets/icons/favicon.svg), linked by [Blender's logo page](https://www.blender.org/about/logo/) | + +RoboKit and GraspKit reuse the existing OpenRoboKit gear mark in `../gear/`. +GeoCalib, HaWoR and GVHMR use calibration, hand and human-motion icons: no dedicated project logo was available +from their official repositories, and the latter two project-site icon links +returned 404 when checked on 2026-10-26. These inline SVGs are capability icons, not +upstream logos. diff --git a/assets/images/robokit/brochure/retargeting.webp b/assets/images/robokit/brochure/retargeting.webp deleted file mode 100644 index 89b67b9f6200b038056090315474b3572b985b45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 128492 zcmV)=K!m?iNk&HG^#K4^MM6+kP&il$0000G0001A2>=lU06|PpNUUQ301X^SZrccw zB>n%_)tyui_PB?Lm;n4caTqY7VgoC}fQKn5Fi5>XyXQ@*I|d;IBf<n+??|0MsRII2 za8De*6KV@+kg0_i185Q;tQ?(jg-S<}H3Hk=l{}kxPV%vhzr>C=df)?A?Rt{~yw?{! zFhRKl2Ln17z`>})dyG(-cr+>1?wFR-w49daFpk>?pE0qcOaJlu763+(B-yqk8Jl}V zR&~#2W@b3&|DTwdna@mDMTEPt>7lEuB0Mv_EPQ(PiHHe+97&R^st08R_Tj$=FvowA zjmU_Y0AIJY$8Do++i{#HKuWTmN<Hn{ZocFF|39Yho9%17RY`0~Byb)Zc3fqK0wCAh zM8pKZ9o5U9`7?j&<E$0JZztuFmp}Z!|M&m%sldbW!(aSsr|VC@|LK|w|ArD&dj8?Z zkMr_B{jWdqL-2Qh|Ie@g<Nvm%4hX-sl!1)@3xCc3U;oAb%lCWv2Y>nh{I7mr01$qg zDFevg{hdGmzx`*Q?j-)kKmO@I{(VRIZKq5>{No@0)BnES!~V-3{-gh`A^i4J7JuQN z{q*mJZ+rPS(tmJ4_-&|s`e**%{`4&$|Mma#A2)>Gipt_2{kebl_g{DZm;cv)$?#iJ z@$dfmfB)0h*nji?`_JGvrt;taGy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_8M_m-bOV{Bq6K~ z9>V9;e_8A!!udN4<h_-;Y)9&IUQow|zHrzR&f<$@4nz)tk;4d|0F5Fao*-V__P<iA zpAy)m<VW1J5(nv{TJaTM-;-`o`pS)Z@fa9MLyqShg6qW+<|bQ6!H|p|IkluaOTOrV zM8@Hv3s`H!fwZjuQ{oF&27kxOhk4s6j3L$5Sc$3ef<p)b)QZt4bXe)nudaiCG?d9J zHHm%LludPw7p?&R6)!=wt38E2`}lJ<KpFxX0KvcC;?FW^j@-%*psfer?L02hG0dN1 zy0p!g=h|+twpkFbaM~L+9`CrUd(y?0jS~;S%ug^{8f{2!w5Hiy4dGg;{xiQ{c`#IR z4r-%^b^kcz!~Da;1F-)oNk2RVp}E4orIa+izF$v+1!AgdPdswLkFWt<KWhV!EQTKr cWpac?;UnhhOIj<Mmn4CM6U=iC3IG5A0Cc8}s{jB1 diff --git a/assets/images/robokit/brochure/teaser.webp b/assets/images/robokit/brochure/teaser.webp deleted file mode 100644 index 5d22fa1da9cbfe9a11da39e971dc0e2fb5ab10ae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 221810 zcmV)KK)SzDNk&F$VgmqIMM6+kP&go7VgmqhPY#^{DgX+H1U^+Lkwzn;uqh-mx|#qA ziDz!y?_|%zzQ)6zVkx>)a8%iv_mEDF2Cx0|frgFpJQ<pA-th6Sf4y_K=v}n`um7*f z2g*O$`vQM1{>A@C*c$nMp?~RpJ9L!)m!t0DpZh;={k8v->8f4#^{?>%l<!}Z{yqH9 z^4^lXm*dCNzZL7D{yzNsL(6ZTzx02W|4sYR^Pm0S{@?W;?Z2V_u>a@z|MVmMAN;rE z=eGat$Gtz@4^p4nf7<@$d&d9S{oVJ){uBM5?svf#_Yd>G{(B+)690I=|N8a*^!!Ty zVE?E4t^ecR+yDRXr+3dvKau{_ep&m>`G4_$?El37rvID%W7D6?KCAry_mA@b@PEMm z;(fk;H~$a%Uo(AU|D*l4sb9<g1OE5?5BeYczvDh}|8@Uc{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2W2l0?Jve%{Px>l$m&U(Thi)m5yQPX$c^sqssckNaTLk)O z80$S~1il(^aJUWV+y*dl;PeGPYZ{1&$hJS{`vV3+l!+Ixvq-7g2<s(4>96CWLsajG zFdPvl8ggn$0YJ@;_>s6t@*z27^9yJI1%=|sdkjn#88uN`*z1Xf?vjt;vVRTm0L2$- zIu~j)8$O3+9)RD?+5rH+`HDI=0!5BCY0oT#;?4hgvLtRMGZ`!Kc=Sq<P7EIL;`gI> zlGa0yH5CfxXh3PptTiPyfda^RhT6<8r#f706@XdzNKb*AnLKol`T~RiR2N=K>=Bu9 zu^(i@2Z0+9CbV1uJ)fB`000?X*PpX$WdH$e*MfSD)Nd_-6_j;-!ylE~Ch-6OE#;XU z_**@{|LF*)+NSbs8pJ2dlJZg}DocM46uHFvsuXtwd00=gEq7g31h7q7Z`^Va3z+%@ z_VNTf;4L`boN1|YQ!_pQSJtEvr1m@D$D~qBX3tn#vk1V0q>!~YW%d99(}DxyasU7T tbD|r;ATn?m4#2Qk>*v!jTA2YYzd7cTrl?*Df?WN+??RB+)x9Jj001m!mL32A diff --git a/brochure/index.html b/brochure/index.html deleted file mode 100644 index 62f3c15..0000000 --- a/brochure/index.html +++ /dev/null @@ -1,329 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> -<meta charset="utf-8"> -<meta name="viewport" content="width=device-width, initial-scale=1"> -<title>RoboKit One-Pager - - - - - - -
- -
- - -
-
-
- RoboKit - - A performant, general-purpose robotics toolkit -
-
- -
- - -
-
- RoboKit teaser - Diverse skills visualized: grasping / motion planning / retargeting / calibration -
-
- RoboKit real-robot dexterous and whole-body manipulation - Dexterous Hand / Whole-body Retargeting -
-
- - -
-
- URDF + MJCF - any robot description -
-
-
- <1 ms - batched IK latency -
-
-
- GPU-batched - thousands in parallel -
-
-
- single - command to install -
-
-
- ✓ - examples ready -
-
- - -
- - -
-
Where RoboKit lives
-
-
-
-
- Agent model - Gemini Robotics -
-
-
- Policy - changes fast -
- LeRobot -
-
-
-
-
-
-
- Robot Skills - IK, motion planning, retargeting, grasping, calibration -
-
Hardware + Safety
-
-
-
- RoboKit -
-
-
-
-
-
- - Our goal -
-
The go-to library for robot skills, a low-level foundation for agentic robotics systems.
-
-
- - -
-
- Capability coverage - supported   not supported -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pink /
mink
Dex-
Retargeting
GMRPyRokicuRoboRoboKit
(Ours)
Inverse Kinematics
Motion Planning
Hand Retargeting
Humanoid Retargeting
Grasp Synthesis
Rendering-based Calibration
-
- - -
-
- Speed across tasks - RoboKit   baseline -
-
-
-
Inverse
Kinematics
-
-
12×faster than PyRoKi
-
-
-
Motion
Planning
-
-
3.5×faster than cuRobo
-
-
-
Hand
Retargeting
-
-
27×faster than PyRoKi
-
-
-
Humanoid
Retargeting
-
-
4×faster than GMR
-
-
-
Grasp
Synthesis
-
-
60×faster than Dex1B
-
-
-
Rendering
Calibration
-
-
230×faster than EasyHEC
-
-
-
Check the paper for benchmark details.
-
- -
-
-
- - - - diff --git a/data/docs/graspkit.js b/data/docs/graspkit.js new file mode 100644 index 0000000..a9184f7 --- /dev/null +++ b/data/docs/graspkit.js @@ -0,0 +1,7012 @@ +// graspkit documentation. Written by scripts/import_docs.py; the +// hand-written groups outside the GENERATED markers are edited here. +// Loaded only by scripts/build_docs.py -- the browser reads the static +// pages it emits, never this file. +window.RK_DOCS = window.RK_DOCS || {}; +window.RK_DOCS.graspkit = { + title: 'graspkit', + lede: "Manipulation across robot embodiments, including grippers and dexterous hands.", + groups: [ + // BEGIN GENERATED graspkit DOCS (scripts/import_docs.py) +{ + "name": "User Guide", + "items": [ + { + "id": "overview", + "nav": "Overview", + "h": "Overview", + "body": "

\"GraspKit\"

GraspKit is an end-to-end toolkit for manipulation across various robot embodiments, including grippers and dexterous hands. It synthesizes grasps, plans trajectories, trains policies, and deploys them in simulation or on real robots; it is built on top of RoboKit.

\"Robot

Real-world grasping with dexterous robot hands in San Diego.

Key features

\"Fast\"Policy
Fast grasp optimizationPerformant policy training
\"All\"Real-world
All arms, all handsReal-world robustness

How it works

StageRoleRead more
Scene descriptionsObjects, scales and poses on a table, as msgpack.Scene descriptions
Grasp optimizationEnergy minimization to grasp poses, then filters, motion planning and sim validation.Grasp optimization
RenderingPoint-cloud observations of the same scenes, from calibrated cameras.Pipeline
TrainingA CVAE policy that maps an object point cloud to pre-grasp, grasp and post-grasp poses.Training
DeploymentPolicy inference plus trajectory building, in sim or on hardware.Sim, real

For the graph of stages and the artifacts between them, see Core overview.

Quick links

" + }, + { + "id": "quickstart", + "nav": "Quickstart", + "h": "Quickstart", + "body": "

Try it without installing

Run this to start the interactive grasp gallery:

shell
uvx --from graspkit python -m graspkit.gallery.grasp_optim

Pick a hand, arm, and object. Press Optimize to generate grasps, then browse them with the Grasp slider. The gallery caches results for the next visit.

\"The

Optimize one grasp

After installing, run the smallest grasp optimization example:

shell
uv run src/graspkit/examples/grasp_optim/01_basic.py

It optimizes xHand grasps for one YCB object and opens a Viser page to browse the results. Grasp optimization needs a CUDA GPU.

More examples

The scripts below are runnable. Paths are relative to the repository root.

DirectoryScripts
src/graspkit/examples/grasp_optim01_basic.py, 02_table.py, 03_arm.py, 04_sim_valid.py, 05_table_sim_valid.py, 06_arm_sim_valid.py, 07_mj_sim_valid.py
scripts/launch.pyRun an experiment from grasp optimization through policy training. See The full pipeline.

Example usage:

shell
uv run src/graspkit/examples/grasp_optim/02_table.py
" + }, + { + "id": "install", + "nav": "Installation", + "h": "Installation", + "body": "

GraspKit needs Python 3.10–3.14; the maniskill extra needs 3.10–3.12 and spconv 3.10–3.13. Grasp optimization, rendering, and training need a CUDA GPU.

shell
uv add graspkit
shell
pip install graspkit

From source

shell
uv add git+https://github.com/openrobokit/graspkit.git
shell
pip install git+https://github.com/openrobokit/graspkit.git

To work on GraspKit itself, follow the Development Guide.

PyTorch builds

uv sync installs the dev and pt-cu126 groups by default. The PyTorch groups conflict with each other, so select another one explicitly:

shell
uv sync --no-default-groups --group pt-cu128
GroupWhat it adds
pt-cu126PyTorch + torchvision for CUDA 12.6 (default).
pt-cu118, pt-cu128The same for CUDA 11.8 / 12.8.
pt-cpuCPU-only PyTorch.
devipython, pytest, robot_descriptions (default).

Extras

ExtraWhat it adds
maniskillManiSkill, for simulation, rendering and grasp evaluation (Python 3.10–3.12).
spconvspconv, for the default spconv vision encoder (Python 3.10–3.13).
torchvisiontorchvision, for the rgb_resnet vision encoders.
sam2SAM 2, for the segmentation step of deployment.
xarmretargetingkit[realsense,xarm,ability] + open3d, for the xArm rigs (Python 3.10).
vegaretargetingkit[xarm,ability,dexmate] + pyzmq + open3d, for the Vega humanoid.
data-processcoacd, fast-simplification, for asset processing.

The sam2 extra uses a wheel from a separate index:

shell
uv add \"graspkit[sam2]\" --index https://jianglongye.github.io/torch_packages_builder
shell
pip install \"graspkit[sam2]\" --extra-index-url https://jianglongye.github.io/torch_packages_builder
shell
uv run --extra sam2 --extra vega scripts/deploy/deploy.py --help

Assets and credentials

import graspkit downloads nothing. Assets are fetched when the module that needs them is imported: graspkit's scenes, objects and calibration files come from the HuggingFace dataset openrobokit/graspkit into ~/.graspkit/assets/<revision>, and robot URDFs, meshes and collision spheres come from openrobokit/robokit into ~/.robokit/assets/<rev>.

Data and logs live in ~/.graspkit/data and ~/.graspkit/logs, created on import. graspkit.link() symlinks both into the repo for browsing.

Verify

shell
CUDA_VISIBLE_DEVICES=0 uv run pytest tests/\nuv run src/graspkit/examples/grasp_optim/01_basic.py

The example opens a Viser page with optimized xHand grasps. Next: the Quickstart.

" + }, + { + "id": "grasp-optim", + "nav": "Grasp Optimization", + "h": "Grasp Optimization (grasp_optim)", + "body": "
\"A\"An
A floating hand optimizing a grasp.An arm and hand optimized together on a fixed base.

graspkit.stages.grasp_optim synthesizes grasps on a floating or fixed base. It optimizes them on the GPU (Warp) with a gradient-descent or Levenberg-Marquardt backend, then plans grasp trajectories and keeps only the grasps that pass simulation validation.

This tutorial covers the main grasp optimization workflows. The logic lives in [src/graspkit/stages/grasp_optim](../../src/graspkit/stages/grasp_optim/); runnable CLIs for optimization, validation, and visualization are in [scripts/stages/grasp_optim](../../scripts/stages/grasp_optim/).

How Grasp Optimization Works

  1. Sample initial hand poses around the target object.
  2. Run the grasp optimizer (warp_gd or warp_lm backend) to get 3-frame grasps (pre-grasp, grasp, post-grasp), with a floating or fixed base.
  3. If filters are enabled (hand-axis cone, contact-avoid, penetration), mark the grasps that fail them. Filters run first inside the traj builder.
  4. The traj builder motion-plans the 3 frames into grasp trajectories.
  5. Simulation validation keeps the grasps that pass filters, planning and sim.
flowchart TD\n INPUT[Input<br/><br/>Scene description<br/>Robot config]\n\n subgraph OPTIM[Grasp optimization]\n direction TB\n SAMPLE[1. Sampler <br/>→ initial hand poses]\n OPT[\"2. GraspOptimizer (warp_gd / warp_lm)<br/>→ 3-frame grasps\"]\n FILTER[\"3. Filters (optional)\"]\n PLAN[\"4. TrajBuilder<br/>→ grasp traj\"]\n SIM[\"5. Simulation validation\"]\n SAMPLE --> OPT --> FILTER --> PLAN --> SIM\n end\n\n OUTPUT[Return grasps]\n\n INPUT --> SAMPLE\n SIM --> OUTPUT

Quick Start

Prerequisites: uv sync --extra maniskill --extra spconv, a CUDA GPU. Assets (scenes, object meshes, robot URDFs) download automatically on first use.

Run grasp optimization for a registered experiment config (here xHand on the dex1b v0.5 tabletop mini set) with scripts/launch.py.

shell
uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \\\n    --steps optimize_grasps \\\n    --grasp_optim.max_scenes 32 \\\n    --grasp_output_dir data/optim_data/xhand_grasps/quickstart

--grasp_optim.max_scenes 32 keeps it to about two minutes on one GPU; drop it to run all 5500 scenes.

The sections below build the same stage step by step in Python.

Sampling initial poses

\"Initial

Init samples drawn with the palm-down cone below: red is the hand axis (palm_forward), gray is the target (world -z). Both start at the wrist; the label is their angle, always within the 60 deg cone.

optimize() starts from the optimizer's sampler; call it directly to inspect the initial poses:

python
from dataclasses import replace\n\nimport torch\n\nfrom graspkit.configs.robot.xhand import xhand_right\nfrom graspkit.gallery.grasp_optim import gallery_scene\nfrom graspkit.stages.grasp_optim import GraspOptimConfig, SceneGeom, WarpGraspOptimizer\n\nscene = gallery_scene(\"ycb/mustard_bottle\")  # SceneDescription: the bottle on a table whose top is z=0\ndevice = torch.device(\"cuda:0\")\n\n# Customize the approach\nconfig = GraspOptimConfig(\n    distance_lower=0.05,  # wrist 5-15 cm from the closest object point\n    distance_upper=0.15,\n    hand_axis=\"palm_forward\",  # hand_coord_spec axis to constrain\n    hand_axis_target=(0.0, 0.0, -1.0),  # toward world -z\n    filter_hand_axis_max_angle_deg=60.0,  # cone half-angle\n)\noptimizer = WarpGraspOptimizer(config, xhand_right, device)\ninit_qpos = optimizer.sampler.sample(SceneGeom([scene], device=device), num_samples_per_scene=8)

Grasp optimization

optimize() samples init poses with the same sampler, then minimizes the grasp energy on the GPU. Reusing scene and the palm-down config from above:

python
config = replace(config, optimizer_backend=\"warp_gd\")  # or \"warp_lm\" (Levenberg-Marquardt)\noptimizer = WarpGraspOptimizer(config, xhand_right, device)\ngrasp_qpos = optimizer.optimize([scene], num_samples_per_scene=8)  # (1, 8, 18)

Filtering grasps

Grasp filters live in GraspTrajBuilderConfig and run first inside GraspTrajBuilder.build(). They only mark grasps, they don't drop them. Call filter_grasps to run them alone, without motion planning:

\"A

python
from graspkit.configs.experiment_config import GraspTrajBuilderConfig\nfrom graspkit.datasets.graspkit_data import GraspKitData\nfrom graspkit.stages.grasp_traj_build import GraspTrajBuilder\n\ntraj_builder = GraspTrajBuilder(\n    GraspTrajBuilderConfig(\n        floating_base_robot_config=xhand_right,\n        contact_avoid_filter=True,  # contact links closer to the object than their paired avoid links\n        pen_filter=True,  # hand spheres overlap the object by at most pen_filter_threshold\n        pen_filter_threshold=0.005,\n        hand_axis=\"palm_forward\",  # palm normal within 60 deg of world -z (top-down grasps)\n        hand_axis_target=(0.0, 0.0, -1.0),\n        filter_hand_axis_max_angle_deg=60.0,\n    ),\n    device,\n)\nbatch = GraspKitData(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos)\nsuccess, metrics = traj_builder.filter_grasps(batch, torch.ones(grasp_qpos.shape[:2], dtype=torch.bool, device=device))\nkept = grasp_qpos[success]  # (n_kept, dofs)

Building grasp trajectories

build() runs the filters above, then motion-plans a pre-grasp -> grasp -> lift trajectory for every grasp. Rejected grasps are still planned; drop them with filter_success:

python
traj_builder = GraspTrajBuilder(\n    GraspTrajBuilderConfig(floating_base_robot_config=xhand_right, contact_avoid_filter=True), device\n)\nbatch = GraspKitData(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos)\nbatch, filter_success = traj_builder.build(batch)

Simulation validation

The sim evaluator rolls out each planned trajectory in ManiSkill, pokes the object with external forces, and reports which grasps still lift it:

python
from graspkit.configs.env_config import MsEnvConfig\nfrom graspkit.configs.experiment_config import EnvConfig\nfrom graspkit.envs import build_env\n\nevaluator = build_env(\n    EnvConfig(\n        ms_env_config=MsEnvConfig(robot_uid=\"xhand_right_floating_base\"),\n        load_scenes=True,\n        control_freq=50,\n        object_mass=1.0,\n        target_lift_dist=0.08,\n        num_envs=8, \n        num_perturbations=4, \n        perturbation_magnitude=5.0, \n        perturbation_step_range=(-25, -5), \n    ),\n    xhand_right,\n    device,\n)\neval_success = evaluator.evaluate(batch)[\"success\"].to(device)  # (1, 8) bool\nkept = grasp_qpos[filter_success & eval_success]  # (n_kept, dofs)\nevaluator.close()

Outputs

One {scene_id}.h5 per scene with grasp_qpos, pre_grasp_qpos, post_grasp_qpos of shape (N, D): D = hand joints (fixed base) or xyz + euler rxyz + hand joints (floating). .optim_complete marks the stage done. See data_format.md.

Code Map

CodeRole
src/graspkit/stages/grasp_optim/sampler.pyInit pose sampler
src/graspkit/stages/grasp_optim/warp_optimizer.pyWarpGraspOptimizer
src/graspkit/stages/grasp_filters.pyGrasp filters (Ori, Pen, ContactAvoid)
src/graspkit/stages/grasp_traj_build/builder.pyGraspTrajBuilder: filters + motion planning
src/graspkit/envs/build_env sim evaluator
scripts/launch.pyRuns an experiment config end to end
" + }, + { + "id": "training", + "nav": "Policy Training", + "h": "Policy Training (train)", + "body": "
%%{init: {\"flowchart\": {\"wrappingWidth\": 300}}}%%\nflowchart LR\n PC[Scene point cloud<br/>N × 3]\n ENC[Vision encoder<br/>PointNet / SpConv]\n EPS([\"noise ε ~ N(0, I)\"])\n GT[GT grasps]\n GEN[\"Generator<br/>CVAE: encoder + decoder<br/>Flow: velocity network\"]\n OUT[Generated grasps]\n\n PC --> ENC -->|scene feature| GEN\n EPS --> GEN\n GT -.->|train only| GEN\n GEN --> OUT

GraspPolicy maps a scene point cloud to pre-grasp, grasp, and post-grasp configurations, trained on successful grasp trajectories.

Code: scripts/stages/train/train.py (CLI), stages/trainer.py (loop), datasets/grasp_dataset.py (data), models/grasp_policy.py (model).

For every training, dataset, and policy parameter, see the training and policy API.

Quick start

Prerequisites: uv sync --extra maniskill --extra spconv, a CUDA GPU, and an experiment whose processed_data_path exists. Normally render_data, optimize_grasps, and process_sim_data produce that file.

shell
# Run only training from a registered experiment.\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train\n\n# Multi-GPU training (this experiment defaults to train_single_gpu=True).\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3 --steps train \\\n  --no_train_single_gpu\n\n# Override nested dataclass fields through tyro.\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train \\\n  --trainer.total_iters 20000 \\\n  --trainer.eval_freq 5000 \\\n  --trainer.save_freq 5000

Training writes TensorBoard logs and checkpoints under logs/train/<experiment_name>/. A completed run writes .train_complete; a later launch skips the stage while that marker exists.

Minimal training loop

The experiment config holds the three pieces: dataset (DatasetConfig), agent (GraspPolicyConfig), and trainer (TrainerConfig).

python
import torch\nfrom torch.utils.data import DataLoader\n\nfrom graspkit.configs.experiment import build_experiment_config\nfrom graspkit.datasets.grasp_dataset import GraspDataset\nfrom graspkit.models.grasp_policy import build_grasp_policy\n\ncfg = build_experiment_config(\"xhand_right_dex1b_v0_5_mini_tabletop\")\ndataset = GraspDataset(cfg.dataset, cfg.processed_data_path, cfg.scene_description_path, split=\"train\")\nloader = DataLoader(dataset, batch_size=cfg.trainer.batch_size, shuffle=True, num_workers=4, drop_last=True)\npolicy = build_grasp_policy(cfg.agent, cfg.robot_config, \"cuda\")\noptimizer = torch.optim.AdamW(policy.parameters(), lr=cfg.trainer.lr)\n\nfor batch in loader:\n    obs = {k: v.cuda() for k, v in batch[\"observations\"].items()}\n    loss = policy(obs, batch[\"actions\"].cuda())[\"loss\"]\n    optimizer.zero_grad()\n    loss.backward()\n    optimizer.step()\n\npolicy.eval()\nwith torch.no_grad():\n    grasps = policy.get_action(obs, num_samples_per_scene=8)  # (B, 8, 3, D): pre / grasp / post

The real Trainer (src/graspkit/stages/trainer.py) adds LR scheduling, DDP, checkpoints, TensorBoard, and simulation evaluation through trainer.evaluator.

Evaluate a checkpoint

Evaluation samples one trajectory per scene, runs grasp filtering and motion planning, then rolls the trajectory out in the configured simulator:

shell
uv run scripts/stages/train/train.py xhand_right_dex1b_v0_5_mini_tabletop \\\n  --trainer.eval_only \\\n  --ckpt_path logs/train/xhand_right_dex1b_v0_5_mini_tabletop/checkpoints/best_eval_success_rate.pt

The command reports simulation success, penetration pass rate, and their joint rate. Per-scene results are saved to logs/eval/<experiment_name>.json.

" + }, + { + "id": "pipeline", + "nav": "Pipeline", + "h": "The Full Pipeline (launch.py)", + "body": "

scripts/launch.py turns a set of scene descriptions into a trained grasp policy. One experiment name selects an ExperimentConfig whose steps run in order: render point-cloud observations, synthesize and validate grasps, join both into a training dataset, and train an open-loop policy.

This tutorial explains what each stage does and how data flows between them. For stage deep-dives see the grasp_optim tutorial and the training tutorial; for every parameter see the config reference.

Overview

The default steps are (\"render_data\", \"optimize_grasps\", \"process_sim_data\", \"train\"). Observations and actions are produced independently from the same scene descriptions, then joined per scene.

Quick Start

Prerequisites: uv sync --extra maniskill --extra spconv, CUDA GPUs. Assets (scenes, object meshes, robot URDFs) download automatically on first use. Experiments live in src/graspkit/configs/experiment/ and are registered by name in its __init__.py.

shell
# Full pipeline on 4 GPUs\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3\n\n# Run a subset of steps; any nested config field is a CLI flag through tyro\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --steps optimize_grasps \\\n  --grasp_optim.num_attempts 2\n\n# Rerun from a step: deletes that step's marker + output and everything downstream\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --restart-from process_sim_data\n\n# Append mode: keep the restart step's output, delete only its marker (top up grasps)\nuv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \\\n  --restart-from optimize_grasps --append

Renderer -> Point-Cloud Observations

Renders every scene through the calibrated real camera so training observations match deployment.

flowchart TD\n SD[(scene descriptions)]\n CALIB[(camera calibration<br/>extrinsic + intrinsic .json)]\n CAM[Per-scene camera poses<br/>fixed: calibrated view<br/>sampled: jittered views + look-at]\n REN[Renderer]\n SEG[Segmented object points]\n VIS[Object-visibility view filter<br/>sampled mode only]\n OUT[(rendered_data_path/scene_id.h5)]\n\n SD --> CAM\n CALIB --> CAM\n CAM --> REN --> SEG\n SEG -->|fixed| OUT\n SEG -->|sampled| VIS --> OUT

The calibrated extrinsic is anchored to the fixed-base robot's base pose (camera_frame=\"robot\") or used as-is (\"world\"). camera_mode=\"fixed\" saves one view per scene; \"sampled\" renders camera_sample_num_views jittered views and keeps every view where the target object projects into the image (multi-view augmentation). Key config: renderer (RendererConfig).

An optional sample_point_cloud step exists for experiments that want full object point clouds sampled directly from the meshes instead of rendered ones; no registered experiment currently uses it.

GraspOptimizer -> Grasp Synthesis and Validation

Synthesizes grasps per scene and keeps only those that survive filtering, motion planning, and a physics stress test. See the grasp_optim tutorial for the components and the algorithm concepts for the two optimizer backends.

%%{init: {\"flowchart\": {\"curve\": \"linear\"}}}%%\nflowchart LR\n SD([scene description]) --> OPT[grasp optimizer]\n OPT --> GP[\"3 frame grasp poses<br/>(floating/fixed base)\"]\n GP --> TB[traj builder]\n TB --> GT([grasp traj])\n GT --> EV[simulation evaluator]\n EV --> GP\n GP -- successful grasps --> OG([optimized grasps])\n style OPT fill:#ffe680,stroke:#b38f00\n style TB fill:#ffe680,stroke:#b38f00\n style EV fill:#ffe680,stroke:#b38f00\n linkStyle 6 stroke:#2e9e44,color:#2e9e44

The stage loops num_attempts passes with work stealing: a scene stays to-do while its file holds fewer than min_grasps_threshold grasps, so later passes top up hard scenes. Each batch runs optimize -> filter + plan -> sim eval, then appends the surviving pre/grasp/post configurations. Key config: grasp_optim (GraspOptimConfig, evaluator nested inside) and traj_builder (GraspTrajBuilderConfig).

process_sim_data —> Join Observations and Actions

Joins the two upstream outputs per scene ID into one training HDF5. Scenes missing either side are dropped.

flowchart TD\n PC[(rendered pts)]\n GR[(succ grasp poses)]\n CE[\"ContactExtractor (optional)\"]\n GW[graspness weight]\n OUT[(processed sim data<br/>processed_data_path .h5)]\n\n PC --> OUT\n GR --> OUT\n GR --> CE --> GW --> OUT

Actions stack the three saved configurations per grasp; meta/action_mean and meta/action_std normalize them during training. With enable_contact_extraction=True each scene also gets per-point graspness weights. See data_format.md.

Trainer — Policy Learning

Learns an open-loop policy mapping one scene point cloud to pre-grasp, grasp, and post-grasp configurations. See the training tutorial.

flowchart TD\n DS[(Dex1B dataset<br/>processed_data_path .h5)]\n POL[GraspPolicy<br/>point-cloud encoder + CVAE]\n TB[GraspTrajBuilder]\n EV[Evaluator]\n CKPT[(ckpt<br/>logs/train/name)]\n\n DS --> POL --> TB --> EV --> CKPT

Outputs

Config fieldContentsMarker
rendered_data_pathPer-scene {scene_id}.h5 segmented point clouds<path>.render_complete
grasp_output_dirPer-scene {scene_id}.h5 pre/grasp/post qpos<dir>/.optim_complete
processed_data_pathOne .h5: data/<scene_id>/{obs,actions} + meta stats<path>.process_sim_data_complete
logs/train/<name>/TensorBoard logs, checkpoints, eval results<dir>/.train_complete
" + }, + { + "id": "sim-deploy", + "nav": "Sim Deployment", + "h": "Sim Deployment", + "body": "

Three ways to run a trained policy in simulation: inside training, as a reproducible benchmark, or interactively in the deploy UI.

During training

Set TrainerConfig.evaluator to an EnvConfig and the trainer evaluates every eval_freq iterations on rank 0: it samples actions, builds trajectories with GraspTrajBuilder, rolls them out, and reports a success rate plus a report-only penetration pass rate (penetration <= eval_pen_threshold, 5 mm by default).

shell
# evaluate an existing checkpoint, no training\nuv run scripts/stages/train/train.py <experiment> --trainer.eval-only --ckpt-path <ckpt>

Results land in logs/train/<experiment>/eval_success.jsonl, TensorBoard (eval/success_rate, eval/pen_pass_rate) and checkpoints/best_eval_success_rate.pt. Eval-only runs also write per-scene results to logs/eval/<experiment>.json.

Knobs on EnvConfig: num_envs (2048), num_seeds (a grasp must survive every seed), enable_perturbation with perturbation_magnitude / perturbation_step_range / num_perturbations, the task (control_freq, object_mass, target_lift_dist, ...), and mj_env_config / isaac_env_config to pick a backend other than ManiSkill. TrainerConfig adds eval_num_envs, max_eval_batches and eval_pen_threshold.

ManiSkill counts a tabletop grasp as a success when the hand is strictly grasping and the object has risen by target_lift_dist; with floating_object it is grasp-only.

As a benchmark

The default checkpoint mode of scripts/benchmark/grasp_policy/evaluate_policy.py makes every prediction before any physics, asserts the eval scenes are disjoint from the training and validation IDs, and records actions, trajectories, and per-scene results.

shell
PYTHONHASHSEED=0 CUDA_VISIBLE_DEVICES=<free gpu> uv run scripts/benchmark/grasp_policy/evaluate_policy.py \\\n  --checkpoint <ckpt> --output <report.json> \\\n  --evaluation-experiment <experiment> --observations-path <processed.h5> \\\n  --require-native --require-object-disjoint

The checkpoint must carry experiment, policy_config, agent and training keys; plain trainer checkpoints hold only agent, so use the packaging scripts under scripts/stages/train/. The report gives raw (sim success), penetration (deepest hand-sphere overlap into the object at the grasp pose, in metres) and joint = raw & penetration <= 0.005. That 5 mm threshold is fixed in the script, independent of eval_pen_threshold.

The same runner supports tabletop observations with --mode pc_open_loop, pc_closed_loop, or rgb_closed_loop. Choose --robot from arx_x5, panda_allegro, or agilex_aloha, and --arm-mode from floating_ik or arm_aware. Each scene gets one selected grasp execution; tabletop results are written to a .jsonl output.

Interactively

shell
uv run --extra sam2 scripts/deploy/deploy.py --env sim \\\n  --exp-config-name <experiment> --ckpt-path <ckpt>

The sim path runs one environment, takes scenes from the experiment's msgpack split, and drives the same staged Viser UI the real robot uses — Capture, Segment, Check Grasp, Deploy. --auto (sim only) takes the segmentation prompt from the simulator's ground-truth mask and prints the SAM2-vs-GT mask IoU; --scene-id and --num-scenes choose scenes, --deploy-batch-size replays several grasps at once.

MuJoCo instead of ManiSkill

Setting EnvConfig.mj_env_config selects MuJoCo, which is the only backend for hands with no ManiSkill agent (shadow_right_mj, xarm7_xhand_right_mj, vega_sharpa_*_mj). It runs on CPU in a spawned pool of up to 48 workers and evaluates a grasp pose rather than a trajectory:

Use timestep=0.001 for actuated arm+hand models; the 0.004 default flings the object.

Pitfalls

" + }, + { + "id": "real-deploy", + "nav": "Real Deployment", + "h": "Real Deployment", + "body": "

Running a trained policy on hardware: capture a point cloud, predict a grasp, build a trajectory, execute it, release, and park.

These scripts move a real robot. Run them yourself, with the e-stop in reach — never from an automated agent.

Prerequisites

Hardware presets

configs/real_env.py holds one RealEnvConfig per rig; --real-env-config-name selects it, and an experiment can name a default through real_env_config_name.

PresetArmHandCamera
xarm7_xhand_rightxArm7XHandRealSense
xarm6_sharpa_rightxArm6SharpaRealSense
xarm7_ability_rightxArm7Ability (channel reindex)RealSense

Each preset also carries the planning table (table_size, table_xy, table_z), the point-cloud crop centre (workspace_center), the streaming rate (control_hz) and how many depth frames to median-combine. Experiments need --real-env-config-name, a fixed-base trajectory and camera_frame=\"robot\".

Run it

shell
uv run --extra sam2 --extra xarm scripts/deploy/deploy.py --env real \\\n  --exp-config-name xhand_right_dex1b_v0_5_mini_tabletop_fixed_eval \\\n  --ckpt-path <checkpoint> --real-env-config-name xarm7_xhand_right

Every stage waits for a button in the Viser page:

  1. Capture — reset to the init pose, grab RGB (median of depth_frames depth frames).
  2. Segment — click the object; SAM 2 turns the clicks into a mask, which becomes the cropped, subsampled point cloud in the robot base frame.
  3. Check Grasp — the policy samples --num-samples grasps; the trajectory builder converts and plans them, and the top eight valid candidates are shown. For a floating-base policy the cloud is mean-centred and the centroid added back; --pc-offset nudges it. --post-grasp-hand-close-scale rescales the closing motion.
  4. Deploy — the trajectory is streamed phase by phase at the rig's control_hz. The Deploy Until Step slider stops mid-trajectory so you can compare commanded and measured joint positions against the live cloud, then resume.
  5. Release and park — the hand opens in place, then a collision-checked plan returns the arm to the init pose against a table raised by 5 cm. There is no reset afterwards.

--loop keeps cycling; without it, a capture with no valid grasp is an error.

Calibration

The deploy path reads a base-frame camera extrinsic and a camera intrinsic from the shipped calibration files (assets/calib.py, wired into the experiment's renderer.camera_poses_path and camera_intrinsic_path).

Inspect the result with uv run scripts/tools/visualize_camera_extrinsic.py --experiment-name ... (offline) or uv run --extra xarm scripts/deploy/visualize_calib.py (live).

The park plan raises the table by 5 cm because the optimizer otherwise rides the collision margin.

" + } + ] +}, +{ + "name": "Concepts", + "items": [ + { + "id": "concepts-overview", + "nav": "Core Overview", + "h": "Core Overview", + "body": "

How the stages fit together, what flows between them, and where robokit ends and GraspKit begins.

The graph

text
scene descriptions (msgpack)            scripts/stages/scene_desc/*\n        |\n        +---------------------------+\n        |                           |\n   [render_data]              [optimize_grasps]              (sharded: scenes[rank::world_size])\n   Renderer / ManiSkill        WarpGraspOptimizer\n   kinematic replay,           -> GraspTrajBuilder: filters -> (IK convert) -> motion plan\n   point-cloud obs             -> optional in-loop sim eval\n        |                           |\n   rendered_data_path          grasp_output_dir\n   (h5 per scene)              (h5 per scene: pre / grasp / post qpos)\n        +------------+--------------+\n                     |\n            [process_sim_data]  -> processed_data_path (obs + actions per scene)\n                     |\n                  [train]  GraspDataset -> Trainer (DDP through torchrun)\n                     |\n          logs/train/<name>/checkpoints/*.pt

scripts/launch.py dispatches these by name; the order is whatever ExperimentConfig.steps lists, by default render_data, optimize_grasps, process_sim_data, train. A fifth step, sample_point_cloud, exists for object-only clouds but no shipped experiment uses it.

Stages

StageInOutConfig
optimize_graspsscene descriptionsgrasp h5 (pre/grasp/post qpos)GraspOptimConfig, GraspTrajBuilderConfig
render_datascene descriptionsrendered h5 (point clouds, segmentation, camera poses)RendererConfig
process_sim_datarendered h5 + grasp h5processed h5 (obs joined to actions)ExperimentConfig
trainprocessed h5checkpointsTrainerConfig, DatasetConfig, GraspPolicyConfig

Grasp optimization is the compound stage: it optimizes, then filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally IK-converts floating grasps onto an arm, plans a trajectory, and keeps only what a physics evaluator accepts.

Resuming and sharding

Each stage writes a completion marker (.optim_complete, .render_complete, .process_sim_data_complete, .train_complete) and skips itself when the marker exists. With multiple ranks the marker is written per rank and promoted once every rank is done; s3:// outputs get no marker. --restart-from <step> deletes the marker and outputs for that step and everything downstream, --append keeps the output and deletes only the marker. Grasp optimization additionally resumes per scene: it re-runs scenes whose output is smaller than min_grasps_threshold.

Only grasp optimization uses every GPU, one process per card with scenes striped across ranks; non-zero ranks sleep 20 s so rank 0 compiles the Warp kernels first. Rendering and processing pin to the first GPU, and training goes through torchrun.

Artifacts

GraspKitData is the tensor payload that crosses stages, in a padded (B, K, ...) or packed (N, ...) layout, saved as HDF5. Scene descriptions are msgpack with a train/test split. The processed file holds data/<scene>/obs, data/<scene>/actions and meta/action_{mean,std}; the trainer consumes it through GraspDataset.

Floating base versus fixed base

RobotConfig.base_type decides the action layout: a floating hand prepends six base DOFs, baked as [xyz, euler_rxyz, hand joints]. A floating hand is always optimized with the floating-base sampler, and the Levenberg-Marquardt backend is floating-only. Setting GraspTrajBuilderConfig.convert_to_fixed filters those grasps and IK-converts them onto an arm before planning; inside grasp optimization the conversion is always off, so the planner plans for the robot being optimized.

robokit versus GraspKit

robokit supplies the cost terms, optimizers, contact sampling, warp scenes, SDF baking, the robot model and the motion planner. GraspKit owns the energy assembly, the init samplers, the grasp filters, the scene-description adapter, the renderer, the datasets, the policy and the trainer. Code graduates to robokit only when a second consumer exists.

" + }, + { + "id": "grasp-optim-backends", + "nav": "Grasp Optimization Backends", + "h": "Grasp Optimization Algorithms: warp_gd and warp_lm", + "body": "

How the two grasp-optimizer backends work and when to use which. For running the stage see the grasp_optim tutorial; for every parameter see the grasp optimization API.

The problem

Grasp synthesis is energy minimization over a batch of grasps. Each grasp optimizes

The energy is a weighted sum of residual terms (robokit terms.dense.*):

TermPulls toward
DistanceTaskactive contact points on the object surface
ForceClosureTaskcontact normals that balance external wrenches (stability)
SceneCollisionTaskhand collision spheres out of the scene (object + table)
SelfCollisionTasklinks out of each other
PositionLimitjoints inside their limits
FingertipDistanceTask (optional)fingertip spheres onto the surface
HandUpAngleTask (optional)hand-up axis at least angle_z_min from world +z

Both backends share this formulation, the init samplers, and the Warp scene geometry (SDF volumes / mesh BVHs). The energy is highly non-convex and the contact assignment is discrete, so plain gradient descent gets stuck; each backend has its own escape mechanism.

warp_gd: simulated-annealing gradient descent

WarpGraspOptimizer (warp_optimizer.py, backend warp_gd) runs each grasp as an independent annealing chain for num_iters (~10k) iterations, DexGraspNet-style. One iteration:

  1. RMSprop step on the continuous variables; step size decays over time, joints are clamped to limits.
  2. With probability switch_possibility, propose a re-drawn contact set.
  3. Evaluate the proposal's energy and gradient.
  4. Metropolis accept: lower energy always wins; worse by d is accepted with probability exp(-d / T), where the temperature T cools over time. Rejected grasps roll back.

High T early lets grasps explore pose and contact assignment jointly; as T cools the chain settles into a low-energy basin. The whole iteration is captured as one CUDA graph, so the long loop has almost no launch overhead. Works for floating and fixed-base robots alike, which makes it the default backend.

warp_lm: multi-seed Levenberg-Marquardt

WarpGraspOptimizer (backend warp_lm) treats the same energy as nonlinear least squares and applies robokit's LMOptimizer: curvature-aware steps converge in tens of iterations instead of thousands. A single LM run is purely local, so exploration comes from:

warp_lm supports floating bases only. To target an arm+hand robot, set enable_ik_scoring=True: inits are pre-filtered by arm-IK reachability against the fixed-base robot and final seeds are ranked by energy + reachability penalty, so the grasps GraspTrajBuilder later IK-converts onto the arm are actually reachable.

Choosing a backend

warp_gdwarp_lm
MethodRMSprop + simulated annealingmulti-seed Levenberg-Marquardt
ExplorationMetropolis accept over pose + contacts24 seeds + periodic contact resampling
Iterations~10000 first-order steps64 curvature-aware steps
Speedbaselinetypically 2-3x faster
Robotsfloating and fixed basefloating base only (enable_ik_scoring bridges to arms)

Rule of thumb: warp_gd for fixed-base robots or when maximum exploration matters; warp_lm for floating-hand throughput, with enable_ik_scoring if the grasps will be converted to an arm. Both are compared in scripts/benchmark/grasp_opt/bench_grasp_optim.py.

" + }, + { + "id": "concepts-sim", + "nav": "Simulation", + "h": "Simulation", + "body": "

GraspKit uses two physics backends behind one interface: ManiSkill (GPU, batched, full rollouts) and MuJoCo (CPU, grasp-pose scoring). A third path, the renderer, uses the ManiSkill scene without stepping physics at all.

One interface

BaseEnv fixes the contract: reset, get_qpos, step_qpos, get_info, get_rgb, get_pointcloud, evaluate, close, with evaluate returning per-grasp success and, when asked, Rollout records (qpos, obj_pose, scene_id, success, grasp_index).

build_env picks the implementation: MjEnv when EnvConfig.mj_env_config is set, otherwise MsEnv; RealEnv is imported lazily so the sim path never needs the hardware extras. MjEnv implements only evaluate — it scores grasps offline and raises on the interactive methods. RealEnv is the mirror image: it drives hardware but has no ground truth, so evaluate raises.

ManiSkill

The env is registered as DexGrasp. A scene description becomes actors grouped by mesh and scale, built in sorted order because PhysX contact outcomes depend on insertion order, with mass forced to object_mass and a merged target actor per scene. A table is added unless floating_object is set, which also disables gravity on the object. Success is \"strictly grasped and lifted past target_lift_dist\", or grasp-only for a floating object; grasping itself means at least two contact links pushing with more than half a newton.

Floating hands can be driven two ways:

Joint order differs between ManiSkill's observation order (robot.active_joints) and its action order (controller.joints); reindex_utils converts in both directions, and picking the wrong one silently scrambles a bimanual robot.

Agent uids follow the robot config name, with _floating_base appended for floating hands. The env lists the 21 supported uids.

MuJoCo

MjDexGraspEnv builds a model with MjSpec: the hand's MJCF, a table box that collides with the object but never the hand, and the object as convex pieces added in a fixed order because MuJoCo sums geom inertia in that order. Gravity is disabled; a downward wrench stands in for it. Density is rescaled so the object weighs obj_mass.

Two protocols:

Both bail out immediately when the initial pose is already penetrating past max_pene. Beyond success, the evaluator reports hand-object and self penetration, contact count, contact distance and consistency. A HandSpec adapts a hand: its MJCF path, whether it is mocap-driven, finger prefixes, the bodies that count as contact and fingertips, and — for fixed-base rigs — which body to lift and which joints the IK may move.

MuJoCo is CPU-only and not thread-safe, so MjEnv runs a spawned pool of up to 48 workers, one evaluator each. Spawn, not fork: forking a CUDA-initialized parent deadlocks.

The renderer

mani_skill/renderer.py (build_renderer) makes its own DexGrasp env with num_envs environments and a point-cloud observation mode, then never steps physics: it writes qpos and object poses, flushes the GPU kinematics, and reads observations. Batching is over (scene, view) pairs. Segmentation ids select what survives (extract_segments wins over remove_segments), and points are cropped either in the camera frame or in the world frame offset by each scene's table position. MsEnv.get_pointcloud replicates that crop exactly, so deployment clouds match the training distribution.

Choosing a backend

ManiSkillMuJoCo
HardwareGPU, batchedCPU, process pool
ScoresFull approach → grasp → lift rollouts, with perturbation forcesA grasp pose: force closure or a lift
GivesSuccess, observations, RGB and point cloudsSuccess plus penetration and contact metrics
RobotsThe 21 agents with ManiSkill uidsAny hand with an MJCF HandSpec

Hands with no ManiSkill agent (menagerie Shadow, the _mj xArm+XHand and Vega+Sharpa rigs) can only be validated in MuJoCo, which is why several experiments use it as their in-loop grasp filter.

" + }, + { + "id": "concepts-policies", + "nav": "Models and Policies", + "h": "Models and Policies", + "body": "

GraspPolicy in src/graspkit/models/grasp_policy.py maps an observation to a grasp: three hand poses (pre-grasp, grasp, post-grasp) that the trajectory builder turns into an executable motion.

Open and closed loop use the same policy. The execution controller decides when to observe and predict again; the benchmark's closed-loop mode refreshes the observation and replans at step 75.

The policy selects CVAE from models/cvae.py or FlowMatching from models/flow_matching.py using generative_model (cvae, flow, flow_transformer). Both generators expose forward, decode and sample; access the selected component as policy.generator. No shared base class is needed.

Saved configuration field names and the checkpoint's cvae.* parameter keys are unchanged. The policy registers its generator under that historical checkpoint name, while callers use generator. Existing state dictionaries load strictly without migration. Imports use GraspPolicy, GraspPolicyConfig and build_grasp_policy; the training CLI subcommand is agent:grasp_policy_config.

The CVAE

text
point cloud (B, N, 3)\n   -> [yaw canonicalization / augmentation] -> [centering] -> vision encoder (SpUNet or PointNet)\n        |                                            |\n        | global feature                             | per-point features\n        |                                            +-> objectness head  (target vs background)\n        |                                            +-> graspness head   (where to grasp)\n        v\n   CVAE encoder (training: ground-truth actions) -> z -> decoder -> (B, n, 3, d) actions

d is the hand's joint count for a fixed base; a floating base prepends a translation and a rotation, [xyz, rotation, hand joints], where the rotation is either Euler rxyz or a 6D representation. The three queries are pre-grasp, grasp and post-grasp, in that order.

At inference the encoder is skipped: the graspness head picks the top-k points, and the CVAE decodes a latent per point — the mean latent when use_mean, otherwise a sample scaled by cvae_temperature. With use_mean the diversity comes from the distinct query points, not the latent. grasp_evaluator_guidance_steps instead refines the latent by ascending a frozen grasp evaluator inside a ball of radius grasp_evaluator_guidance_radius.

The vision encoders include a sparse-convolution U-Net (vision_encoder=\"spconv\", the default, voxel size 5 mm), a BN-free PointNet and RGB CNN/ResNet variants. RGB construction and shared training/inference preprocessing live in models/vision_encoder/rgb.py; the policy keeps state/camera conditioning and generator selection. The CVAE is an MLP encoder/decoder over the flattened action vector, conditioned on the vision feature, optionally with a learned prior.

Flow matching uses the same visual conditioning and action representation. Its velocity network is an MLP (flow) or transformer (flow_transformer), trained along a linear noise-to-action path. Sampling integrates eight Euler steps and restores physical joint units using the bank's action mean/std. Flow returns zero latent moments through the shared training interface, so its KL contribution is zero; joint reconstruction uses MSE.

Losses

LossWeight fieldPenalizes
qposqpos_weightL1 on the reconstructed hand joints
tl, rottl_weight, rot_weightL1 on floating-base translation and rotation
klkl_weightPosterior against the standard or learned prior
objectnessobjectness_weightPer-point target-vs-background BCE, positives upweighted
graspnessgraspness_weightKL between predicted and labelled graspness distributions
kinematickinematic_weightMSE between the FK link positions of predicted and ground-truth actions
penetrationpenetration_weightCollision-sphere overlap into the object beyond penetration_threshold, on prior samples
prior_fingertipprior_fingertip_weightDistance of fingertip spheres to the object surface

The last two need scene geometry at training time; the trainer builds it only every penetration_every steps and after penetration_warmup_iters.

Representation flags

Data

GraspDataset reads the processed HDF5: per scene, one rendered view is drawn uniformly per access, points are sampled (object-only or whole scene), and actions are sampled per grasp. With graspness enabled, the per-action best points are placed first and the rest sampled around them. Graspness labels come from the contact extractor's palm-cone weighting during process_sim_data. Fresh flow models use meta/action_mean and meta/action_std to normalize their action space. CVAE training uses raw poses.

Training

AdamW at lr=1e-4, weight decay 1e-4, a 10x step decay two thirds of the way through, DDP when distributed. Every step scans the gradients and skips the update if any rank saw a NaN or Inf. Checkpoints hold {\"agent\": state_dict}; the provenance keys the benchmark expects (experiment, policy_config, training) are added by the packaging scripts. Evaluation is described in Sim deployment.

From prediction to motion

A predicted grasp is not executable on its own. GraspTrajBuilder applies the filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally IK-converts a floating grasp onto an arm with an orientation gate and an arm-range band, and plans the approach, closing, holding and lift segments. The benchmark runs the filters; deployment skips them and relies on the IK gate, since a real capture has no ground-truth object pose.

" + } + ] +}, +{ + "name": "Reference", + "items": [ + { + "id": "ref-robot-hands", + "nav": "Robot and Hand Catalog", + "h": "Robot and Hand Catalog", + "body": "

Every robot is a RobotConfig instance in configs/robot/, registered by name in that package's __init__.py. build_robot_config(name) imports only that module, so only its assets download.

Hands and rigs

NameBaseRigFormatDOF
ability_rightfloatinghandURDF6
allegro_rightfloatinghandURDF16
barrett_rightfloatinghandURDF8
dclaw_rightfloating3-finger gripperURDF9
inspire_rightfloatinghandURDF12
leap_rightfloatinghandURDF16
mano_rightfloatinghandURDF16
orca_rightfloatinghandURDF17
paxini_rightfloatinghandURDF16
schunk_rightfloatinghandURDF9
shadow_right, shadow_right_mjfloatinghandMJCF22
sharpa_right, sharpa_leftfloatinghandURDF22
xhand_right, xhand_right_mjfloatinghandURDF / MJCF12
robotiq_2f85, yam_gripperfloatinggripperURDF1–2 driven
franka_gripperfixedarm + gripperURDF8
xarm6_sharpa_rightfixedarm + handURDF6 + 22
xarm7_ability_rightfixedarm + handURDF7 + 6
xarm7_mano_rightfixedarm + handURDF7 + 16
xarm7_sharpa_rightfixedarm + handURDF7 + 22
xarm7_shadow_rightfixedarm + handMJCF7 + 22
xarm7_xhand_right, xarm7_xhand_right_mjfixedarm + handURDF / MJCF7 + 12
g1_inspire_right, g1_inspire_right_wbcfixedhumanoid + handURDF41 / 33
g1_mano_rightfixedhumanoid + handURDF45
vega_sharpa_right, vega_sharpa_leftfixedhumanoid + handURDFfull body
vega_sharpa_right_mj, vega_sharpa_left_mjfixedhumanoid + handMJCF63

Variants suffixed _side_init and _centered differ only in initial pose or camera framing; _mj variants are the MJCF models used by the MuJoCo evaluator. Not every registered robot has a pipeline: experiments exist for ability, inspire, mano, paxini, sharpa, xhand, the xArm rigs, the G1 rigs, Vega and the MuJoCo Shadow.

What a config carries

Paths to the URDF or MJCF, collision spheres, self-collision ignore list, contact points and contact-avoid points; the base type and initial pose; the link names that name the palm, fingertips, thumb and middle finger; and robokit's EE_COORD_SPEC as ee_coord_spec, with the link it is expressed in as ee_coord_link_name. grasp_robot.hand_coord_spec turns it into palm-forward and fingers-up axes in the hand frame (a gripper's jaws are its palm). Those axes drive the hand-axis cone filter and the init sampler, so a wrong spec shows up as grasps approaching from the wrong side; tests/test_robot_coord_specs.py checks every config's axes against its fingertips and its sampled inits.

Contacts come either from a contact-points file or from a contact_candidates_config that samples per link; scripts/tools/create_contact_points.py authors the former.

ManiSkill agents

Simulation needs a ManiSkill agent per robot, in mani_skill/agents/. The uid is the robot config name, with _floating_base appended for floating hands — xhand_right_floating_base, vega_sharpa_right. Agents load sim-specific URDFs (floating-base, mimic-free variants) rather than the config's own path, and compose a controller: the six virtual base joints plus a position controller for the fingers. A robot with no hand-written agent (dclaw, orca, paxini, the grippers, every assembled rig) gets one from mani_skill/agents/config_agent.py: register_config_agent builds it from the robot config, writing a mimic-free sim URDF (plus the six virtual base joints for a floating hand) under ~/.graspkit/data/sim_urdf/<revision>. The _mj rigs are MuJoCo-only.

Adding a hand

  1. Write configs/robot/<hand>.py: one RobotConfig pointing at the robokit asset symbols.
  2. Register it in configs/robot/__init__.py.
  3. Add a ManiSkill agent in mani_skill/agents/<hand>.py and import it in mani_skill/__init__.py.
  4. Author contact points if the hand needs them.
  5. Optionally add it to EES in robokit's assets/robots/assembly/composed.py so it can be mounted on any arm, and to the gallery's hand list.
  6. Add an experiment config when you want a pipeline for it.

configs/robot/schunk.py plus mani_skill/agents/schunk.py is the smallest complete example.

Assembled rigs

robokit's assets/robots/assembly/composed.py assembles any of seven bases (YAM, xArm7, xArm6, Franka, UR5e, G1, Vega) with any of fourteen end effectors, merging collision spheres and computing the mount transform from the two mount specs, on demand under ~/.robokit/assembly/<revision>. utils/assembly_utils.py adds each base's scene placement and rest pose; its configs are what the gallery's arm dropdown offers. A base+ee name is always assembled, even where a hand-written config shares it. uv run python -m graspkit.gallery.grasp_optim --all --gpus ... optimizes every gallery hand floating and jointly on every base, sim-evaluates all of them, and prints the success table.

" + }, + { + "id": "ref-config-system", + "nav": "Config System", + "h": "Config System", + "body": "

All configuration is plain dataclasses in src/graspkit/configs/, parsed with tyro at the CLI. There are no YAML files: experiments are hand-written Python instances, variants are derived with dataclasses.replace, and every field is overridable from the command line. Field docstrings in the source are authoritative; this page covers the structure and entry points.

Layout

Class definitions live in *_config.py; instances live apart from them.

Path (src/graspkit/configs/)Contents
experiment_config.pyExperimentConfig (top level) and all stage sub-configs
experiment/Per-robot experiment instances + name registry (build_experiment_config, cli_experiment)
robot_config.pyRobotConfig
robot/Per-robot RobotConfig instances + name registry (build_robot_config)
grasp_policy_config.pyGraspPolicyConfig
grasp_policy.pyNamed GraspPolicyConfig presets (GRASP_POLICY_CONFIGS)
env_config.pyBackend configs: MsEnvConfig (ManiSkill), MjEvalConfig + HandSpec (MuJoCo), IsaacEnvConfig; the task is EnvConfig
mj_hand.pyMuJoCo HandSpec instances (SHADOW_HAND, XHAND, ...)
real_env_config.pyRealEnvConfig
real_env.pyRealEnvConfig hardware presets for RealEnv (REAL_ENV_CONFIGS; needs the xarm extra)

ExperimentConfig

ExperimentConfig (experiment_config.py) is the single config for the whole pipeline (launch.py and every stage script). Sub-configs hold hand-independent algorithm/runtime params; all paths, robot configs, and pipeline control live at the top level.

FieldTypeRole
namestrExperiment name (required)
robot_configRobotConfigRobot that grasp optimization and training target (the floating hand in the standard pipeline)
traj_builderGraspTrajBuilderConfigFloating/fixed robot pair, convert_to_fixed decision, grasp filters, and the builder's MotionPlannerConfig
grasp_optimGraspOptimConfigOptimizer backend, energy weights, init sampler, in-loop evaluator: see grasp_optim tutorial
rendererRendererConfigPoint-cloud rendering: env, cameras (calibrated extrinsic/intrinsic paths), crop/downsample
trainerTrainerConfigTraining loop: batch size, iters, eval EnvConfig, wandb
datasetDatasetConfigDataset loading (num actions/points, graspness)
agentGraspPolicyConfigModel architecture/loss preset: see training tutorial
scene_description_path, grasp_output_dir, rendered_data_path, processed_data_path, ...strAll experiment-specific paths (usually under DATA_ROOT)
steps, restart_from, append, gpus, num_gpus, seed-Pipeline control for launch.py
" + }, + { + "id": "ref-data-format", + "nav": "Data Format Specification", + "h": "Data Format Specification", + "body": "

Grasp Poses

Per-scene files

One HDF5 file per scene:

Where:

Merged file

", + "sub": "Data" + }, + { + "id": "ref-assets", + "nav": "graspkit assets", + "h": "graspkit assets", + "body": "

graspkit's own assets (scene descriptions, object-mesh datasets) live in the HF dataset openrobokit/graspkit. Robot assets (URDFs, spheres, contact points, self-collision ignores) live in robokit's dataset and are consumed via modules such as robokit.assets.robots.end_effectors.sharpa_hand. import graspkit downloads nothing. A robot module fetches its subtree into ~/.robokit/assets/<pinned-commit>/; graspkit assets use ~/.graspkit/assets/<graspkit.assets.REVISION>/, fetched by the same robokit.assets.fetch.

RobotConfig.self_collision_ignore_path points to one robot's ignore YAML. Files named *.sphere.yml and *.capsule.yml select the sibling matching the term's representation. Grasp optimization defaults to spheres; select spen_representation=\"capsule\" for capsule terms. Motion planning and sphere filters always select sphere ignores. An enabled term warns at construction if its matching file is unavailable; an invalid supplied path still raises. Runtime assemblies have no ignore path unless one is supplied on their resulting config.

Layout

text
calib/                 # per-rig camera extrinsics/intrinsics + joint offsets\ndata/scene_description/ # per-task scene msgpacks (dex1b/, ...)\ndata/object_data/       # mesh archives (dex_diffuser*, dexgraspnet, objaverse_dex1b_v2),\n                        #   extracted at import; dexgraspnet_official_splits/ = train/test lists

~/.graspkit/: assets/ = fetched HF files (what code reads), hf_cache/ = HF blobs; data/+logs/ = pipeline output (S3-backed, not assets). data/logs live under home (not the repo), so graspkit works as a library too; graspkit.link() symlinks them into your checkout for browsing.

Consuming

python
from graspkit.assets import calib\nfrom graspkit.assets.scene_descriptions import dex1b_v0_4\nfrom graspkit.assets.objects import dex_diffuser\n\ndex1b_v0_4.FLOATING_MINI_PATH                       # importing fetches only v0.4\ndex_diffuser.DATA_DIR / \"processed/ycb\"             # importing fetches + extracts the archive\ncalib.calib_file(\"xarm/26-06-21-camera_pose.json\")  # fetches calib/, returns a Path

Configs/experiments resolve by name, importing only what's needed (so only its assets download):

python
from graspkit.configs.robot import build_robot_config\nfrom graspkit.configs.experiment import build_experiment_config\n\nbuild_robot_config(\"sharpa_right\")                       # downloads only sharpa_right's robot assets\nbuild_experiment_config(\"sharpa_right_dex1b_v0_4_mini_floating\")

Authoring

The dataset is too large to clone, so there's no local git checkout. Upload directly through the HF API (uploads only new xet chunks; no git or git-xet plugin needed):

shell
uv run scripts/tools/upload_to_hf.py data/scene_description/dex1b/v0.4/x.msgpack

It pushes the file/dir to the same repo-relative path (upload_file/upload_folder). Then expose it: add a module/symbol under src/graspkit/assets/scene_descriptions/ or objects/ (eager _DIR = fetch([...], REVISION, HF_REPO_ID, GRASPKIT_HOME) + typed Path symbols), keeping the data/ layout above, and bump graspkit.assets.REVISION to the new dataset commit.

To pull only a subset back, fetch with a pattern (or snapshot_download(allow_patterns=[...])): never the whole repo.

Robot assets are authored in robokit's (small) dataset via its own git-xet checkout: see robokit.

", + "sub": "Data" + }, + { + "id": "ref-scene-descriptions", + "nav": "Dex1B Scene Descriptions", + "h": "Dex1B Scene Descriptions", + "body": "

Dex1B scene descriptions under scene_description/dex1b/<version>/, hosted on HuggingFace (openrobokit/graspkit) and generated by the scripts in scripts/stages/scene_desc/.

v0.5

All families read the same canonicals. Train is dexgraspnet (in-distribution); test mixes in dexdiffuser (egad, kit, contactdb, ycb) as a held-out object family, with per-source counts pinned via merge_scene_description.py's subsample.

TiertraintestSources
dev10030YCB only (train & test)
mini5k500train dexgraspnet 684×5; test 300 dexgraspnet test-split + 200 dexdiffuser
small50k2ktrain dexgraspnet 4302×5; test dexgraspnet test-split + dexdiffuser

Families have identical counts/sources (same canonicals, different table). Scales: dexgraspnet [0.06, 0.08, 0.1, 0.12, 0.15], dexdiffuser 1.0. Pipeline: meshes → canonical drop → tabletop randomization, merged with merge_scene_description.py.

", + "sub": "Data" + }, + { + "id": "api-grasp-optim", + "nav": "Grasp Optimization", + "h": "Grasp Optimization", + "body": "
", + "sub": "API", + "api": { + "graspkit.stages.grasp_optim.WarpGraspOptimizer": { + "kind": "class", + "name": "WarpGraspOptimizer", + "module": "graspkit.stages.grasp_optim", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_optim/warp_optimizer.py#L118", + "anchor": "warpgraspoptimizer", + "doc": "

Batched Warp grasp optimizer: samples init grasps per scene, then runs GraspOptimConfig.optimizer_backend.

", + "params": [ + { + "name": "cfg", + "type": "GraspOptimConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "fixed_base_robot_config", + "type": "Optional[RobotConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "ik_oversample_ratio", + "type": "int", + "default": "16", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "last_snapshots", + "signature": "last_snapshots: Optional[torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_optim/warp_optimizer.py#L153", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "optimize", + "signature": "optimize(scene_descriptions: List[SceneDescription], num_samples_per_scene: int, record: bool = False) -> torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_optim/warp_optimizer.py#L226", + "doc": "

Optimize grasps for each scene; returns (n_scene, num_samples_per_scene, dof) grasp variables.

", + "params": [ + { + "name": "scene_descriptions", + "type": "List[SceneDescription]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_samples_per_scene", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "record", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "torch.Tensor", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_costs", + "signature": "compute_costs(scene_descriptions: List[SceneDescription], grasps: torch.Tensor) -> Dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_optim/warp_optimizer.py#L342", + "doc": "

Per-term 0.5·Σr² cost of (n_scene, n, dof) grasps, with contacts re-picked nearest the object.

", + "params": [ + { + "name": "scene_descriptions", + "type": "List[SceneDescription]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "grasps", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[str, torch.Tensor]", + "doc": "" + } + } + ] + }, + "graspkit.stages.grasp_optim.GraspOptimConfig": { + "kind": "class", + "name": "GraspOptimConfig", + "module": "graspkit.stages.grasp_optim", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L13", + "anchor": "graspoptimconfig", + "doc": "

Grasp optimizer algorithm and runtime parameters, with hand-independent defaults.

The config of the optimize_grasps stage (ExperimentConfig.grasp_optim); every field is a CLI flag, e.g. --grasp_optim.num_iters 2000. The annealing fields drive warp_gd only and the lm_* fields warp_lm only. The init-sampler fields feed stages/grasp_optim/sampler.py; the runtime fields feed optimize_pipeline.py, not a bare optimize() call.

", + "params": [ + { + "name": "num_iters", + "type": "int", + "default": "6000", + "required": false, + "doc": "" + }, + { + "name": "num_contact_points", + "type": "int", + "default": "4", + "required": false, + "doc": "" + }, + { + "name": "switch_possibility", + "type": "float", + "default": "0.5", + "required": false, + "doc": "" + }, + { + "name": "mu", + "type": "float", + "default": "0.98", + "required": false, + "doc": "" + }, + { + "name": "step_size", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "stepsize_period", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "starting_temperature", + "type": "float", + "default": "18.0", + "required": false, + "doc": "" + }, + { + "name": "annealing_period", + "type": "int", + "default": "30", + "required": false, + "doc": "" + }, + { + "name": "temperature_decay", + "type": "float", + "default": "0.95", + "required": false, + "doc": "" + }, + { + "name": "spen_threshold", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "spen_representation", + "type": "Literal['capsule', 'sphere']", + "default": "'sphere'", + "required": false, + "doc": "" + }, + { + "name": "w_fc", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "w_dis", + "type": "float", + "default": "100.0", + "required": false, + "doc": "" + }, + { + "name": "w_fingertip_dis", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "w_pen", + "type": "float", + "default": "100.0", + "required": false, + "doc": "" + }, + { + "name": "w_spen", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "w_joints", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "w_angle_z", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "angle_z_min", + "type": "float", + "default": "math.pi / 2", + "required": false, + "doc": "" + }, + { + "name": "hand_axis", + "type": "Optional[HandAxis]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "hand_axis_target", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 1.0)", + "required": false, + "doc": "" + }, + { + "name": "filter_hand_axis_max_angle_deg", + "type": "float", + "default": "30.0", + "required": false, + "doc": "" + }, + { + "name": "optimizer_backend", + "type": "Literal['warp_gd', 'warp_lm']", + "default": "'warp_gd'", + "required": false, + "doc": "" + }, + { + "name": "scene_geom_backend", + "type": "Literal['mesh', 'sdf_volume']", + "default": "'sdf_volume'", + "required": false, + "doc": "" + }, + { + "name": "sdf_bake_padding", + "type": "float", + "default": "0.25", + "required": false, + "doc": "" + }, + { + "name": "sdf_resolution", + "type": "int", + "default": "64", + "required": false, + "doc": "" + }, + { + "name": "sdf_voxel_size", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "use_link_bounding_sphere_filter", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "lm_w_pen", + "type": "float", + "default": "150.0", + "required": false, + "doc": "" + }, + { + "name": "lm_w_joints", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "lm_w_fingertip_dis", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "lm_collision_margin", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "lm_residual_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "lm_base_step_scale", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "lm_init_sample_range_q", + "type": "float", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "lm_init_sample_range_base", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "enable_ik_scoring", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "evaluator", + "type": "Optional[EnvConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "sampler_type", + "type": "Literal['fixed_base', 'wbc', 'floating_base']", + "default": "'fixed_base'", + "required": false, + "doc": "" + }, + { + "name": "distance_lower", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "distance_upper", + "type": "float", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "front_theta_lower", + "type": "float", + "default": "-math.pi / 2", + "required": false, + "doc": "" + }, + { + "name": "front_theta_upper", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "side_theta_lower", + "type": "float", + "default": "-math.pi / 18", + "required": false, + "doc": "" + }, + { + "name": "side_theta_upper", + "type": "float", + "default": "math.pi / 18", + "required": false, + "doc": "" + }, + { + "name": "hand_qpos_jitter_strength", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "hand_qpos_mu", + "type": "Optional[Tuple[float, ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_ik_position_tolerance", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "init_ik_orientation_tolerance", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "init_ik_prefer_rest", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "init_rest_pose_max_dist", + "type": "float", + "default": "3.0", + "required": false, + "doc": "" + }, + { + "name": "init_num_ik_candidates_per_sample", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "init_num_points_per_sample", + "type": "int", + "default": "1000", + "required": false, + "doc": "" + }, + { + "name": "init_ik_batch_size", + "type": "int", + "default": "512", + "required": false, + "doc": "" + }, + { + "name": "num_samples_per_scene", + "type": "int", + "default": "64", + "required": false, + "doc": "" + }, + { + "name": "num_scenes_per_batch", + "type": "int", + "default": "16", + "required": false, + "doc": "" + }, + { + "name": "min_grasps_threshold", + "type": "int", + "default": "16", + "required": false, + "doc": "" + }, + { + "name": "num_attempts", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "max_scenes", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "save_labels", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "num_iters", + "signature": "num_iters: int = 6000", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L24", + "doc": "

Annealing iterations (warp_gd). Each replays one CUDA graph; fewer trade grasp quality for speed, and 2000 suits smoke tests.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_contact_points", + "signature": "num_contact_points: int = 4", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L27", + "doc": "

Active contact points per grasp, drawn from the robot's contact candidates; they parameterize the distance and force-closure terms. 4-5 fits most five-finger hands.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "switch_possibility", + "signature": "switch_possibility: float = 0.5", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L30", + "doc": "

Per-grasp probability, each iteration, of re-drawing the whole contact set; the Metropolis test accepts or rejects it together with the pose step.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mu", + "signature": "mu: float = 0.98", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L33", + "doc": "

RMSprop weight on the current squared gradient, ema = mu * g^2 + (1 - mu) * ema. Near 1 the step approaches the gradient's sign times step_size.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "step_size", + "signature": "step_size: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L36", + "doc": "

Base RMSprop step; the effective step is step_size * temperature_decay^(t // stepsize_period).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stepsize_period", + "signature": "stepsize_period: int = 50", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L38", + "doc": "

Iterations between step-size decays.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "starting_temperature", + "signature": "starting_temperature: float = 18.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L40", + "doc": "

Initial Metropolis temperature T: a proposal that worsens the energy by d is still accepted with probability exp(-d / T).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "annealing_period", + "signature": "annealing_period: int = 30", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L43", + "doc": "

Iterations per temperature decay, T = starting_temperature * temperature_decay^(t // annealing_period).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "temperature_decay", + "signature": "temperature_decay: float = 0.95", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L45", + "doc": "

Decay factor shared by the temperature and step-size schedules; closer to 1 cools slower and explores more.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "spen_threshold", + "signature": "spen_threshold: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L47", + "doc": "

Self-collision margin (m) between sphere/capsule pairs; 2 cm pinned the middle finger of most hands off the object.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "spen_representation", + "signature": "spen_representation: Literal['capsule', 'sphere'] = 'sphere'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L49", + "doc": "

Self-collision geometry for warp_gd: per-link capsules or the collision spheres. warp_lm always uses capsules.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_fc", + "signature": "w_fc: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L52", + "doc": "

Force-closure weight: the active contact normals must balance external wrenches. A zero weight disables any term.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_dis", + "signature": "w_dis: float = 100.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L55", + "doc": "

Weight pulling each active contact point onto the target surface.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_fingertip_dis", + "signature": "w_fingertip_dis: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L57", + "doc": "

Weight of the fingertip term (warp_gd only; requires fingertip links set): each fingertip link's closest collision sphere is drawn onto the object. 0 disables; a hand should touch without it, this is a last resort.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_pen", + "signature": "w_pen: float = 100.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L60", + "doc": "

warp_gd scene-penetration weight: hand collision spheres against the target and table, with a fixed 5 mm margin. warp_lm uses lm_w_pen.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_spen", + "signature": "w_spen: float = 10.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L63", + "doc": "

Self-penetration weight between robot links; zero skips building the term.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_joints", + "signature": "w_joints: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L65", + "doc": "

warp_gd joint-limit weight; q is also clamped to its limits every iteration. warp_lm uses lm_w_joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "w_angle_z", + "signature": "w_angle_z: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L67", + "doc": "

Weight of the hand-orientation prior (HandUpAngleTask, both backends).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "angle_z_min", + "signature": "angle_z_min: float = math.pi / 2", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L69", + "doc": "

Minimum angle between the hand-up axis and world +z; tabletop configs use it to forbid underhand grasps.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_axis", + "signature": "hand_axis: Optional[HandAxis] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L71", + "doc": "

Hand-axis cone filter on init samples: which hand_coord_spec axis to check, after IK for fixed-base samplers. None disables it. The cone on optimized grasps lives on GraspTrajBuilderConfig.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_axis_target", + "signature": "hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L74", + "doc": "

Direction hand_axis should point, in the robot base frame (world for floating hands).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "filter_hand_axis_max_angle_deg", + "signature": "filter_hand_axis_max_angle_deg: float = 30.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L76", + "doc": "

Hand-axis cone half-angle in degrees.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimizer_backend", + "signature": "optimizer_backend: Literal['warp_gd', 'warp_lm'] = 'warp_gd'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L78", + "doc": "

warp_gd: simulated-annealing gradient descent for floating or fixed-base robots. warp_lm: multi-seed Levenberg-Marquardt, floating base only, typically 2-3x faster and needs fingertip links; to target an arm, set enable_ik_scoring and let GraspTrajBuilder IK-convert.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "scene_geom_backend", + "signature": "scene_geom_backend: Literal['mesh', 'sdf_volume'] = 'sdf_volume'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L82", + "doc": "

sdf_volume: a cached SDF of the target mesh plus analytic table boxes; fast, accuracy bounded by voxel size, and the target must be the scene's only mesh. mesh: per-scene BVHs, exact but slower.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sdf_bake_padding", + "signature": "sdf_bake_padding: float = 0.25", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L85", + "doc": "

SDF bake padding, in mesh units (robokit bakes the unscaled mesh and applies scales at query time).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sdf_resolution", + "signature": "sdf_resolution: int = 64", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L87", + "doc": "

Voxel grid resolution along the longest axis when sdf_voxel_size is None.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sdf_voxel_size", + "signature": "sdf_voxel_size: Optional[float] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L89", + "doc": "

Voxel size in mesh units (before scales). None = derive voxel size from sdf_resolution.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_link_bounding_sphere_filter", + "signature": "use_link_bounding_sphere_filter: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L91", + "doc": "

Sphere-level broad-phase skip on the warp scene-collision task. Only for scene_geom_backend=\"sdf_volume\".

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_w_pen", + "signature": "lm_w_pen: float = 150.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L95", + "doc": "

warp_lm counterpart of w_pen: scene-collision term weight (LM raw-residual scale).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_w_joints", + "signature": "lm_w_joints: float = 10.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L97", + "doc": "

warp_lm counterpart of w_joints: position-limit term weight (LM raw-residual scale).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_w_fingertip_dis", + "signature": "lm_w_fingertip_dis: float = 10.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L99", + "doc": "

warp_lm counterpart of w_fingertip_dis: fingertip-distance term weight (LM raw-residual scale).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_collision_margin", + "signature": "lm_collision_margin: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L101", + "doc": "

warp_lm scene-collision margin (meters).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_residual_eps", + "signature": "lm_residual_eps: float = 1e-06", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L103", + "doc": "

warp_lm residual epsilon for distance / position-limit / self-penetration terms.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_base_step_scale", + "signature": "lm_base_step_scale: float = 0.001", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L105", + "doc": "

warp_lm floating-base step relative to the joint step; keeps base updates from overshooting.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_init_sample_range_q", + "signature": "lm_init_sample_range_q: float = 0.2", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L107", + "doc": "

warp_lm per-seed joint half-range: the 24 seeds are the init qpos plus Roberts offsets in [-range, range], clamped to limits.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_init_sample_range_base", + "signature": "lm_init_sample_range_base: float = 0.05", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L110", + "doc": "

warp_lm per-seed base-translation sampling half-range (floating base only).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_ik_scoring", + "signature": "enable_ik_scoring: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L112", + "doc": "

warp_lm floating base only: oversample inits 16x, keep those an arm IK can reach, and rank solutions by energy plus reachability. Use when GraspTrajBuilder will IK-convert onto an arm.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "evaluator", + "signature": "evaluator: Optional[EnvConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L115", + "doc": "

In-loop simulation filter: each optimized batch is rolled out (e.g. with perturbation or a heavy object) and only survivors are saved. None gates on motion-plan success only.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sampler_type", + "signature": "sampler_type: Literal['fixed_base', 'wbc', 'floating_base'] = 'fixed_base'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L120", + "doc": "

fixed_base: look-at poses solved to collision-free arm IK. wbc: world-rooted arms, any azimuth, never from below the table. floating_base: no IK, emits [xyz, euler_rxyz, hand_qpos]; floating optimizers force it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "distance_lower", + "signature": "distance_lower: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L123", + "doc": "

Lower bound (m) of the hand-to-surface standoff, sampled uniformly. Tight bounds are the usual cause of starved init sampling.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "distance_upper", + "signature": "distance_upper: float = 0.2", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L126", + "doc": "

Upper bound (m) of the hand-to-surface standoff.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "front_theta_lower", + "signature": "front_theta_lower: float = -math.pi / 2", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L128", + "doc": "

Lower bound of the roll jitter about the look-at approach axis.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "front_theta_upper", + "signature": "front_theta_upper: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L130", + "doc": "

Upper bound of the roll jitter about the look-at approach axis.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side_theta_lower", + "signature": "side_theta_lower: float = -math.pi / 18", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L132", + "doc": "

Lower bound of the tilt jitter about the two axes perpendicular to the approach.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side_theta_upper", + "signature": "side_theta_upper: float = math.pi / 18", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L134", + "doc": "

Upper bound of the tilt jitter about the two axes perpendicular to the approach.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_qpos_jitter_strength", + "signature": "hand_qpos_jitter_strength: float = 0.05", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L136", + "doc": "

Std of the per-joint Gaussian jitter added to hand_qpos_mu.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_qpos_mu", + "signature": "hand_qpos_mu: Optional[Tuple[float, ...]] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L138", + "doc": "

Mean hand qpos for init sampling, typically half-open; None uses the robot config's init qpos.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_ik_position_tolerance", + "signature": "init_ik_position_tolerance: float = 0.05", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L140", + "doc": "

Position tolerance (m) for the init-time arm IK solve (FixedBaseSampler / WBCSampler).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_ik_orientation_tolerance", + "signature": "init_ik_orientation_tolerance: float = 0.3", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L142", + "doc": "

Orientation tolerance (rad) for that solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_ik_prefer_rest", + "signature": "init_ik_prefer_rest: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L144", + "doc": "

That solve keeps the solution nearest the rest pose; False keeps its best-scoring random seed.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_rest_pose_max_dist", + "signature": "init_rest_pose_max_dist: float = 3.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L146", + "doc": "

Reject init IK solutions whose arm-qpos L2 distance from the rest pose exceeds this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_num_ik_candidates_per_sample", + "signature": "init_num_ik_candidates_per_sample: int = 50", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L148", + "doc": "

IK candidates per requested sample before collision/rest filtering (this × num_samples_per_scene).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_num_points_per_sample", + "signature": "init_num_points_per_sample: int = 1000", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L150", + "doc": "

Empty-space points sampled per requested sample when seeding approach directions.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_ik_batch_size", + "signature": "init_ik_batch_size: int = 512", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L152", + "doc": "

Chunk size of the IK + collision sweep over candidates (memory only).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_samples_per_scene", + "signature": "num_samples_per_scene: int = 64", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L156", + "doc": "

Grasps optimized per scene per attempt.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_scenes_per_batch", + "signature": "num_scenes_per_batch: int = 16", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L158", + "doc": "

Scenes batched into one solve: num_scenes_per_batch * num_samples_per_scene grasps on the GPU.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_grasps_threshold", + "signature": "min_grasps_threshold: int = 16", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L160", + "doc": "

A scene is done once its output holds this many grasps; scenes below it are re-attempted.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_attempts", + "signature": "num_attempts: int = 1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L162", + "doc": "

Top-up passes over unfinished scenes; attempt i runs with seed + i.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_scenes", + "signature": "max_scenes: Optional[int] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L164", + "doc": "

If set, caps scenes processed per attempt (after sort/shuffle/rank slicing). Useful for quick testing.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "save_labels", + "signature": "save_labels: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L166", + "doc": "

Save all candidates and their filter/plan/simulation verdicts to <grasp_output_dir>.labels/.

", + "params": [], + "returns": null + } + ] + }, + "graspkit.stages.grasp_optim.GraspRobot": { + "kind": "class", + "name": "GraspRobot", + "module": "graspkit.stages.grasp_optim", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L40", + "anchor": "grasprobot", + "doc": "

Robot equipped with the grasp-pipeline torch facade and contact-point candidates.

", + "bases": "Robot", + "params": [ + { + "name": "spec", + "type": "RobotSpec", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "config", + "type": "Optional[RobotConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "property", + "base": "", + "name": "actuated_joint_names", + "signature": "actuated_joint_names: list[str]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L49", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "from_config", + "signature": "from_config(config: RobotConfig, base_link_name: Optional[str] = None, ee_link_names: Optional[Union[Tuple[str, ...], str]] = None, load_meshes: bool = False, load_collision_spheres: bool = False, device: Device = 'cpu', prune: bool = True, self_collision_representation: Literal['sphere', 'capsule'] = 'sphere') -> GraspRobot", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L52", + "doc": "

Build (and cache) a GraspRobot from RobotConfig; pruned to ee_link_names, prune=False for the full robot.

", + "params": [ + { + "name": "config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "base_link_name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "ee_link_names", + "type": "Optional[Union[Tuple[str, ...], str]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "load_collision_spheres", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + }, + { + "name": "prune", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "self_collision_representation", + "type": "Literal['sphere', 'capsule']", + "default": "'sphere'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "GraspRobot", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "self_collision_ignored_pairs", + "signature": "self_collision_ignored_pairs(representation: Literal['sphere', 'capsule']) -> Int[np.ndarray, 'pairs 2']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L82", + "doc": "

Load representation-specific pairs against this robot's pruned link names.

", + "params": [ + { + "name": "representation", + "type": "Literal['sphere', 'capsule']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Int[np.ndarray, 'pairs 2']", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "root_pose_7d", + "signature": "root_pose_7d: Float[torch.Tensor, 7]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L92", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "root_pose_mat", + "signature": "root_pose_mat: Float[torch.Tensor, '4 4']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L96", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "actuated_joint_limits_torch", + "signature": "actuated_joint_limits_torch: Float[torch.Tensor, 'num_dofs 2']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L100", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "init_qpos", + "signature": "init_qpos: Float[torch.Tensor, num_dofs]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L104", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "forward_kinematics_torch", + "signature": "forward_kinematics_torch(variables: Float[torch.Tensor, '... num_dofs'], root_poses: Optional[Float[torch.Tensor, '... 4 4']] = None) -> Float[torch.Tensor, '... num_links 4 4']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L112", + "doc": "

Torch FK. Two cases:

  1. floating base: variables packs free qpos (xyz + rxyz or xyz + 6d) then actuated qpos (root_poses must not be provided).
  2. fixed base: variables is just qpos (root_poses optional).
", + "params": [ + { + "name": "variables", + "type": "Float[torch.Tensor, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "root_poses", + "type": "Optional[Float[torch.Tensor, '... 4 4']]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_links 4 4']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "inverse_kinematics", + "signature": "inverse_kinematics(target_poses: Float[torch.Tensor, '... 4 4'], init_qpos: Optional[Float[torch.Tensor, '... num_arm_dofs']] = None, position_tolerance: float = 0.05, orientation_tolerance: float = 0.3, init_sample_range: float = 0.5, use_score_rest: bool = False, locked_joint_indices: Optional[Tuple[int, ...]] = None) -> Tuple[Float[torch.Tensor, '... num_arm_dofs'], Bool[torch.Tensor, ...]]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L191", + "doc": "", + "params": [ + { + "name": "target_poses", + "type": "Float[torch.Tensor, '... 4 4']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "init_qpos", + "type": "Optional[Float[torch.Tensor, '... num_arm_dofs']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "position_tolerance", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "orientation_tolerance", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "init_sample_range", + "type": "float", + "default": "0.5", + "required": false, + "doc": "" + }, + { + "name": "use_score_rest", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "locked_joint_indices", + "type": "Optional[Tuple[int, ...]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[Float[torch.Tensor, '... num_arm_dofs'], Bool[torch.Tensor, ...]]", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "arm_joint_indices", + "signature": "arm_joint_indices: torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L286", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "hand_joint_indices", + "signature": "hand_joint_indices: torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L290", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "ignore_joint_indices", + "signature": "ignore_joint_indices: torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L294", + "doc": "

Actuated joints that are neither arm nor hand (complement of arm ∪ hand indices).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "canonical_collision_spheres", + "signature": "canonical_collision_spheres: Tuple[torch.Tensor, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L303", + "doc": "

Link-local collision spheres from collision_spheres_path: (num_spheres,4) centers+radius, link indices.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_collision_spheres", + "signature": "get_collision_spheres(link_poses: Float[torch.Tensor, '... num_links 4 4']) -> Float[torch.Tensor, '... num_spheres 4']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L318", + "doc": "", + "params": [ + { + "name": "link_poses", + "type": "Float[torch.Tensor, '... num_links 4 4']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_spheres 4']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_contact_points", + "signature": "get_contact_points(link_poses: Float[torch.Tensor, '... num_links 4 4'], contact_point_indices: Int[torch.Tensor, '... num_contact_points']) -> Float[torch.Tensor, '... num_contact_points 3']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L328", + "doc": "", + "params": [ + { + "name": "link_poses", + "type": "Float[torch.Tensor, '... num_links 4 4']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "contact_point_indices", + "type": "Int[torch.Tensor, '... num_contact_points']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_contact_points 3']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_contact_candidates", + "signature": "get_contact_candidates(config: RobotConfig, device: Device = 'cpu') -> Tuple[torch.Tensor, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/robot/grasp_robot.py#L339", + "doc": "

Canonical contact candidates: (N,3) link-local centers, (N,) link indices in the chain robot's link order.

", + "params": [ + { + "name": "config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[torch.Tensor, torch.Tensor]", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-scene", + "nav": "Scene", + "h": "Scene", + "body": "
", + "sub": "API", + "api": { + "graspkit.scene.scene_description.SceneDescription": { + "kind": "class", + "name": "SceneDescription", + "module": "graspkit.scene.scene_description", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L61", + "anchor": "scenedescription", + "doc": "

Per-scene geometry with a scene id and a manipulation-target actor id.

", + "params": [ + { + "name": "scene_id", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "target_actor_id", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "boxes", + "type": "Dict[str, BoxDescription]", + "default": "dict()", + "required": false, + "doc": "" + }, + { + "name": "meshes", + "type": "Dict[str, MeshDescription]", + "default": "dict()", + "required": false, + "doc": "" + }, + { + "name": "floating_scene_id", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "canonical_tabletop_scene_id", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "scene_id", + "signature": "scene_id: str = ''", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L65", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_actor_id", + "signature": "target_actor_id: str = ''", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L66", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "boxes", + "signature": "boxes: Dict[str, BoxDescription] = field(default_factory=dict)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L67", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "meshes", + "signature": "meshes: Dict[str, MeshDescription] = field(default_factory=dict)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L68", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "floating_scene_id", + "signature": "floating_scene_id: Optional[str] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L69", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "canonical_tabletop_scene_id", + "signature": "canonical_tabletop_scene_id: Optional[str] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L70", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "load_scene_descriptions_msgpack", + "signature": "load_scene_descriptions_msgpack(msgpack_path: str, return_splits: bool = False) -> Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L72", + "doc": "", + "params": [ + { + "name": "msgpack_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "return_splits", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "save_scene_descriptions_msgpack", + "signature": "save_scene_descriptions_msgpack(scene_descriptions: Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]], msgpack_path: str) -> None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L81", + "doc": "", + "params": [ + { + "name": "scene_descriptions", + "type": "Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "msgpack_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "graspkit.scene.scene_description.MeshDescription": { + "kind": "class", + "name": "MeshDescription", + "module": "graspkit.scene.scene_description", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L26", + "anchor": "meshdescription", + "doc": "

Triangle mesh with actor id, optional visual-mesh path, and cached bounds.

", + "params": [ + { + "name": "actor_id", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "collision_mesh_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scales", + "type": "Tuple[float, float, float]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "position", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "quaternion", + "type": "Tuple[float, float, float, float]", + "default": "(1.0, 0.0, 0.0, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "visual_mesh_path", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "bounds", + "type": "Optional[Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "actor_id", + "signature": "actor_id: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L30", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_mesh_path", + "signature": "collision_mesh_path: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L31", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "scales", + "signature": "scales: Tuple[float, float, float]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L32", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "position", + "signature": "position: Tuple[float, float, float] = (0.0, 0.0, 0.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L33", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "quaternion", + "signature": "quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L34", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "visual_mesh_path", + "signature": "visual_mesh_path: Optional[str] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L35", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "bounds", + "signature": "bounds: Optional[Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L36", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_visual_mesh_path", + "signature": "get_visual_mesh_path() -> str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L38", + "doc": "

Return the visual mesh path, falling back to the collision mesh.

python
>>> MeshDescription(\"o\", \"c.obj\", (1.0, 1.0, 1.0)).get_visual_mesh_path()\n'c.obj'\n>>> MeshDescription(\"o\", \"c.obj\", (1.0, 1.0, 1.0), visual_mesh_path=\"v.obj\").get_visual_mesh_path()\n'v.obj'
", + "params": [], + "returns": { + "type": "str", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_bounds", + "signature": "get_bounds() -> Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L48", + "doc": "", + "params": [], + "returns": { + "type": "Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]", + "doc": "" + } + } + ] + }, + "graspkit.scene.scene_description.BoxDescription": { + "kind": "class", + "name": "BoxDescription", + "module": "graspkit.scene.scene_description", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L16", + "anchor": "boxdescription", + "doc": "

Box primitive, usually for static elements like tables.

", + "params": [ + { + "name": "actor_id", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "size", + "type": "Tuple[float, float, float]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "position", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "quaternion", + "type": "Tuple[float, float, float, float]", + "default": "(1.0, 0.0, 0.0, 0.0)", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "actor_id", + "signature": "actor_id: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "size", + "signature": "size: Tuple[float, float, float]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L21", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "position", + "signature": "position: Tuple[float, float, float] = (0.0, 0.0, 0.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L22", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "quaternion", + "signature": "quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_description.py#L23", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "graspkit.scene.scene_geom.SceneGeom": { + "kind": "class", + "name": "SceneGeom", + "module": "graspkit.scene.scene_geom", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L17", + "anchor": "scenegeom", + "doc": "

Per-scene mesh-backed WarpScenes for grasp / motion optimizers.

", + "params": [ + { + "name": "scene_descriptions", + "type": "List[SceneDescription]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "property", + "base": "", + "name": "target_scene", + "signature": "target_scene: WarpScene", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L34", + "doc": "

The target mesh of each scene (none for a table-only scene); built lazily on first access.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(scene_descriptions: List[SceneDescription]) -> None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L47", + "doc": "

Update geometry in place for a scene batch with the same layout; captured pointers stay valid.

", + "params": [ + { + "name": "scene_descriptions", + "type": "List[SceneDescription]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "build_collision_scene_in_base", + "signature": "build_collision_scene_in_base(T_world_robot: np.ndarray) -> WarpScene", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L87", + "doc": "

One `WarpScene (mesh+box) for MotionPlanner.plan()`, in robot base frame (FK is base-relative).

", + "params": [ + { + "name": "T_world_robot", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "WarpScene", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "query_target_object_signed_distances", + "signature": "query_target_object_signed_distances(query_points: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L94", + "doc": "

Differentiable per-scene target-object SDF (single mesh -> diff path).

", + "params": [ + { + "name": "query_points", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "query_scene_signed_distances", + "signature": "query_scene_signed_distances(query_points: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L100", + "doc": "

Full-scene SDF (meshes+primitives), differentiable; drives penetration gradient in motion/grasp-GD.

", + "params": [ + { + "name": "query_points", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solver_scenes", + "signature": "solver_scenes(backend: Literal['mesh', 'sdf_volume'], sdf_bake_padding: float = 0.25, sdf_resolution: int = 64, sdf_voxel_size: Optional[float] = None) -> Tuple[WarpScene, WarpScene]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/scene/scene_geom.py#L113", + "doc": "

(target_scene, collision_scene); sdf_volume swaps the target mesh for an SDF (params in mesh units).

", + "params": [ + { + "name": "backend", + "type": "Literal['mesh', 'sdf_volume']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "sdf_bake_padding", + "type": "float", + "default": "0.25", + "required": false, + "doc": "" + }, + { + "name": "sdf_resolution", + "type": "int", + "default": "64", + "required": false, + "doc": "" + }, + { + "name": "sdf_voxel_size", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[WarpScene, WarpScene]", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-motion-plan", + "nav": "Motion Planning", + "h": "Motion Planning", + "body": "

GraspTrajBuilder filters grasps, optionally IK-converts them onto an arm, then plans with build_motion_planner: a WarpPlanner by default, or its base TorchPlanner when MotionPlannerConfig.backend is \"torch\".

", + "sub": "API", + "api": { + "graspkit.stages.grasp_traj_build.GraspTrajBuilder": { + "kind": "class", + "name": "GraspTrajBuilder", + "module": "graspkit.stages.grasp_traj_build", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_traj_build/builder.py#L31", + "anchor": "grasptrajbuilder", + "doc": "

Convert floating-base grasps into deployable trajectories: filter, optional IK-convert to fixed, then plan.

", + "params": [ + { + "name": "cfg", + "type": "GraspTrajBuilderConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "filters", + "signature": "filters: List[Filter]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_traj_build/builder.py#L50", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(batch: GraspKitData, start_qpos: Optional[Float[torch.Tensor, ...]] = None, skip_filter: bool = False, target_xy: Optional[torch.Tensor] = None) -> Tuple[GraspKitData, Bool[torch.Tensor, 'B K']]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_traj_build/builder.py#L60", + "doc": "

target_xy (S, 2) overrides the ori-gate target when scenes lack a target mesh (e.g. deploy perception).

", + "params": [ + { + "name": "batch", + "type": "GraspKitData", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "start_qpos", + "type": "Optional[Float[torch.Tensor, ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "skip_filter", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "target_xy", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[GraspKitData, Bool[torch.Tensor, 'B K']]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "filter_grasps", + "signature": "filter_grasps(batch: GraspKitData, success: Bool[torch.Tensor, 'B K']) -> Tuple[Bool[torch.Tensor, 'B K'], List[str]]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/grasp_traj_build/builder.py#L113", + "doc": "", + "params": [ + { + "name": "batch", + "type": "GraspKitData", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "success", + "type": "Bool[torch.Tensor, 'B K']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[Bool[torch.Tensor, 'B K'], List[str]]", + "doc": "" + } + } + ] + }, + "graspkit.configs.experiment_config.GraspTrajBuilderConfig": { + "kind": "class", + "name": "GraspTrajBuilderConfig", + "module": "graspkit.configs.experiment_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L293", + "anchor": "grasptrajbuilderconfig", + "doc": "

Grasp traj builder: floating-base grasps -> deployable trajectories (stages/traj_builder).

", + "params": [ + { + "name": "fixed_base_robot_config", + "type": "Optional[RobotConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "floating_base_robot_config", + "type": "Optional[RobotConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "convert_to_fixed", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "motion_planner", + "type": "MotionPlannerConfig", + "default": "MotionPlannerConfig()", + "required": false, + "doc": "" + }, + { + "name": "hand_axis", + "type": "Optional[HandAxis]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "hand_axis_target", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 1.0)", + "required": false, + "doc": "" + }, + { + "name": "filter_hand_axis_max_angle_deg", + "type": "float", + "default": "30.0", + "required": false, + "doc": "" + }, + { + "name": "contact_avoid_filter", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "pen_filter", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "pen_filter_threshold", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "rest_pose_filter_max_dist", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "arm_range_fraction", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "ori_threshold_deg", + "type": "float", + "default": "45.0", + "required": false, + "doc": "" + }, + { + "name": "plan_table_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "fixed_base_robot_config", + "signature": "fixed_base_robot_config: Optional[RobotConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L297", + "doc": "

Fixed-base arm+hand robot trajectories are planned for; also the camera-mount robot. None if floating-only.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "floating_base_robot_config", + "signature": "floating_base_robot_config: Optional[RobotConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L299", + "doc": "

Floating-base hand-only robot the input grasps come from.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "convert_to_fixed", + "signature": "convert_to_fixed: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L301", + "doc": "

True: filter + IK-convert floating grasps, build trajectories for the fixed robot. False: plan grasps as-is.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "motion_planner", + "signature": "motion_planner: MotionPlannerConfig = field(default_factory=MotionPlannerConfig)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L303", + "doc": "

Motion planner config for the trajectory from the init pose to the grasp pose.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_axis", + "signature": "hand_axis: Optional[HandAxis] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L305", + "doc": "

Hand-axis cone filter on optimized grasps: which hand_coord_spec axis to check. None disables it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_axis_target", + "signature": "hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L307", + "doc": "

Direction hand_axis should point, in the robot base frame (world for floating hands).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "filter_hand_axis_max_angle_deg", + "signature": "filter_hand_axis_max_angle_deg: float = 30.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L309", + "doc": "

Hand-axis cone half-angle in degrees.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_avoid_filter", + "signature": "contact_avoid_filter: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L311", + "doc": "

Reject grasps where the contact-avoid point is closer to the target than the contact point on that link.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pen_filter", + "signature": "pen_filter: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L313", + "doc": "

Reject grasps whose hand spheres overlap the target by more than pen_filter_threshold (m); fingertip ok.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pen_filter_threshold", + "signature": "pen_filter_threshold: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L315", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rest_pose_filter_max_dist", + "signature": "rest_pose_filter_max_dist: Optional[float] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L316", + "doc": "

Reject grasps whose arm qpos (L2 over arm joints) is further than this from robot rest pose; None disables.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "arm_range_fraction", + "signature": "arm_range_fraction: float = 0.3", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L319", + "doc": "

Half-width (fraction of each arm joint's range around its midpoint) the IK solution must lie in; 1.0 disables.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ori_threshold_deg", + "signature": "ori_threshold_deg: float = 45.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L321", + "doc": "

Ori-gate half-angle (deg) for the floating->fixed IK conversion; 45 = default, 90 effectively disables.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "plan_table_only", + "signature": "plan_table_only: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L323", + "doc": "

Plan against a table-only scene (object removed), mirroring deployment. Pre/post qpos use the real scene.

", + "params": [], + "returns": null + } + ] + }, + "graspkit.stages.motion_plan.WarpPlanner": { + "kind": "class", + "name": "WarpPlanner", + "module": "graspkit.stages.motion_plan", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/warp_planner.py#L77", + "anchor": "warpplanner", + "doc": "

TorchPlanner on robokit's MotionPlanner: joint-goal plans, or one plan from start through the lift.

", + "bases": "TorchPlanner", + "params": [ + { + "name": "cfg", + "type": "MotionPlannerConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "TorchPlanner", + "name": "plan", + "signature": "plan(batch: GraspKitData, start_qpos: Optional[Float[torch.Tensor, num_dofs]] = None, return_pre_post_only: bool = False) -> GraspKitData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L38", + "doc": "

Plan a padded batch: needs grasp_qpos, returns pre/post-grasp qpos + full_traj_qpos unless pre-post-only.

", + "params": [ + { + "name": "batch", + "type": "GraspKitData", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "start_qpos", + "type": "Optional[Float[torch.Tensor, num_dofs]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "return_pre_post_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "GraspKitData", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "get_pre_post_grasp_qpos", + "signature": "get_pre_post_grasp_qpos(scene_geom: SceneGeom, grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs']) -> Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L200", + "doc": "", + "params": [ + { + "name": "scene_geom", + "type": "SceneGeom", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "grasp_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "interpolate_qpos", + "signature": "interpolate_qpos(init_qpos: Float[torch.Tensor, '... num_dofs'], end_qpos: Float[torch.Tensor, '... num_dofs'], num_steps: int) -> Float[torch.Tensor, '... num_steps num_dofs']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L255", + "doc": "", + "params": [ + { + "name": "init_qpos", + "type": "Float[torch.Tensor, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "end_qpos", + "type": "Float[torch.Tensor, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_steps num_dofs']", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "compute_pose_penetration", + "signature": "compute_pose_penetration(qpos: Float[torch.Tensor, '... num_dofs'], scene_geom: SceneGeom) -> Float[torch.Tensor, ...]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L267", + "doc": "", + "params": [ + { + "name": "qpos", + "type": "Float[torch.Tensor, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_geom", + "type": "SceneGeom", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, ...]", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "interpolate_trajs", + "signature": "interpolate_trajs(orig_trajs: Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs'], num_steps: int) -> Float[torch.Tensor, 'n_scenes n_trajs num_steps num_dofs']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L288", + "doc": "", + "params": [ + { + "name": "orig_trajs", + "type": "Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, 'n_scenes n_trajs num_steps num_dofs']", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "compute_energy", + "signature": "compute_energy(full_traj_qpos: Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs'], scene_geom: SceneGeom) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L310", + "doc": "

Compute E_pen + E_smooth for a trajectory; mirrors optimize_trajs loss, a benchmark reference metric.

", + "params": [ + { + "name": "full_traj_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_geom", + "type": "SceneGeom", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "TorchPlanner", + "name": "get_lifting_target_qpos", + "signature": "get_lifting_target_qpos(post_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs']) -> Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/torch_planner.py#L428", + "doc": "", + "params": [ + { + "name": "post_grasp_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "plan_full", + "signature": "plan_full(start_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], pre_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], post_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], lift_qpos: Optional[Float[torch.Tensor, 'n_scenes n_grasps num_dofs']], scene_geom: SceneGeom) -> Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_steps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps']]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/warp_planner.py#L127", + "doc": "

One robokit plan: start → pre-grasp against the scene, then grasp, the locked hold and the lift without it.

robokit times every segment but the hold, which keeps num_steps_holding; the plan is sampled every control_dt and padded with its last frame to num_steps when shorter. Returns it and the start → pre-grasp penetration.

", + "params": [ + { + "name": "start_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "pre_grasp_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "grasp_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "post_grasp_qpos", + "type": "Float[torch.Tensor, 'n_scenes n_grasps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "lift_qpos", + "type": "Optional[Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_geom", + "type": "SceneGeom", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_steps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps']]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "optimize_trajs", + "signature": "optimize_trajs(init_trajs: Float[torch.Tensor, '... num_steps num_dofs'], scene_geom: SceneGeom) -> Tuple[Float[torch.Tensor, '... num_steps num_dofs'], Float[torch.Tensor, ...]]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/motion_plan/warp_planner.py#L185", + "doc": "", + "params": [ + { + "name": "init_trajs", + "type": "Float[torch.Tensor, '... num_steps num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_geom", + "type": "SceneGeom", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[Float[torch.Tensor, '... num_steps num_dofs'], Float[torch.Tensor, ...]]", + "doc": "" + } + } + ] + }, + "graspkit.configs.experiment_config.MotionPlannerConfig": { + "kind": "class", + "name": "MotionPlannerConfig", + "module": "graspkit.configs.experiment_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L223", + "anchor": "motionplannerconfig", + "doc": "

Trajectory optimization params — hand-independent defaults.

", + "params": [ + { + "name": "backend", + "type": "Literal['torch', 'warp']", + "default": "'warp'", + "required": false, + "doc": "" + }, + { + "name": "pre_grasp_arm_grad_move", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "pre_grasp_hand_grad_move", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "post_grasp_hand_grad_move", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "lifting_dist", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "padding_dist", + "type": "float", + "default": "0.025", + "required": false, + "doc": "" + }, + { + "name": "opt_steps", + "type": "int", + "default": "300", + "required": false, + "doc": "" + }, + { + "name": "pen_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "arm_smooth_weight", + "type": "float", + "default": "100.0", + "required": false, + "doc": "" + }, + { + "name": "hand_smooth_weight", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "vel_smooth_weight", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "num_steps_pre_grasp", + "type": "int", + "default": "150", + "required": false, + "doc": "" + }, + { + "name": "num_steps_pre_to_grasp", + "type": "int", + "default": "25", + "required": false, + "doc": "" + }, + { + "name": "num_steps_holding", + "type": "int", + "default": "75", + "required": false, + "doc": "" + }, + { + "name": "close_during_holding", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "num_steps_post_grasp", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "control_dt", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "enable_joint_optimization", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "traj_opt_max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "traj_opt_smoothness_weight", + "type": "float", + "default": "200.0", + "required": false, + "doc": "" + }, + { + "name": "traj_opt_accel_smoothness_weight", + "type": "float", + "default": "30.0", + "required": false, + "doc": "" + }, + { + "name": "traj_opt_self_collision_weight", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "traj_opt_self_collision_margin", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "start_from_grasp_dof_indices", + "type": "Optional[Tuple[int, ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_samples_per_batch", + "type": "int", + "default": "2048", + "required": false, + "doc": "" + }, + { + "name": "num_grasps_per_scene", + "type": "int", + "default": "32", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "backend", + "signature": "backend: Literal['torch', 'warp'] = 'warp'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L227", + "doc": "

Motion planner backend. 'warp' (default; robokit MotionPlanner, fixed-base only) is faster than 'torch'.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pre_grasp_arm_grad_move", + "signature": "pre_grasp_arm_grad_move: float = 0.001", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L231", + "doc": "

Pre-grasp arm gradient move

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pre_grasp_hand_grad_move", + "signature": "pre_grasp_hand_grad_move: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L233", + "doc": "

Pre-grasp hand gradient move

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "post_grasp_hand_grad_move", + "signature": "post_grasp_hand_grad_move: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L235", + "doc": "

Post-grasp hand gradient move

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lifting_dist", + "signature": "lifting_dist: float = 0.3", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L237", + "doc": "

Lifting distance

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "padding_dist", + "signature": "padding_dist: float = 0.025", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L239", + "doc": "

Padding distance

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "opt_steps", + "signature": "opt_steps: int = 300", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L241", + "doc": "

Optimization steps

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pen_weight", + "signature": "pen_weight: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L243", + "doc": "

Penetration weight

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "arm_smooth_weight", + "signature": "arm_smooth_weight: float = 100.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L245", + "doc": "

Arm smooth weight

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_smooth_weight", + "signature": "hand_smooth_weight: float = 10.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L247", + "doc": "

Hand smooth weight

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "vel_smooth_weight", + "signature": "vel_smooth_weight: float = 0.1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L249", + "doc": "

Velocity smooth weight

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_steps_pre_grasp", + "signature": "num_steps_pre_grasp: int = 150", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L251", + "doc": "

Number of steps in pre-grasp

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_steps_pre_to_grasp", + "signature": "num_steps_pre_to_grasp: int = 25", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L253", + "doc": "

Number of steps in pre-to-grasp

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_steps_holding", + "signature": "num_steps_holding: int = 75", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L255", + "doc": "

Number of steps in holding

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "close_during_holding", + "signature": "close_during_holding: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L257", + "doc": "

Close gradually during holding instead of settling at the closed pose.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_steps_post_grasp", + "signature": "num_steps_post_grasp: int = 50", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L259", + "doc": "

Number of steps in post-grasp

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "control_dt", + "signature": "control_dt: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L261", + "doc": "

Seconds per trajectory step, the simulator's control period.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_joint_optimization", + "signature": "enable_joint_optimization: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L263", + "doc": "

Fixed base, warp: one robokit plan through start, pre-grasp, grasp, hold and lift, timed by robokit except the hold (num_steps_holding); at least num_steps long. False optimizes start → pre-grasp alone and fills the other phases at their step counts.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "traj_opt_max_iter", + "signature": "traj_opt_max_iter: int = 100", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L269", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "traj_opt_smoothness_weight", + "signature": "traj_opt_smoothness_weight: float = 200.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L270", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "traj_opt_accel_smoothness_weight", + "signature": "traj_opt_accel_smoothness_weight: float = 30.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L271", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "traj_opt_self_collision_weight", + "signature": "traj_opt_self_collision_weight: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L272", + "doc": "

Self-collision weight (warp only). 0 disables the term; the robokit q_goal preset ships it off.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "traj_opt_self_collision_margin", + "signature": "traj_opt_self_collision_margin: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L274", + "doc": "

Self-collision margin in metres; only read when the weight is > 0.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "start_from_grasp_dof_indices", + "signature": "start_from_grasp_dof_indices: Optional[Tuple[int, ...]] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L277", + "doc": "

DOF indices whose start values come from grasp_qpos, not init pose; also locked during post-grasp lift IK.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_samples_per_batch", + "signature": "num_samples_per_batch: int = 2048", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L281", + "doc": "

Number of samples per batch

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_grasps_per_scene", + "signature": "num_grasps_per_scene: int = 32", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L283", + "doc": "

Number of grasps to plan per scene (pad/truncate to this)

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_steps", + "signature": "num_steps: int", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L287", + "doc": "", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "api-policy", + "nav": "Policy", + "h": "Policy", + "body": "

Create a policy with build_grasp_policy(cfg, robot_config, device).

", + "sub": "API", + "api": { + "graspkit.models.grasp_policy.GraspPolicy": { + "kind": "class", + "name": "GraspPolicy", + "module": "graspkit.models.grasp_policy", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L25", + "anchor": "grasppolicy", + "doc": "

Predicts pre-grasp, grasp and post-grasp configurations from an observation; see build_grasp_policy.

", + "bases": "nn.Module", + "params": [ + { + "name": "cfg", + "type": "GraspPolicyConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "action_dim", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "robot_helper", + "signature": "robot_helper: GraspRobot | None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L66", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "generator", + "signature": "generator: CVAE | FlowMatching", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L154", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "forward", + "signature": "forward(obs: dict, actions: Float[torch.Tensor, 'b n t d']) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L176", + "doc": "", + "params": [ + { + "name": "obs", + "type": "dict", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actions", + "type": "Float[torch.Tensor, 'b n t d']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "preprocess", + "signature": "preprocess(initial: dict, current: dict, calibrated: bool) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L390", + "doc": "

One scene's input from env.observe() slices plus \"qpos\" (1, 1, D); calibrated views skip the initial.

", + "params": [ + { + "name": "initial", + "type": "dict", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "current", + "type": "dict", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "calibrated", + "type": "bool", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_action", + "signature": "get_action(obs: dict, num_samples_per_scene: int = 1, noise: torch.Tensor | None = None) -> Float[torch.Tensor, 'b n t d']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L411", + "doc": "

Sample actions; guided sampling accepts raw noise shaped (batch * samples, latent_dim).

", + "params": [ + { + "name": "obs", + "type": "dict", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_samples_per_scene", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "noise", + "type": "torch.Tensor | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, 'b n t d']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "select", + "signature": "select(obs: dict, actions: Float[torch.Tensor, 'b n t d']) -> torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/models/grasp_policy.py#L556", + "doc": "

Each scene's best proposal index by the grasp evaluator, on the features get_action left in obs.

", + "params": [ + { + "name": "obs", + "type": "dict", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actions", + "type": "Float[torch.Tensor, 'b n t d']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "torch.Tensor", + "doc": "" + } + } + ] + }, + "graspkit.configs.grasp_policy_config.GraspPolicyConfig": { + "kind": "class", + "name": "GraspPolicyConfig", + "module": "graspkit.configs.grasp_policy_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L5", + "anchor": "grasppolicyconfig", + "doc": "

Grasp policy architecture, losses and sampling.

Reusable presets live in graspkit/configs/grasp_policy.py.

", + "params": [ + { + "name": "num_queries", + "type": "int", + "default": "3", + "required": false, + "doc": "" + }, + { + "name": "convert_rxyz_to_rot6d", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "analytic_euler", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "coupled_floating_base", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "rot_begin_idx", + "type": "int", + "default": "3", + "required": false, + "doc": "" + }, + { + "name": "enable_kinematic_loss", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "vision_encoder", + "type": "Literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views']", + "default": "'spconv'", + "required": false, + "doc": "" + }, + { + "name": "vision_encoder_feature_dim", + "type": "int", + "default": "512", + "required": false, + "doc": "" + }, + { + "name": "vision_encoder_normalization", + "type": "Literal['layernorm', 'groupnorm'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "vision_encoder_global_feature", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "center_pointcloud", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "pointcloud_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "train_yaw_augmentation", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "canonical_yaw", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "enable_objectness_prediction", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "num_points", + "type": "int", + "default": "2048", + "required": false, + "doc": "" + }, + { + "name": "object_points_only", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "generative_model", + "type": "Literal['cvae', 'flow', 'flow_transformer']", + "default": "'cvae'", + "required": false, + "doc": "" + }, + { + "name": "cvae_latent_dim", + "type": "int", + "default": "256", + "required": false, + "doc": "" + }, + { + "name": "cvae_hidden_dim", + "type": "int", + "default": "256", + "required": false, + "doc": "" + }, + { + "name": "cvae_learned_prior", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "normalize_cvae_actions", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "reconstruction_loss", + "type": "Literal['native', 'phase_std_mse']", + "default": "'native'", + "required": false, + "doc": "" + }, + { + "name": "qpos_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "rot_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "tl_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "kinematic_weight", + "type": "float", + "default": "100.0", + "required": false, + "doc": "" + }, + { + "name": "kl_weight", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "objectness_weight", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "graspness_weight", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "enable_penetration_loss", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "penetration_weight", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "penetration_threshold", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "penetration_every", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "penetration_warmup_iters", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "prior_fingertip_weight", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "use_mean", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "cvae_temperature", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_guidance_steps", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_guidance_radius", + "type": "float", + "default": "2.0", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_local_features", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_anchor_state", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_hand_joint_features", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "grasp_evaluator_mask_constant_features", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "num_queries", + "signature": "num_queries: int = 3", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L13", + "doc": "

Configurations decoded per trajectory; the trainer and evaluator assume three: pre-grasp, grasp and post-grasp.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "convert_rxyz_to_rot6d", + "signature": "convert_rxyz_to_rot6d: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L16", + "doc": "

Floating base: predict a continuous 6D rotation instead of Euler rxyz, converted back on output.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "analytic_euler", + "signature": "analytic_euler: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L18", + "doc": "

Use exact, non-iterative Euler conversion after decoding rotations.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "coupled_floating_base", + "signature": "coupled_floating_base: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L20", + "doc": "

Share wrist rotation across all three poses and wrist translation during closing.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rot_begin_idx", + "signature": "rot_begin_idx: int = 3", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L22", + "doc": "

Start index of the floating-base rotation in each action.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_kinematic_loss", + "signature": "enable_kinematic_loss: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L24", + "doc": "

Add the MSE between predicted and target link positions from forward kinematics.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "vision_encoder", + "signature": "vision_encoder: Literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views'] = 'spconv'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L28", + "doc": "

Observation backbone.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "vision_encoder_feature_dim", + "signature": "vision_encoder_feature_dim: int = 512", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L30", + "doc": "

Condition feature size passed to the generator.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "vision_encoder_normalization", + "signature": "vision_encoder_normalization: Literal['layernorm', 'groupnorm'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L32", + "doc": "

Normalization for the SpConv encoder.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "vision_encoder_global_feature", + "signature": "vision_encoder_global_feature: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L34", + "doc": "

Return one scene feature; False keeps per-point features for local grasp-point conditioning.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "center_pointcloud", + "signature": "center_pointcloud: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L36", + "doc": "

Predict floating-base translations relative to the observed point-cloud centroid.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pointcloud_scale", + "signature": "pointcloud_scale: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L38", + "doc": "

Fixed coordinate scale applied only to vision-encoder inputs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "train_yaw_augmentation", + "signature": "train_yaw_augmentation: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L40", + "doc": "

Rotate training observations and target poses together around the vertical axis.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "canonical_yaw", + "signature": "canonical_yaw: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L42", + "doc": "

Use a deterministic observed-point-cloud yaw frame for training and inference.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_objectness_prediction", + "signature": "enable_objectness_prediction: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L44", + "doc": "

With local features, train a target-segmentation head and mask graspness at inference.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_points", + "signature": "num_points: int = 2048", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L46", + "doc": "

Points GraspPolicy.preprocess samples from an observed point cloud.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "object_points_only", + "signature": "object_points_only: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L48", + "doc": "

GraspPolicy.preprocess keeps only the target's points, initial and current frames together (hands occlude).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "generative_model", + "signature": "generative_model: Literal['cvae', 'flow', 'flow_transformer'] = 'cvae'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L52", + "doc": "

cvae (models/cvae.py) or flow matching (models/flow_matching.py).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cvae_latent_dim", + "signature": "cvae_latent_dim: int = 256", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L54", + "doc": "

Latent dimension of the CVAE.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cvae_hidden_dim", + "signature": "cvae_hidden_dim: int = 256", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L56", + "doc": "

Width of the generator networks and optional CVAE learned prior.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cvae_learned_prior", + "signature": "cvae_learned_prior: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L58", + "doc": "

Jointly learn a diagonal-Gaussian latent prior conditioned on the observation.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "normalize_cvae_actions", + "signature": "normalize_cvae_actions: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L60", + "doc": "

Encode standardized actions and decode physical actions using saved mean/std buffers.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "reconstruction_loss", + "signature": "reconstruction_loss: Literal['native', 'phase_std_mse'] = 'native'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L62", + "doc": "

Native reconstruction loss or MSE scaled by each phase's training action standard deviation.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "qpos_weight", + "signature": "qpos_weight: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L66", + "doc": "

Joint-position reconstruction weight: L1 for CVAE, MSE for flow.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rot_weight", + "signature": "rot_weight: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L68", + "doc": "

Floating-base rotation L1 weight.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "tl_weight", + "signature": "tl_weight: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L70", + "doc": "

Floating-base translation L1 weight.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kinematic_weight", + "signature": "kinematic_weight: float = 100.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L72", + "doc": "

Weight of the kinematic loss.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kl_weight", + "signature": "kl_weight: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L74", + "doc": "

Weight of the KL term to the unit Gaussian.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "objectness_weight", + "signature": "objectness_weight: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L76", + "doc": "

Weight of the local-feature objectness BCE.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "graspness_weight", + "signature": "graspness_weight: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L78", + "doc": "

Weight of the local-feature per-point graspness KL.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_penetration_loss", + "signature": "enable_penetration_loss: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L80", + "doc": "

if True, penalize hand collision-sphere penetration into the target object (needs scene geom at train time)

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "penetration_weight", + "signature": "penetration_weight: float = 0.1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L82", + "doc": "

the weight of the penetration loss

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "penetration_threshold", + "signature": "penetration_threshold: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L84", + "doc": "

only penetration deeper than this (meters) is penalized (avoids punishing legitimate contact)

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "penetration_every", + "signature": "penetration_every: int = 1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L86", + "doc": "

compute the (expensive) penetration loss every N steps to amortize per-batch scene-geometry build

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "penetration_warmup_iters", + "signature": "penetration_warmup_iters: int = 0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L88", + "doc": "

delay the penetration loss until this iteration so the policy learns to grasp first (replaces fine-tuning)

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "prior_fingertip_weight", + "signature": "prior_fingertip_weight: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L90", + "doc": "

Attract prior-sampled fingertip collision spheres to the target surface during training.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_mean", + "signature": "use_mean: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L93", + "doc": "

Decode the prior mean for CVAE or integrate from zero noise for flow.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cvae_temperature", + "signature": "cvae_temperature: float = 1.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L95", + "doc": "

Scale of the sampled generator noise; ignored when use_mean is True.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_guidance_steps", + "signature": "grasp_evaluator_guidance_steps: int = 0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L97", + "doc": "

Latent refinement steps using a trained grasp evaluator; zero disables guidance.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_guidance_radius", + "signature": "grasp_evaluator_guidance_radius: float = 2.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L99", + "doc": "

Maximum L2 displacement from each initial latent draw.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_local_features", + "signature": "grasp_evaluator_local_features: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L101", + "doc": "

Let the grasp evaluator attend to frozen local visual tokens; the actor stays unchanged.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_anchor_state", + "signature": "grasp_evaluator_anchor_state: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L103", + "doc": "

Condition the local success critic on the current fixed-base robot configuration.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_hand_joint_features", + "signature": "grasp_evaluator_hand_joint_features: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L105", + "doc": "

Encode hand joints instead of all actuated joints in the grasp evaluator.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_evaluator_mask_constant_features", + "signature": "grasp_evaluator_mask_constant_features: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/grasp_policy_config.py#L107", + "doc": "

Zero constant replay features after scorer normalization.

", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "api-training", + "nav": "Training", + "h": "Training", + "body": "
", + "sub": "API", + "api": { + "graspkit.stages.trainer.Trainer": { + "kind": "class", + "name": "Trainer", + "module": "graspkit.stages.trainer", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L32", + "anchor": "trainer", + "doc": "

Trains a GraspPolicy on GraspDataset batches, with DDP, checkpoints and periodic simulation evaluation.

", + "params": [ + { + "name": "exp_cfg", + "type": "ExperimentConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "policy_cls", + "type": "Callable[..., GraspPolicy]", + "default": "GraspPolicy", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "traj_builder", + "signature": "traj_builder: GraspTrajBuilder | None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L62", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "evaluator", + "signature": "evaluator: BaseEnv | None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L63", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "train", + "signature": "train(train_dataloader: DataLoader, test_dataloader: DataLoader | None = None, checkpoint_dir: Path | None = None, metadata: dict | None = None, resume: dict | None = None, publish: Callable[[Path], None] | None = None)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L95", + "doc": "

Train normally, or save resumable single-device milestones and publish them.

", + "params": [ + { + "name": "train_dataloader", + "type": "DataLoader", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "test_dataloader", + "type": "DataLoader | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "checkpoint_dir", + "type": "Path | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "metadata", + "type": "dict | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "resume", + "type": "dict | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "publish", + "type": "Callable[[Path], None] | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "train_graph", + "signature": "train_graph(dataset: GraspDataset, index_loader: DataLoader)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L294", + "doc": "

train for TrainerConfig.cuda_graph: the same updates, with the step captured once as a CUDA graph.

", + "params": [ + { + "name": "dataset", + "type": "GraspDataset", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "index_loader", + "type": "DataLoader", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "evaluate", + "signature": "evaluate(test_dataloader: DataLoader, num_samples_per_scene: int = 1)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/stages/trainer.py#L375", + "doc": "", + "params": [ + { + "name": "test_dataloader", + "type": "DataLoader", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_samples_per_scene", + "type": "int", + "default": "1", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "graspkit.configs.experiment_config.TrainerConfig": { + "kind": "class", + "name": "TrainerConfig", + "module": "graspkit.configs.experiment_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L390", + "anchor": "trainerconfig", + "doc": "

Training-loop parameters for Trainer.

AdamW's learning rate drops 10x at two thirds of total_iters; that schedule has no field.

", + "params": [ + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "evaluator", + "type": "Optional[EnvConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "eval_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "eval_on_train", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "track", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "wandb_project_name", + "type": "str", + "default": "'GraspKit'", + "required": false, + "doc": "" + }, + { + "name": "batch_size", + "type": "int", + "default": "32", + "required": false, + "doc": "" + }, + { + "name": "eval_num_envs", + "type": "int", + "default": "32", + "required": false, + "doc": "" + }, + { + "name": "max_eval_batches", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "eval_pen_threshold", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "total_iters", + "type": "int", + "default": "100000", + "required": false, + "doc": "" + }, + { + "name": "num_dataloader_workers", + "type": "int", + "default": "12", + "required": false, + "doc": "" + }, + { + "name": "lr", + "type": "float", + "default": "0.0001", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0001", + "required": false, + "doc": "" + }, + { + "name": "log_freq", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "eval_freq", + "type": "int", + "default": "10000", + "required": false, + "doc": "" + }, + { + "name": "save_freq", + "type": "int", + "default": "10000", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "fast_step", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "grad_clip_norm", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: int = 0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L397", + "doc": "

Seeds model initialization, dataset workers and sampling.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "evaluator", + "signature": "evaluator: Optional[EnvConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L399", + "doc": "

Simulation for periodic evaluation, built with build_env; None disables evaluation.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "eval_only", + "signature": "eval_only: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L401", + "doc": "

Skip training, load ExperimentConfig.ckpt_path and evaluate one trajectory per scene.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "eval_on_train", + "signature": "eval_on_train: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L403", + "doc": "

Evaluate on the train split instead of test, for small scene sets without test scenes.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "track", + "signature": "track: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L405", + "doc": "

Log to Weights & Biases, which also syncs the TensorBoard scalars.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wandb_project_name", + "signature": "wandb_project_name: str = 'GraspKit'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L407", + "doc": "

W&B project used when track is set.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "batch_size", + "signature": "batch_size: int = 32", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L409", + "doc": "

Global batch size in scenes; each DDP rank gets batch_size // world_size.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "eval_num_envs", + "signature": "eval_num_envs: int = 32", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L411", + "doc": "

Evaluator parallelism; capped at batch_size during training.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_eval_batches", + "signature": "max_eval_batches: int = 100", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L413", + "doc": "

Stop evaluation after this many data-loader batches.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "eval_pen_threshold", + "signature": "eval_pen_threshold: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L415", + "doc": "

Penetration depth (m) below which an eval grasp counts toward pass-rate (report-only).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "total_iters", + "signature": "total_iters: int = 100000", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L417", + "doc": "

Final training iteration; the loop runs iterations 0 through this value.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_dataloader_workers", + "signature": "num_dataloader_workers: int = 12", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L419", + "doc": "

Worker processes for the training and evaluation data loaders.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lr", + "signature": "lr: float = 0.0001", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L421", + "doc": "

AdamW learning rate.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weight_decay", + "signature": "weight_decay: float = 0.0001", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L423", + "doc": "

AdamW weight decay.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "log_freq", + "signature": "log_freq: int = 100", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L425", + "doc": "

Iterations between loss logs, and TensorBoard scalars when tracking.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "eval_freq", + "signature": "eval_freq: int = 10000", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L427", + "doc": "

Iterations between simulation evaluations; iteration 0 is skipped.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "save_freq", + "signature": "save_freq: int = 10000", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L429", + "doc": "

Iterations between iter_<N>.pt checkpoints, iteration 0 included.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cuda_graph", + "signature": "cuda_graph: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L431", + "doc": "

Capture training on prepared HDF5 views as a CUDA graph; single GPU without evaluation.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "fast_step", + "signature": "fast_step: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L433", + "doc": "

Use TF32 and fused AdamW for ordinary training steps.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grad_clip_norm", + "signature": "grad_clip_norm: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L435", + "doc": "

Clip the gradient norm before an optimizer step; zero disables clipping.

", + "params": [], + "returns": null + } + ] + }, + "graspkit.datasets.grasp_dataset.GraspDataset": { + "kind": "class", + "name": "GraspDataset", + "module": "graspkit.datasets.grasp_dataset", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/grasp_dataset.py#L17", + "anchor": "graspdataset", + "doc": "

Per-scene point-cloud observations and successful grasp trajectories from a processed HDF5.

", + "bases": "Dataset", + "params": [ + { + "name": "cfg", + "type": "DatasetConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "h5_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_description_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "split", + "type": "Literal['train', 'test'] | None", + "default": "'train'", + "required": false, + "doc": "" + }, + { + "name": "indices_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "to_device", + "signature": "to_device(device: str | torch.device) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/grasp_dataset.py#L70", + "doc": "

Load prepared observations and actions once for CUDA batch gathering.

", + "params": [ + { + "name": "device", + "type": "str | torch.device", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + } + ] + }, + "graspkit.configs.experiment_config.DatasetConfig": { + "kind": "class", + "name": "DatasetConfig", + "module": "graspkit.configs.experiment_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L439", + "anchor": "datasetconfig", + "doc": "

Dataset loading parameters for GraspDataset.

One index is one scene, not one grasp; raw views resample points and actions on every access.

", + "params": [ + { + "name": "num_actions", + "type": "int", + "default": "64", + "required": false, + "doc": "" + }, + { + "name": "num_points", + "type": "int", + "default": "2048", + "required": false, + "doc": "" + }, + { + "name": "return_actions", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "return_graspness", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "return_object_pointcloud_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "cache_in_memory", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "return_rgb", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "fuse_views", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "view_noise", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "point_noise", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "aug_prob", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "aug_keep_min", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "aug_voxel_max", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "aug_drop_wrist_prob", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "aug_rgb_prob", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "num_actions", + "signature": "num_actions: int = 64", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L446", + "doc": "

Successful action trajectories sampled per scene, with replacement when a scene has fewer.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_points", + "signature": "num_points: int = 2048", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L448", + "doc": "

Point-cloud points per scene, with replacement when the cloud is smaller.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "return_actions", + "signature": "return_actions: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L450", + "doc": "

Return the (num_actions, 3, D) supervision tensor; training needs it and evaluation turns it off.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "return_graspness", + "signature": "return_graspness: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L452", + "doc": "

Return per-point graspness and the best conditioning-point indices, for local-feature SpConv policies; needs data processed with enable_contact_extraction.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "return_object_pointcloud_only", + "signature": "return_object_pointcloud_only: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L455", + "doc": "

Sample only target-object points instead of the full cropped scene cloud.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cache_in_memory", + "signature": "cache_in_memory: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L457", + "doc": "

Cache observations and actions in RAM; sampling stays unchanged.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "return_rgb", + "signature": "return_rgb: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L459", + "doc": "

Include RGB and camera poses when available.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "fuse_views", + "signature": "fuse_views: int = 0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L461", + "doc": "

Object-only multi-view data: fuse view 0 (the head) with up to this many other views, a random count per sample, into one cloud. 0: one random view.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "view_noise", + "signature": "view_noise: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L464", + "doc": "

With fuse_views: std of each view's rigid misalignment, meters (translation) and x10 radians (rotation).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "point_noise", + "signature": "point_noise: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L466", + "doc": "

With fuse_views: std of per-point Gaussian noise (m).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aug_prob", + "signature": "aug_prob: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L468", + "doc": "

With fuse_views: probability of the perception augmentation (datasets/perception_aug.py) per sample; needs renders that keep the neighbours (extract_segments=[]) and camera poses in the processed h5.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aug_keep_min", + "signature": "aug_keep_min: float = 0.1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L471", + "doc": "

Perception aug: fused-cloud keep fraction, log-uniform in [aug_keep_min, 1].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aug_voxel_max", + "signature": "aug_voxel_max: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L473", + "doc": "

Perception aug: voxel dedup size (m), applied with p 0.5 (the old gate pipeline's 3 mm thinning).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aug_drop_wrist_prob", + "signature": "aug_drop_wrist_prob: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L475", + "doc": "

Perception aug: probability of the head view alone (no wrist view).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aug_rgb_prob", + "signature": "aug_rgb_prob: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L477", + "doc": "

Perception aug: probability of the RGB / MoGe depth-error model (per sample).

", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "api-envs", + "nav": "Environments", + "h": "Environments", + "body": "

Create an environment with build_env(cfg, robot_config, device); EnvConfig selects the backend.

", + "sub": "API", + "api": { + "graspkit.envs.BaseEnv": { + "kind": "class", + "name": "BaseEnv", + "module": "graspkit.envs", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L23", + "anchor": "baseenv", + "doc": "

Unified grasp env: MsEnv (ManiSkill), MjEnv (MuJoCo), IsaacEnv (Isaac), RealEnv (hardware).

", + "bases": "ABC", + "params": [], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "last_rollouts", + "signature": "last_rollouts: list[Rollout]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L31", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset(scene: SceneDescription | list[SceneDescription] | None = None, init_qpos: torch.Tensor | None = None, root_pose: torch.Tensor | None = None, camera_pose: torch.Tensor | None = None)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L33", + "doc": "

Initialize the scene (simulators accept a list, one env each), robot, and calibrated camera pose.

", + "params": [ + { + "name": "scene", + "type": "SceneDescription | list[SceneDescription] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_qpos", + "type": "torch.Tensor | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "root_pose", + "type": "torch.Tensor | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "camera_pose", + "type": "torch.Tensor | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_qpos", + "signature": "get_qpos() -> torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L43", + "doc": "

Current joint positions, ours order, shape (B, D).

", + "params": [], + "returns": { + "type": "torch.Tensor", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "step_qpos", + "signature": "step_qpos(q: torch.Tensor)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L47", + "doc": "

Command target q (ours order) and advance one control step.

", + "params": [ + { + "name": "q", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_info", + "signature": "get_info() -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L51", + "doc": "

Return backend metrics for the current state.

", + "params": [], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_qpos_traj", + "signature": "set_qpos_traj(traj_qpos: torch.Tensor, qpos_callback: Callable[[int, torch.Tensor], None] | None = None) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L55", + "doc": "

Stream one (T, D) qpos trajectory through the backend; the callback sees measured qpos.

", + "params": [ + { + "name": "traj_qpos", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "qpos_callback", + "type": "Callable[[int, torch.Tensor], None] | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_rgb", + "signature": "get_rgb() -> np.ndarray", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L68", + "doc": "

Latest RGB camera image, shape (H, W, 3), uint8.

", + "params": [], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_pointcloud", + "signature": "get_pointcloud(mask: np.ndarray) -> torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L72", + "doc": "

Object cloud selected by an aligned image mask, in world frame, shape (B, N, 3).

", + "params": [ + { + "name": "mask", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "torch.Tensor", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_object_pose", + "signature": "get_object_pose() -> torch.Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L76", + "doc": "

Target object world poses, shape (B, 7) [xyz, quat_wxyz]; simulators only.

", + "params": [], + "returns": { + "type": "torch.Tensor", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_object_pose", + "signature": "set_object_pose(pose: torch.Tensor)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L80", + "doc": "

Teleport the target objects to world poses (B, 7); simulators only.

", + "params": [ + { + "name": "pose", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "observe", + "signature": "observe() -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L84", + "doc": "

Sim-only, robot-free: rgb (B, V, H, W, 3), world xyz/seg (B, N, 3/1), seg_id, camera_poses.

", + "params": [], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "evaluate", + "signature": "evaluate(batch: GraspKitData, record: bool = False) -> dict[str, torch.Tensor]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L88", + "doc": "

Rollout of batch.full_traj_qpos; infos keyed by metric; record=True fills self.last_rollouts.

", + "params": [ + { + "name": "batch", + "type": "GraspKitData", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "record", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "dict[str, torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "close", + "signature": "close()", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/envs/base.py#L92", + "doc": "

Release the backend (sim envs / worker pool / hardware).

", + "params": [], + "returns": null + } + ] + }, + "graspkit.configs.experiment_config.EnvConfig": { + "kind": "class", + "name": "EnvConfig", + "module": "graspkit.configs.experiment_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L170", + "anchor": "envconfig", + "doc": "

The tabletop grasp task; select Isaac or MuJoCo with their optional configuration, otherwise ManiSkill.

", + "params": [ + { + "name": "ms_env_config", + "type": "MsEnvConfig", + "default": "MsEnvConfig()", + "required": false, + "doc": "" + }, + { + "name": "mj_env_config", + "type": "Optional[MjEvalConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "isaac_env_config", + "type": "Optional[IsaacEnvConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "mj_native_env_config", + "type": "Optional[MjNativeEnvConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_scenes", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "control_freq", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "target_lift_dist", + "type": "float", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "object_mass", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "floating_object", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "camera_width", + "type": "int", + "default": "960", + "required": false, + "doc": "" + }, + { + "name": "camera_height", + "type": "int", + "default": "540", + "required": false, + "doc": "" + }, + { + "name": "camera_intrinsic", + "type": "Tuple[Tuple[float, float, float], ...]", + "default": "(lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))()", + "required": false, + "doc": "" + }, + { + "name": "camera_near", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "cameras", + "type": "Tuple[CameraSpec, ...]", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "contact_offset", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "num_envs", + "type": "int", + "default": "2048", + "required": false, + "doc": "" + }, + { + "name": "num_seeds", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "enable_perturbation", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "perturbation_step_range", + "type": "Tuple[int, int]", + "default": "(35, 80)", + "required": false, + "doc": "" + }, + { + "name": "perturbation_magnitude", + "type": "float", + "default": "150.0", + "required": false, + "doc": "" + }, + { + "name": "num_perturbations", + "type": "int", + "default": "8", + "required": false, + "doc": "" + }, + { + "name": "perturbation_duration", + "type": "int", + "default": "1", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ms_env_config", + "signature": "ms_env_config: MsEnvConfig = field(default_factory=MsEnvConfig)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L174", + "doc": "

ManiSkill-only settings

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mj_env_config", + "signature": "mj_env_config: Optional[MjEvalConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L176", + "doc": "

MuJoCo evaluator config; set this to select the MuJoCo backend.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "isaac_env_config", + "signature": "isaac_env_config: Optional[IsaacEnvConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L178", + "doc": "

Isaac backend config; mutually exclusive with mj_env_config.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mj_native_env_config", + "signature": "mj_native_env_config: Optional[MjNativeEnvConfig] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L180", + "doc": "

Closed-loop MuJoCo backend config; at most one of the backend configs may be set.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "load_scenes", + "signature": "load_scenes: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L182", + "doc": "

Whether to load scenes (actors and tables).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "control_freq", + "signature": "control_freq: int = 50", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L184", + "doc": "

Control frequency.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_lift_dist", + "signature": "target_lift_dist: float = 0.2", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L186", + "doc": "

Target lift distance.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "object_mass", + "signature": "object_mass: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L188", + "doc": "

Mass of the object.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "floating_object", + "signature": "floating_object: bool = False", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L190", + "doc": "

Whether to use a floating object.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_width", + "signature": "camera_width: int = 960", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L192", + "doc": "

Width of the camera.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_height", + "signature": "camera_height: int = 540", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L194", + "doc": "

Height of the camera.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_intrinsic", + "signature": "camera_intrinsic: Tuple[Tuple[float, float, float], ...] = field(default_factory=lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L196", + "doc": "

Intrinsic matrix of the camera.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_near", + "signature": "camera_near: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L200", + "doc": "

Near clipping plane of the camera.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cameras", + "signature": "cameras: Tuple[CameraSpec, ...] = ()", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L202", + "doc": "

Cameras rendered instead of ManiSkill's base_camera (with ms_env_config.robot_uid None); Isaac and MuJoCo render only these.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_offset", + "signature": "contact_offset: float = 0.001", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L205", + "doc": "

PhysX contact_offset (m). Larger = compliant/sticky-feeling fingertip pads.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_envs", + "signature": "num_envs: int = 2048", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L207", + "doc": "

Number of environments to evaluate on

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_seeds", + "signature": "num_seeds: int = 1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L209", + "doc": "

Number of seeds

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_perturbation", + "signature": "enable_perturbation: bool = True", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L211", + "doc": "

Whether to enable perturbation

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "perturbation_step_range", + "signature": "perturbation_step_range: Tuple[int, int] = (35, 80)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L213", + "doc": "

Perturbation step range

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "perturbation_magnitude", + "signature": "perturbation_magnitude: float = 150.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L215", + "doc": "

Perturbation magnitude

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_perturbations", + "signature": "num_perturbations: int = 8", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L217", + "doc": "

Number of perturbations

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "perturbation_duration", + "signature": "perturbation_duration: int = 1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/experiment_config.py#L219", + "doc": "

Number of consecutive steps to apply each perturbation force (1 = single impulse)

", + "params": [], + "returns": null + } + ] + }, + "graspkit.configs.env_config.MsEnvConfig": { + "kind": "class", + "name": "MsEnvConfig", + "module": "graspkit.configs.env_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L56", + "anchor": "msenvconfig", + "doc": "

ManiSkill-only settings; the task itself is EnvConfig's.

", + "params": [ + { + "name": "robot_uid", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "reconfiguration_freq", + "type": "Optional[int]", + "default": "1", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "robot_uid", + "signature": "robot_uid: Optional[str] = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L60", + "doc": "

ManiSkill agent uid; None registers one from the robot config. A hand-only uid on a floating-base robot means a static base.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "reconfiguration_freq", + "signature": "reconfiguration_freq: Optional[int] = 1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L63", + "doc": "

Reconfiguration frequency.

", + "params": [], + "returns": null + } + ] + }, + "graspkit.configs.env_config.MjEvalConfig": { + "kind": "class", + "name": "MjEvalConfig", + "module": "graspkit.configs.env_config", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L83", + "anchor": "mjevalconfig", + "doc": "

MuJoCo grasp-evaluation settings.

", + "params": [ + { + "name": "num_workers", + "type": "int", + "default": "48", + "required": false, + "doc": "" + }, + { + "name": "obj_mass", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "miu_coef", + "type": "tuple", + "default": "(0.6, 0.02)", + "required": false, + "doc": "" + }, + { + "name": "setting", + "type": "str", + "default": "'fc'", + "required": false, + "doc": "" + }, + { + "name": "max_pene", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "trans_thre", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "lift_slip_thre", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "min_lift_dist", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "grasp_interp_steps", + "type": "int", + "default": "25", + "required": false, + "doc": "" + }, + { + "name": "lift_interp_steps", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "angle_thre", + "type": "float", + "default": "15.0", + "required": false, + "doc": "" + }, + { + "name": "contact_margin", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "contact_threshold", + "type": "float", + "default": "0.002", + "required": false, + "doc": "" + }, + { + "name": "fc_force_scale", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "timestep", + "type": "float", + "default": "0.004", + "required": false, + "doc": "" + }, + { + "name": "solref_timeconst", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "obj_root", + "type": "str", + "default": "str(MUJOCO_EVAL_ROOT / 'example_object')", + "required": false, + "doc": "" + }, + { + "name": "hand", + "type": "HandSpec", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "num_workers", + "signature": "num_workers: int = 48", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L87", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "obj_mass", + "signature": "obj_mass: float = 0.1", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L88", + "doc": "

Object mass (kg).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "miu_coef", + "signature": "miu_coef: tuple = (0.6, 0.02)", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L90", + "doc": "

[tangential, torsional] friction.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "setting", + "signature": "setting: str = 'fc'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L92", + "doc": "

Evaluation setting; only \"fc\" is ported.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_pene", + "signature": "max_pene: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L94", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "trans_thre", + "signature": "trans_thre: float = 0.05", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L95", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lift_slip_thre", + "signature": "lift_slip_thre: float = 0.02", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L96", + "doc": "

Tabletop: max object-vs-palm slip during the lift (tight; trans_thre is too loose).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_lift_dist", + "signature": "min_lift_dist: float = 0.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L98", + "doc": "

Tabletop: minimum actual object rise; zero preserves existing evaluator behavior.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_interp_steps", + "signature": "grasp_interp_steps: int = 25", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L100", + "doc": "

Interp frames for pregrasp->grasp and grasp->squeeze.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lift_interp_steps", + "signature": "lift_interp_steps: int = 50", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L102", + "doc": "

Interp frames for the squeeze->lift raise.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "angle_thre", + "signature": "angle_thre: float = 15.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L104", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_margin", + "signature": "contact_margin: float = 0.01", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L105", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_threshold", + "signature": "contact_threshold: float = 0.002", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L106", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "fc_force_scale", + "signature": "fc_force_scale: float = 10.0", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L107", + "doc": "

Multiplies obj_mass for the fc/tabletop external force (lower = gentler test).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "timestep", + "signature": "timestep: float = 0.004", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L109", + "doc": "

MuJoCo step; lower (e.g. 0.001) stabilizes an actuated arm+hand grip.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solref_timeconst", + "signature": "solref_timeconst: float = 0.005", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L111", + "doc": "

Rigid-contact solref[0]; smaller = more rigid (less penetration).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "obj_root", + "signature": "obj_root: str = str(MUJOCO_EVAL_ROOT / 'example_object')", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand", + "signature": "hand: HandSpec = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/configs/env_config.py#L114", + "doc": "

None -> build_env picks the default (floating SHADOW_HAND, or fixed-base VEGA_SHARPA).

", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "api-data", + "nav": "Data", + "h": "Data", + "body": "
", + "sub": "API", + "api": { + "graspkit.datasets.graspkit_data.GraspKitData": { + "kind": "class", + "name": "GraspKitData", + "module": "graspkit.datasets.graspkit_data", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L38", + "anchor": "graspkitdata", + "doc": "

Batched per-stage tensor payload; supports padded and packed layouts.

", + "params": [ + { + "name": "scene_ids", + "type": "list[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_descriptions", + "type": "list[SceneDescription] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "first_indices", + "type": "Int[Tensor, Bp1] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pre_grasp_qpos", + "type": "Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "grasp_qpos", + "type": "Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "post_grasp_qpos", + "type": "Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "full_traj_qpos", + "type": "Float[Tensor, 'B K T dof'] | Float[Tensor, 'N T dof'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pre_traj_penetration", + "type": "Float[Tensor, 'B K'] | Float[Tensor, N] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pointcloud", + "type": "Float[Tensor, 'B T Npts 3'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pointcloud_rgb", + "type": "Float[Tensor, 'B T Npts 3'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pointcloud_segmentation", + "type": "Int[Tensor, 'B T Npts 1'] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_actor_segmentation_id", + "type": "Int[Tensor, B] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "camera_poses", + "type": "Float[Tensor, 'B T 7'] | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "scene_ids", + "signature": "scene_ids: list[str]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L43", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "scene_descriptions", + "signature": "scene_descriptions: list[SceneDescription] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L44", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "first_indices", + "signature": "first_indices: Int[Tensor, Bp1] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L47", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pre_grasp_qpos", + "signature": "pre_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L50", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grasp_qpos", + "signature": "grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L51", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "post_grasp_qpos", + "signature": "post_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L52", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "full_traj_qpos", + "signature": "full_traj_qpos: Float[Tensor, 'B K T dof'] | Float[Tensor, 'N T dof'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L53", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pre_traj_penetration", + "signature": "pre_traj_penetration: Float[Tensor, 'B K'] | Float[Tensor, N] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L54", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pointcloud", + "signature": "pointcloud: Float[Tensor, 'B T Npts 3'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L57", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pointcloud_rgb", + "signature": "pointcloud_rgb: Float[Tensor, 'B T Npts 3'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L58", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pointcloud_segmentation", + "signature": "pointcloud_segmentation: Int[Tensor, 'B T Npts 1'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L59", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_actor_segmentation_id", + "signature": "target_actor_segmentation_id: Int[Tensor, B] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L60", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_poses", + "signature": "camera_poses: Float[Tensor, 'B T 7'] | None = None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L61", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_scenes", + "signature": "num_scenes: int", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L64", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "is_packed", + "signature": "is_packed: bool", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L68", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "is_padded", + "signature": "is_padded: bool", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_grasps_per_scene", + "signature": "num_grasps_per_scene: Tensor", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "to_padded", + "signature": "to_padded() -> GraspKitData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L85", + "doc": "", + "params": [], + "returns": { + "type": "GraspKitData", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "to_packed", + "signature": "to_packed() -> GraspKitData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L101", + "doc": "", + "params": [], + "returns": { + "type": "GraspKitData", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "filter", + "signature": "filter(mask: Tensor) -> GraspKitData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L123", + "doc": "

Filter packed grasps or scenes by a boolean mask and drop empty scenes.

", + "params": [ + { + "name": "mask", + "type": "Tensor", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "GraspKitData", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "save", + "signature": "save(path: str, append: bool = False) -> None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L159", + "doc": "

Save scenes to individual H5 files or groups in a merged H5 file.

", + "params": [ + { + "name": "path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "append", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "load", + "signature": "load(path: str, scene_ids: list[str] | None = None, packed: bool = True) -> GraspKitData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/graspkit_data.py#L225", + "doc": "

Load scenes in packed form or padded form with uniform grasp counts.

", + "params": [ + { + "name": "path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_ids", + "type": "list[str] | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "packed", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "GraspKitData", + "doc": "" + } + } + ] + }, + "graspkit.datasets.replay_data.ReplayData": { + "kind": "class", + "name": "ReplayData", + "module": "graspkit.datasets.replay_data", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L18", + "anchor": "replaydata", + "doc": "

One recorded trajectory for the replay viewer: robot qpos, object pose and the assets to draw them.

", + "params": [ + { + "name": "qpos", + "type": "Float[np.ndarray, 'T dof']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "obj_pose", + "type": "Float[np.ndarray, 'T 7']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mesh_dir", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "base_type", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "obj_mesh_path", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "obj_scale", + "type": "float", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "stage", + "type": "str", + "default": "'sim-valid'", + "required": false, + "doc": "" + }, + { + "name": "label", + "type": "str", + "default": "'success'", + "required": false, + "doc": "" + }, + { + "name": "root_pos", + "type": "Float[np.ndarray, 3]", + "default": "(lambda: np.zeros(3, np.float32))()", + "required": false, + "doc": "" + }, + { + "name": "root_quat", + "type": "Float[np.ndarray, 4]", + "default": "(lambda: np.array([1, 0, 0, 0], np.float32))()", + "required": false, + "doc": "" + }, + { + "name": "table_size", + "type": "Float[np.ndarray, 3]", + "default": "(lambda: np.zeros(3, np.float32))()", + "required": false, + "doc": "" + }, + { + "name": "table_pos", + "type": "Float[np.ndarray, 3]", + "default": "(lambda: np.zeros(3, np.float32))()", + "required": false, + "doc": "" + }, + { + "name": "table_quat", + "type": "Float[np.ndarray, 4]", + "default": "(lambda: np.array([1, 0, 0, 0], np.float32))()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "qpos", + "signature": "qpos: Float[np.ndarray, 'T dof']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L23", + "doc": "

FK variables: floating [xyz, euler_rxyz, joints] or fixed joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "obj_pose", + "signature": "obj_pose: Float[np.ndarray, 'T 7']", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L25", + "doc": "

Object world pose [xyz, quat_wxyz].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot_path", + "signature": "robot_path: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L27", + "doc": "

URDF or MJCF the viewer loads into ViserUrdf / ViserMjcf.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mesh_dir", + "signature": "mesh_dir: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L29", + "doc": "

URDF mesh directory; empty if none.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_type", + "signature": "base_type: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L31", + "doc": "

\"floating\" or \"fixed\".

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "obj_mesh_path", + "signature": "obj_mesh_path: str", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L33", + "doc": "

Object collision mesh (loaded via trimesh).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "obj_scale", + "signature": "obj_scale: float", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L35", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage", + "signature": "stage: str = 'sim-valid'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L36", + "doc": "

Viewer partition, e.g. optimize_grasps.py --verbose's \"sample (unfiltered)\" ... \"sim\".

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "label", + "signature": "label: str = 'success'", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L38", + "doc": "

Free filter within a stage, e.g. \"success\" or \"failure\".

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "root_pos", + "signature": "root_pos: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L41", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "root_quat", + "signature": "root_quat: Float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L42", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "table_size", + "signature": "table_size: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L44", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "table_pos", + "signature": "table_pos: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L45", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "table_quat", + "signature": "table_quat: Float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32))", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L46", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "from_traj", + "signature": "from_traj(qpos: Float[np.ndarray, 'T dof'], obj_pose: Float[np.ndarray, 'T 7'], robot_config: RobotConfig, scene_desc: SceneDescription, stage: str = 'sim-valid', label: str = 'success') -> ReplayData", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L48", + "doc": "", + "params": [ + { + "name": "qpos", + "type": "Float[np.ndarray, 'T dof']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "obj_pose", + "type": "Float[np.ndarray, 'T 7']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_config", + "type": "RobotConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_desc", + "type": "SceneDescription", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "stage", + "type": "str", + "default": "'sim-valid'", + "required": false, + "doc": "" + }, + { + "name": "label", + "type": "str", + "default": "'success'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ReplayData", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "save", + "signature": "save(replays: list[ReplayData], path: str) -> None", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L78", + "doc": "", + "params": [ + { + "name": "replays", + "type": "list[ReplayData]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "path", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "load", + "signature": "load(path: str) -> list[ReplayData]", + "source": "https://github.com/openrobokit/graspkit/blob/main/src/graspkit/datasets/replay_data.py#L102", + "doc": "", + "params": [ + { + "name": "path", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "list[ReplayData]", + "doc": "" + } + } + ] + } + } + } + ] +}, +{ + "name": "Development", + "items": [ + { + "id": "dev", + "nav": "Development Guide", + "h": "Development Guide", + "body": "

Setup

GraspKit needs Python 3.10–3.14.

shell
git clone https://github.com/openrobokit/graspkit.git\ncd graspkit\nuv sync --extra maniskill --extra spconv

uv sync installs the dev and pt-cu126 groups by default; the full pipeline also needs the maniskill and spconv extras (Python 3.10–3.12). For another PyTorch build, see Installation.

Git Workflow

Create your own branch for development. Use pull requests with squash merge to merge to main. Delete your branch after merging. GitHub CI runs ruff and the tests on a CPU runner without Hugging Face access, where tests marked cuda or hf_assets skip, so run the full suite locally on a GPU before opening a pull request.

Formatting, Linting, and Tests

shell
make ci                       # format + lint + test\nmake format                   # uvx ruff@0.15.22 format\nmake lint                     # uvx ruff@0.15.22 check --fix\nCUDA_VISIBLE_DEVICES=0 make test  # uv run pytest tests

tests/ mirrors src/graspkit/ and scripts/ (tests/scripts/), one Test<Feature> class per feature; shared fixtures live in tests/conftest.py. Mark tests that need a GPU with @pytest.mark.cuda and tests that need Hugging Face assets (robokit robots, graspkit scenes) with @pytest.mark.hf_assets; import such assets inside the test, since robokit downloads a robot when its module is imported.

Pre-commit hooks run ruff. Pin the same ruff version the Makefile does; a newer default rule set reports findings CI does not.

Running Things

Configs

All config classes live in src/graspkit/configs/*_config.py; their instances live apart, in configs/experiment/, configs/robot/, configs/grasp_policy.py, configs/mj_hand.py and configs/real_env.py. A new robot or experiment is a module plus one line in the registry of its package's __init__.py. See the Config System.

Code Style

The robokit Boundary

robokit holds robot-generic math (terms, solvers, lie, geom, robo); graspkit holds the research pipelines and anything tuned per experiment. Code moves to robokit only when a second consumer exists, and it is moved, never copied. robokit is pinned by git rev in pyproject.toml ([tool.uv.sources]): to pick up robokit changes, merge there, bump the rev, then uv sync.

" + } + ] +}, +// END GENERATED graspkit DOCS + ] +}; diff --git a/data/docs/retargetingkit.js b/data/docs/retargetingkit.js new file mode 100644 index 0000000..fc73e6b --- /dev/null +++ b/data/docs/retargetingkit.js @@ -0,0 +1,4015 @@ +// retargetingkit documentation. Written by scripts/import_retargetingkit_docs.py; the +// hand-written groups outside the GENERATED markers are edited here. +// Loaded only by scripts/build_docs.py -- the browser reads the static +// pages it emits, never this file. +window.RK_DOCS = window.RK_DOCS || {}; +window.RK_DOCS.retargetingkit = { + title: 'retargetingkit', + lede: "Real-time human-to-robot motion retargeting, built on robokit.", + groups: [ + // BEGIN GENERATED retargetingkit DOCS (scripts/import_retargetingkit_docs.py) +{ + "name": "User Guide", + "items": [ + { + "id": "overview", + "nav": "Overview", + "h": "Overview", + "body": "

\"RetargetingKit\"

\"Dexterous

RetargetingKit maps human motion to robot hands, arms, and humanoids. It combines RoboKit optimization with neural hand models for recorded motion and real-time teleoperation.

Key features

How it works

flowchart LR\n Source[\"`Source\n *VR · gloves · mocap · recordings*`\"]\n Retargeter[\"`Retargeter\n *Optimization + Neural*`\"]\n Target[\"`Target\n *Viser · robot hardware*`\"]\n Source -- \"Frame: hand · arm · body\" --> Retargeter\n Retargeter -- \"Command: joints · base pose\" --> Target\n classDef endpoint fill:#dbeafe,stroke:#2563eb,color:#111827\n classDef solver fill:#dbc8ea,stroke:#8163a1,stroke-width:2px,color:#111827\n class Source,Target endpoint\n class Retargeter solver
ComponentRoleRead more
SourceRead a device or recording.Sources
FrameRepresent human hand, arm, or body motion.Frames
RetargeterMap motion to a robot through optimization or neural inference.Interfaces
CommandCarry robot joints and an optional base pose.Commands
TargetPreview motion or command hardware.Targets

Features

\"Hand\"Geometry-aware\"Real-time
Hand retargeting Map tracked hand motion to robot joints.Geometry-aware hand retargeting Refine hands against object geometry.Real-time hand teleoperation Drive a robot hand from live tracking.
\"Humanoid\"Geometry-aware\"Real-time
Humanoid retargeting Map captured body motion to humanoids.Geometry-aware humanoid retargeting Account for terrain and contact.Real-time humanoid teleoperation Drive a humanoid from live motion.
\"Full-body\"Geometry-aware\"Real-time
Full-body retargeting Combine body and hand motion.Geometry-aware full-body retargeting Preserve scene and object interactions.Real-time full-body teleoperation Drive body and hands together.

Quick links

" + }, + { + "id": "quickstart", + "nav": "Quickstart", + "h": "Quickstart", + "body": "

Try it without installing

Choose a free GPU and set CUDA_VISIBLE_DEVICES. Then run the interactive hand gallery without installing RetargetingKit:

shell
uvx --from 'retargetingkit[vis]' \\\n    python -m retargetingkit.gallery.hand_retargeting

Open the Viser URL printed in the terminal. Select a robot and motion, then play or scrub the result. Replace hand_retargeting with any gallery below. Each preview records that gallery's Viser scene.

\"Hand\"Neural\"Hand
hand_retargeting Retarget tracked hands.hand_neural Compare neural hand models.hand_contact Refine hand-object contact.
\"DexMachina\"GigaHands\"OakInk2
hand_object_dexmachina Explore DexMachina interactions.hand_object_gigahands Explore GigaHands interactions.hand_object_oakink2 Explore OakInk2 interactions.
\"Humanoid\"Humanoid\"Humanoid
humanoid Browse motions and robot presets.humanoid_contact Retarget object interactions.humanoid_terrain Adapt motion to terrain.
\"Full-body\"Full-body
full_body_hoi Retarget body and hand interactions.full_body_hsi Retarget body motion in furnished scenes.

To list gallery module names from an installed checkout, run uv run python -m retargetingkit.gallery. Gallery data, robot models, and checkpoints download on first use; complete asset setup first.

Solve one humanoid retargeting problem

After installing, this program maps one frame of the included BVH recording to a Unitree G1 pose on CPU:

python
from retargetingkit.assets.sample_bvh import EXAMPLE_BVH\nfrom retargetingkit.retargeting.humanoid.online import HumanoidRetargeterConfig\nfrom retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned\nfrom retargetingkit.sources.misc.human_frame_file import BodyFileSourceConfig\n\nsource = BodyFileSourceConfig(EXAMPLE_BVH, use_ankle_as_foot_target=True).build()\nretargeter = HumanoidRetargeterConfig(g1_aligned).build(\"cpu\")\ncommand = retargeter.solve(source.get_frame())\nprint(command.qpos.shape, command.base_pose.shape)  # (29,) (7,)\nsource.close()

The source produces a BodyFrame; the retargeter returns G1 joint positions and a floating-base pose.

More examples

Galleries are interactive demos. For code to copy, open a runnable script below. Paths are relative to src/retargetingkit/examples.

DirectoryScripts
hand_optimization01_online.py, 02_offline.py, 03_batch.py, 04_arm.py, 05_online_batch.py, 06_dexycb_online.py
hand_neural02_batch.py
humanoid01_online.py, 02_collision.py, 03_self_collision.py, 04_offline.py, 05_batch.py, 06_online_batch.py, 07_contact.py
full_body01_hoi.py, 02_hsi.py

Example usage:

shell
uv run --extra vis src/retargetingkit/examples/humanoid/01_online.py
" + }, + { + "id": "install", + "nav": "Installation", + "h": "Installation", + "body": "

RetargetingKit needs Python 3.10 or newer.

shell
uv add retargetingkit
shell
pip install retargetingkit

From source

shell
uv add git+https://github.com/openrobokit/retargetingkit.git
shell
pip install git+https://github.com/openrobokit/retargetingkit.git

To work on RetargetingKit itself, clone the repository and run uv sync. See the Development Guide.

Extras

ExtraWhat it adds
visBrowser galleries and Viser previews.
contactHand-object contact examples.
vision-pro, pico, manus, axisLive motion sources; see Sources.
xarm, inspire, abilityPhysical arm and hand targets; see Targets.
realsenseRealSense camera source.
rby1, dexmateHumanoid hardware connections.

The pico, manus, and axis extras use wheels from a separate index:

shell
uv add \"retargetingkit[manus]\" --index https://jianglongye.github.io/torch_packages_builder
shell
pip install \"retargetingkit[manus]\" --extra-index-url https://jianglongye.github.io/torch_packages_builder

See Assets, then start with the Quickstart.

" + }, + { + "id": "hand-optimization", + "nav": "Hand Retargeting", + "h": "Hand Retargeting", + "body": "
\"Tracked\"Hand-object
Hand motion on a robot assembly.Hand-object contact refinement.

Map human hand motion to robot joint positions with RoboKit's online or offline optimization. Start with a recorded example, then connect a Manus glove or Apple Vision Pro.

How Retargeting Works

A source supplies hand keypoints. The optimization retargeter matches them to a robot hand while respecting its joints and, when configured, object contact. Online solving handles one frame at a time; offline solving optimizes a trajectory. Both produce joint positions in the robot's URDF order.

Try a recording

From the RetargetingKit checkout, run:

shell
uv run --extra vis python -m retargetingkit.examples.hand_optimization.01_online

Open the Viser address printed in the terminal. The example replays hand motion and shows the retargeted robot without connecting hardware. Required assets download on first use. Press Ctrl+C to stop.

Use the Python API

Build a rig's retargeter and pass it one HandFrame per update:

python
from retargetingkit.configs.teleop.hand.manus_sharpa import RIGHT_MANUS_SHARPA_CONFIG\n\nretargeter = RIGHT_MANUS_SHARPA_CONFIG.retargeter.build(device)\n\nfor frame in stream:  # HandFrame: right-hand MANO-21 keypoints\n    command = retargeter.solve(frame)\n    qpos = command.qpos  # (22,), Sharpa joints in URDF order

Preview live motion

Complete the source setup first. For a right Manus glove and XHand:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \\\n    manus_xhand --mode viser

The live runtime defaults to cuda:0. Select an available GPU with CUDA_VISIBLE_DEVICES before launching, or pass --device cpu for optimization on CPU.

Optimization rigSourceRobot hand
manus_xhandManusXHand
manus_sharpaManusSharpa Wave
visionpro_xhandVision ProXHand
visionpro_sharpaVision ProSharpa Wave

Inspect a preset's device settings with uv run scripts/teleop/hand.py manus_xhand --help. Vision Pro requires the vision-pro extra.

Connect the robot

After checking motion in the viewer, configure the matching XHand or Sharpa target.

ModeBehavior
viserPreview only; the robot target is not opened. This is the default.
realConnect and command the physical hand.
bothCommand the physical hand and show Viser.

For example, manus_xhand --mode both --target.serial-port /dev/ttyUSB0 enables XHand hardware alongside the preview.

Work with trajectories

Use the packaged examples to inspect solver construction and array shapes:

Module under retargetingkit.examples.hand_optimizationTask
01_onlineRetarget one stream frame by frame
02_offlineOptimize one recorded trajectory
03_batchOptimize several trajectories together
04_armRetarget an arm and hand together
05_online_batchRetarget several arm-hand streams online

Run any module with uv run --extra vis python -m <MODULE>. Robot outputs use URDF joint order. Online inputs have shape (K, 3) or (B, K, 3), with points ordered by spec.target_names; offline inputs add a time axis.

Inspect object contact

Browse DexYCB recordings with an xArm7–XHand or xArm7–Ability assembly and compare contact refinement in the viewer:

shell
uv run --extra vis python -m retargetingkit.gallery.hand_contact

For learned inference, including the supported live manus_sharpa_neural rig, continue with neural hand retargeting.

" + }, + { + "id": "neural-hand", + "nav": "Neural Hand Retargeting", + "h": "Neural Hand Retargeting", + "body": "

\"Neural

Train a model for one robot hand, then map wrist-local MANO-21 keypoints to joint positions in URDF order. Curated checkpoints support Allegro, Sharpa Wave, and XHand.

How Inference Works

The source returns a HandFrame; the selected checkpoint maps its wrist-local keypoints to a QPosCommand. A checkpoint belongs to one robot hand, so choose the matching hand and model before connecting a target.

Try a trained model

Run the gallery from the RetargetingKit checkout:

shell
uv run --extra vis python -m retargetingkit.gallery.hand_neural

Open the printed Viser address to choose a hand and checkpoint. The selected model downloads on first use and is cached. These commands default to CUDA; select an available GPU with CUDA_VISIBLE_DEVICES, or use --device cpu.

Use the Python API

Load a named checkpoint for its hand and pass it one HandFrame per update:

python
from retargetingkit.retargeting.hand.neural import NeuralHandAssetRetargeterConfig\nfrom retargetingkit.retargeting.hand.presets import HANDS\n\nconfig = NeuralHandAssetRetargeterConfig(\"sharpa_motion_alignment\", HANDS[\"sharpa\"])\nretargeter = config.build(device)\n\nfor frame in stream:  # HandFrame: right-hand MANO-21 keypoints\n    command = retargeter.solve(frame)\n    qpos = command.qpos  # (22,), Sharpa joint angles

With a configured Manus glove, preview live Sharpa inference:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \\\n    manus_sharpa_neural --mode viser

This preset loads sharpa_motion_alignment_contact_inhand. Set --mode real or --mode both to connect and command a physical Sharpa hand.

Train a recipe

Five training recipes live in scripts/teleop/neural_hand/configs/training/:

HandRecipe filename
Allegroallegro_motion_alignment.yaml
XHandxhand_motion_alignment.yaml
Sharpasharpa_motion_alignment.yaml
Sharpa with contact datasharpa_motion_alignment_contact.yaml
Sharpa with in-hand contact datasharpa_motion_alignment_contact_inhand.yaml

For example:

shell
uv run scripts/teleop/neural_hand/train.py \\\n    scripts/teleop/neural_hand/configs/training/xhand_motion_alignment.yaml

The YAML selects named motion and calibration assets, loss weights, and an output directory. Training writes train.yaml with data provenance and weights.pt to ik_model/xhand_motion_alignment/ for this recipe. The output directory must not already exist; choose a new output path for another run.

Record your own motion

Record the right Manus glove at 30 Hz:

shell
uv run --extra manus --extra vis scripts/teleop/neural_hand/record_motion.py \\\n    --output motion.npz

Press Enter to start, then Enter again to stop and save. Add --no-viz to record without a viewer. To use this recording for training, register it as a named asset in retargetingkit.assets.calib and reference that name under data.unsupervised in your YAML.

Replay the recording through your trained model:

shell
uv run --extra vis scripts/teleop/neural_hand/visualize.py xhand \\\n    --checkpoints ik_model/xhand_motion_alignment --data motion.npz

Add contact supervision

The Sharpa contact workflow generates candidate YCB grasps, then captures matching human poses:

shell
uv run --extra contact scripts/teleop/neural_hand/contact_generate.py \\\n    scripts/teleop/neural_hand/configs/contact/sharpa_ycb_contact.yaml\n\nuv run --extra contact --extra manus --extra vis \\\n    scripts/teleop/neural_hand/contact_capture.py \\\n    --specs sharpa_grasp.npz --output training_data.npz

Use the capture viewer to record, skip, and save samples. Register the result as a calibration asset and reference it under data.contact in a training YAML.

For paired human/robot measurements, record_pairs.py supports Manus and Sharpa. It starts in neural control mode and commands the physical hand; t toggles teaching mode, c captures a pair, and q saves and exits.

" + }, + { + "id": "arm-retargeting", + "nav": "Arm Retargeting", + "h": "Arm Retargeting", + "body": "

\"An

Map a tracked wrist to an xArm6 or xArm7 end effector. The arm solver uses RoboKit inverse kinematics with position, orientation, joint-limit, and smoothness terms.

How Retargeting Works

The source reports wrist poses in an ArmFrame. Calibration establishes the robot's home pose; inverse kinematics then maps relative wrist motion to a joint-position command for each arm.

Preview one arm

Complete Vision Pro setup, then run:

shell
uv run --extra vision-pro scripts/teleop/arm.py \\\n    visionpro_xarm7 --mode viser --device cpu \\\n    --source.ip <VISION_PRO_IP>

Open the Viser URL printed in the terminal. visionpro_xarm6 selects xArm6; visionpro_dual_xarm7 controls two independent arms.

Use the Python API

Build the rig's right-arm retargeter and pass it one ArmFrame per update:

python
from retargetingkit.configs.teleop.arm.visionpro_xarm7 import RIGHT_VISIONPRO_XARM7_CONFIG\n\nretargeter = RIGHT_VISIONPRO_XARM7_CONFIG.retargeters[\"right\"].build(device)\n\nfor frame in stream:  # ArmFrame: world-frame wrist [x, y, z, qw, qx, qy, qz]\n    command = retargeter.solve(frame)\n    qpos = command.qpos  # (7,), xArm7 joint positions

The first frame is the calibration origin, so it returns the home pose.

Retarget an arm and hand

Optimize the arm and fingers from each synchronized ArmHandFrame. The wrist pose is in world coordinates; hand keypoints are wrist-local. This example builds only the solvers and needs no tracking device or robot connection.

python
from retargetingkit.configs.teleop.arm_hand.visionpro_xarm7_xhand import RIGHT_VISIONPRO_XARM7_XHAND_CONFIG\n\nconfig = RIGHT_VISIONPRO_XARM7_XHAND_CONFIG\narm = config.arm_retargeters[\"right\"].build(device)\nhand = config.hand_retargeters[\"right\"].build(device)\n\nfor frame in stream:  # ArmHandFrame: synchronized wrist and finger poses\n    arm_qpos = arm.solve(frame.arm).qpos  # (7,), xArm7 joints\n    hand_qpos = hand.solve(frame.hand).qpos  # (12,), XHand joints

Calibration and motion

The first tracked wrist pose becomes the calibration origin and maps to the robot's configured home pose. Wrist movement is then applied relative to that origin.

Override for the right armEffectDefault
--retargeters.right.translation-scaleScale wrist translation1.5
--retargeters.right.ee-gainBlend each new end-effector pose with the previous pose1.0

A smaller gain smooths movement more. Use visionpro_xarm7 --help for all settings. Arm-hand rigs use the prefix --arm-retargeters.right instead.

Connect a robot

Use the xArm guide for SDK installation, network setup, and hardware mode. At startup, hardware mode moves each arm to its model-specific home pose.

To move fingers along with the wrist, choose a supported assembly on the Vision Pro page. Quest controller teleoperation has its own standalone workflow and button calibration.

" + }, + { + "id": "humanoid-retargeting", + "nav": "Humanoid Retargeting", + "h": "Humanoid Retargeting", + "body": "
\"Human\"Humanoid
Human motion mapped to a humanoid.Humanoid motion on terrain.

Map recorded or live body motion to G1 at 50 Hz. The runtime sends robot root pose and joint positions to its configured targets; the SONIC target derives joint velocities for whole-body control.

How Retargeting Works

A body source returns named joint poses in a BodyFrame. The humanoid retargeter maps them to G1 links and solves a base pose plus joint positions. A Viser target displays the command; a SONIC target publishes it for whole-body control.

Preview recorded motion

Start with the packaged example, which opens a Viser preview without a SONIC publisher:

shell
uv run --extra vis python -m retargetingkit.examples.humanoid.01_online

Open the printed viewer address. Required assets download on first use; press Ctrl+C to stop.

Use the Python API

Build the G1 retargeter and pass it one BodyFrame per update:

python
from retargetingkit.retargeting.humanoid.online import HumanoidRetargeterConfig\nfrom retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned\n\nretargeter = HumanoidRetargeterConfig(g1_aligned).build(device)\n\ncommand = retargeter.solve(frame)  # BodyFrame: named world-frame joint poses\nbase_pose = command.base_pose  # (7,), [x, y, z, qw, qx, qy, qz]\nqpos = command.qpos  # (29,), G1 joints in URDF order

Publish to SONIC

The bundled BVH preset needs no tracking device:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser

Every named humanoid preset publishes to SONIC on port 5556. The _viser suffix adds visualization of the same motion; it does not disable SONIC. Run a single publisher on that port. The live runtime defaults to cuda:0; select an available GPU with CUDA_VISIBLE_DEVICES, or set --device cpu.

Override a recording and performer height:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser \\\n    --source.path /path/to/motion.bvh --source.human-height 1.80

Choose a live source

Complete Axis Studio or PICO setup before starting its rig.

shell
uv run --extra axis --extra vis scripts/teleop/humanoid.py \\\n    axisstudio_g1_sonic_viser --source.port 7012 --source.human-height 1.75\n\nuv run --extra pico --extra vis scripts/teleop/humanoid.py \\\n    pico_g1_sonic_viser --source.no-use-ankle-as-foot-target

The PICO override uses tracked foot poses instead of substituting ankle poses. For a PICO recording, use picofile_g1_sonic_viser --source.path /path/to/recording.npz. Remove _viser from these preset names to publish without a viewer.

Use uv run scripts/teleop/humanoid.py <RIG> --help to inspect all overrides.

Control both Inspire hands

This combined rig opens one PICO connection, publishes G1 motion to SONIC, and connects both physical Inspire hands. It has no preview mode.

shell
uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \\\n    pico_g1_inspire --source.no-use-ankle-as-foot-target \\\n    --left-hand.serial-port /dev/ttyUSB0 \\\n    --right-hand.serial-port /dev/ttyUSB1

B toggles the right hand between open and closed; Y toggles the left. These are preset poses, not continuous finger tracking. See Inspire Hand for the serial connection.

Run G1 in simulation

Configure the deployment checkout described in G1 and SONIC, then start a SONIC rig and launch:

shell
bash scripts/tools/launch_sonic_sim.sh

The launcher opens MuJoCo and deployment in a tmux session. In the deployment pane, press ], then Enter, to start the policy. The G1 target guide also covers connection to a real robot.

" + }, + { + "id": "full-body", + "nav": "Full-Body Retargeting", + "h": "Full-Body Retargeting", + "body": "
\"SAGA\"ParaHome
Body, hand, and object interaction.Body and hand motion in a furnished scene.

Retarget body motion, articulated fingers, and object interaction together to a G1 with Inspire hands. RetargetingKit loads SAGA or ParaHome clips; RoboKit solves the robot motion and object poses.

How Retargeting Works

Each clip supplies body motion, finger motion, and interaction geometry. The body solver tracks human poses on G1; hand solvers track the fingers; grasp and scene terms keep the combined motion aligned with objects.

Retarget one object interaction

Run the SAGA example from the RetargetingKit checkout:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.01_hoi

The default clip contains a body, captured right-hand motion, and one object. After solving, open the printed Viser address to play or scrub the result. Press Ctrl+C to stop. The example chooses CUDA when available and otherwise uses CPU.

Pass --npz /path/to/clip.npz for a local SAGA FullGraspPose recording. The example still fetches its SAGA asset bundle, including object meshes.

Retarget an indoor interaction

ParaHome adds bimanual interaction and a furnished scene. List the available intervals in a sequence:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \\\n    --sequence s1 --list

Select an interval from that list:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \\\n    --sequence s1 --index 7 --scene_clearance

--scene_clearance adjusts body placement to reduce penetration into furniture. Use --no_scene to omit the room, or --data_root /path/to/ParaHome/data to provide local ParaHome data.

Browse more clips

shell
uv run --extra vis python -m retargetingkit.gallery.full_body_hoi\nuv run --extra vis python -m retargetingkit.gallery.full_body_hsi

Choose a subject or sequence, then a clip in the viewer. By default, both galleries use captured finger poses and contact refinement. Add --grasp to optimize and hold grasps over contact intervals. The ParaHome gallery also exposes scene clearance in its viewer.

Both galleries accept --max_frames 60 --headless to solve a shorter selection and exit without opening a viewer. Dataset and model assets download on first use; gallery startup can fetch more than the selected clip.

These workflows produce motion for inspection. For live G1 control, follow humanoid teleoperation.

" + }, + { + "id": "teleoperation", + "nav": "Teleoperation", + "h": "Teleoperation", + "body": "
\"Real-time\"Real-time
Dexterous hand control.Humanoid motion control.

A named rig connects a source, retargeter, and target in one command. Choose the flow that matches the motion you want to control, then complete the linked device setup.

Choose a flow

FlowMotion sourceRobot output
hand.pyManus or Vision ProOne robot hand
arm.pyVision ProOne or two xArms
arm_hand.pyVision ProSynchronized arms and hands
humanoid.pyBVH, Axis Studio, PICO, or a PICO recordingG1 motion through SONIC, with optional Viser
humanoid_hand.pyPICO body motion and buttonsG1 plus two physical Inspire hands

Quest 3, RealSense, and ZED have standalone device scripts. They are not inputs to these named rigs.

Select a rig

List the available rigs, then inspect a selected rig's settings:

shell
uv run scripts/teleop/hand.py --help\nuv run scripts/teleop/hand.py manus_xhand --help

The first command lists rigs; the second shows the selected rig's fields and defaults. Install the source's dependencies before running it; each device page provides a complete command.

Override settings

Configuration fields become dotted options. For example, replay a Vision Pro recording at its original rate and scale wrist movement:

shell
uv run --extra vision-pro scripts/teleop/arm.py \\\n    visionpro_xarm7 --mode viser --device cpu \\\n    --source.recording-path data/vision_pro.pkl \\\n    --source.recording-fps 50 \\\n    --retargeters.right.translation-scale 0.5

Create the recording with the Vision Pro recorder first. Recording files do not store frame rate, so pass the rate used when capturing.

Field familyExample
Source--source.ip, --source.recording-path
Arm connection--arms.right.ip
Arm solver in arm.py--retargeters.right.translation-scale
Arm solver in arm_hand.py--arm-retargeters.right.translation-scale
Humanoid target tuple--targets.0.port

The fields available depend on the selected rig. Boolean switches may use a --no- form; PICO's foot mapping uses --source.no-use-ankle-as-foot-target.

Choose the output

hand, arm, and arm_hand default to viser:

ModeOutput
--mode viserBrowser preview
--mode realPhysical robot
--mode bothPhysical robot and browser preview

Humanoid flows choose targets through the rig. A *_sonic_viser rig publishes SONIC commands and displays the same motion in Viser. The viewer works without a SONIC receiver. humanoid_hand opens physical Inspire hands and has no preview mode.

SONIC runs as a separate receiver. See G1 / SONIC for sender and receiver settings, simulation, and deployment.

Start with Humanoid teleoperation for body motion, or Quickstart for a recording that needs no hardware.

Use the Python API

A rig is a source, a retargeter, and targets. This loop runs the BVH rig without a tracking device or robot: SONIC publishes commands whether or not a receiver is running.

python
from retargetingkit.configs.teleop.humanoid.bvh_g1_sonic import BVH_G1_SONIC_CONFIG\n\nconfig = BVH_G1_SONIC_CONFIG\nsource = config.source.build()\nretargeter = config.retargeter.build(device)\ntargets = [target_config.build() for target_config in config.targets]\n\nwhile True:\n    frame = source.get_frame()\n    if frame is not None:\n        command = retargeter.solve(frame)\n        for target in targets:\n            target.set_command(command)
" + }, + { + "id": "ref-assets", + "nav": "Assets", + "h": "Assets", + "body": "

Recordings, checkpoints, and robot models download on first use. Importing retargetingkit alone downloads nothing.

Cache

AssetSourceCache
Recordings, calibration, training dataopenrobokit/retargetingkit~/.retargetingkit/assets/<revision>/
Neural checkpointsSame dataset, models/ik_model/Inside the same revision cache
Robot URDFs, meshes, collision and contact dataRoboKit assets~/.robokit/assets/<revision>/
MANO / SMPL-X body modelsLocal model filesROBOKIT_BODY_MODELS or ~/.robokit/body_models/
YCB meshesYCB benchmark S3~/.retargetingkit/ycb/

Resolve an asset

Use named accessors so examples and applications share the same data:

python
from retargetingkit.assets import calib, neural_hand, sample_bvh\n\ncalibration = calib.get(\"manus_calib\")\ncheckpoint = neural_hand.get(\"sharpa_motion_alignment_contact_inhand\")\nmotion = sample_bvh.EXAMPLE_BVH

Robot models come from RoboKit:

python
from robokit.assets.robots.end_effectors import sharpa_hand\n\nurdf = sharpa_hand.URDF_PATH_RIGHT

Pinned revision

retargetingkit.assets.REVISION pins the dataset commit; accessors call robokit.assets.fetch with it, the dataset id, and ~/.retargetingkit. Bump the pin after publishing new data. To download again, delete the matching ~/.retargetingkit/assets/<revision>/.done/ marker.

" + } + ] +}, +{ + "name": "Concepts", + "items": [ + { + "id": "pipeline", + "nav": "Pipeline", + "h": "Pipeline", + "body": "

RetargetingKit connects a motion source, a retargeter, and one or more targets. RoboKit provides the robot models and optimization tools used by the solvers.

flowchart TD\n accTitle: RetargetingKit framework\n accDescr: Sources provide hand, arm, or body frames. Hand optimization, neural hand inference, and arm IK produce joint commands. Humanoid retargeting produces a base pose and joint command. Targets display the motion or send it to robot hardware and SONIC.\n\n SOURCE[\"Sources<br/>VR · gloves · mocap · recordings\"]\n HAND[\"HandFrame<br/>MANO-21 keypoints\"]\n ARM[\"ArmFrame<br/>World wrist poses\"]\n BODY[\"BodyFrame<br/>Named joint poses\"]\n OPT[\"Hand<br/>optimization\"]\n NEURAL[\"Neural hand<br/>inference\"]\n IK[\"Arm IK\"]\n HUMANOID[\"Humanoid<br/>retargeting\"]\n JOINTS[\"QPosCommand<br/>Joint positions\"]\n BASE[\"BasePoseQPosCommand<br/>Base pose + joints\"]\n ROBOT[\"Hand / arm targets<br/>Hardware · Viser\"]\n BODY_TARGET[\"Humanoid targets<br/>Viser · SONIC transport\"]\n\n SOURCE --> HAND\n SOURCE --> ARM\n SOURCE --> BODY\n HAND --> OPT\n HAND --> NEURAL\n ARM --> IK\n BODY --> HUMANOID\n OPT --> JOINTS\n NEURAL --> JOINTS\n IK --> JOINTS\n HUMANOID --> BASE\n JOINTS --> ROBOT\n BASE --> BODY_TARGET\n\n class SOURCE framework-source

On narrow screens, scroll horizontally to read the full diagram.

ArmHandFrame synchronizes wrist and finger observations from one source; the runtime sends its arm and hand frames through their respective solvers. SONIC forwards humanoid commands to a separate control process for simulation or G1 hardware.

Three stages

StageResponsibilityExamples
SourceConvert device data or a recording into a canonical frameVision Pro, Manus, PICO, BVH
RetargeterMap human motion to robot jointsArm IK, hand optimization, neural hand, humanoid
TargetDisplay or send the resultViser, robot hardware, SONIC transport

A named rig supplies the matching source, solver, robot, and connection settings. The runtime builds them and runs the control loop. Start with a named rig for a complete workflow.

The diagram covers the canonical retargeting paths. Quest 3 has a standalone controller workflow. The PICO body-and-hands rig adds B/Y button commands for Inspire hand opening and closing alongside the body retargeter.

Shared data

Frames describe human motion. Commands describe a single solved robot pose. The source handles device axes and joint ordering before a retargeter receives the frame.

Hands use wrist-local MANO-21 keypoints; arms use world-frame wrist poses; bodies use named joint poses in a Z-up world frame. See Canonical frames for shapes and units.

One loop

For an initialized hand source, matching retargeter, and joint-position target:

python
frame = source.get_frame()\nif frame is not None:\n    command = retargeter.solve(frame)\n    target.set_qpos(command.qpos)

Humanoid runtimes call target.set_command(command) so the target receives the base pose together with the joints. The runtime also owns startup and cleanup; the snippet shows only one update.

See Interfaces to build a custom pipeline, or RoboKit's robot model for the underlying kinematics.

" + }, + { + "id": "frames", + "nav": "Canonical frames", + "h": "Canonical frames", + "body": "

Source adapters convert native device data into a shared format. Solvers receive positions in meters, scalar-first quaternions, and explicit joint names.

Units and poses

ValueConvention
PositionMeters
Robot joint positionRadians, in actuated URDF order
Quaternion(qw, qx, qy, qz)
Pose(x, y, z, qw, qx, qy, qz)
Body coordinatesRight-handed Z-up world frame

Canonical poses have shape (7,). Native device matrices and quaternion orders are converted inside each source adapter.

Human motion

FrameContent
HandFramehands: side → wrist-local HandPose
ArmFramewrists: side → world-frame (7,) pose
ArmHandFrameSynchronized arm and hand frames
BodyFramejoint_names, (J, 7) world poses, human_height

Sides are \"left\" and \"right\". A frame can contain one available hand or both; check the requested side before consuming it. Body joint names travel with the data so the solver can select the joints it needs.

Hand keypoints

HandPose.positions contains 21 wrist-local MANO-21 points. It also carries joint orientations, a valid-point mask, and joint names.

python
import numpy as np\nfrom retargetingkit.sources.frames import HandFrame, HandPose, MANO21\n\npositions = np.zeros((21, 3), dtype=np.float32)  # shape example\nframe = HandFrame({\"right\": HandPose(positions)})\nframe.hands[\"right\"].positions.shape  # (21, 3)\nMANO21.WRIST, MANO21.INDEX_TIP        # 0, 8\nMANO21.THUMB_TIP, MANO21.PINKY_TIP    # 4, 20

Replace the zero array with tracked keypoints before solving. See the Frame API for all fields and defaults.

Robot output

QPosCommand carries (Q,) joint positions. BasePoseQPosCommand adds a (7,) floating-base world pose. Neither type includes a time or batch dimension; those belong to recordings and lower-level solver APIs.

" + }, + { + "id": "protocols", + "nav": "Interfaces", + "h": "Interfaces", + "body": "

Each pipeline stage has a runtime interface and a configuration object that builds it. Named rigs compose those configurations for a supported source and robot.

Contracts

ConfigurationBuildsRuntime method
SourceConfigSourceget_frame() returns a frame, or None before data arrives
RetargeterConfigRetargetersolve(frame) returns a robot command
TargetConfigTargetset_qpos(qpos) or set_command(command), depending on the target

Call source_config.build() and target_config.build() to start those components. retargeter_config.build(device) constructs and warms up the solver on the selected device.

Match the frame and command

RetargeterInputOutput
OptimizationHandRetargeterHandFrameQPosCommand
NeuralHandRetargeterHandFrameQPosCommand
ArmRetargeterArmFrameQPosCommand
HumanoidRetargeterBodyFrameBasePoseQPosCommand

Target declares both update methods, but concrete targets implement the methods they support. Use the method expected by the selected runtime; passing only joints to a humanoid target would lose its base pose.

Lifecycle

A runtime builds the components, reads frames, solves, and updates its targets. It calls close() on sources and targets when stopping. See Teleoperation for entrypoints and overrides, and Commands and targets for the API contracts.

" + } + ] +}, +{ + "name": "Reference", + "items": [ + { + "id": "quest3", + "nav": "Quest 3", + "h": "Quest 3", + "body": "

\"CloudXR

Use Quest 3 controllers to move one or two xArm6 or xArm7 end effectors. Tracking comes through NVIDIA Isaac Teleop and CloudXR. The standalone playground supports a Viser preview, controller calibration, and hardware control.

Connect CloudXR

From the RetargetingKit repository, install the playground dependencies and Isaac Teleop:

shell
uv sync --extra vis --extra xarm\nuv pip install \"isaacteleop[cloudxr,retargeters]~=1.0.0\" \\\n    --extra-index-url https://pypi.nvidia.com

Start CloudXR, then load its environment in the terminal used for teleoperation:

shell
uv run --no-sync python -m isaacteleop.cloudxr --accept-eula\n. ~/.cloudxr/run/cloudxr.env

The commands on this page use --no-sync to keep the installed Isaac Teleop environment. If a firewall is active, allow the CloudXR ports:

shell
sudo ufw allow 47998/udp\nsudo ufw allow 49100,48322/tcp

Open the Isaac Teleop WebXR client in the headset browser. Enter the workstation IP, accept its generated certificate, and select Connect, then Play.

\"CloudXR

Check tracking

shell
uv run --no-sync python scripts/sources/quest3/stream.py --side both

Move each controller and check that its position and orientation change. Output includes XYZ position and a quaternion in wxyz order; invalid means that controller is not tracked. Use --side right or --side left to inspect one controller.

Preview an arm

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \\\n    --mode single --single-side right --visualize

Open http://localhost:8080. Align the controller with the displayed end effector, then press B to calibrate and start following your motion. The default translation scale is 0.50.

Controller actionRightLeft
Calibrate; then pause or resumeBY
Return to the calibrated poseAX

Connect xArm hardware

Run a single xArm7:

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \\\n    --mode single --single-side right \\\n    --arm-ip <XARM_IP> --translation-scale 0.50

For two arms, set both xArm IPs:

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \\\n    --mode bimanual \\\n    --right-xarm-ip <RIGHT_IP> --left-xarm-ip <LEFT_IP> \\\n    --translation-scale 0.50

Use --arm xarm6 to select xArm6. Each arm moves to its home pose during startup; calibrate its controller afterward. Press Ctrl-C to stop. Quest uses this standalone script rather than a named rig under scripts/teleop/.

Keep the headset awake

\"Open

\"Disable

For long sessions, enable developer mode, connect SideQuest over USB, and disable the proximity sensor in Device Settings & Tools.

", + "sub": "Sources" + }, + { + "id": "vision-pro", + "nav": "Apple Vision Pro", + "h": "Apple Vision Pro", + "body": "

\"Tracking

Stream head, wrist, and finger tracking from Apple Vision Pro with avp_stream. RetargetingKit can drive robot hands, robot arms, or synchronized arm-and-hand assemblies, and replay the same tracking from a recording.

MotionRuntimeExample rig
Fingersscripts/teleop/hand.pyvisionpro_sharpa
Wristsscripts/teleop/arm.pyvisionpro_xarm7
Wrists and fingersscripts/teleop/arm_hand.pyvisionpro_xarm7_xhand

Connect the headset

\"Open

  1. Connect the workstation and Vision Pro to the same Wi-Fi network.
  2. Open Tracking Streamer on Vision Pro.
  3. Note its IP address and select Start. Use that address as <VISION_PRO_IP> below.
  4. Install the source dependencies from the RetargetingKit repository:
shell
uv sync --extra vision-pro

Check the live stream:

shell
uv run --extra vision-pro scripts/sources/vision_pro/stream.py \\\n    --ip <VISION_PRO_IP>

The terminal prints head position and left/right pinch distances. Move your head and pinch each hand to check the values.

Preview retargeting

Run a right xArm7 with XHand in Viser:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \\\n    scripts/teleop/arm_hand.py visionpro_xarm7_xhand \\\n    --source.ip <VISION_PRO_IP> --mode viser

Open http://localhost:8080. The first tracked wrist frame becomes the calibration origin and maps to the arm's home pose. Finger motion drives the robot hand.

For arm-only or hand-only retargeting:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \\\n    scripts/teleop/arm.py visionpro_xarm7 --source.ip <VISION_PRO_IP>\n\nCUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \\\n    scripts/teleop/hand.py visionpro_sharpa --source.ip <VISION_PRO_IP>

The arm runtime also offers visionpro_xarm6 and visionpro_dual_xarm7. The hand runtime offers visionpro_xhand and visionpro_sharpa. All default to Viser.

Connect hardware

Use --mode both to send the same targets to hardware and Viser:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro --extra xarm \\\n    scripts/teleop/arm_hand.py visionpro_xarm7_xhand \\\n    --source.ip <VISION_PRO_IP> --mode both \\\n    --arms.right.ip <XARM_IP> \\\n    --hands.right.serial-port /dev/ttyUSBX

Each arm moves to its model-specific home pose at startup. Hold the wrist at the desired tracking origin when the first frame is read. Use --mode real for hardware only; press Ctrl-C to stop.

AssemblyNamed rigHand connection
xArm7 + XHandvisionpro_xarm7_xhand, visionpro_dual_xarm7_xhand--hands.right.serial-port
xArm7 + Ability Handvisionpro_xarm7_ability--hands.right.port; add --extra ability
xArm7 + Inspire Handvisionpro_xarm7_inspire--hands.right.serial-port; add --extra inspire
xArm7 + Sharpa Wavevisionpro_xarm7_sharpa--hands.right.device-sn
xArm6 + Sharpa Wavevisionpro_xarm6_sharpa--hands.right.device-sn

Single-arm presets use the right side. For the dual XHand rig, also set --arms.left.ip and --hands.left.serial-port. Sharpa uses the first discovered hand when its device serial number is unset.

To tune arm-and-hand motion, use --arm-retargeters.right.translation-scale for wrist translation and --arm-retargeters.right.ee-gain for pose smoothing. The arm-only runtime uses --retargeters.right.translation-scale and --retargeters.right.ee-gain.

Record and replay

Record 15 seconds at a requested 50 Hz:

shell
uv run --extra vision-pro scripts/sources/vision_pro/record.py \\\n    --ip <VISION_PRO_IP> --duration 15 --rate 50 \\\n    --output data/vision_pro.pkl

Replay with the original rate:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \\\n    scripts/teleop/arm.py visionpro_xarm7 \\\n    --source.recording-path data/vision_pro.pkl \\\n    --source.recording-fps 50

The pickle contains tracking dictionaries without timestamps or frame-rate metadata. Always set --source.recording-fps to the recording rate. Playback holds the final frame when it reaches the end.

To inspect the recorded skeleton directly:

shell
uv run --extra vision-pro scripts/sources/vision_pro/visualize.py \\\n    --recording data/vision_pro.pkl

This viewer and stream.py --recording <FILE> use the device API's fixed default of 20 Hz, so a 50 Hz recording plays more slowly.

Tracking format

The validated avp_stream 2.51 format uses finite float64 values. Translations are in meters and wrist roll is in radians.

FieldShapeCoordinate frame
head(1, 4, 4)World
left_wrist, right_wrist(1, 4, 4)World
left_fingers, right_fingers(25, 4, 4)Wrist-local
left_arm, right_arm(25, 4, 4) or (27, 4, 4)Wrist-local; optional two forearm joints
left_pinch_distance, right_pinch_distancescalarThumb-tip to index-tip distance
left_wrist_roll, right_wrist_rollscalarWrist roll

The streamer converts world poses from Y-up to right-handed Z-up: x'=x, y'=-z, z'=y. Finger and arm matrices stay wrist-local. The 25-joint order is wrist, four thumb joints, then five joints each for index, middle, ring, and little fingers. The optional final two arm joints are forearmWrist and forearmArm.

", + "sub": "Sources" + }, + { + "id": "pico", + "nav": "PICO", + "h": "PICO", + "body": "

\"XRoboToolkit

Use PICO full-body tracking through XRoboToolkit to retarget a 24-joint body to Unitree G1. Record sessions for offline replay, or use controller buttons to open and close two Inspire hands alongside body motion.

PicoSource converts the SDK's Y-up poses to a canonical Z-up BodyFrame. The combined body-and-hands runtime uses B and Y buttons for the hands.

Connect XRoboToolkit

Install XRoboToolkit PC Service, then install the pinned Python SDK from the RetargetingKit repository:

shell
uv sync --extra pico

Start one foreground service and leave its terminal open. For the standard /opt/apps/roboticsservice installation:

shell
cd /opt/apps/roboticsservice\nenv \\\n  LD_LIBRARY_PATH=/opt/apps/roboticsservice:/opt/apps/roboticsservice/lib:/opt/apps/roboticsservice/SDK/x64 \\\n  QT_PLUGIN_PATH=/opt/apps/roboticsservice/plugins \\\n  QT_QML_PATH=/opt/apps/roboticsservice/qml \\\n  ./RoboticsServiceProcess

Connect the workstation and PICO to the same Wi-Fi. In the headset's XRoboToolkit app, enter the workstation's Wi-Fi IPv4 address under PC Service, select Reconnect once, and apply these settings:

SettingValue
Head, Controller, HandChecked
ModeFullbody
High-AccUnchecked
Num2
SendChecked
Switch w/ A ButtonUnchecked
Data Collection: Tracking, VisionUnchecked

Network Status should show WORKING. Any IP shown in a reference image is an example; enter your workstation's address.

Check body tracking

In a second terminal, return to the RetargetingKit repository and run:

shell
uv run --extra pico scripts/sources/pico/smoke_test.py --duration 5

Move your body during the test. It prints pelvis motion and a final 24-joint snapshot. If all poses remain frozen, fully close XRoboToolkit, recalibrate both trackers in the PICO Motion Tracker app, check that its avatar moves, and reopen XRoboToolkit.

Preview G1

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra pico --extra vis \\\n    scripts/teleop/humanoid.py pico_g1_sonic_viser \\\n    --source.no-use-ankle-as-foot-target --device cuda:0

Open http://localhost:8080 to see G1 follow your motion. This rig also publishes to SONIC, but the preview runs without a SONIC process or physical robot hands.

Keep --source.no-use-ankle-as-foot-target: the PICO G1 profile is calibrated for PICO's separate foot joints, while the named presets still default to ankle targets. Set --source.human-height to the user's height in meters; the default is 1.75.

Record and replay

Record a 15-second body session:

shell
uv run --extra pico scripts/sources/pico/record.py \\\n    --duration 15 --rate 50 --out pico_recording.npz

Replay it without a headset:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vis \\\n    scripts/teleop/humanoid.py picofile_g1_sonic_viser \\\n    --source.path pico_recording.npz \\\n    --source.no-use-ankle-as-foot-target

The NPZ stores raw poses as (N, 24, 7) float32, timestamps_s as seconds since recording start, and JSON metadata with measured frame rate and joint names.

Control body and hands

For G1 with two connected Inspire hands:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra pico --extra inspire \\\n    scripts/teleop/humanoid_hand.py pico_g1_inspire \\\n    --source.no-use-ankle-as-foot-target \\\n    --left-hand.serial-port <LEFT_PORT> \\\n    --right-hand.serial-port <RIGHT_PORT>

Press B to toggle the right hand or Y to toggle the left hand between open and closed. This runtime uses button commands, not the PICO hand skeleton. It publishes body commands to SONIC; see humanoid teleoperation for simulation and G1 deployment. Press Ctrl-C to stop.

Tracking format

The validated setup is PICO 4 Ultra with XRoboToolkit App 1.1.1, PC Service 1.0.0, and Python SDK 1.0.2. The wrapper converts arrays to finite float32 values.

DataShapeFormat
Headset or controller pose(7,)[x, y, z, qx, qy, qz, qw]; Y-up world, meters
Body poses(24, 7)24 SMPL joints; same pose format
Body velocity or acceleration(24, 6)Linear XYZ followed by angular XYZ
Active hand poses(27, 7)27 joints per hand
Joystick(2,)X/Y values
Motion Tracker pose(7,) per trackerAvailable in object-tracking mode

Fullbody mode sends the inferred body skeleton rather than raw Motion Tracker poses. The SDK device timestamp is an integer count of nanoseconds.

", + "sub": "Sources" + }, + { + "id": "manus", + "nav": "Manus", + "h": "Manus", + "body": "

Use Manus gloves for hand tracking and optimization-based retargeting to XHand or Sharpa Wave. ManusSource converts each 25-node glove skeleton to a wrist-local MANO-21 HandFrame.

Connect the gloves

Connect the gloves through the Manus host software, then install the SDK runtime and viewer from the RetargetingKit repository:

shell
uv sync --extra manus --extra vis

Preview both raw skeletons:

shell
uv run --extra manus --extra vis \\\n    scripts/sources/manus/visualize_keypoints.py --side both

Open http://localhost:8080 and flex each hand to check its 25-node skeleton. The utility detects sides from glove metadata. If detection is ambiguous, pass --manus-left-id or --manus-right-id with a decimal or 0x glove ID.

Preview retargeting

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra manus --extra vis \\\n    scripts/teleop/hand.py manus_xhand --mode viser

Use manus_sharpa for Sharpa Wave. These named rigs use online optimization and default to the right hand. Select --mode both for hardware plus Viser or --mode real for hardware only. Set --target.serial-port for XHand or --target.device-sn for Sharpa.

Manus currently supplies hand motion only and is not a source for humanoid_hand.py.

Record poses

Capture one frame per Enter press; type q and press Enter to save and finish:

shell
uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \\\n    --hand right --output recording.npz

For a finite continuous recording, set the frame count and rate:

shell
uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \\\n    --hand right --no-viz --frames 300 --rate 30 \\\n    --output manus_recording.npz

Use --hand left or --hand both to change the recorded sides. The preview applies glove calibration; the NPZ preserves raw SDK positions and rotations.

Recording format

Every field begins with left_ or right_ for its saved side. Positions are meters in the SDK's requested right-handed, Z-up coordinate system viewed along X (unitScale=1.0).

Field suffixShapedtypeMeaning
positions(N, 25, 3)float32Raw node positions
rotations(N, 25, 4)float32Raw quaternions in xyzw order
publish_time(N,)uint64Compressed SDK timestamp
recv_ns(N,)int64Host monotonic time at callback receipt
timestamps(N,)float64Seconds since recording start
glove_id(N,)uint32Hardware glove ID
side_code(N,)int32Side enum: 1 left, 2 right

Node ranges are wrist 0, thumb 1–4, index 5–9, middle 10–14, ring 15–19, and little finger 20–24. Each non-thumb finger runs from metacarpal through knuckle and two intermediate joints to the tip.

Treat publish_time as the opaque ManusTimestamp, not Unix time. Use recv_ns for timing intervals within one process run.

", + "sub": "Sources" + }, + { + "id": "axis-studio", + "nav": "Axis Studio", + "h": "Axis Studio", + "body": "

Stream Noitom body motion from Axis Studio in Calc broadcast mode. AxisStudioSource converts the incoming avatar to a canonical Z-up BodyFrame for G1 retargeting.

Connect Axis Studio

The bundled SDK runtime supports Linux x86-64. From the RetargetingKit repository:

shell
uv sync --extra axis --extra vis

In Axis Studio, enable Calc data broadcasting, set the destination to the RetargetingKit workstation, and use UDP port 7012. If a firewall is active:

shell
sudo ufw allow 7012/udp

Preview G1

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra axis --extra vis \\\n    scripts/teleop/humanoid.py axisstudio_g1_sonic_viser \\\n    --source.port 7012 --source.human-height 1.75

Set --source.human-height to the user's height in meters. Open http://localhost:8080 and check that G1 follows the streamed body motion. Change --source.port if Axis Studio uses a different port.

This rig also publishes commands to SONIC. Use axisstudio_g1_sonic to publish without Viser. See humanoid teleoperation for simulation and G1 deployment.

", + "sub": "Sources" + }, + { + "id": "realsense", + "nav": "RealSense", + "h": "RealSense", + "body": "

Capture aligned RGB-D frames with Realsense. The driver runs in a background process and exposes BGR color, raw depth, and camera intrinsics. L515 is the tested model; this camera driver is separate from the canonical teleoperation sources.

Check the camera

From the RetargetingKit repository:

shell
uv sync --extra realsense\nuv run --extra realsense python scripts/sources/realsense/print_intrinsics.py\nuv run --extra realsense --with opencv-python \\\n    python scripts/sources/realsense/stream_rgbd.py

The intrinsics script prints image resolution, focal lengths, principal point, and depth scale. The viewer shows color beside a depth visualization; press Escape to close it.

The driver uses the first connected camera by default. Run rs-enumerate-devices to find a serial number, then pass --serial-number <SERIAL> to either script. The realsense extra pins pyrealsense2<2.55 for L515 depth-stream compatibility.

Read frames in Python

python
from retargetingkit.sources.cameras.realsense import Realsense, RealsenseConfig\n\ncamera = Realsense(RealsenseConfig())\ncamera.start()\ncolor = camera.get_color()          # (H, W, 3), uint8 BGR\ndepth = camera.get_depth()          # (H, W), uint16 sensor units\nintrinsics = camera.get_intrinsics()\ndepth_meters = depth * intrinsics[6]\ncamera.stop()

intrinsics is [fx, fy, ppx, ppy, height, width, depth_scale]. Frames align to the color stream by default; set RealsenseConfig(align_to=\"depth\") to align to depth. start() waits for the first captured frames.

", + "sub": "Sources" + }, + { + "id": "zed", + "nav": "ZED", + "h": "ZED", + "body": "

Capture BGR color and metric depth with a Stereolabs ZED camera. Zed runs capture in a background process and exposes frames and intrinsics. It is a standalone camera driver and requires a CUDA-capable NVIDIA GPU.

Install the SDK

Install the ZED SDK for the workstation's Ubuntu and CUDA versions. Stereolabs publishes one Python binding wheel per Python version (3.10–3.14) for ZED SDK 5.2, Linux x86-64; select the one matching the project's interpreter:

shell
PY=$(uv run python -c 'import sys; print(f\"cp{sys.version_info.major}{sys.version_info.minor}\")')\nPYZED=\"https://download.stereolabs.com/zedsdk/5.2/whl/linux_x86_64/pyzed-5.2-$PY-$PY-linux_x86_64.whl\"

Check the camera

shell
uv run --with \"$PYZED\" --with opencv-python \\\n    python scripts/sources/zed/stream_rgbd.py

The viewer shows color beside a depth visualization; press Escape to close it. It defaults to HD1080, 30 FPS, and ULTRA depth mode. Set --serial-number <SERIAL> to select a camera, or use --resolution, --fps, and --depth-mode to change capture settings.

Read frames in Python

python
from retargetingkit.sources.cameras.zed import Zed, ZedConfig\n\ncamera = Zed(ZedConfig(resolution=\"HD1080\", depth_mode=\"ULTRA\"))\ncamera.start()\ncolor = camera.get_color()          # (H, W, 3), uint8 BGR\ndepth = camera.get_depth()          # (H, W), float32 meters\nintrinsics = camera.get_intrinsics()\ncamera.stop()

intrinsics is [fx, fy, cx, cy, height, width] for the left camera. Depth is already in meters and needs no scale conversion.

", + "sub": "Sources" + }, + { + "id": "xarm", + "nav": "xArm6 and xArm7", + "h": "xArm6 and xArm7", + "body": "

Control a six- or seven-joint xArm through the UFACTORY SDK. Both drivers accept joint positions in radians and provide end-effector IK and teaching modes.

Connect

Find the controller IP on the power box and open http://<XARM_IP>:18333 for UFACTORY Studio. From the RetargetingKit checkout, install the driver:

shell
uv sync --extra xarm

For xArm7, read five samples without enabling motion or sending position commands:

shell
uv run --extra xarm scripts/targets/xarm7/read_qpos.py \\\n    --ip <XARM_IP> --samples 5

The xArm6 read_qpos.py script starts the active velocity controller, including motion enable and error clearing. Treat it as a controller session.

Preview teleoperation

With Vision Pro configured:

shell
uv run --extra vision-pro --extra vis scripts/teleop/arm.py \\\n    visionpro_xarm7 --mode viser --source.ip <VISION_PRO_IP>

Use visionpro_xarm6 for xArm6. The preview does not connect the arm. The Vision Pro guide covers IP overrides and arm-hand rigs; Quest 3 provides a separate controller workflow.

Use the driver

This snippet starts a hardware controller and holds the measured pose. Replace target_qpos with your desired joint vector to move the arm.

python
from retargetingkit.targets.arms.xarm7 import XArm7Config, XArmMode\n\narm = XArm7Config(\"<XARM_IP>\", mode=XArmMode.VELOCITY).build()\ntarget_qpos = arm.get_qpos()  # (7,), URDF radians\narm.set_qpos(target_qpos)\narm.close()

For six joints, import XArm6Config from retargetingkit.targets.arms.xarm6.

ModeBehavior
VELOCITYDefault; smooths position tracking through velocity control
SERVOStreams joint position targets
TEACHINGEnables gravity-compensated teaching

Both drivers run a background control loop at 250 Hz by default. Starting a driver enables motion, clears warnings and errors, and selects the configured control mode.

", + "sub": "Targets" + }, + { + "id": "xhand", + "nav": "XHand", + "h": "XHand", + "body": "

Control 12 XHand joints through RS485 or EtherCAT. The driver accepts URDF radians and sends commands through a background loop at approximately 83 Hz.

Connect

Install the xhand_controller wheel from the XHand vendor. There is no xhand package extra.

For RS485, connect the adapter and confirm its serial port. The default baud rate is 3,000,000.

Read five state samples without starting the servo controller:

shell
uv run scripts/targets/xhand/read_qpos.py \\\n    --serial-port /dev/ttyUSB0 --samples 5

The output includes joint names, positions in radians, and shape checks.

Preview retargeting

With a configured Manus glove:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \\\n    manus_xhand --mode viser

After checking the preview, --mode both --target.serial-port /dev/ttyUSB0 connects and commands the hand. The Vision Pro guide also covers visionpro_xhand and xArm7–XHand rigs.

Use the driver

This starts the physical hand's servo process and holds its measured pose:

python
from retargetingkit.targets.hands.xhand import XHandConfig\n\nhand = XHandConfig(serial_port=\"/dev/ttyUSB0\").build()\ntarget_qpos = hand.get_qpos()  # (12,), URDF radians\nhand.set_qpos(target_qpos)\nhand.close()

Use protocol=\"EtherCAT\" in the config for EtherCAT. Commands must contain 12 finite values in the driver's documented URDF order.

Check a small motion

The following moves joint 4 by 0.05 radians and returns it to its starting position:

shell
uv run scripts/targets/xhand/open_close.py \\\n    --serial-port /dev/ttyUSB0 --joint 4 --delta 0.05 --reps 1

Despite its filename, this diagnostic nudges one joint; it does not open and close all fingers.

", + "sub": "Targets" + }, + { + "id": "sharpa-hand", + "nav": "Sharpa Wave", + "h": "Sharpa Wave", + "body": "

Control 22 finger joints and read tactile measurements from five fingers per hand. The driver accepts joint positions in URDF radians and exposes position, velocity, and torque feedback.

Connect

Get the Sharpa SDK from Sharpa and extract it so ~/.retargetingkit/sharpa-sdk/ holds its lib/ and python/ folders. The SDK's native extension must match your Python environment.

If the native loader reports a missing libpython, add your Python environment's library directory and ~/.retargetingkit/sharpa-sdk/lib to LD_LIBRARY_PATH before launching.

device_sn=None selects the first discovered hand. Set a device serial number when several hands are connected.

Read five samples in floating mode:

shell
uv run scripts/targets/sharpa_hand/read_qpos.py --samples 5

This changes the hand to floating mode for backdriving and prints angles in degrees. The Python API returns radians.

Preview retargeting

With Manus configured, preview optimization:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \\\n    manus_sharpa --mode viser

Use manus_sharpa_neural for the curated neural model. --mode real or --mode both commands the physical hand; add --target.device-sn <SERIAL> to select it. Vision Pro also supports hand-only and xArm–Sharpa rigs.

Use the driver

Construction connects the hand, selects position mode, and starts SDK control:

python
from retargetingkit.targets.hands.sharpa_hand import SharpaHand\n\nhand = SharpaHand(speed_coeff=0.3, current_coeff=0.3)\nqpos, qvel, torque = hand.get_state()  # each has 22 values\nhand.set_qpos(qpos)\nhand.close()

Use set_control_mode(\"floating\") for backdriving and set_control_mode(\"position\") to resume position control.

Read touch data

Fetch five samples from the right thumb:

shell
uv run scripts/targets/sharpa_hand/tactile_fetch.py \\\n    --channel 0 --samples 5 --calibrate

This connects the SDK in position mode and calibrates before reading. Frames may contain RAW, DEFORM, and F6 data. The driver API uses channels 0–4 for right thumb through pinky and 5–9 for the left; the current diagnostic labels right-hand channels only.

scripts/targets/sharpa_hand/wave_example.py --cycles 3 moves joint 7 by 3 degrees and returns it, three times.

", + "sub": "Targets" + }, + { + "id": "ability-hand", + "nav": "Ability Hand", + "h": "Ability Hand", + "body": "

Control the PSYONIC Ability Hand's six joints through a USB serial adapter. The driver accepts radians and runs a background servo process, with position commands ramped at 60 degrees per second by default.

Connect

Power and connect the hand according to its hardware manual. Use a stable Linux device path when available:

shell
ls /dev/serial/by-id/\nuv sync --extra ability

Your user needs access to the serial device, commonly through the dialout group. The driver uses 460800 baud.

Preview teleoperation

The named Vision Pro rig combines Ability Hand with xArm7:

shell
uv run --extra vision-pro --extra vis scripts/teleop/arm_hand.py \\\n    visionpro_xarm7_ability --mode viser --source.ip <VISION_PRO_IP>

This previews motion without opening either robot target. Follow the Vision Pro guide to configure the arm IP and hand port before selecting real or both.

Use the driver

Starting the driver sends serial position commands, including zero-position commands during initial synchronization. The following is a hardware controller session:

python
from retargetingkit.targets.hands.ability_hand import AbilityHandConfig\n\nhand = AbilityHandConfig(\"/dev/serial/by-id/<ABILITY_HAND>\").build()\ntarget_qpos = hand.get_qpos()  # (6,), radians\nhand.set_qpos(target_qpos)\nhand.close()

Replace target_qpos with the desired hand pose for your control loop.

Check motion

The diagnostic below opens and closes the physical hand once:

shell
uv run --extra ability scripts/targets/ability_hand/open_close.py \\\n    --port /dev/serial/by-id/<ABILITY_HAND> --reps 1

scripts/targets/ability_hand/read_qpos.py also starts the active servo process and sends startup commands. It is not a passive serial reader.

", + "sub": "Targets" + }, + { + "id": "inspire", + "nav": "Inspire Hand", + "h": "Inspire Hand", + "body": "

Control six actuated finger joints over USB serial. The driver converts URDF radians to Inspire's serial joint order and normalized position range.

Connect

Connect the serial adapter and give your user access to its device port. On Linux this commonly requires membership in dialout; log out and back in after changing groups.

shell
uv sync --extra inspire

The combined G1 preset uses /dev/ttyUSB0 for the left hand and /dev/ttyUSB1 for the right, both at 115200 baud with hand ID 1. Confirm the actual ports before connecting.

Use the driver

python
from retargetingkit.targets.hands.inspire import InspireHandConfig\n\nhand = InspireHandConfig(\"/dev/ttyUSB0\", 1, 115200).build()\nqpos = hand.get_qpos()  # (6,), URDF radians\nhand.close()

Construction opens the serial connection and starts a background reader. Commands begin after the first hand.set_qpos(target_qpos) call; feedback updates asynchronously.

Joint order is thumb rotation, thumb bend, index, middle, ring, and little finger. Use hand.joint_names when aligning a robot model.

Teleoperate with PICO

After completing PICO setup, run:

shell
uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \\\n    pico_g1_inspire --source.no-use-ankle-as-foot-target \\\n    --left-hand.serial-port /dev/ttyUSB0 \\\n    --right-hand.serial-port /dev/ttyUSB1

This connects both physical hands and publishes body motion to SONIC. B toggles the right hand open/closed; Y toggles the left. The rig has no preview mode and uses preset hand poses rather than tracked fingers.

For continuous Vision Pro arm-hand control, use the visionpro_xarm7_inspire rig described in Vision Pro. For G1 deployment, follow humanoid teleoperation.

", + "sub": "Targets" + }, + { + "id": "g1", + "nav": "G1 and SONIC", + "h": "G1 and SONIC", + "body": "

Send retargeted G1 motion to GR00T Whole-Body Control through a SONIC ZMQ publisher. The deployment stack executes the policy in MuJoCo or on a real G1.

Prepare the deployment stack

Install and configure GR00T-WholeBodyControl on the deployment machine. For the bundled simulation launcher, place the checkout at:

text
thirdparty/GR00T-WholeBodyControl/

The launcher expects its .venv_sim environment and gear_sonic_deploy/deploy.sh to be ready, and requires tmux. Robot descriptions and collision assets come from RoboKit.

Start a recorded stream

From the RetargetingKit checkout:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser

This publishes a sample BVH clip on port 5556 and opens Viser. _viser adds a viewer while keeping the SONIC stream active. For a viewer without a publisher, use the first example in humanoid teleoperation.

In a second terminal, launch simulation:

shell
bash scripts/tools/launch_sonic_sim.sh

In the deployment pane, press ], then Enter, to start the policy. The script creates a sonic_sim tmux session and replaces an existing session with that name.

Connect a real G1

After validating the retargeted motion and preparing the robot deployment stack, run this from its gear_sonic_deploy directory on the robot:

shell
bash deploy.sh real --input-type zmq \\\n    --zmq-host <WORKSTATION_IP> --zmq-port 5556 --zmq-topic pose

This selects real robot deployment. Use the deployment controls and physical emergency stop described by your G1 setup. The workstation must run a SONIC preset and be reachable on port 5556.

What the stream contains

SonicTarget receives a BasePoseQPosCommand, estimates and smooths joint velocities, and converts 29 joint positions and velocities from G1 URDF order to SONIC order. It sends the root quaternion and joint data on topic pose; root translation is omitted.

The default publisher binds tcp://*:5556. Live Axis Studio, PICO, and dual Inspire hand workflows are covered in humanoid teleoperation.

", + "sub": "Targets" + }, + { + "id": "rby1", + "nav": "RBY1-A", + "h": "RBY1-A", + "body": "

Control the RBY1-A's seven-joint right arm through the Rainbow Robotics SDK, with separate commands for the two-joint head. This is a standalone driver; no named teleoperation rig is currently registered.

Connect

Find the robot's gRPC address in its control panel, then install:

shell
uv sync --extra rby1

Use the complete address, including the port, such as <RBY1_IP>:50051.

Use the driver

Building the driver powers on the robot, enables servos and the control manager, and starts a command stream. This snippet holds the measured right-arm pose:

python
from retargetingkit.targets.humanoids.rby1 import RBY1AConfig, RBY1AMode\n\narm = RBY1AConfig(\"<RBY1_IP>:50051\", mode=RBY1AMode.VELOCITY).build()\ntarget_qpos = arm.get_qpos()  # (7,), radians\narm.set_qpos(target_qpos)\narm.close()

Replace target_qpos with the desired right-arm joint positions. get_head_qpos() and set_head_qpos() expose the head separately. Close the driver with close().

ModeBehavior
VELOCITYDefault; converts position error to a smoothed command
SERVOStreams position targets with a velocity limit
TEACHINGEnables right-arm gravity compensation

The background loop runs at 100 Hz by default. Head position commands remain active in all three modes.

Inspect feedback

shell
uv run --extra rby1 scripts/targets/rby1/read_qpos.py \\\n    --ip <RBY1_IP>:50051

This script starts the same active controller, including power and servo enable. It prints feedback while holding the initial pose; it is not a passive state reader.

", + "sub": "Targets" + }, + { + "id": "dexmate", + "nav": "Dexmate Vega-1", + "h": "Dexmate Vega-1", + "body": "

Control Vega-1's torso, head, and both arms through the Dexmate SDK. The driver exposes 20 joints and is available as a standalone target; no named teleoperation rig is currently registered.

Connect

Configure robot discovery and Zenoh communication for your Dexmate setup, then install:

shell
uv sync --extra dexmate

RetargetingKit pins dexcontrol==0.4.4 and dexcomm==0.4.2 for the supported discovery stack.

Read current joint positions without sending a motion target:

shell
uv run --extra dexmate scripts/targets/dexmate/read_qpos.py

Press Ctrl+C to close the connection.

Use the driver

python
from retargetingkit.targets.humanoids.dexmate import DexmateConfig\n\nrobot = DexmateConfig().build()\nqpos = robot.get_qpos()  # (20,), radians\nprint(dict(zip(robot.joint_names, qpos)))\nrobot.close()

Use robot.joint_names to align commands with the model:

GroupJoints
Torsotorso_j1 through torso_j3
Headhead_j1 through head_j3
Left armL_arm_j1 through L_arm_j7
Right armR_arm_j1 through R_arm_j7

This is also the order of get_qpos() and set_qpos().

Send motion

With an open connection and a desired 20-joint target_qpos, choose one command style:

python
robot.set_qpos(target_qpos)  # publish repeatedly in your control loop

The default wait_time=0 publishes a setpoint and returns immediately. For one interpolated move that blocks until completion:

python
robot.set_qpos(target_qpos, wait_time=3.0, max_vel=0.2)

max_vel is in radians per second. Both forms command the physical robot; call robot.close() when finished.

", + "sub": "Targets" + }, + { + "id": "ref-frames", + "nav": "Frames", + "h": "Frame API", + "body": "

Canonical frames describe one observation. See Canonical frames for units, axes, and joint ordering.

", + "sub": "API", + "api": { + "retargetingkit.sources.frames.HandPose": { + "kind": "class", + "name": "HandPose", + "module": "retargetingkit.sources.frames", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L35", + "anchor": "handpose", + "doc": "

One hand pose: 21 MANO keypoints, wrist-local, meters; orientations default to identity (vector IK ignores them).

python
>>> import numpy as np\n>>> f = HandPose(np.zeros((21, 3), dtype=np.float32))\n>>> bool(f.valid.all()) and f.joint_names[MANO21.INDEX_TIP] == \"index_tip\"\nTrue
", + "params": [ + { + "name": "positions", + "type": "Float[np.ndarray, '21 3']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "orientations", + "type": "Float[np.ndarray, '21 4']", + "default": "(lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32))()", + "required": false, + "doc": "" + }, + { + "name": "valid", + "type": "Bool[np.ndarray, 21]", + "default": "(lambda: np.ones(21, dtype=bool))()", + "required": false, + "doc": "" + }, + { + "name": "joint_names", + "type": "tuple[str, ...]", + "default": "(lambda: MANO21_JOINTS)()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "positions", + "signature": "positions: Float[np.ndarray, '21 3']", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L45", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "orientations", + "signature": "orientations: Float[np.ndarray, '21 4'] = field(default_factory=lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L46", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "valid", + "signature": "valid: Bool[np.ndarray, 21] = field(default_factory=lambda: np.ones(21, dtype=bool))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L49", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: tuple[str, ...] = field(default_factory=lambda: MANO21_JOINTS)", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L50", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.sources.frames.HandFrame": { + "kind": "class", + "name": "HandFrame", + "module": "retargetingkit.sources.frames", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L53", + "anchor": "handframe", + "doc": "

Latest left/right hand poses from one physical source.

python
>>> frame = HandFrame({\"right\": HandPose(np.zeros((21, 3), dtype=np.float32))})\n>>> frame.hands[\"right\"].positions.shape\n(21, 3)
", + "bases": "Frame", + "params": [ + { + "name": "hands", + "type": "dict[Side, HandPose]", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "hands", + "signature": "hands: dict[Side, HandPose]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L62", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.sources.frames.ArmFrame": { + "kind": "class", + "name": "ArmFrame", + "module": "retargetingkit.sources.frames", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L65", + "anchor": "armframe", + "doc": "

World-frame wrist poses used for arm retargeting.

python
>>> frame = ArmFrame({\"right\": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)})\n>>> frame.wrists[\"right\"].shape\n(7,)
", + "bases": "Frame", + "params": [ + { + "name": "wrists", + "type": "dict[Side, Float[np.ndarray, 7]]", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "wrists", + "signature": "wrists: dict[Side, Float[np.ndarray, 7]]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L74", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.sources.frames.ArmHandFrame": { + "kind": "class", + "name": "ArmHandFrame", + "module": "retargetingkit.sources.frames", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L77", + "anchor": "armhandframe", + "doc": "

Synchronized arm and hand observations from one physical source.

python
>>> arm = ArmFrame({\"right\": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)})\n>>> hand = HandFrame({\"right\": HandPose(np.zeros((21, 3), dtype=np.float32))})\n>>> ArmHandFrame(arm, hand).arm.wrists[\"right\"].shape\n(7,)
", + "bases": "Frame", + "params": [ + { + "name": "arm", + "type": "ArmFrame", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hand", + "type": "HandFrame", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "arm", + "signature": "arm: ArmFrame", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L87", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand", + "signature": "hand: HandFrame", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L88", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.sources.frames.BodyFrame": { + "kind": "class", + "name": "BodyFrame", + "module": "retargetingkit.sources.frames", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L91", + "anchor": "bodyframe", + "doc": "

Named world-frame body transforms and performer height.

python
>>> frame = BodyFrame((\"pelvis\",), np.zeros((1, 7), dtype=np.float32), 1.75)\n>>> frame.transforms.shape\n(1, 7)
", + "bases": "Frame", + "params": [ + { + "name": "joint_names", + "type": "tuple[str, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "transforms", + "type": "Float[np.ndarray, 'J 7']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "human_height", + "type": "float", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: tuple[str, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L100", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "transforms", + "signature": "transforms: Float[np.ndarray, 'J 7']", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "human_height", + "signature": "human_height: float", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/frames.py#L102", + "doc": "", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "ref-sources", + "nav": "Sources", + "h": "Source API", + "body": "

Sources read a device or recording and return canonical frames; each config's build() creates its source. See Interfaces for the lifecycle.

", + "sub": "API", + "api": { + "retargetingkit.sources.source.Source": { + "kind": "class", + "name": "Source", + "module": "retargetingkit.sources.source", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/source.py#L12", + "anchor": "source", + "doc": "

A device, recording, or stream producing canonical motion frames.

Built In Implementations Include

", + "bases": "ABC, Generic[FrameT]", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "get_frame", + "signature": "get_frame() -> FrameT | None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/source.py#L24", + "doc": "

Return the latest canonical frame, or None before the first sample.

", + "params": [], + "returns": { + "type": "FrameT | None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "close", + "signature": "close() -> None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/source.py#L28", + "doc": "

Release the device.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.source.SourceConfig": { + "kind": "class", + "name": "SourceConfig", + "module": "retargetingkit.sources.source", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/source.py#L33", + "anchor": "sourceconfig", + "doc": "

Config for Source.

", + "bases": "ABC, Generic[FrameT]", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Source[FrameT]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/source.py#L36", + "doc": "

Construct and start the source device.

", + "params": [], + "returns": { + "type": "Source[FrameT]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.misc.human_frame_file.BodyFileSourceConfig": { + "kind": "class", + "name": "BodyFileSourceConfig", + "module": "retargetingkit.sources.misc.human_frame_file", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L127", + "anchor": "bodyfilesourceconfig", + "doc": "

BVH or PICO recording playback settings.

python
>>> BodyFileSourceConfig(Path(\"motion.bvh\")).path.name\n'motion.bvh'
", + "bases": "SourceConfig[BodyFrame]", + "params": [ + { + "name": "path", + "type": "Path", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_names", + "type": "tuple[str, ...]", + "default": "BODY_JOINTS", + "required": false, + "doc": "" + }, + { + "name": "loop", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "target_fps", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "use_ankle_as_foot_target", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "human_height", + "type": "float", + "default": "1.75", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "path", + "signature": "path: Path", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L135", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: tuple[str, ...] = BODY_JOINTS", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "loop", + "signature": "loop: bool = True", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L137", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_fps", + "signature": "target_fps: float = 0.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L138", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_ankle_as_foot_target", + "signature": "use_ankle_as_foot_target: bool = False", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L139", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "human_height", + "signature": "human_height: float = 1.75", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L140", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Source[BodyFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/misc/human_frame_file.py#L142", + "doc": "", + "params": [], + "returns": { + "type": "Source[BodyFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.vr.vision_pro.VisionProHandConfig": { + "kind": "class", + "name": "VisionProHandConfig", + "module": "retargetingkit.sources.vr.vision_pro", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L289", + "anchor": "visionprohandconfig", + "doc": "

Vision Pro connection projected as hand keypoints.

python
>>> VisionProHandConfig()\nVisionProHandConfig(ip=None, recording_path=None, recording_fps=20)
", + "bases": "SourceConfig[HandFrame]", + "params": [ + { + "name": "ip", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_path", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_fps", + "type": "int", + "default": "20", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L297", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_path", + "signature": "recording_path: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L298", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_fps", + "signature": "recording_fps: int = 20", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L299", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> VisionProSource[HandFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L301", + "doc": "

Construct one canonical hand source.

", + "params": [], + "returns": { + "type": "VisionProSource[HandFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.vr.vision_pro.VisionProArmConfig": { + "kind": "class", + "name": "VisionProArmConfig", + "module": "retargetingkit.sources.vr.vision_pro", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L306", + "anchor": "visionproarmconfig", + "doc": "

Vision Pro connection projected as world-frame wrists.

python
>>> VisionProArmConfig()\nVisionProArmConfig(ip=None, recording_path=None, recording_fps=20)
", + "bases": "SourceConfig[ArmFrame]", + "params": [ + { + "name": "ip", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_path", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_fps", + "type": "int", + "default": "20", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L314", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_path", + "signature": "recording_path: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L315", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_fps", + "signature": "recording_fps: int = 20", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L316", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> VisionProSource[ArmFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L318", + "doc": "

Construct one canonical arm source.

", + "params": [], + "returns": { + "type": "VisionProSource[ArmFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.vr.vision_pro.VisionProArmHandConfig": { + "kind": "class", + "name": "VisionProArmHandConfig", + "module": "retargetingkit.sources.vr.vision_pro", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L323", + "anchor": "visionproarmhandconfig", + "doc": "

Vision Pro connection projected as synchronized arm and hand frames.

python
>>> VisionProArmHandConfig()\nVisionProArmHandConfig(ip=None, recording_path=None, recording_fps=20)
", + "bases": "SourceConfig[ArmHandFrame]", + "params": [ + { + "name": "ip", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_path", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "recording_fps", + "type": "int", + "default": "20", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L331", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_path", + "signature": "recording_path: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L332", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "recording_fps", + "signature": "recording_fps: int = 20", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L333", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> VisionProSource[ArmHandFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/vision_pro.py#L335", + "doc": "

Construct one synchronized canonical arm-and-hand source.

", + "params": [], + "returns": { + "type": "VisionProSource[ArmHandFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.vr.pico.PicoSourceConfig": { + "kind": "class", + "name": "PicoSourceConfig", + "module": "retargetingkit.sources.vr.pico", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/pico.py#L297", + "anchor": "picosourceconfig", + "doc": "

Live PICO body-tracking settings.

python
>>> PicoSourceConfig().joint_names[0]\n'pelvis'
", + "bases": "SourceConfig[BodyFrame]", + "params": [ + { + "name": "human_height", + "type": "float", + "default": "1.75", + "required": false, + "doc": "" + }, + { + "name": "use_ankle_as_foot_target", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "joint_names", + "type": "tuple[str, ...]", + "default": "CANONICAL_BODY_JOINTS", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "human_height", + "signature": "human_height: float = 1.75", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/pico.py#L305", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_ankle_as_foot_target", + "signature": "use_ankle_as_foot_target: bool = False", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/pico.py#L306", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: tuple[str, ...] = CANONICAL_BODY_JOINTS", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/pico.py#L307", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> PicoSource", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/pico.py#L309", + "doc": "", + "params": [], + "returns": { + "type": "PicoSource", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.glove.manus_glove.ManusSourceConfig": { + "kind": "class", + "name": "ManusSourceConfig", + "module": "retargetingkit.sources.glove.manus_glove", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L155", + "anchor": "manussourceconfig", + "doc": "

Manus glove connection settings.

python
>>> # ManusSourceConfig().build()  # doctest: +SKIP
", + "bases": "SourceConfig[HandFrame]", + "params": [ + { + "name": "left_id", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "right_id", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "use_calibration", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "calibration_path", + "type": "Path | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "left_id", + "signature": "left_id: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L162", + "doc": "

Override the left glove ID (decimal or 0x hex).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "right_id", + "signature": "right_id: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L164", + "doc": "

Override the right glove ID (decimal or 0x hex).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_calibration", + "signature": "use_calibration: bool = True", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L166", + "doc": "

Apply the Manus thumb transform and per-finger scales.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "calibration_path", + "signature": "calibration_path: Path | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L168", + "doc": "

Calibration NPZ path; None fetches the manus_calib Hugging Face asset.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Source[HandFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/glove/manus_glove.py#L171", + "doc": "", + "params": [], + "returns": { + "type": "Source[HandFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.mocap.axis_studio.source.AxisStudioSourceConfig": { + "kind": "class", + "name": "AxisStudioSourceConfig", + "module": "retargetingkit.sources.mocap.axis_studio.source", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L182", + "anchor": "axisstudiosourceconfig", + "doc": "

Axis Studio Calc connection settings.

python
>>> AxisStudioSourceConfig().port\n7012
", + "bases": "SourceConfig[BodyFrame]", + "params": [ + { + "name": "port", + "type": "int", + "default": "7012", + "required": false, + "doc": "" + }, + { + "name": "human_height", + "type": "float", + "default": "1.75", + "required": false, + "doc": "" + }, + { + "name": "use_ankle_as_foot_target", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "joint_names", + "type": "tuple[str, ...]", + "default": "BODY_JOINTS", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "port", + "signature": "port: int = 7012", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L190", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "human_height", + "signature": "human_height: float = 1.75", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L191", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_ankle_as_foot_target", + "signature": "use_ankle_as_foot_target: bool = False", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L192", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: tuple[str, ...] = BODY_JOINTS", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L193", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Source[BodyFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/mocap/axis_studio/source.py#L195", + "doc": "", + "params": [], + "returns": { + "type": "Source[BodyFrame]", + "doc": "" + } + } + ] + }, + "retargetingkit.sources.vr.quest3.Quest3Config": { + "kind": "class", + "name": "Quest3Config", + "module": "retargetingkit.sources.vr.quest3", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L21", + "anchor": "quest3config", + "doc": "

Quest3 Isaac Teleop stream configuration.

", + "bases": "SourceConfig['Quest3Frame']", + "params": [ + { + "name": "app_name", + "type": "str", + "default": "'RetargetingKitQuest3'", + "required": false, + "doc": "" + }, + { + "name": "sides", + "type": "tuple[str, ...]", + "default": "(RIGHT,)", + "required": false, + "doc": "" + }, + { + "name": "verbose", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "cloudxr_env_path", + "type": "str", + "default": "'~/.cloudxr/run/cloudxr.env'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "app_name", + "signature": "app_name: str = 'RetargetingKitQuest3'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L25", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sides", + "signature": "sides: tuple[str, ...] = (RIGHT,)", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L26", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "verbose", + "signature": "verbose: bool = True", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L27", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cloudxr_env_path", + "signature": "cloudxr_env_path: str = '~/.cloudxr/run/cloudxr.env'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L28", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Quest3", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/sources/vr/quest3.py#L30", + "doc": "

Start the Isaac Teleop session.

python
>>> Quest3Config().build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "Quest3", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-hand", + "nav": "Hand retargeters", + "h": "Hand retargeter API", + "body": "

Hand retargeters consume a canonical HandFrame and return joint positions in the target URDF's order. Choose optimization for per-frame solving or a neural model for a trained mapping.

", + "sub": "API", + "api": { + "retargetingkit.retargeting.hand.optimization.OptimizationHandRetargeterConfig": { + "kind": "class", + "name": "OptimizationHandRetargeterConfig", + "module": "retargetingkit.retargeting.hand.optimization", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L18", + "anchor": "optimizationhandretargeterconfig", + "doc": "

Online-optimization hand retargeting; spec/online come from robokit.helpers.hand_retargeting.presets.

python
>>> OptimizationHandRetargeterConfig(Path(\"hand.urdf\"), spec, online, \"right\").side  # doctest: +SKIP\n'right'
", + "bases": "RetargeterConfig[HandFrame, QPosCommand]", + "params": [ + { + "name": "urdf", + "type": "Path", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "spec", + "type": "Annotated[HandSpec, tyro.conf.Suppress]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "online", + "type": "Annotated[HandRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "side", + "type": "Side", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "collision_spheres", + "type": "Path | None", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "collision_ignore", + "type": "Path | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "urdf", + "signature": "urdf: Path", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L26", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "spec", + "signature": "spec: Annotated[HandSpec, tyro.conf.Suppress]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L27", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "online", + "signature": "online: Annotated[HandRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L28", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_spheres", + "signature": "collision_spheres: Path | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L30", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_ignore", + "signature": "collision_ignore: Path | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L31", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> OptimizationHandRetargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/optimization.py#L33", + "doc": "

Build and warm up the optimization retargeter.

python
>>> config.build(\"cpu\")  # doctest: +SKIP
", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "OptimizationHandRetargeter", + "doc": "" + } + } + ] + }, + "retargetingkit.retargeting.hand.neural.NeuralHandRetargeterConfig": { + "kind": "class", + "name": "NeuralHandRetargeterConfig", + "module": "retargetingkit.retargeting.hand.neural", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L73", + "anchor": "neuralhandretargeterconfig", + "doc": "

One human hand mapped onto one robot hand by a trained checkpoint.

python
>>> from pathlib import Path\n>>> from retargetingkit.retargeting.hand.presets import HANDS\n>>> NeuralHandRetargeterConfig(Path(\"run\"), HANDS[\"xhand\"]).side\n'right'
", + "bases": "RetargeterConfig[HandFrame, QPosCommand]", + "params": [ + { + "name": "checkpoint_dir", + "type": "Path", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hand", + "type": "HandPreset", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "side", + "type": "Side", + "default": "'right'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "checkpoint_dir", + "signature": "checkpoint_dir: Path", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L83", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand", + "signature": "hand: HandPreset", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L84", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side = 'right'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L85", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> NeuralHandRetargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L87", + "doc": "

Load the checkpoint onto device.

python
>>> NeuralHandRetargeterConfig(Path(\"run\"), HANDS[\"xhand\"]).build(\"cpu\")  # doctest: +SKIP
", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "NeuralHandRetargeter", + "doc": "" + } + } + ] + }, + "retargetingkit.retargeting.hand.neural.NeuralHandAssetRetargeterConfig": { + "kind": "class", + "name": "NeuralHandAssetRetargeterConfig", + "module": "retargetingkit.retargeting.hand.neural", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L95", + "anchor": "neuralhandassetretargeterconfig", + "doc": "

A named Hugging Face checkpoint resolved when the retargeter is built.

", + "bases": "RetargeterConfig[HandFrame, QPosCommand]", + "params": [ + { + "name": "checkpoint", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hand", + "type": "HandPreset", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "side", + "type": "Side", + "default": "'right'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "checkpoint", + "signature": "checkpoint: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand", + "signature": "hand: HandPreset", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L100", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side = 'right'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> NeuralHandRetargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/hand/neural.py#L103", + "doc": "

Download the checkpoint if needed, then load it on device.

python
>>> config.build(\"cpu\")  # doctest: +SKIP
", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "NeuralHandRetargeter", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-arm", + "nav": "Arm retargeter", + "h": "Arm retargeter API", + "body": "

The arm retargeter maps world-frame wrist poses in an ArmFrame to arm joint positions. See Arm retargeting for usage.

", + "sub": "API", + "api": { + "retargetingkit.retargeting.retargeter.RetargeterConfig": { + "kind": "class", + "name": "RetargeterConfig", + "module": "retargetingkit.retargeting.retargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/retargeter.py#L35", + "anchor": "retargeterconfig", + "doc": "

Retargeter blueprint; configs live next to their solver and feed retargetingkit.configs.teleop rig presets.

", + "bases": "ABC, Generic[FrameT, CommandT]", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> Retargeter[FrameT, CommandT]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/retargeter.py#L38", + "doc": "

Construct and warm up the retargeter.

", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Retargeter[FrameT, CommandT]", + "doc": "" + } + } + ] + }, + "retargetingkit.retargeting.arm.online.ArmRetargeterConfig": { + "kind": "class", + "name": "ArmRetargeterConfig", + "module": "retargetingkit.retargeting.arm.online", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L19", + "anchor": "armretargeterconfig", + "doc": "

One human wrist mapped onto one robot arm.

python
>>> ArmRetargeterConfig(Path(\"arm.urdf\"), \"link_eef\", (0.0,), \"right\").translation_scale\n1.5
", + "bases": "RetargeterConfig[ArmFrame, QPosCommand]", + "params": [ + { + "name": "urdf", + "type": "Path", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "ee_link", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "home_qpos", + "type": "tuple[float, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "side", + "type": "Side", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "translation_scale", + "type": "float", + "default": "1.5", + "required": false, + "doc": "" + }, + { + "name": "ee_gain", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "urdf", + "signature": "urdf: Path", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L27", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_link", + "signature": "ee_link: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L28", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "home_qpos", + "signature": "home_qpos: tuple[float, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L30", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "translation_scale", + "signature": "translation_scale: float = 1.5", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L31", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_gain", + "signature": "ee_gain: float = 1.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L32", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> ArmRetargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L34", + "doc": "

Build the online arm retargeter.

python
>>> ArmRetargeterConfig(Path(\"arm.urdf\"), \"link_eef\", (0.0,), \"right\").build(\"cpu\")  # doctest: +SKIP
", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ArmRetargeter", + "doc": "" + } + } + ] + }, + "retargetingkit.retargeting.arm.online.ArmRetargeter": { + "kind": "class", + "name": "ArmRetargeter", + "module": "retargetingkit.retargeting.arm.online", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L42", + "anchor": "armretargeter", + "doc": "

One human wrist to one robot arm; the first wrist sample is the calibration origin and maps to the home pose.

python
>>> ArmRetargeter(config, \"cpu\")  # doctest: +SKIP
", + "bases": "Retargeter[ArmFrame, QPosCommand]", + "params": [ + { + "name": "config", + "type": "ArmRetargeterConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L49", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "wrist_to_ee_pose", + "signature": "wrist_to_ee_pose(initial_ee_pose: np.ndarray, initial_wrist: np.ndarray, wrist: np.ndarray, translation_scale: float) -> np.ndarray", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L76", + "doc": "

Replay the wrist delta since calibration from the home EE pose, scaling translation to robot reach.

python
>>> ee = np.array([1, 2, 3, 1, 0, 0, 0], dtype=np.float32)\n>>> identity = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)\n>>> ArmRetargeter.wrist_to_ee_pose(ee, identity, identity, 1.5)\narray([1., 2., 3., 1., 0., 0., 0.], dtype=float32)
", + "params": [ + { + "name": "initial_ee_pose", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "initial_wrist", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "wrist", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "translation_scale", + "type": "float", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "smooth_pose7", + "signature": "smooth_pose7(previous: np.ndarray, current: np.ndarray, gain: float) -> np.ndarray", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L96", + "doc": "

EMA-blend two pose7s while keeping quaternions in one hemisphere.

python
>>> previous = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)\n>>> current = np.array([1, 0, 0, 1, 0, 0, 0], dtype=np.float32)\n>>> ArmRetargeter.smooth_pose7(previous, current, 0.5)\narray([0.5, 0. , 0. , 1. , 0. , 0. , 0. ], dtype=float32)
", + "params": [ + { + "name": "previous", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "current", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "gain", + "type": "float", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(frame: ArmFrame) -> QPosCommand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/arm/online.py#L110", + "doc": "", + "params": [ + { + "name": "frame", + "type": "ArmFrame", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "QPosCommand", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-humanoid", + "nav": "Humanoid retargeter", + "h": "Humanoid retargeter API", + "body": "

The humanoid retargeter maps a BodyFrame to a floating-base humanoid pose. See Humanoid retargeting for usage.

", + "sub": "API", + "api": { + "retargetingkit.retargeting.humanoid.online.HumanoidRetargeterConfig": { + "kind": "class", + "name": "HumanoidRetargeterConfig", + "module": "retargetingkit.retargeting.humanoid.online", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L16", + "anchor": "humanoidretargeterconfig", + "doc": "

One robokit humanoid preset plus output adjustment.

python
>>> HumanoidRetargeterConfig(HumanoidRetargeterOnlineConfig()).z_offset\n0.0
", + "bases": "RetargeterConfig[BodyFrame, BasePoseQPosCommand]", + "params": [ + { + "name": "preset", + "type": "Annotated[HumanoidRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "z_offset", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "preset", + "signature": "preset: Annotated[HumanoidRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "z_offset", + "signature": "z_offset: float = 0.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L25", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: str) -> HumanoidRetargeter", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L27", + "doc": "

Build and warm up the online retargeter.

python
>>> HumanoidRetargeterConfig(g1_aligned).build(\"cpu\")  # doctest: +SKIP
", + "params": [ + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "HumanoidRetargeter", + "doc": "" + } + } + ] + }, + "retargetingkit.retargeting.humanoid.online.HumanoidRetargeter": { + "kind": "class", + "name": "HumanoidRetargeter", + "module": "retargetingkit.retargeting.humanoid.online", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L35", + "anchor": "humanoidretargeter", + "doc": "

Named human body transforms to a floating-base robot command.

python
>>> HumanoidRetargeter(config, \"cpu\")  # doctest: +SKIP
", + "bases": "Retargeter[BodyFrame, BasePoseQPosCommand]", + "params": [ + { + "name": "config", + "type": "HumanoidRetargeterConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(frame: BodyFrame) -> BasePoseQPosCommand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L52", + "doc": "", + "params": [ + { + "name": "frame", + "type": "BodyFrame", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "BasePoseQPosCommand", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset() -> None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/retargeting/humanoid/online.py#L59", + "doc": "

Reset the solver.

python
>>> retargeter.reset()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-targets", + "nav": "Commands and targets", + "h": "Commands and targets", + "body": "

Commands carry one solved robot pose. Concrete targets consume joint positions or a complete command; see Interfaces for how runtimes choose the update method.

", + "sub": "API", + "api": { + "retargetingkit.targets.commands.QPosCommand": { + "kind": "class", + "name": "QPosCommand", + "module": "retargetingkit.targets.commands", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/commands.py#L13", + "anchor": "qposcommand", + "doc": "

Actuated joint positions in URDF order.

python
>>> QPosCommand(np.zeros(7)).qpos.shape\n(7,)
", + "bases": "Command", + "params": [ + { + "name": "qpos", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "qpos", + "signature": "qpos: np.ndarray", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/commands.py#L21", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.targets.commands.BasePoseQPosCommand": { + "kind": "class", + "name": "BasePoseQPosCommand", + "module": "retargetingkit.targets.commands", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/commands.py#L24", + "anchor": "baseposeqposcommand", + "doc": "

Joint positions plus the floating-base world pose as [xyz, wxyz].

python
>>> BasePoseQPosCommand(np.zeros(29), np.array([0, 0, 0, 1, 0, 0, 0])).base_pose.shape\n(7,)
", + "bases": "QPosCommand", + "params": [ + { + "name": "qpos", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "base_pose", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "QPosCommand", + "name": "qpos", + "signature": "qpos: np.ndarray", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/commands.py#L21", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_pose", + "signature": "base_pose: np.ndarray", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/commands.py#L32", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.targets.target.Target": { + "kind": "class", + "name": "Target", + "module": "retargetingkit.targets.target", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L10", + "anchor": "target", + "doc": "

A hardware, transport, or viewer consuming robot commands.

Built In Implementations Include

", + "bases": "ABC", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "set_qpos", + "signature": "set_qpos(qpos: np.ndarray) -> None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L20", + "doc": "

Command actuated joint positions in radians.

", + "params": [ + { + "name": "qpos", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_command", + "signature": "set_command(command: Command) -> None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L24", + "doc": "

Command one canonical robot command as one atomic update.

", + "params": [ + { + "name": "command", + "type": "Command", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "close", + "signature": "close() -> None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L28", + "doc": "

Release hardware or transport.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.target.TargetConfig": { + "kind": "class", + "name": "TargetConfig", + "module": "retargetingkit.targets.target", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L33", + "anchor": "targetconfig", + "doc": "

Robot target blueprint; subclasses live beside their device and make up retargetingkit.configs.teleop rigs.

", + "bases": "ABC", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Target", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/target.py#L36", + "doc": "

Construct and start the target.

", + "params": [], + "returns": { + "type": "Target", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-target-configs", + "nav": "Target configs", + "h": "Target configs", + "body": "

Each config builds one robot or viewer target. See the Targets pages for hardware setup.

", + "sub": "API", + "api": { + "retargetingkit.targets.arms.xarm6.XArm6Config": { + "kind": "class", + "name": "XArm6Config", + "module": "retargetingkit.targets.arms.xarm6", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L26", + "anchor": "xarm6config", + "doc": "

xArm6 controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "ip", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "XArmMode", + "default": "XArmMode.VELOCITY", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "1.0 / 250", + "required": false, + "doc": "" + }, + { + "name": "ee_link", + "type": "str", + "default": "XARM6_EE_LINK", + "required": false, + "doc": "" + }, + { + "name": "kp", + "type": "np.ndarray", + "default": "(lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))()", + "required": false, + "doc": "" + }, + { + "name": "kd", + "type": "np.ndarray", + "default": "(lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))()", + "required": false, + "doc": "" + }, + { + "name": "max_velocity", + "type": "np.ndarray", + "default": "(lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L30", + "doc": "

IP address of the xArm controller.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: XArmMode = XArmMode.VELOCITY", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L32", + "doc": "

Control mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 1.0 / 250", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L34", + "doc": "

Servo loop timestep in seconds.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_link", + "signature": "ee_link: str = XARM6_EE_LINK", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L36", + "doc": "

End effector link name for IK.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kp", + "signature": "kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L38", + "doc": "

Proportional gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kd", + "signature": "kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L40", + "doc": "

Derivative gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_velocity", + "signature": "max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L42", + "doc": "

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> XArm6", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm6.py#L45", + "doc": "", + "params": [], + "returns": { + "type": "XArm6", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.arms.xarm7.XArm7Config": { + "kind": "class", + "name": "XArm7Config", + "module": "retargetingkit.targets.arms.xarm7", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L38", + "anchor": "xarm7config", + "doc": "

xArm7 controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "ip", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "XArmMode", + "default": "XArmMode.VELOCITY", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "1.0 / 250", + "required": false, + "doc": "" + }, + { + "name": "ee_link", + "type": "str", + "default": "XARM7_EE_LINK", + "required": false, + "doc": "" + }, + { + "name": "kp", + "type": "np.ndarray", + "default": "(lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))()", + "required": false, + "doc": "" + }, + { + "name": "kd", + "type": "np.ndarray", + "default": "(lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))()", + "required": false, + "doc": "" + }, + { + "name": "max_velocity", + "type": "np.ndarray", + "default": "(lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L42", + "doc": "

IP address of the xArm controller.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: XArmMode = XArmMode.VELOCITY", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L44", + "doc": "

Control mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 1.0 / 250", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L46", + "doc": "

Servo loop timestep in seconds.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_link", + "signature": "ee_link: str = XARM7_EE_LINK", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L48", + "doc": "

End effector link name for IK.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kp", + "signature": "kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L50", + "doc": "

Proportional gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kd", + "signature": "kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L52", + "doc": "

Derivative gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_velocity", + "signature": "max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L54", + "doc": "

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> XArm7", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/arms/xarm7.py#L57", + "doc": "", + "params": [], + "returns": { + "type": "XArm7", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.hands.xhand.XHandConfig": { + "kind": "class", + "name": "XHandConfig", + "module": "retargetingkit.targets.hands.xhand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L77", + "anchor": "xhandconfig", + "doc": "

XHand controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "serial_port", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "protocol", + "type": "str", + "default": "'RS485'", + "required": false, + "doc": "" + }, + { + "name": "baud_rate", + "type": "int", + "default": "3000000", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "1.0 / 83", + "required": false, + "doc": "" + }, + { + "name": "kp", + "type": "float", + "default": "90.0", + "required": false, + "doc": "" + }, + { + "name": "ki", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "kd", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "tor_max", + "type": "float", + "default": "80.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "serial_port", + "signature": "serial_port: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L81", + "doc": "

Serial port for RS485 communication.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "protocol", + "signature": "protocol: str = 'RS485'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L84", + "doc": "

Communication protocol ('RS485' or 'EtherCAT').

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "baud_rate", + "signature": "baud_rate: int = 3000000", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L87", + "doc": "

Baud rate for RS485 serial.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 1.0 / 83", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L90", + "doc": "

Servo loop timestep (matches 83 Hz firmware rate).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kp", + "signature": "kp: float = 90.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L93", + "doc": "

Default position-loop proportional gain.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ki", + "signature": "ki: float = 0.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L96", + "doc": "

Default position-loop integral gain.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kd", + "signature": "kd: float = 0.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L99", + "doc": "

Default position-loop derivative gain.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "tor_max", + "signature": "tor_max: float = 80.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L102", + "doc": "

Default maximum torque.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> XHand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/xhand.py#L105", + "doc": "", + "params": [], + "returns": { + "type": "XHand", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.hands.sharpa_hand.SharpaHandConfig": { + "kind": "class", + "name": "SharpaHandConfig", + "module": "retargetingkit.targets.hands.sharpa_hand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/sharpa_hand.py#L274", + "anchor": "sharpahandconfig", + "doc": "

Sharpa Wave connection settings.

", + "bases": "TargetConfig", + "params": [ + { + "name": "speed_coeff", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "current_coeff", + "type": "float", + "default": "0.3", + "required": false, + "doc": "" + }, + { + "name": "device_sn", + "type": "str | None", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "speed_coeff", + "signature": "speed_coeff: float = 0.3", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/sharpa_hand.py#L278", + "doc": "

Joint speed coefficient (0-1).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "current_coeff", + "signature": "current_coeff: float = 0.3", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/sharpa_hand.py#L280", + "doc": "

Joint current coefficient (0-1).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device_sn", + "signature": "device_sn: str | None = None", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/sharpa_hand.py#L282", + "doc": "

Serial number; the first discovered hand is used when unset.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> SharpaHand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/sharpa_hand.py#L285", + "doc": "", + "params": [], + "returns": { + "type": "SharpaHand", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.hands.ability_hand.AbilityHandConfig": { + "kind": "class", + "name": "AbilityHandConfig", + "module": "retargetingkit.targets.hands.ability_hand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L29", + "anchor": "abilityhandconfig", + "doc": "

Ability Hand controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "port", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "1.0 / 160", + "required": false, + "doc": "" + }, + { + "name": "mode", + "type": "ControlMode", + "default": "ControlMode.POS_RAMP", + "required": false, + "doc": "" + }, + { + "name": "ramp_deg_per_s", + "type": "float", + "default": "60.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "port", + "signature": "port: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L33", + "doc": "

Serial port path (e.g. /dev/serial/by-id/...).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 1.0 / 160", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L35", + "doc": "

Servo loop timestep in seconds.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: ControlMode = ControlMode.POS_RAMP", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L37", + "doc": "

Control mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ramp_deg_per_s", + "signature": "ramp_deg_per_s: float = 60.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L39", + "doc": "

Position ramp rate to avoid firmware current-limiting stalls.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> AbilityHand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/ability_hand.py#L42", + "doc": "", + "params": [], + "returns": { + "type": "AbilityHand", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.hands.inspire.InspireHandConfig": { + "kind": "class", + "name": "InspireHandConfig", + "module": "retargetingkit.targets.hands.inspire", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/inspire.py#L61", + "anchor": "inspirehandconfig", + "doc": "

Inspire Hand serial settings.

python
>>> InspireHandConfig(\"/dev/ttyUSB0\", 1, 115200).serial_port\n'/dev/ttyUSB0'
", + "bases": "TargetConfig", + "params": [ + { + "name": "serial_port", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hand_id", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "baudrate", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "serial_port", + "signature": "serial_port: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/inspire.py#L69", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_id", + "signature": "hand_id: int", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/inspire.py#L70", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "baudrate", + "signature": "baudrate: int", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/inspire.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> InspireHand", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/hands/inspire.py#L73", + "doc": "

Connect and return an Inspire Hand target.

python
>>> InspireHandConfig(\"/dev/ttyUSB0\", 1, 115200).build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "InspireHand", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.humanoids.sonic.SonicTargetConfig": { + "kind": "class", + "name": "SonicTargetConfig", + "module": "retargetingkit.targets.humanoids.sonic", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/sonic.py#L317", + "anchor": "sonictargetconfig", + "doc": "

SONIC v1 publisher settings.

python
>>> SonicTargetConfig().port\n5556
", + "bases": "TargetConfig", + "params": [ + { + "name": "host", + "type": "str", + "default": "'*'", + "required": false, + "doc": "" + }, + { + "name": "port", + "type": "int", + "default": "5556", + "required": false, + "doc": "" + }, + { + "name": "lookahead", + "type": "int", + "default": "50", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "host", + "signature": "host: str = '*'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/sonic.py#L325", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "port", + "signature": "port: int = 5556", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/sonic.py#L326", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lookahead", + "signature": "lookahead: int = 50", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/sonic.py#L327", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> SonicTarget", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/sonic.py#L329", + "doc": "

Bind and return a SONIC target.

python
>>> SonicTargetConfig(port=15556).build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "SonicTarget", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.humanoids.rby1.RBY1AConfig": { + "kind": "class", + "name": "RBY1AConfig", + "module": "retargetingkit.targets.humanoids.rby1", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L36", + "anchor": "rby1aconfig", + "doc": "

RBY1-A right-arm controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "ip", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "RBY1AMode", + "default": "RBY1AMode.VELOCITY", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "1.0 / 100", + "required": false, + "doc": "" + }, + { + "name": "ee_link", + "type": "str", + "default": "'link_right_arm_6'", + "required": false, + "doc": "" + }, + { + "name": "cutoff_frequency", + "type": "float", + "default": "5.0", + "required": false, + "doc": "" + }, + { + "name": "kp", + "type": "np.ndarray", + "default": "(lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))()", + "required": false, + "doc": "" + }, + { + "name": "kd", + "type": "np.ndarray", + "default": "(lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))()", + "required": false, + "doc": "" + }, + { + "name": "max_velocity", + "type": "np.ndarray", + "default": "(lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()", + "required": false, + "doc": "" + }, + { + "name": "home_qpos", + "type": "np.ndarray", + "default": "(lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))()", + "required": false, + "doc": "" + }, + { + "name": "head_max_velocity", + "type": "np.ndarray", + "default": "(lambda: np.array([1.0, 1.0]))()", + "required": false, + "doc": "" + }, + { + "name": "head_home_qpos", + "type": "np.ndarray", + "default": "(lambda: np.zeros(NUM_HEAD_JOINTS))()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "ip", + "signature": "ip: str", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L40", + "doc": "

IP address with port (e.g. 192.168.30.1:50051).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: RBY1AMode = RBY1AMode.VELOCITY", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L42", + "doc": "

Control mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 1.0 / 100", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L44", + "doc": "

Servo loop timestep in seconds.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_link", + "signature": "ee_link: str = 'link_right_arm_6'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L46", + "doc": "

End effector link name for IK.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cutoff_frequency", + "signature": "cutoff_frequency: float = 5.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L48", + "doc": "

SDK-side position command smoothing frequency (Hz).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kp", + "signature": "kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L50", + "doc": "

Proportional gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "kd", + "signature": "kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L52", + "doc": "

Derivative gains for velocity mode.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_velocity", + "signature": "max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L54", + "doc": "

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "home_qpos", + "signature": "home_qpos: np.ndarray = field(default_factory=lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L56", + "doc": "

Target joint positions for the home configuration (rad).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "head_max_velocity", + "signature": "head_max_velocity: np.ndarray = field(default_factory=lambda: np.array([1.0, 1.0]))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L58", + "doc": "

Maximum head joint velocities (rad/s).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "head_home_qpos", + "signature": "head_home_qpos: np.ndarray = field(default_factory=lambda: np.zeros(NUM_HEAD_JOINTS))", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L60", + "doc": "

Target head joint positions for the home configuration (rad).

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> RBY1A", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/rby1.py#L63", + "doc": "

Connect to the robot and start its servo loop.

python
>>> RBY1AConfig(\"192.168.30.1:50051\").build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "RBY1A", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.humanoids.dexmate.DexmateConfig": { + "kind": "class", + "name": "DexmateConfig", + "module": "retargetingkit.targets.humanoids.dexmate", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/dexmate.py#L21", + "anchor": "dexmateconfig", + "doc": "

Dexmate Vega-1 whole-body controller configuration.

", + "bases": "TargetConfig", + "params": [ + { + "name": "auto_shutdown", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "auto_shutdown", + "signature": "auto_shutdown: bool = True", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/dexmate.py#L25", + "doc": "

Register the SDK's atexit shutdown hook. Disable when the caller owns shutdown via close.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Dexmate", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/humanoids/dexmate.py#L28", + "doc": "

Connect to the robot.

python
>>> DexmateConfig().build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "Dexmate", + "doc": "" + } + } + ] + }, + "retargetingkit.targets.viser.ViserConfig": { + "kind": "class", + "name": "ViserConfig", + "module": "retargetingkit.targets.viser", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/viser.py#L34", + "anchor": "viserconfig", + "doc": "

URDFs to display, in the order callers index them.

python
>>> ViserConfig((Path(\"robot.urdf\"),)).urdfs[0].name\n'robot.urdf'
", + "bases": "TargetConfig", + "params": [ + { + "name": "urdfs", + "type": "tuple[Path, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "keypoint_edges", + "type": "tuple[tuple[int, int], ...]", + "default": "()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "urdfs", + "signature": "urdfs: tuple[Path, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/viser.py#L42", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keypoint_edges", + "signature": "keypoint_edges: tuple[tuple[int, int], ...] = ()", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/viser.py#L43", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build() -> Viser", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/targets/viser.py#L45", + "doc": "

Start the Viser server.

python
>>> ViserConfig((Path(\"robot.urdf\"),)).build()  # doctest: +SKIP
", + "params": [], + "returns": { + "type": "Viser", + "doc": "" + } + } + ] + } + } + }, + { + "id": "ref-teleop", + "nav": "Teleop configs", + "h": "Teleop configs", + "body": "

Each named rig run by scripts/teleop/ is an instance of one of these configs. See Teleoperation for rig names and overrides.

", + "sub": "API", + "api": { + "retargetingkit.configs.teleop.config.HandTeleopConfig": { + "kind": "class", + "name": "HandTeleopConfig", + "module": "retargetingkit.configs.teleop.config", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L17", + "anchor": "handteleopconfig", + "doc": "

One hand source retargeted to one robot hand.

", + "params": [ + { + "name": "source", + "type": "SourceConfig[HandFrame]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "target", + "type": "TargetConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "retargeter", + "type": "RetargeterConfig[HandFrame, QPosCommand]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "side", + "type": "Side", + "default": "'right'", + "required": false, + "doc": "" + }, + { + "name": "rate", + "type": "float", + "default": "30.0", + "required": false, + "doc": "" + }, + { + "name": "mode", + "type": "Literal['viser', 'real', 'both']", + "default": "'viser'", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": "'cuda:0'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "source", + "signature": "source: SourceConfig[HandFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L21", + "doc": "

Hand motion source blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target", + "signature": "target: TargetConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L23", + "doc": "

Robot hand blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "retargeter", + "signature": "retargeter: RetargeterConfig[HandFrame, QPosCommand]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L25", + "doc": "

Optimization or neural hand retargeting blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "side", + "signature": "side: Side = 'right'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L27", + "doc": "

Hand side shared by the source and retargeter.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rate", + "signature": "rate: float = 30.0", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L29", + "doc": "

Control-loop frequency in Hz.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: Literal['viser', 'real', 'both'] = 'viser'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L31", + "doc": "

Viser only, hardware only, or both.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: str = 'cuda:0'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L33", + "doc": "

Warp device used by RoboKit.

", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.configs.teleop.config.ArmTeleopConfig": { + "kind": "class", + "name": "ArmTeleopConfig", + "module": "retargetingkit.configs.teleop.config", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L37", + "anchor": "armteleopconfig", + "doc": "

One arm source controlling one robot arm per side.

", + "params": [ + { + "name": "source", + "type": "SourceConfig[ArmFrame]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "arms", + "type": "dict[Side, TargetConfig]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "retargeters", + "type": "dict[Side, ArmRetargeterConfig]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "Literal['viser', 'real', 'both']", + "default": "'viser'", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": "'cuda:0'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "source", + "signature": "source: SourceConfig[ArmFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L41", + "doc": "

Wrist motion source blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "arms", + "signature": "arms: dict[Side, TargetConfig]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L43", + "doc": "

Robot arm blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "retargeters", + "signature": "retargeters: dict[Side, ArmRetargeterConfig]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L45", + "doc": "

Wrist-to-arm retargeting blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: Literal['viser', 'real', 'both'] = 'viser'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L47", + "doc": "

Viser only, hardware only, or both.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: str = 'cuda:0'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L49", + "doc": "

Warp device used by RoboKit.

", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.configs.teleop.config.ArmHandTeleopConfig": { + "kind": "class", + "name": "ArmHandTeleopConfig", + "module": "retargetingkit.configs.teleop.config", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L53", + "anchor": "armhandteleopconfig", + "doc": "

One arm-and-hand source controlling one robot arm and one robot hand per side.

", + "params": [ + { + "name": "source", + "type": "SourceConfig[ArmHandFrame]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "arms", + "type": "dict[Side, TargetConfig]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hands", + "type": "dict[Side, TargetConfig]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "arm_retargeters", + "type": "dict[Side, ArmRetargeterConfig]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "hand_retargeters", + "type": "dict[Side, RetargeterConfig[HandFrame, QPosCommand]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "assembly_urdf", + "type": "Path", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "Literal['viser', 'real', 'both']", + "default": "'viser'", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": "'cuda:0'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "source", + "signature": "source: SourceConfig[ArmHandFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L57", + "doc": "

Wrist and hand motion source blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "arms", + "signature": "arms: dict[Side, TargetConfig]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L59", + "doc": "

Robot arm blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hands", + "signature": "hands: dict[Side, TargetConfig]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L61", + "doc": "

Robot hand blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "arm_retargeters", + "signature": "arm_retargeters: dict[Side, ArmRetargeterConfig]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L63", + "doc": "

Wrist-to-arm retargeting blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "hand_retargeters", + "signature": "hand_retargeters: dict[Side, RetargeterConfig[HandFrame, QPosCommand]]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L65", + "doc": "

Hand retargeting blueprint per side.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "assembly_urdf", + "signature": "assembly_urdf: Path", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L67", + "doc": "

Combined arm-and-hand URDF used only for visualization.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mode", + "signature": "mode: Literal['viser', 'real', 'both'] = 'viser'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L69", + "doc": "

Viser only, hardware only, or both.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: str = 'cuda:0'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L71", + "doc": "

Warp device used by RoboKit.

", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.configs.teleop.config.HumanoidTeleopConfig": { + "kind": "class", + "name": "HumanoidTeleopConfig", + "module": "retargetingkit.configs.teleop.config", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L75", + "anchor": "humanoidteleopconfig", + "doc": "

One body source retargeted to one or more humanoid targets.

", + "params": [ + { + "name": "source", + "type": "SourceConfig[BodyFrame]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "retargeter", + "type": "HumanoidRetargeterConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "targets", + "type": "tuple[TargetConfig, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": "'cuda:0'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "source", + "signature": "source: SourceConfig[BodyFrame]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L79", + "doc": "

Body motion source blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "retargeter", + "signature": "retargeter: HumanoidRetargeterConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L81", + "doc": "

Body-to-humanoid retargeting blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "targets", + "signature": "targets: tuple[TargetConfig, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L83", + "doc": "

Humanoid target blueprints fed the same command.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: str = 'cuda:0'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L85", + "doc": "

Warp device used by RoboKit.

", + "params": [], + "returns": null + } + ] + }, + "retargetingkit.configs.teleop.config.HumanoidHandTeleopConfig": { + "kind": "class", + "name": "HumanoidHandTeleopConfig", + "module": "retargetingkit.configs.teleop.config", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L89", + "anchor": "humanoidhandteleopconfig", + "doc": "

One PICO connection controlling a humanoid and two robot hands.

", + "params": [ + { + "name": "source", + "type": "PicoSourceConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "retargeter", + "type": "HumanoidRetargeterConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "targets", + "type": "tuple[TargetConfig, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "left_hand", + "type": "TargetConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "right_hand", + "type": "TargetConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "open_qpos", + "type": "tuple[float, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "closed_qpos", + "type": "tuple[float, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "str", + "default": "'cuda:0'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "source", + "signature": "source: PicoSourceConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L93", + "doc": "

PICO body and controller source blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "retargeter", + "signature": "retargeter: HumanoidRetargeterConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L95", + "doc": "

Body-to-humanoid retargeting blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "targets", + "signature": "targets: tuple[TargetConfig, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L97", + "doc": "

Humanoid target blueprints fed the same command.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "left_hand", + "signature": "left_hand: TargetConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L99", + "doc": "

Left robot hand blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "right_hand", + "signature": "right_hand: TargetConfig", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L101", + "doc": "

Right robot hand blueprint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "open_qpos", + "signature": "open_qpos: tuple[float, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L103", + "doc": "

Hand joint positions commanded when the trigger is released.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "closed_qpos", + "signature": "closed_qpos: tuple[float, ...]", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L105", + "doc": "

Hand joint positions commanded when the trigger is pressed.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: str = 'cuda:0'", + "source": "https://github.com/openrobokit/retargetingkit/blob/main/src/retargetingkit/configs/teleop/config.py#L107", + "doc": "

Warp device used by RoboKit.

", + "params": [], + "returns": null + } + ] + } + } + } + ] +}, +{ + "name": "Development", + "items": [ + { + "id": "development", + "nav": "Development", + "h": "Development", + "body": "

Keep device conversion, retargeting, and robot transport in their respective layers. Named rig presets connect supported components without putting device-specific dispatch in a runtime.

Repository map

LayerLocationResponsibility
Sourcessrc/retargetingkit/sources/Native data to canonical frames
Retargeterssrc/retargetingkit/retargeting/Frames to robot commands
Targetssrc/retargetingkit/targets/Hardware, transport, or visualization
Presetssrc/retargetingkit/configs/teleop/Source, solver, target, and connection settings
Runtimesscripts/teleop/Component lifecycle and control loop

Validate changes

shell
uv sync --extra vis --group dev\nmake ci

Add the hardware extras required by your work. During development, run make format, make lint, make check, or make test for the relevant check.

Every Python example in these docs runs in tests/test_docs.py; device pages run against autospecced devices.

Public functions should have doctests. Group pytest cases by feature and use torch.testing.assert_close for numerical comparisons.

Add a component

Give a source an isolated stream check, a target a connection check with its hardware behavior stated, and a retargeter a runnable example. Add a named rig once the complete composition is supported.

Keep device guides focused on setup, a stream or connection check, and a working entrypoint. Validate example paths and command flags against the implementation.

" + } + ] +}, +// END GENERATED retargetingkit DOCS + ] +}; diff --git a/data/docs/robokit.js b/data/docs/robokit.js new file mode 100644 index 0000000..2a20f1a --- /dev/null +++ b/data/docs/robokit.js @@ -0,0 +1,35721 @@ +// robokit documentation. Written by scripts/import_docs.py; the +// hand-written groups outside the GENERATED markers are edited here. +// Loaded only by scripts/build_docs.py -- the browser reads the static +// pages it emits, never this file. +window.RK_DOCS = window.RK_DOCS || {}; +window.RK_DOCS.robokit = { + title: 'robokit', + lede: "GPU-native, differentiable robotics tooling: IK, trajectory optimization, retargeting, grasping, calibration.", + groups: [ + // BEGIN GENERATED DOCS (tools/import_docs.py) +{ + "name": "User Guide", + "items": [ + { + "id": "overview", + "nav": "Overview", + "h": "Overview", + "body": "

\"RoboKit\"

RoboKit is a high-performance, general-purpose toolkit for versatile robotic tasks. It scales from one problem to thousands in parallel. It provides a library of cost terms and optimizers that compose freely. Built-in tasks such as IK, motion planning, and retargeting are validated on real robots.

\"Thousands

Thousands of robots solving in parallel.

Benchmarks

\"RoboKit

Bars are wall-clock time on the same task, baseline normalized to full width. Check the paper for benchmark details.

Optimization/Learning with Simulation

\"NIST\"Rough\"Pen
NIST Assembly RL A Franka puts six NIST board parts in place, one after another (3× speed).Rough Terrain RL A Go1 walks up and down stairs, following the green velocity command.Pen Spinning MPC A Sharpa hand spins a pen in its fingers.
\"Notebook\"Box\"Climbing\"
Notebook Opening MPC Two XHands open a hinged ARCTIC notebook.Box Carrying MPC A G1 lifts and carries a box.Climbing MPC A G1 climbs a box on hands and knees.

Optimization with Analytic Objectives

IK Multi-link targets, fixed or floating base.Motion Planning Collision-free trajectories, offline or online.Hand-Eye Calibration Camera pose from rendered robot masks.
Humanoid Retargeting Human motion capture to a humanoid.Hand Retargeting Human hand motion to a robot hand.Grasp Optimization Force-closure grasps for any hand or body.

How it works

\"RoboKit

ComponentRoleRead more
RobotLoad URDF or MJCF models and compute batched, differentiable kinematics.Robot
ObjectivesCost terms that define a task: pose matching, collision, limits, contacts.Terms
OptimizersSampling and gradient methods that minimize the objectives in parallel.Optimization
AccelerationFast geometry and rendering for contact-rich and calibration tasks.Geometry
DistillationTrain policies on solver outputs for even faster inference.

Installation

Requires Python 3.8 or newer:

shell
uv add robokit      # or: pip install robokit

PyTorch is optional. See Installation for source installs and extras.

Quick links

Citation

bibtex
@inproceedings{ye2026robokit,\n  title     = {RoboKit: Accelerating Parallel Differentiable Optimization for Robot Learning},\n  author    = {Ye, Jianglong and Peng, Xuanbin and Mc Gartoll, Conor and Jing, Changwei and Wei, Lai and Chen, Jiali and Zou, Xueyan and Wang, Xiaolong},\n  booktitle = {Conference on Robot Learning (CoRL)},\n  year      = {2026}\n}
" + }, + { + "id": "quickstart", + "nav": "Quickstart", + "h": "Quickstart", + "body": "

Try it without installing

Run this to start the interactive IK gallery:

shell
uvx --from robokit python -m robokit.gallery.ik

Drag targets, switch robots, and adjust weights. Replace ik with any gallery below.

\"IK\"Humanoid\"Motion
ik Drag targets and tune IK weights.ik_legged Balance humanoids and quadrupeds.motion_plan Plan motions around obstacles.
\"Human\"Humanoid\"Hand-object
humanoid_retargeting Retarget human motion to humanoids.humanoid_retargeting_contact Retarget humanoids with object contacts.hand_retargeting_contact Retarget hands with object contacts.
\"XHand\"KUKA\"A
hand_retargeting Retarget hands onto any base, online or offline.robot_models Browse robots, collision spheres, and frames.full_body_retargeting Retarget whole-body human-object interaction.

Solve one IK problem

After installing, this is the whole program:

python
from robot_descriptions.loaders.yourdfpy import load_robot_description\n\nfrom robokit.helpers.ik import IKSolver, presets\nfrom robokit.robo import Robot\n\nrobot = Robot.load(load_robot_description(\"panda_description\"))\nik = IKSolver(presets.basic, robot=robot, target_links=\"panda_hand\")\n\nT_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0]  # x, y, z, qw, qx, qy, qz\nstate = ik.solve_numpy(T_world_target)\nprint(state.q.numpy()[0])  # joint positions

IK uses the GPU when one is visible, else the CPU.

More examples

Galleries are interactive demos. For code to copy, open a runnable script below. Paths are relative to src/robokit/examples.

DirectoryScripts
ik01_basic.py, 02_smooth.py, 03_batch.py, 04_torch.py, 05_bimanual.py, 06_mobile.py, 07_mimic_joints.py, 08_collision.py, 09_self_collision.py, 10_humanoid.py, 11_manipulability.py, 12_heterogeneous_collision.py
motion_plan01_online_mppi.py, 02_offline_lbfgs.py, 03_offline_batch.py, 04_online_lbfgs.py, 05_q_goal.py, 06_heterogeneous.py
humanoid_retargeting01_online.py, 02_collision.py, 03_self_collision.py, 04_offline.py, 05_batch.py, 06_online_batch.py, 07_contact.py, 08_terrain.py, 09_alignment.py, 10_full_body.py, 11_full_body_batch.py
hand_retargeting01_online.py, 02_offline.py, 03_batch.py, 04_arm.py, 05_online_batch.py, 06_contact.py, 07_batch_contact.py
hand_eye_calibration01_sim_rgb.py, 02_sim_mounted.py, 03_sim_depth.py, 04_real_xarm.py, 05_sim_offsets.py, 06_sim_qpos.py
grasp01_basic.py, 02_annealed_gd.py
geom01_basic.py, 02_robot.py, 03_heterogeneous_batch.py, 04_lod.py
opt01_rosenbrock.py, 02_solvers.py, 03_multi_candidate.py, 04_curve_fit.py, 05_mpc_pendulum.py, 06_mpc_navigation.py, 07_ilqr_pendulum.py
sim_mpc01_sharpa_oakink.py, 02_xhand_arctic.py, 03_g1_climb.py, 04_g1_carry.py, 05_g1_amass.py, 06_leap_cube.py, 07_sharpa_pen.py, 08_sharpa_coin.py, 09_sharpa_cap.py, 10_wuji_cube.py, 11_h1_jog.py, 12_go2_jump.py, 13_fr3_push.py, 14_fr3_balance.py, 15_batch.py, 16_demo_repair.py, 18_g1_flip.py

Example usage:

shell
uv run src/robokit/examples/ik/01_basic.py
" + }, + { + "id": "install", + "nav": "Installation", + "h": "Installation", + "body": "

RoboKit needs Python 3.8 or newer.

shell
uv add robokit
shell
pip install robokit

From source

shell
uv add git+https://github.com/openrobokit/robokit
shell
pip install git+https://github.com/openrobokit/robokit

To work on RoboKit itself, follow the Development Guide.

Extras

ExtraWhat it adds
mjMJCF loading (assembly needs mujoco 3.3.4+, Python 3.9+).
mjwarpMuJoCo Warp for SimMPC (Python 3.10+).
pt-cu126, pt-cu118, pt-cu128, pt-cpuPyTorch for your CUDA toolkit.

The mask-alignment term and camera calibration also need nvdiffrast built for your exact PyTorch and CUDA, such as pip install \"nvdiffrast==0.3.3+pt2.11.0cu126\" --extra-index-url https://jianglongye.github.io/torch_packages_builder.

" + }, + { + "id": "rl", + "nav": "RL", + "h": "RL", + "body": "
\"A\"A
A G1 tracks a LAFAN1 dance.A Go1 follows joystick commands.

robokit.helpers.rl trains policies on batched GPU simulations, with features including PPO, CUDA-graphed updates, and coarse-to-fine physics.

This tutorial covers the main RL workflows. The examples' envs run on MuJoCo Warp (MjWarpSim); install it with the mj and mjwarp extras, and PyTorch with a pt-* extra. Complete runnable examples are in src/robokit/examples/rl.

How RL Works

Each PPO update follows three steps:

  1. Roll the actor out for horizon steps in every world of the env.
  2. Update the actor and the critic on that rollout over several epochs.
  3. Adapt the learning rate to the policy's KL divergence.
flowchart TD\n INPUT[Input<br/><br/>Env of batched GPU worlds]\n\n subgraph TRAINING[Training]\n direction TB\n ROLL[1. Roll out the actor]\n UPDATE[2. Update actor and critic]\n ADAPT[3. Adapt the learning rate]\n ROLL --> UPDATE --> ADAPT\n ADAPT -->|repeat| ROLL\n end\n\n ACTOR[Return the actor]\n\n INPUT --> ROLL\n ADAPT --> ACTOR

The env's tensors stay on the GPU, so no step waits for the host. After a few warm-up updates, each update replays as one CUDA graph.

Environments

An env implements Env: n worlds, the actor's and the critic's observation sizes (obs_dims), the action bound, and the names of its reward terms. Its methods take and return GPU tensors:

MethodWhat it does
obs()Returns the actor's and the critic's observations.
step(action)Acts; returns the reward, terminated and truncated flags per world, and each reward term's mean.
reset(mask)Resets the masked worlds.
curriculum(step)Moves the curriculum to step env steps.

The examples wrap MjWarpSim worlds and read sim.data.torch.qpos, qvel and ctrl, zero-copy torch views.

Basic PPO

A PPO holds an actor and a critic. Each update(env) rolls out once and updates once; the caller owns the loop. This trains on a toy env where actions near zero pay:

python
from robokit.helpers.rl import ppo\n\nlearner = ppo.PPO(env.obs_dims, len(env.bound), ppo.PPOConfig())\nfor _ in range(10):\n    learner.update(env)\n\nscore = ppo.evaluate(env, learner.actor, steps=100)  # each reward term's mean per step, and terminations

learner.actor(obs) returns the mean action. PPOConfig holds the PPO settings, such as horizon, epochs, minibatches, lr, kl, entropy, and hidden.

Coarse-to-Fine Training

A policy can train on cheaper physics first. Build the coarse env's scene with MjWarpSim.build_coarse_spec and a CoarseConfig, then let train mix it in: over the first half of the time, an update draws it with a chance falling to 0.

python
actor = learner.train(fine, minutes, coarse_env=coarse, coarse=0.5)

Examples

ExampleTask
01_joystick.pyA Go1 or G1 tracks twist commands.
02_rough_joystick.pyA Go1 or G1 tracks twist commands on rough terrain.
03_lift.pyA Yam arm carries a cube to random targets.
04_go1_getup.pyA Go1 stands up from a random pose.
05_panda_pick.pyA Panda picks up a cube and brings it to a target.
06_leap_reorient.pyA LEAP hand turns a cube to goal after goal.
07_aloha_handover.pyTwo ALOHA arms pass a box between grippers.
08_g1_tracking.pyA G1 tracks a LAFAN1 dance.
09_go1_handstand.pyA Go1 balances on its front feet.
10_h1_gait.pyAn H1 walks at a commanded step rate and swing height.
11_aloha_peg.pyTwo ALOHA arms push a peg into a socket.
12_panda_cabinet.pyA Panda pulls a drawer open.
13_cartpole.pyA cart swings up and balances a pole.
14_nist_assembly.pyA Panda inserts pegs and meshes gears on the NIST assembly board.

Run one with uv run src/robokit/examples/rl/13_cartpole.py swingup --minutes 1.

" + }, + { + "id": "sim-mpc", + "nav": "Sim MPC", + "h": "Sim MPC", + "body": "
\"A\"A
A G1 lifts and carries a box.A Sharpa hand spins a pen in its fingers.

robokit.helpers.sim_mpc is sampling MPC in simulation, with features including motion-capture tracking, legged gaits, hand-object manipulation, pushing, and batched scenes.

This tutorial covers the main SimMPC workflows. Rollouts run in MuJoCo Warp (MjWarpSim) or Newton (robokit.sim.newton.NewtonSim); install MuJoCo Warp with the mj and mjwarp extras. Complete runnable examples are in src/robokit/examples/sim_mpc.

How SimMPC Works

Each plan(data, t0) starts from the given state, then follows four steps:

  1. Sample control offsets around the current plan; draw zero is the plan itself.
  2. Roll every draw out in parallel worlds for horizon_steps and sum its costs.
  3. Move the plan toward the low-cost draws, until it stops improving or reaches max_iterations.
  4. Return the first ctrl_steps commands and shift the plan forward.
flowchart TD\n INPUT[Input<br/><br/>Current state<br/>Sim step t0]\n\n subgraph PLANNING[Planning]\n direction TB\n SAMPLE[1. Sample control offsets]\n ROLL[2. Roll out and score]\n MOVE[3. Move the plan]\n SAMPLE --> ROLL --> MOVE\n MOVE -->|repeat| SAMPLE\n end\n\n OUTPUT[Return the next commands]\n\n INPUT --> SAMPLE\n MOVE --> OUTPUT

Controls are ctrl_ref plus offsets interpolated between nodes every node_steps sim steps. The sampler is robokit's MPPI, the one motion planning runs. SimMPC runs on the current Warp device; on a CUDA GPU every sim step replays a captured CUDA graph, and the CPU is much slower.

Basic SimMPC

A SimMPC combines a SimMPCConfig, a planning simulator, and ctrl_ref. This drives a cart on a slide joint from x = 0 to x = 0.3:

python
import mujoco\nimport numpy as np\nfrom robokit.helpers.sim_mpc import SimMPC, SimMPCConfig\nfrom robokit.sim import MjWarpSim\nfrom robokit.terms import SensorTask\n\nmodel = mujoco.MjModel.from_xml_string(\"\"\"\n<mujoco>\n  <option timestep=\"0.01\"/>\n  <worldbody>\n    <body name=\"cart\">\n      <joint name=\"x\" type=\"slide\" axis=\"1 0 0\" damping=\"5\"/>\n      <geom type=\"box\" size=\"0.05 0.05 0.05\" mass=\"1\"/>\n    </body>\n  </worldbody>\n  <actuator><position joint=\"x\" kp=\"50\"/></actuator>\n  <sensor><jointpos name=\"x\" joint=\"x\"/></sensor>\n</mujoco>\n\"\"\")\ndata = mujoco.MjData(model)\nmujoco.mj_forward(model, data)\n\nsteps = 100\nconfig = SimMPCConfig(num_samples=64, horizon_steps=30, node_steps=10, ctrl_steps=10, max_iterations=4, ctrl_std=0.1)\nctrl_ref = np.zeros((steps + config.horizon_steps, model.nu))  # a row for every step a horizon reaches\nsensor_ref = np.full((len(ctrl_ref), model.nsensordata), 0.3)\nconfig.add(SensorTask(sensor_ref, weight={\"x\": 100.0}))\nmpc = SimMPC(config, MjWarpSim(model, 1, data), ctrl_ref)  # plans on resized copies of this simulator\n(rollout,), (plans,) = mpc.execute(MjWarpSim(model, 1, data), steps)  # one rollout and one plan list per instance\n\nqpos = rollout[\"qpos\"]  # (steps, nq), row k is the state at sim step k\n\n# or execute the commands yourself, here in MuJoCo on the CPU\nmpc = SimMPC(config, MjWarpSim(model, 1, data), ctrl_ref)\nfor t0 in range(0, steps, config.ctrl_steps):\n    commands, infos = mpc.plan(data, t0)  # (ctrl_steps, batch_size, nu); the plan then shifts by ctrl_steps\n    for command in commands.numpy()[:, 0]:\n        data.ctrl[:] = command\n        mujoco.mj_step(model, data)

execute(sim, num_steps) runs the closed loop on sim and returns each instance's executed time, qpos, qvel, sensordata and ctrl at every sim step, plus one info dict per plan. plan(data, t0) takes a simulator's data or one mujoco.MjData; t0 indexes ctrl_ref and the references.

ctrl_std sets each actuator's sampling noise, and ctrl_range bounds the commands (default: the actuator ranges). SimMPC resizes the planning simulator into its worlds, so size its contact buffers up front: MjWarpSim(model, 1, data, nconmax=..., njmax=...).

Costs

A cost is a robokit.terms task that reads the simulator's arrays after each step. Row k of a reference array describes sim step k, matching the rows execute returns.

TermPer step
StateTask(qpos_ref, qvel_ref, dof_weight)Weighted qpos and qvel error to the reference.
SensorTask(sensor_ref, weight)Weighted error of the named sensors to the reference.
ControlTask(weight, ctrl_ref)Weighted squared deviation of the controls from ctrl_ref.
AlignTask(origin, sensor, target_ref, weight)Pushes an object toward a goal.
ContactTask(geoms, target, radius, allowed, weight, penalty, margin)Rewards contacts in target discs (or a box around each target, at a height); penalizes touches outside allowed ones.
GraspTask(gripper, obj, offset, weight)Distance from a gripper body to an object body.

config.add(term, running_scale=1.0, terminal_scale=None) scales a term at every step and at the horizon's last step; running_scale=0 makes it terminal-only.

Custom Costs

A new cost subclasses Task: its constructor stores SimContext placeholders, resolve swaps them for the simulator's arrays, and compute_weighted_cost launches Warp kernels. Terms read only SimContext values, so one can be checked without a simulator:

python
import numpy as np\nimport warp as wp\nfrom robokit.terms import ControlTask, SimContext\n\ncontext = {\n    SimContext.CTRL: wp.array([[1.0, 2.0], [0.0, 1.0]], dtype=float, device=\"cpu\"),\n    SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device=\"cpu\"),\n    SimContext.NUM_INSTANCES: 1,\n    SimContext.WORLDS_PER_INSTANCE: 2,\n}\nterm, out = ControlTask(weight=[0.5, 1.0]), wp.zeros(2, dtype=float, device=\"cpu\")\nterm.resolve(None, context)\nterm.compute_weighted_cost(None, out_cost=out)  # each world's 0.5 * u0**2 + 1.0 * u1**2

Faster Planning

The planning simulator may be cheaper than the executed one if nq, nv, nu and nsensordata match:

Contacts exist only near a geom. To reward a foot before it lands, give the planning model geoms that detect far but push at the usual distance: margin=\"1\" gap=\"0.999\" before MuJoCo 3.10, and margin=\"0.001\" gap=\"0.999\" from 3.10.

Batch Planning

SimMPCConfig.batch_size plans several instances of one model at once, such as several clips of one scene. Give plan one state per instance; ctrl_ref and reference arrays take a leading instance axis, or are shared without one. Rollout worlds are instance-major.

Instances whose scenes differ, such as one hand with a different object each, plan on MjWarpSim(specs, [1] * batch_size). The scenes must share bodies, joints, actuators and sensors.

Control Maps

SimMPCConfig.control_map(sim, clock) turns sampled commands into actuator controls before every step. CartesianControl(model, body, ...) reads the first six commands as a world-frame twist of body and solves damped least squares for joint velocities; the scene needs velocity actuators on scalar joints.

" + }, + { + "id": "ik", + "nav": "IK", + "h": "IK", + "body": "
\"An\"A
An arm tracking a dragged target.A humanoid tracking hand targets while balancing.

robokit.helpers.ik solves inverse kinematics. It handles multiple target links, floating bases, joint limits, smoothness, and collision avoidance.

The snippets assume robot, device, and targets are defined. Runnable examples are in src/robokit/examples/ik.

How IK Works

Each solve takes target link poses and an optional initial state:

  1. Sample candidate states near the initial state.
  2. Optimize pose errors and other costs (Levenberg-Marquardt by default).
  3. Return the best candidates as a RobotState.
flowchart TD\n INPUT[Input<br/><br/>Target link poses<br/>Optional initial state]\n\n subgraph SOLVING[Solving]\n direction TB\n SAMPLE[1. Sample candidates]\n OPT[2. Optimize costs]\n PICK[3. Select the best]\n SAMPLE --> OPT --> PICK\n end\n\n STATE[Return RobotState]\n\n INPUT --> SAMPLE\n PICK --> STATE

Basic IK

An IKSolver takes a configuration, a robot, and target_links: one or more link names or indices. presets.basic has position, rotation, and joint-limit terms.

Pass the target as a translation-first 7D pose:

python
from robokit.helpers.ik import IKSolver, presets\n\nik = IKSolver(presets.basic, robot=robot, target_links=\"panda_hand\", device=device)\n\nT_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0]  # x, y, z, qw, qx, qy, qz\nstate = ik.solve_numpy(T_world_target)\nq = state.q.numpy()[0]

The first solve builds the solver for its batch size. Call ik.warmup(batch_size=1) to build it before a control loop. Create a new IK to change the batch size.

solve() takes Warp arrays.

Tracking IK

presets.smooth adds a smoothness term. Pass the previous result as both init_state and prev_state when solving a moving target:

python
ik = IKSolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device)\n\nstate = None\nfor T_world_target in target_trajectory:\n    state = ik.solve_numpy(T_world_target, init_state=state, prev_state=state)

init_state centers new samples on the previous answer. prev_state feeds temporal terms. The solver keeps the previous answer if it scores better.

Custom Terms

Build an IKSolverConfig when a preset does not contain the terms you need:

python
from robokit.helpers.ik import IKContext, IKSolver, IKSolverConfig\nfrom robokit.opt.sampler import RobertsSamplerConfig\nfrom robokit.terms.dense.position_limit import PositionLimit\nfrom robokit.terms.dense.position_task import PositionTask\nfrom robokit.terms.dense.rotation_task import RotationTask\nfrom robokit.terms.dense.smoothness_task import SmoothnessTask\n\nconfig = (\n    IKSolverConfig(sampler=RobertsSamplerConfig(scale=1.0, keep_first=True))\n    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=20.0))\n    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))\n    .add(PositionLimit(weight=50.0))\n    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=1.0))\n)\nik = IKSolver(config, robot=robot, target_links=\"panda_hand\", device=device)

Arguments the solver fills hold IKContext members, such as TARGET (the poses passed to solve), PREVIOUS_STATE (its prev_state), and SCENE (the solver's scene). Use add_score() to rank candidates without changing the optimization.

CompositeTask(tasks, thresholds=[...]) mixes constraints and scores. A numeric threshold makes a child a constraint; None makes it a score. Candidates that pass every constraint rank first.

Batch IK

Add a leading batch dimension to solve several targets in one call:

python
from robokit.helpers.ik import IKSolver, presets\n\nik = IKSolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device)\nstate = ik.solve_numpy(T_world_target_batch)\nq_batch = state.q.numpy()

The output shape is (batch * ik.num_solutions, dofs). Presets return one solution per target. A custom final stage can keep more, in instance-major order.

Multiple Target Links

Pass several link names to solve them together. Target row i belongs to links[i]:

python
links = [\"yumi_link_7_r\", \"yumi_link_7_l\"]\nik = IKSolver(presets.single_candidate, robot=robot, target_links=links, device=device)\n\n# T_world_target: shape (2, 7), or (batch, 2, 7)\nstate = ik.solve_numpy(T_world_target)

Pass per-link weights to PositionTask or RotationTask, such as weight=[20.0, 5.0].

Floating Base

Set enable_T_world_base=True to optimize the base pose with the joints. A zero in base_active_mask locks that DOF. This config allows planar base motion and locks z, roll, and pitch:

python
config = (\n    IKSolverConfig(\n        enable_T_world_base=True,\n        sampler=RobertsSamplerConfig(scale=1.0, keep_first=True),\n        base_init_sample_range=(1.0, 1.0, 0.0),\n        base_active_mask=[1.0, 1.0, 0.0, 0.0, 0.0, 1.0],\n    )\n    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))\n    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0))\n    .add(PositionLimit(weight=50.0))\n    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=0.1, base_weight=0.5))\n)\nik = IKSolver(config, robot=robot, target_links=\"panda_hand\", device=device)\n\nstate = ik.solve_numpy(T_world_target, init_state=state, prev_state=state)\nT_world_base = state.T_world_base.numpy()[0]

base_init_sample_range sets the per-axis translation noise around the initial base pose.

Collision Avoidance

Load the robot with collision spheres, then add scene and self-collision terms:

python
from robokit.terms.dense.scene_collision_task import SceneCollisionTask\nfrom robokit.terms.dense.self_collision_task import SelfCollisionTask\n\nconfig = (\n    IKSolverConfig(sampler=RobertsSamplerConfig(scale=1.0, keep_first=True), solver=presets.smooth.solver)\n    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=20.0))\n    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))\n    .add(PositionLimit(weight=50.0))\n    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=1.0))\n    .add(SceneCollisionTask(scene=IKContext.SCENE, weight=100.0, margin=0.02))\n    .add(SelfCollisionTask(robot, representation=\"sphere\", weight=5.0, margin=0.01))\n)\nik = IKSolver(config, robot=robot, target_links=\"panda_hand\", device=device, scene=scene)

The margin keeps collision spheres away from obstacles or one another. The scene layout is fixed after the solver is built. Update existing geometry poses in place; create a new IK only when the layout changes.

Runtime Changes

Each term gets a name such as position_task_0. Use it to change a supported term's weight without rebuilding the solver:

python
ik.set_weight(\"position_task_0\", 20.0 * proximity_factor(state))\nik.set_weight(\"rotation_task_0\", [0.0, 1.5])  # one weight per target link

set_active_joint_mask() and set_active_base_mask() lock DOFs at runtime. Changing links, terms, solver stages, collision margins, or scene layout needs a new IK.

" + }, + { + "id": "motion-planning", + "nav": "Motion Planning", + "h": "Motion Planning", + "body": "
\"Planning\"A
Planning around a shelf.A humanoid reaching around a box while balancing.

robokit.helpers.motion_plan plans a collision-free joint trajectory from a start state to a goal pose or joint state. Offline planning solves one motion. Batch planning solves several at once. Online planning updates a trajectory while the robot moves.

The snippets assume robot, scene, device, and start_q are defined. Runnable examples and visualizations are in src/robokit/examples/motion_plan.

How Planning Works

MotionPlanner runs four steps:

  1. For a pose goal, IK finds goal joint states. A joint goal skips IK.
  2. The planner samples initial trajectories from the start to those goals.
  3. GradientTrajectoryOptimizer or MppiTrajectoryOptimizer refines them for the goal, collisions, joint limits, and smoothness.
  4. solve_online() returns the trajectory. solve_offline() first retimes it, if the last stage sets retime.

The trajectory candidate count must be divisible by the IK goal count.

flowchart TD\n MP[MotionPlanner]\n IK[IKSolver]\n SAMPLE[Sample initial trajectories]\n OPT[GradientTrajectoryOptimizer<br/>or<br/>MppiTrajectoryOptimizer]\n ONLINE[Return trajectory]\n OFFLINE[Optional retime]\n RESULT[Return trajectory]\n\n MP -->|goal pose| IK\n IK --> SAMPLE\n MP -->|goal joint state| SAMPLE\n SAMPLE --> OPT\n OPT -->|solve_online| ONLINE\n OPT -->|solve_offline| OFFLINE\n OFFLINE --> RESULT

Basic Example

Plan to a hand pose past a box, then sample the plan at 50 Hz:

python
import numpy as np\nimport warp as wp\nfrom robokit.assets.robots.arms import franka_panda\nfrom robokit.geom import BoxGeom, WarpScene\nfrom robokit.helpers.motion_plan import MotionPlanner, presets\nfrom robokit.robo import Robot\n\ndevice = \"cuda:0\" if wp.is_cuda_available() else \"cpu\"\nrobot = Robot.load(\n    franka_panda.URDF_PATH, load_collision_spheres=True, collision_spheres_path=franka_panda.COLLISION_SPHERE_PATH\n)\n\n# A box with half extents (0.04, 0.25, 0.2) m standing in front of the arm.\nT_world_box = np.eye(4, dtype=np.float32)[None]\nT_world_box[0, :3, 3] = (0.45, 0.0, 0.2)\nbox = BoxGeom(\n    np.array([[0.04, 0.25, 0.2]], np.float32),\n    np.array([0, 1], np.int32),\n    poses=wp.array(T_world_box, dtype=wp.mat44, device=device),\n)\nscene = WarpScene(1, device).add(box)\nplanner = MotionPlanner(presets.offline_pose_lbfgs, robot, \"panda_hand\", scene=scene, device=device)\n\nstart_q = robot.spec.midrange_q.astype(np.float32)\nT_world_goal = np.array([0.45, 0.35, 0.25, 0.0, 1.0, 0.0, 0.0], np.float32)  # x, y, z, qw, qx, qy, qz\nresult = planner.solve_offline_numpy([start_q, {\"panda_hand\": T_world_goal}])\n\nq_traj = result.q_traj[0]  # planned joint trajectory, (frames, dofs)\nmotion_time = result.motion_time[0]  # seconds, at the robot's velocity, acceleration and jerk limits\nq_control = result.interpolate(0.02)[0]  # one joint sample every 0.02 s, (samples, dofs)

The scene layout and batch size are fixed once the planner allocates its buffers. Move obstacles with box.update(...); build a new planner only when the layout or batch size changes.

Offline Planning

solve_offline_numpy() and solve_offline_torch() take a list of waypoints. The first is the start; the last is the goal. Each waypoint is a joint array q or a dict {link_name: T_world_target} of 7D poses or 4x4 matrices. Inputs may have a leading batch dimension; see Batch Planning.

Joint Goals

A joint goal skips goal IK. Use a joint preset:

python
planner = MotionPlanner(presets.offline_joint_lbfgs, robot, \"panda_hand\", device=device)\nresult = planner.solve_offline_numpy([start_q, target_q])

Waypoints

Waypoints between start and goal can be joint arrays or poses:

python
T_world_mid = np.array([0.5, 0.0, 0.5, 0.0, 1.0, 0.0, 0.0], np.float32)\nresult = planner.solve_offline_numpy([start_q, {\"panda_hand\": T_world_mid}, target_q])\nq_mid = result.q_traj[:, result.waypoint_indices[1]]

The planner then:

  1. Solves IK for each pose waypoint, seeded from its neighbors.
  2. Optimizes one trajectory with every waypoint locked on a frame; the robot passes through without stopping.
  3. Gives each segment frames by the time it needs (resplit_waypoints=False splits them evenly).
  4. Retimes the whole trajectory.

waypoint_indices gives each waypoint's frame. Pose waypoints name the planner's target links; planner.ik solves their IK alone. 10_waypoints.py compares one global optimization with per-segment ones, and 12_interpolated_waypoints.py shows resplitting.

Three options take one entry per segment, waypoint i to i + 1:

To plan for some joints only, such as one arm of a bimanual robot, call set_active_joint_mask before the first solve.

Speed and Control Rate

Offline plans are retimed to the fastest motion within the robot's velocity limits and the planner's acceleration_limit and jerk_limit. RetimeConfig.speed_scale runs slower: 0.5 takes twice as long. result.interpolate(dt, speed_scale) samples the plan every dt seconds and keeps each waypoint as a sample. Its speed_scale slows the plan further without replanning. 11_interpolated_speed.py sets both with Viser sliders.

Batch Planning

Batch planning solves several start-goal pairs in one call. Starts and goals get a leading batch dimension. scene_indices[i] picks the collision scene for query i; queries and scenes need not match in number.

Here four queries use two scenes:

text
query:          0  1  2  3\nscene_indices:  0  0  1  1

The call is the same:

python
# start_q_batch: shape (4, dofs)\n# T_world_target_batch: shape (4, 7)\nscene_indices = np.array([0, 0, 1, 1], dtype=np.int32)\n\n# Here scene is a WarpScene containing scene 0 and scene 1.\nplanner = MotionPlanner(presets.offline_pose_lm, robot, \"panda_hand\", scene=scene, device=device)\nresult = planner.solve_offline_numpy([start_q_batch, {\"panda_hand\": T_world_target_batch}], scene_indices=scene_indices)\n\nq_traj_batch = result.q_traj

For a shared scene, use a one-scene WarpScene and fill scene_indices with zeros. A scene can mix boxes, meshes, and other geometry.

Online Planning

Online planning runs in a control loop. Each step plans from the current state and moves the robot to the next trajectory frame. Goals and obstacle poses may change before any solve.

MPPI keeps its trajectory between solves. Solve goal IK when the pose target changes and pass the result as target_q.

python
planner = MotionPlanner(presets.online_pose_mppi, robot, \"panda_hand\", scene=scene, device=device)\n\ncurrent = robot.state(q=wp.array(start_q[None], dtype=wp.float32, device=device))\nT_world_target_wp = wp.array(\n    [[0.60, 0.0, 0.40, 0.0, 1.0, 0.0, 0.0]],\n    dtype=wp_vec7,\n    device=device,\n)\ntarget_q_wp = wp.clone(\n    planner.ik.solve(T_world_target_wp.reshape((1, 1)), init_state=current, rest_state=current).q[:1]\n)\n\nonline_state = None\nfor _ in range(20):\n    trajectory, online_state = planner.solve_online(\n        current,\n        T_world_target=T_world_target_wp,\n        target_q=target_q_wp,\n        online_state=online_state,\n    )\n    wp.copy(current.q, trajectory.q[:, 1])\n    current.invalidate()

For L-BFGS, use presets.online_pose_lbfgs. It solves pose IK itself, so target_q is optional.

To move obstacles, call geom.update(...) before the next solve. In tight loops, allocate input Warp arrays once, outside the loop.

Customization

Objectives

Each optimizer stage holds a list of tasks with their weights, margins and limits. Edit a copy of a preset:

python
from copy import deepcopy\nfrom robokit.helpers.motion_plan import presets\n\nstage = deepcopy(presets.offline_pose_lm.stages[0])\nstage.task(\"collision\").weight = 1000.0\nstage.task(\"collision\").margin = 0.03\nstage.task(\"position_limit\").dense_task.weight = 200.0

For a new objective, list only the tasks you want. Arguments set to a MotionPlanContext member, such as ctx.TARGET or ctx.START_Q, are filled in for each query:

python
from robokit.helpers.motion_plan import GradientTrajectoryOptimizerConfig, MotionPlanContext as ctx\nfrom robokit.terms.dense.frame_task import FrameTask\nfrom robokit.terms.sparse.trajectory_smoothness_task import TrajectorySmoothnessTask\nfrom robokit.terms.trajectory_task import TrajectoryTask\n\ntarget = FrameTask(\n    frame_index=ctx.TARGET_LINKS, T_world_target=ctx.TARGET, position_weight=400.0, orientation_weight=200.0\n)\nstage = GradientTrajectoryOptimizerConfig(\n    terms=[\n        TrajectoryTask(target, frame_indices=[-1], name=\"target\"),\n        TrajectorySmoothnessTask(weight=5.0),\n    ]\n)

Goal IK has its own task list, config.goal_ik.terms.

Point clouds and depth

SdfVolume.from_mesh, from_points, and from_depth build collision grids. Points mark occupied cells. Depth also marks free space, given the camera intrinsics and T_world_camera (OpenCV axes: right, down, forward), so later depth can clear old points. Unknown space is free; pass unknown_is_occupied=True to block it.

python
workspace_min = np.array([-0.2, -0.2, 0.2])\nworkspace_max = np.array([0.2, 0.2, 1.0])\nvolume = SdfVolume.from_points(points, workspace_min, workspace_max)\nscene = WarpScene(1, \"cuda:0\").add(VolumeGeom([volume], np.array([0, 1], dtype=np.int32)))\nvolume.update(depth=depth, intrinsics=intrinsics, T_world_camera=T_world_camera)

Pass scene to the planner and call volume.update as observations arrive; reset=True forgets old ones. Bounds, device and resolution are fixed; to change them, create a new volume and call VolumeGeom.update. Bounds crop observations; they are not walls. Pass device Warp arrays to avoid uploads. Points alone cannot mark free space, so add calibrated depth when you can.

Humanoids

presets.humanoid_offline_lbfgs, humanoid_online_lbfgs and humanoid_online_mppi plan both hands of a floating-base humanoid with its feet planted. Their feet_position, feet_rotation, balance and posture terms are stubs. Fill them in once the standing pose is known, through config.goal_ik.task(name) and config.stages[0].task(name); examples 08 and 09 show how. Floating-base results also include T_world_base_traj.

" + }, + { + "id": "humanoid-retargeting", + "nav": "Humanoid Retargeting", + "h": "Humanoid Retargeting", + "body": "
\"Two-feet\"A
Two-feet jump retargeted to a G1 humanoid.A cha-cha dance retargeted to a G1 humanoid.

robokit.helpers.humanoid_retargeting maps human motion onto a floating-base humanoid. Online retargeting solves one frame at a time. Offline retargeting solves a whole trajectory at once.

The snippets assume robot, device, motion, and human_heights exist. Complete examples are in src/robokit/examples/humanoid_retargeting.

How Retargeting Works

Each solve scales human joint transforms to robot-link targets by the robot-to-human height ratio. It then optimizes the floating base and joints and returns the best state.

flowchart TD\n INPUT[Input<br/><br/>Human joint transforms<br/>Optional human heights]\n\n subgraph SOLVING[Solving]\n direction TB\n MAP[1. Scale to robot link targets]\n OPT[2. Optimize base and joints]\n PACK[3. Pack the best state]\n MAP --> OPT --> PACK\n end\n\n OUT[Return base pose and joint positions]\n\n INPUT --> MAP\n PACK --> OUT

Poses are 7D (x, y, z, qw, qx, qy, qz). The joint axis follows retargeter.human_joint_names.

WorkflowNumPy inputOutput
Online(B, J, 7) per frame(B, 7 + Q)
Offline(B, T, J, 7)(B, T, 7 + Q)

B is batch size, T frame count, J human joints, and Q robot joints. Each output row is the base pose followed by joint positions. human_heights has shape (B,). Omit it to use the preset's assumed height.

Presets

A preset is a HumanoidRetargeterOnlineConfig for one robot and one human motion source. Presets exist for the G1, GR3, H1-2, and BHL robots.

python
from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned  # G1, aligned SMPL-X\nfrom robokit.helpers.humanoid_retargeting.presets.g1_smplh import g1_smplh  # G1, SMPL-H interaction\nfrom robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline  # G1 offline optimizer

Derive a variant with dataclasses.replace(...); do not mutate a preset. Costs are tasks in config.terms. Some task weights take a dict keyed by link or joint name.

Online Retargeting

Online retargeting follows __init__ → warmup → solve → reset. The caller owns the frame loop:

python
from robokit.helpers.humanoid_retargeting import HumanoidRetargeterOnline\nfrom robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned\n\nretargeter = HumanoidRetargeterOnline(g1_aligned, robot=robot, device=device)\nretargeter.warmup(batch_size=1)\n\nfor T_world_human in motion:  # one (J, 7) frame per iteration\n    qpos = retargeter.solve_numpy(T_world_human[None], human_heights)[0]\n\nretargeter.reset()

Omit robot to load it from the config. The first solve captures the CUDA graph. Before a timed loop, run one throwaway solve and call reset(). solve() is the Warp API.

Call reset() between clips. reset(T_world_base=...) also seeds the floating base. Use it when the first frame is far from the origin; see 08_terrain.py.

See 01_online.py.

Online Batches

Call warmup(batch_size=B) and pass one (B, J, 7) frame per iteration. Streams advance in lockstep. Repeat the last frame of shorter streams. The batch size is fixed after warmup; create a new retargeter to change it.

See 06_online_batch.py.

Collision Avoidance

Weight the collision task and pass your own WarpScene:

python
from copy import deepcopy\n\nfrom robokit.geom import PlaneGeom, WarpScene\n\nconfig = deepcopy(g1_aligned)\nconfig.task(\"collision\").weight = 1000.0\nscene = WarpScene(1, device).add(PlaneGeom(np.array([0, 1], dtype=np.int32)))\nretargeter = HumanoidRetargeterOnline(config, scene=scene, device=device)

The collision task needs a scene. The self_collision task does not. Both need robot collision spheres; a robot loaded from the config has them. Move obstacles with geom.update(...). The scene layout is fixed after warmup.

See 02_collision.py and 03_self_collision.py.

Contact-aware Retargeting

Contact-aware retargeting keeps the human joints' layout relative to points on a moving object. It needs an interaction preset such as g1_smplh, a scene with the object as its only mesh, and batch_size=1. Set the first target before warmup. Update it before each solve:

python
from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame\n\nretargeter = HumanoidRetargeterOnline(g1_smplh, robot=robot, scene=scene, device=device)\nretargeter.interaction_task.set_frame(\n    *build_interaction_mesh_frame(human_points[0], object_points, T_world_object_vec7[0])\n)\nretargeter.warmup(batch_size=1)\n\nfor i, T_world_human in enumerate(motion):\n    retargeter.interaction_task.set_frame(\n        *build_interaction_mesh_frame(human_points[i], object_points, T_world_object_vec7[i])\n    )\n    qpos = retargeter.solve_numpy(T_world_human[None])[0]

Move the scene object with object_geom.update(...). Move the interaction target with set_frame(...). The first target fixes the vertex count.

See 07_contact.py.

Offline Retargeting

Offline retargeting optimizes all frames jointly. Pass an online mapping config for the targets and an offline config for the tasks:

python
from robokit.helpers.humanoid_retargeting import HumanoidRetargeterOffline\nfrom robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline\nfrom robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping\n\nretargeter = HumanoidRetargeterOffline(g1_offline_mapping, g1_offline, device=device)\nqpos = retargeter.solve_numpy(motion[None], human_heights=human_heights)[0]  # (T, 7 + Q)

The mapping config must not set interaction or correspondence options. Its tasks apply online only; its velocity limits and output clamp also apply offline. For offline self-collision, add a TrajectorySelfCollisionTask to the offline tasks. solve_numpy(...) warms up for its input shape. The Warp path needs warmup(batch_size=B, num_frames=T) before solve().

See 04_offline.py.

Batch Clips

Pad shorter clips by repeating their last frame. Pass the real lengths:

python
lengths = np.array([len(m) for m in motions], dtype=np.int32)\nnum_frames = int(lengths.max())\npadded = np.stack([np.concatenate([m, np.repeat(m[-1:], num_frames - len(m), axis=0)]) for m in motions])\n\nqpos = retargeter.solve_numpy(padded, valid_lengths=lengths, human_heights=human_heights)\nfirst_clip = qpos[0, : lengths[0]]

See 05_batch.py.

" + }, + { + "id": "hand-retargeting", + "nav": "Hand Retargeting", + "h": "Hand Retargeting", + "body": "
\"An\"Hand-object
An XHand on an xArm7 replaying a captured hand motion.Hand-object retargeting across three datasets.

robokit.helpers.hand_retargeting maps ordered hand points to robot states. Online retargeting solves one frame at a time. Offline retargeting solves a whole trajectory. Complete programs are in src/robokit/examples/hand_retargeting.

How Retargeting Works

flowchart LR\n POINTS[Ordered target points] --> ONLINE[HandRetargeterOnline]\n POINTS --> OFFLINE[HandRetargeterOffline]\n ONLINE --> ONLINE_SOLVE[\"solve()\"]\n OFFLINE --> SOLVE[\"solve()\"]\n OFFLINE --> CONTACT[\"solve_with_contact()\"]\n ONLINE_SOLVE --> STATE[Base transform and joints]\n SOLVE --> STATE\n CONTACT --> STATE

Presets

Each robot preset is a module with one hand spec and a config per workflow.

python
from robokit.helpers.hand_retargeting.presets import shadow\n\nspec = shadow.spec\nonline_config = shadow.online\nonline_wrist_config = shadow.online_wrist\noffline_config = shadow.offline

Order points as spec.target_names. The MANO layout is not assumed.

WorkflowNumPy inputOutput
Online(K, 3) or (B, K, 3)(B, 7 + Q)
Offline(T, K, 3) or (B, T, K, 3)(T, 7 + Q) or (B, T, 7 + Q)

B is batch size, T frame count, K is len(spec.target_names), and Q actuated joints. Each output row is the base transform (x, y, z, qw, qx, qy, qz) followed by the joints.

Online Retargeting

A preset's costs are tasks in config.terms; change one by name:

python
from copy import deepcopy\n\nconfig = deepcopy(shadow.online)\nconfig.task(\"smoothness\").weight = 0.1\nconfig.task(\"rest\").weight = 0.01

Offline configs work the same way. contact_config() and refine_config() derive the contact and refinement problems from a tracking config.

Online retargeting follows __init__ → warmup → solve → reset, one frame per solve; the caller owns the loop. Each frame after the first is smoothed against the previous solution.

python
from robokit.helpers.hand_retargeting import HandRetargeterOnline\n\nretargeter = HandRetargeterOnline(\n    config=shadow.online,\n    robot=robot,\n    spec=shadow.spec,\n    device=device,\n)\nretargeter.warmup(batch_size=1)\n\nfor points in stream:\n    qpos = retargeter.solve_numpy(target_points=points)\n\nretargeter.reset()

See 01_online.py, 05_online_batch.py, and 03_batch.py.

Wrist Tracking

Pass an online_wrist preset to HandRetargeterOnline to track the wrist pose and finger joints together. Floating hands take world points and return the base transform in the world frame:

python
from robokit.helpers.hand_retargeting import HandRetargeterOnline\n\nretargeter = HandRetargeterOnline(shadow.online_wrist, robot, shadow.spec, device=device)\nretargeter.warmup(batch_size=1)\nfor points in stream:\n    qpos = retargeter.solve_numpy(points)\nretargeter.reset()

Wrist presets set reference_origin=\"wrist\"; the default is \"world\". Inputs and outputs stay in world coordinates either way, including init_state and compute_costs(state). Fixed-base arm rigs take points and states in the robot base frame.

Offline Retargeting

solve_numpy() warms up for its input shape. The Warp API needs warmup(batch_size=B, num_frames=T) before solve().

python
from robokit.helpers.hand_retargeting import HandRetargeterOffline\n\nretargeter = HandRetargeterOffline(\n    config=shadow.offline,\n    robot=robot,\n    spec=shadow.spec,\n    device=device,\n)\nqpos = retargeter.solve_numpy(\n    target_points=points,\n    root_quat_wxyz=root_quat_wxyz,\n)

Pass root_quat_wxyz when a task reads the root pose; the default root_rotation task does. Split long trajectories into chunks yourself.

See 02_offline.py and 04_arm.py.

Contact and Collision

Contact solves take one contact point and mask per spec.contact_target_names entry. Wrap a tracking config with contact_config(). Use refine_config() to keep the result near init_state.

python
from robokit.helpers.hand_retargeting import contact_config\n\nretargeter = HandRetargeterOffline(\n    config=contact_config(shadow.offline),\n    robot=robot,\n    spec=shadow.spec,\n    scene=scene,\n    device=device,\n)\nqpos = retargeter.solve_with_contact_numpy(\n    target_points=points,\n    contact_points=contact_points,\n    contact_mask=contact_mask,\n    init_state=init_state,\n    local_contact_points=local_contact_points,\n)

Pass init_state to start from a trajectory; the refinement keeps the result near it.

Pass a WarpScene for scene collision; config.task(\"collision\").weight sets its cost. Self-collision uses the robot's collision spheres and the skip pairs from Robot.load(self_collision_ignore_path=...).

See 06_contact.py. 07_batch_contact.py retargets every right-hand DexYCB capture and writes one NPZ per capture: uv run src/robokit/examples/hand_retargeting/07_batch_contact.py --output-dir PATH.

" + }, + { + "id": "hand_eye_calibration", + "nav": "Hand-Eye Calibration", + "h": "Hand-Eye Calibration", + "body": "

\"Initial,

robokit.helpers.hand_eye_calibration solves the camera extrinsic (OpenCV T_camera_base) from robot masks and/or depth maps. It renders the robot with nvdiffrast at N known joint positions q and aligns the renders to your images. No calibration board is needed.

Overview

flowchart TD\n subgraph Inputs\n OBS[\"masks/depths\"]\n Q[\"q\"]\n INIT[\"initial guess\"]\n end\n Q -- FK --> POSES[\"link poses\"]\n INIT -- sample around it --> CANDIDATES[\"candidates\"]\n subgraph SOLVE[\"HandEyeCalibrator.solve: render + LM per level (mask and/or depth term)\"]\n L0[\"coarse, blurred · many candidates · search the basin\"]\n L1[\"fine · 1 candidate · polish the best\"]\n L0 --> L1\n end\n OBS --> SOLVE\n POSES --> SOLVE\n CANDIDATES --> SOLVE\n SOLVE --> OUT[\"T_camera_base\"]

Quick start

From src/robokit/examples/hand_eye_calibration/01_sim_rgb.py (fixed camera, masks only):

python
from robokit.helpers.hand_eye_calibration import HandEyeCalibrator, presets\n\nhec = HandEyeCalibrator(presets.rgb, robot, camera_intrinsic=intrinsic, height=H, width=W)\npredicted = hec.solve(initial, target_masks=masks, q=q)

masks are [N, H, W] float robot silhouettes. q is [N, num_dofs] in robot.spec.actuated_joint_names order. initial is a rough [4, 4] guess; the default config handles up to ~35 cm / 45 deg of error.

Common variants

Mounted camera. For a camera on a moving mount, such as a wrist camera, pass per-sample T_mount_base. The solver then returns T_camera_mount. See src/robokit/examples/hand_eye_calibration/02_sim_mounted.py:

python
predicted = hec.solve(initial, target_masks=masks, q=q, T_mount_base=T_mount_base)

Depth. Use presets.rgbd to add depth on the fine levels, or presets.depth for depth only. For depth only, omit masks and pass robot-only depth, with 0 marking invalid pixels. See src/robokit/examples/hand_eye_calibration/03_sim_depth.py:

python
from robokit.helpers.hand_eye_calibration import HandEyeCalibrator, presets\n\nhec = HandEyeCalibrator(presets.depth, robot, camera_intrinsic=intrinsic, height=H, width=W)\npredicted = hec.solve(initial, target_depths=depths, q=q)

For a custom schedule, set use_depth per PyramidLevel. Set depth_weight on the mask task in config.terms.

Model offsets. Encoder zero offsets and an unknown mount also shift the rendered robot. To solve for them with the extrinsic, swap the pyramid's mask task for MaskAlignmentOffsetTask: offset_joints frees joint zeros, and offset_link frees the transform a link hangs from. See 05_sim_offsets.py with --offset joints or --offset mount:

python
from dataclasses import replace\nimport warp as wp\nfrom robokit.opt.var_values import VarKey\nfrom robokit.helpers.hand_eye_calibration.mask_alignment_task import MaskAlignmentOffsetTask\nfrom robokit.terms.dense.configuration_task import ConfigurationTask\n\nrest = ConfigurationTask(rest_q=robot.spec.zero_q, weight=150.0, var_key=VarKey.QPOS_OFFSET)\nmask_term = MaskAlignmentOffsetTask(offset_joints=list(range(robot.num_actuated_joints)))\nhec = HandEyeCalibrator(replace(presets.rgb, terms=[mask_term, rest]), robot, intrinsic, H, W)\npredicted = hec.solve(initial, target_masks=masks, q=q)\ndelta_q = wp.to_torch(hec.last_var.get(VarKey.QPOS_OFFSET).x)[0]  # radians, add to measured q

config.terms holds every cost term, mask alignment included.

Set offset_link_dofs to free only the mount's translation or rotation. Weakly observable dofs, such as roll about a round wrist flange, drift; the ConfigurationTask holds them near nominal.

Real hardware. src/robokit/examples/hand_eye_calibration/04_real_xarm.py runs the full pipeline on an xArm + RealSense. It captures images at several joint configurations, segments the arm with SAM2, takes an initial guess dragged in viser, then solves. For larger initial errors, raise candidate_noise_t/r, num_candidates and iterations, as the example does.

Unknown frame qpos. Fit q from silhouette views of one frame.

PresetOptimized variables
presets.rgbCamera; q is supplied
presets.rgb_qposQpos; camera is fixed
presets.rgb_qpos_cameraQpos and camera

Pass target_masks[V,H,W] and an optional initial q[J]. Read the result from last_q[J]. Omit q to search the full joint limits.

Frame and trajectory comparison.

Joint trajectories (experimental). QposTrajectoryCalibrator fits a smooth last_q[T,J] from masks[T,V,H,W] and timestamps[T]. Use presets.rgb_qpos_trajectory for fixed cameras, or presets.rgb_qpos_trajectory_camera to also refine static cameras.

Both APIs also take image keypoints through keypoint_links and target_keypoints. NaNs mark missing points.

Trajectory example · Benchmark.

" + }, + { + "id": "ref-assets", + "nav": "Built-in Robots & Datasets", + "h": "Built-in Robots & Datasets", + "body": "

Robot descriptions and datasets live in the HuggingFace dataset openrobokit/robokit.

Assets are under their own licenses; see license files and outstanding gaps.

Consuming

Import a named asset module and use its static Path symbols. Required files are downloaded and cached automatically. Use fetch() for paths without static symbols:

python
from robokit.assets import fetch\nfrom robokit.assets.robots.humanoids import unitree_g1\n\nunitree_g1.URDF_PATH\nunitree_g1.COLLISION_SPHERE_PATH\nfetch([\"datasets/sfu/**\"]) / \"datasets/sfu/0005/x.npz\"
Note

Files are pinned to one dataset commit and cached under ~/.robokit/, so imports work offline.

Self-collision ignore sets

Each robot lists the link pairs that always touch, so self-collision terms skip them. Each geometry representation has its own set. Match it to your SelfCollisionTask representation (sphere by default):

python
robot = Robot.load(\n    xhand.URDF_PATH_RIGHT,\n    load_collision_spheres=True,\n    collision_spheres_path=xhand.COLLISION_SPHERE_PATH_RIGHT,\n    self_collision_ignore_path=xhand.SPHERE_SELF_COLLISION_IGNORE_PATH_RIGHT,  # or CAPSULE_...\n)

MJCF variants have only MJ_CAPSULE_... sets. Robots without collision spheres have no sphere set.

For asset layout and authoring, see the Development Guide.

Robots

Licenses are upstream. — means unavailable or unspecified. A side, such as (right), means only that side is available.

Arms

\n\n\n\n\n\n\n\n\n\n\n\n
NameFormatSourceLicenseCollision spheresSelf-collision ignore
franka_pandaURDFManiSkillApache-2.0YAML (NVIDIA non-commercial)✓
MJCFMenagerieApache-2.0—✓
xarm6URDFUFACTORYBSD-3-ClauseYAML✓
xarm7URDFUFACTORY / SAPIENBSD-3-Clause + ——✓
MJCFMenagerieBSD-3-Clause—✓
yumiYAML——YAML✓

End effectors

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
NameFormatSourceLicenseCollision spheresSelf-collision ignore
ability_handURDFPSYONICMITYAML (right)✓ (right)
allegro_handURDFSimLabBSD-styleYAML (right)✓ (right)
arx_x5_gripperURDFRoboDojoMITYAML✓
barrett_handURDFBarrett TechnologyBSD-styleYAML✓
dclaw_gripperURDFROBELApache-2.0YAML✓
inspire_handURDFInspire RobotsCC-BY-NC-SA-4.0YAML✓
leap_handURDFAnanye AgarwalMITYAML (right)✓ (right)
mano_handURDF (right)MANOMANOYAML (right)✓ (right)
orcahandURDF (right)ORCAMITYAML (right)✓ (right)
paxini_handURDFPaXini—YAML (right)✓ (right)
robotiq_2f85URDFa-priceBSDYAML✓
schunk_handURDFSCHUNKGPLv3YAML (right)✓ (right)
shadow_handURDFShadow RobotBSD-3-Clause + Apache-2.0YAML (right)✓ (right)
MJCF (right)Menagerie / DexGraspNetApache-2.0 + CC-BY-NC-4.0YAML (right)—
sharpa_handURDFSharpa RoboticsApache-2.0YAML✓
umi_gripperMJCFMenagerieMIT——
xhandURDFRobotEra—YAML (right)✓ (right)
MJCF (right)RobotEra——✓
wuji_hand (Hand 1)URDFWuji TechnologyMITYAML✓
MJCFWuji TechnologyMIT——
wuji_hand_2_2 (Hand 2.2)URDFWuji TechnologyMITYAML✓
MJCFWuji TechnologyMIT——
yam_gripperURDFI2RTMITYAML✓
MJCFI2RTMIT—✓

Humanoids

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
NameFormatSourceLicenseCollision spheresSelf-collision ignore
berkeley_humanoid_liteURDFHybrid RoboticsCC-BY-SA-4.0YAML✓
booster_k1URDFBoosterBSD-3-ClauseYAML✓
booster_t1URDFBoosterBSD-3-ClauseYAML✓
engineai_pm01URDFEngineAIBSD-3-ClauseYAML✓
fourier_gr3URDFFourierGPLv3YAML✓
pal_talosURDFPAL Robotics / Stack of TasksLGPL-3.0YAML✓
pnd_adam_liteURDFPNDboticsBSD-3-ClauseYAML✓
tienkung_liteURDFX-HumanoidOpenAtom Open Hardware 1.0YAML✓
toddlerbot_2xcURDFToddlerBotMITYAML✓
unitree_g1URDFUnitreeBSD-3-ClauseYAML✓
unitree_h1URDFUnitreeBSD-3-ClauseYAML✓
unitree_h1_2URDFUnitreeBSD-3-ClauseYAML✓

Datasets

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
NameFormatSourceLicense
climbNPY, OBJOmniRetarget / HolosomaApache-2.0
dex_retargetingPKLdex-retargeting / DexYCBCC-BY-NC-4.0
dexmachinaNPZDexMachina / ARCTICARCTIC
dexycbNPZ, JSON, OBJDexYCBCC-BY-NC-4.0
gigahandsNPZGigaHandsCC-BY-NC-4.0
nist_assemblyXML, NPZAssembleNIST / UW LabMIT
oakink2NPZOakInk-v2CC-BY-SA-4.0
omomoPT, PKL, OBJOMOMO / InterMimic—
parahomePKL, JSON, OBJParaHomeCC-BY-NC-SA-4.0

User-provided body models

Download MANO or SMPL-X from its official website after accepting its license. Put the files you need under ~/.robokit/body_models/, or set ROBOKIT_BODY_MODELS to another folder:

python
from robokit.smplx import load_mano, load_smplx\n\nhand = load_mano()  # or load_mano(\"/path/to/MANO_RIGHT.pkl\")\nbody = load_smplx()

NPZs load directly. PKLs convert once beside the originals, so the folder must be writable. RoboKit never downloads body models.

" + } + ] +}, +{ + "name": "Concepts", + "items": [ + { + "id": "robot", + "nav": "Robot", + "h": "Robot", + "body": "

robokit.robo computes differentiable kinematics. It splits the work among three classes:

TypeRoleHolds
RobotComputeKinematics methods; stateless
RobotSpecModel dataStructure, geometry, inertia; fixed after load
└─ RobotSpecTensorsDevice model dataRobotSpec on a device
RobotStateValuesBatched joint and base values, and results

Use Robot, robot.spec and RobotState. RobotSpecTensors is internal.

python
from robot_descriptions.loaders.yourdfpy import load_robot_description\nfrom robokit.robo import Robot\n\n# load a robot from a URDF file\nrobot = Robot.load(load_robot_description(\"panda_description\"))\n# access its actuated joint names\njoint_names = robot.spec.actuated_joint_names\n\n# create a state to store values\nstate = robot.state()\n# compute forward kinematics for the current state\nstate = robot.forward_kinematics(state)\n# access the world transforms of all links\nT_world_link = state.T_world_link

State

A RobotState holds one configuration, a batch of them, or a batch of trajectories:

python
state = robot.state(q)  # [num_dofs] or [batch, num_dofs]\ntrajectory_state = robot.state(q_trajectory)  # [batch, num_frames, num_dofs]\nfloating_base_state = robot.state(q, T_world_base=base)  # joint values plus a floating base

q follows robot.spec.actuated_joint_names and excludes mimic joints.

Computation

Robot methods write results into the passed state and return it:

MethodWrites
forward_kinematics(state)T_world_joint, T_world_link
compute_motion_subspace(state)S_world
└─ state.get_link_jacobian(link_idx, frame)body or spatial Jacobian
compute_center_of_mass(state)com_world
transform_collision_spheres(state)sphere and bounding-sphere world centers
transform_collision_capsules(state)link capsule world endpoints

Methods that need link transforms run forward kinematics first when the state lacks them. A fixed-base Jacobian has shape [..., 6, num_dofs]. A floating-base Jacobian adds six base columns in front.

Torch

The Torch interface takes plain tensors instead of a RobotState and supports gradients:

python
# q: torch.Tensor [..., num_dofs]\nT_world_link = robot.forward_kinematics_via_matrix_torch(q)  # torch.Tensor [..., num_links, 4, 4]\n\n# points_local: torch.Tensor [num_points, 3]\npoints_world = robot.transform_link_points_torch(T_world_link, points_local, link_indices)
" + }, + { + "id": "geom", + "nav": "Geometry", + "h": "Geometry", + "body": "

robokit.geom runs batched SDF queries against scenes of mixed geometry types. Each query point gets its signed distance (negative inside), the surface normal and the closest surface point. Collision terms, motion planning and grasp optimization build on it.

Overview

text
BoxGeom / SphereGeom / PlaneGeom / CapsuleGeom / MeshGeom / VolumeGeom\n    |  scene.add(geom)\n    v\nWarpScene.query_sdf(points, scene_offsets)\n    1. route each point to its scene\n    2. launch one Warp kernel per geom, aggregated through the min\n    3. return signed distances (+ normals, closest points)

Example usage:

python
geom = BoxGeom(half_extents, scene_offsets, poses=poses)  # store raw inputs (CPU)\nscene = WarpScene(num_scenes=1, device=device).add(geom)  # allocate GPU arrays of the geom\ngeom.update(poses=new_poses)  # in-place copy

update copies in place and never reallocates. A query captured in a CUDA graph keeps working after the scene moves.

Geom Types

GeomElementsSDF
BoxGeomhalf extentsanalytical
SphereGeomradiianalytical
PlaneGeomlocal z=0 halfspaces, posedanalytical
CapsuleGeomradii + half heightsanalytical
MeshGeomtriangle meshesmesh BVH or baked grid
VolumeGeompre-baked SdfVolume gridstrilinear grid sample

Every geom takes scene_offsets, which assign its elements to scenes. poses and scales are optional. Set capacity to add elements later without reallocating.

Query

python
sdf, normals, closest = scene.query_sdf(points, scene_offsets)  # min aggregate over all geoms\nsdf = scene.query_sdf(points, scene_offsets, distance_only=True)  # query the whole scene, but skip normals/closest\nsdf, _, _ = geom.query_sdf(points, scene_offsets)  # this geom only

Mesh Level-of-Detail

A baked SDF grid speeds up mesh queries. MeshGeom(enable_sdf=True, sdf_voxel_size=0.01) bakes one per mesh and caches it under ~/.robokit/sdf_cache. Queries then cascade:

text
outside the padded AABB -> AABB distance + padding\ninside the grid         -> O(1) grid sample\nnear the surface        -> exact mesh BVH
" + }, + { + "id": "optimization", + "nav": "Optimization", + "h": "Optimization", + "body": "

robokit.opt solves batched nonlinear optimization problems on the GPU. Variables live on manifolds. Costs come from robokit.terms. IK, motion planning, retargeting, hand-eye calibration and grasp synthesis build on it.

Overview

A solver keeps a population of candidates per problem. An optimizer moves each candidate. A sampler draws tangent noise around them.

flowchart TD\n subgraph Solver\n PS[PopulationSolver]\n end\n subgraph Optimizers\n OPT[\"(Sparse) LMOptimizer · LBFGSOptimizer · GDOptimizer\"]\n end\n subgraph Samplers\n SMP[\"RobertsSampler · GaussianSampler\"]\n end\n subgraph Problem\n TASKS[\"Tasks: ResidualTask · GradientTask\"]\n VAR[\"VarValues: container of multiple Var\"]\n end\n PS -- builds --> OPT\n PS -- builds --> SMP\n PS -- costs --> TASKS\n OPT -- residuals · Jacobians --> TASKS\n OPT -- tangent steps --> VAR\n SMP -- tangent noise --> VAR

One round over the population:

flowchart LR\n subgraph Solver\n direction LR\n N[\"sample<br/><i>Sampler</i>\"] --> U[\"optimize<br/><i>Optimizer</i>\"]\n U --> S[\"score<br/><i>Task</i>\"] --> K[select]\n K -.next round.-> N\n end

Each method is a schedule over these four. Multi-candidate LM: optimize, score, select. MPPI: sample, score. ES: sample, score, select.

python
state = robot.state(q=q_init)  # a Var leaf\ntask = FrameTask(robot, frame_index=ee, T_world_target=target)  # a Task\n\noptimizer = LBFGSOptimizer(terms=[task], device=state.q.device)\nvalues, costs = optimizer.solve(VarValues({VarKey.ROBOT: state}))  # one final cost per returned instance\nstate = values.get(VarKey.ROBOT)\n\nvalues = VarValues({VarKey.ROBOT: state, Key.EE: ee_traj})  # co-optimize multiple Vars\nvalues, costs = LBFGSOptimizer(terms=[task, ee_task], device=state.q.device).solve(values)\n\nsolver = PopulationSolver(terms=[[task]], config=cfg, device=state.q.device)\nbest_values, best_costs = solver.solve(seed_values)  # B × num_candidates candidates in, the candidates

Variables

Var is an optimizable value on a manifold, such as joint angles or an SE(3) pose. VarValues maps keys to Var instances. Optimizers and tasks see it as one variable.

flowchart LR\n OPT[Optimizer] -->|update| VV[VarValues]\n OPT -->|evaluate| TASK[Tasks]\n TASK -->|read| VV\n TASK -->|results| OPT

Common methods:

VarValues lays out tangent columns in insertion order:

text
tangent columns: [   robot (T=7)   |   ee (T=6)   ]\n                     offset=0          offset=7

Subclass VarValues to give a group its own tangent or sampling rule. For example, one variable is optimized and the rest follow from it; the tangent then covers only the free one.

Tasks

Tasks come from robokit.terms. Both interfaces subclass Task:

TermContractConsumed by
ResidualTaskresidual vector r (+ Jacobian)LM; GD/LBFGS residual modes
GradientTaskper-batch scalar cost (+ gradient)GD/LBFGS

SparseTask is a ResidualTask with a sparse Jacobian. EagerTask is a ResidualTask with hooks for work outside captured CUDA graphs.

A task can implement both. SmoothnessTask(ResidualTask, GradientTask) gives residuals and gradients.

Optimizers

Optimizers come from robokit.opt. All three share one lifecycle:

python
class Optimizer:\n    def solve(self, var: VarValues) -> Tuple[VarValues, wp.array]:\n        \"\"\"`reset` then `max_iter` × `step`, in place; returns `var` and one cost per candidate.\"\"\"\n\n    def reset(self, var: VarValues) -> None: ...\n    def step(self, var: VarValues) -> None: ...
OptimizerMethod
LMOptimizerDamped Gauss–Newton (Cholesky or CG)
LBFGSOptimizerQuasi-Newton with line search
GDOptimizerGD, Adam, or AdamW

One optimization step:

  1. Changed VarValues invalidate their caches.
  2. The optimizer calls each task's precompute(), one at a time.
  3. Tasks compute costs and derivatives, in parallel when enabled.
  4. The optimizer updates the values, or accepts or rejects a proposal.

Samplers

A sampler owns one named variable and one method:

python
class Sampler:\n    var_key: str\n\n    def reset(self) -> None:\n        \"\"\"Reopen the spread at the start of a solve.\"\"\"\n\n    def sample(self, var: VarValues, scores: Optional[wp.array]) -> VarValues:\n        \"\"\"Move each candidate by `scores` (its costs, None before any), then draw new ones around it.\n        The population handed in is the one that moves; the returned one is the one to score.\"\"\"
SamplerDraws
RobertsSamplerA low-discrepancy spread; no move
GaussianSamplerNormals around a mean moved by the scores (MPPI, ES)
ContactSamplerA copy with fresh contacts; the better one stays (grasp)

Solvers

A solver runs sampler and optimizer configs as a schedule of stages:

python
class PopulationSolver:\n    def solve(self, var: VarValues) -> Tuple[VarValues, wp.array]:\n        \"\"\"`batch × num_candidates[0]` candidates in; the best per problem and its cost out.\"\"\"

Each iteration of solve:

  1. sample, per Stage.sample_every: each sampler moves its candidates by the last scores, then draws new ones.
  2. optimize: the stage's optimizer steps every candidate.
  3. score: the tasks, or the score term, cost every candidate.
  4. select, at each new stage: keep its best num_candidates per problem; its optimizer takes over.
python
from robokit.helpers.grasp import ContactSamplerConfig\nfrom robokit.opt.sampler import GaussianSamplerConfig, RobertsSamplerConfig\n\nroberts = RobertsSamplerConfig(scale=0.2)\nmppi = GaussianSamplerConfig(num_draws=64)\ncontacts = ContactSamplerConfig()\n\n# multi-candidate LM: Roberts noise spreads 64 candidates at iteration 0, LM steps them, selects narrow 64 → 4 → 1\nPopulationSolverConfig(stages=[Stage(6, 64, sample_every=6), Stage(10, 4), Stage(0, 1)], samplers=[roberts])\n# MPPI: every iteration moves each candidate by its draws' scores and draws again; a last sample\n# after the final score moves it once more, and the solve ends on the moved candidates\nPopulationSolverConfig(stages=[Stage(6)], samplers=[mppi])\n# grasp LM: every 8 iterations each candidate is joined by a copy with fresh contacts, LM steps both,\n# and the next sample keeps the better; the final select picks one of the last pair\nPopulationSolverConfig(stages=[Stage(64, 1, lm, sample_every=8)], samplers=[contacts])
" + }, + { + "id": "conventions", + "nav": "Conventions", + "h": "Conventions", + "body": "

SE(3) Representation

Twist Representation

Matches Pinocchio / Pink.

Multi-Candidate Layout

Instance major order: output_idx = instance_idx * num_candidates + candidate_idx

Example (3 instances × 2 candidates): [i0s0, i0s1, i1s0, i1s1, i2s0, i2s1]

Utility functions:

FunctionPurposeExample
warp_utils.repeatExpand instances for candidates[i0, i1] → [i0, i0, i1, i1]
warp_utils.tileExpand candidates for instances[s0, s1] → [s0, s1, s0, s1]

Notation

Transformations

Joint Positions

" + } + ] +}, +{ + "name": "Reference", + "items": [ + { + "id": "opt-gd", + "nav": "GDOptimizer", + "h": "GDOptimizer", + "body": "

Implements batched gradient descent, Adam, and AdamW on manifold-valued variables. Source: src/robokit/opt/gd_optimizer.py.

GD

$$\\begin{array}{l}\n\\textbf{input}: x_0 \\text{ (initial var)},\\ c \\text{ (scalar cost)},\\ \\eta \\text{ (learning\\_rate)},\\ T \\text{ (max\\_iter)} \\\\[1mm]\n\\textbf{for}\\ t = 1, \\dots, T\\ \\textbf{do} \\\\\n\\hspace{5mm} g_t \\leftarrow \\nabla c(x_{t-1}) \\\\\n\\hspace{5mm} x_t \\leftarrow x_{t-1} \\oplus (-\\eta\\, g_t) \\\\\n\\textbf{return}\\ x_T\n\\end{array}$$

Adam / AdamW

AdamW is Adam with weight_decay > 0. In GD and Adam, gradient_clip clamps each entry of $g_t$, and weight_decay adds the decoupled decay below.

$m$ and $v$ are moving averages of $g$ and $g^2$, with decay rates $\\beta_1$ and $\\beta_2$. Both start at zero, so early estimates lean toward zero. $\\widehat{m}_t$ and $\\widehat{v}_t$ correct this by dividing by $1-\\beta_1^t$ and $1-\\beta_2^t$.

$$\\begin{array}{l}\n\\textbf{input}: x_0 \\text{ (initial var)},\\ c \\text{ (scalar cost)},\\ \\eta \\text{ (learning\\_rate)}, \\\\\n\\hspace{13mm} \\beta_1, \\beta_2, \\epsilon,\\ \\lambda \\text{ (weight\\_decay)},\\ T \\text{ (max\\_iter)} \\\\[1mm]\n\\textbf{initialize}: m_0 \\leftarrow 0,\\ v_0 \\leftarrow 0 \\\\[1mm]\n\\textbf{for}\\ t = 1, \\dots, T\\ \\textbf{do} \\\\\n\\hspace{5mm} g_t \\leftarrow \\nabla c(x_{t-1}) \\\\\n\\hspace{5mm} m_t \\leftarrow \\beta_1 m_{t-1} + (1 - \\beta_1)\\, g_t,\\qquad\nv_t \\leftarrow \\beta_2 v_{t-1} + (1 - \\beta_2)\\, g_t^2 \\\\\n\\hspace{5mm} \\widehat{m}_t \\leftarrow m_t / (1 - \\beta_1^t),\\qquad\n\\widehat{v}_t \\leftarrow v_t / (1 - \\beta_2^t) \\\\\n\\hspace{5mm} \\delta_t \\leftarrow -\\eta\\, \\widehat{m}_t / (\\sqrt{\\widehat{v}_t} + \\epsilon) \\\\\n\\hspace{5mm} \\textbf{if}\\ \\lambda > 0 \\\\\n\\hspace{10mm} \\delta_t \\leftarrow \\delta_t - \\eta \\lambda\\, x_{t-1}\n\\quad \\text{(decoupled weight decay)} \\\\\n\\hspace{5mm} x_t \\leftarrow x_{t-1} \\oplus \\delta_t \\\\\n\\textbf{return}\\ x_T\n\\end{array}$$

", + "sub": "Optimizers" + }, + { + "id": "opt-lm", + "nav": "LMOptimizer", + "h": "LMOptimizer", + "body": "

Implements batched Levenberg-Marquardt on manifold-valued variables. Source: src/robokit/opt/lm_optimizer.py.

Overview

For the variable $\\mathbf{x}$, each iteration computes the residual vector $\\mathbf{r}(\\mathbf{x})$, the cost $c(\\mathbf{x})=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2$ and the residual Jacobian $J$. These give a damped step $\\boldsymbol{\\delta}$ and a candidate $\\widehat{\\mathbf{x}}=\\mathbf{x}\\oplus\\boldsymbol{\\delta}$. The step comes from a model of the cost near $\\mathbf{x}$, so LM compares the actual cost drop with the predicted one. The comparison decides whether $\\widehat{\\mathbf{x}}$ replaces $\\mathbf{x}$ and whether the damping $\\lambda$ grows or shrinks.

flowchart TB\n X[Variable x] --> E[\"Compute residual r, cost c, and Jacobian J\"]\n E --> S[\"Compute damped step δ\"]\n S --> C[\"Evaluate candidate x ⊕ δ and its cost\"]\n C --> A[\"Compare actual vs predicted drop<br/><i>keep or discard candidate, update λ</i>\"]\n A -- Next iteration --> E

LM step

Gauss-Newton. For the cost $c(\\mathbf{x})=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2$ and a tangent step $\\boldsymbol{\\delta}$, to first order $\\mathbf{r}(\\mathbf{x}\\oplus\\boldsymbol{\\delta})\\approx \\mathbf{r}(\\mathbf{x})+J\\boldsymbol{\\delta}$.

This gives the subproblem $\\min_{\\boldsymbol{\\delta}}\\; \\frac12\\|\\mathbf{r}(\\mathbf{x})+J\\boldsymbol{\\delta}\\|^2$, with gradient $J^\\top(\\mathbf{r}(\\mathbf{x})+J\\boldsymbol{\\delta})$. Setting it to zero gives the normal equations

$$J^\\top J\\boldsymbol{\\delta}=-J^\\top\\mathbf{r}(\\mathbf{x}).$$

Solving it for $\\boldsymbol{\\delta}$ gives the candidate $\\widehat{\\mathbf{x}}= \\mathbf{x}\\oplus\\boldsymbol{\\delta}$. This is a Newton-like step: $J^\\top\\mathbf{r}(\\mathbf{x})=\\nabla c(\\mathbf{x})$ and $J^\\top J\\approx H(\\mathbf{x})=\\nabla^2c(\\mathbf{x})$.

Levenberg-Marquardt. LM adds a penalty for large steps:

$$\\min_{\\boldsymbol{\\delta}}\\quad\n\\frac12\\left\\|\\mathbf{r}(\\mathbf{x})+J\\boldsymbol{\\delta}\\right\\|^2\n+\\frac{\\lambda}{2}\\left\\|\\boldsymbol{\\delta}\\right\\|^2.$$

This gives

$$\\left(J^\\top J+\\lambda I\\right)\\boldsymbol{\\delta}\n=-J^\\top\\mathbf{r}(\\mathbf{x}).$$

A larger $\\lambda$ gives a smaller step. The default linear_solver=\"cholesky\" solves this system exactly. \"cg\" uses matrix-free conjugate gradient and stops at a tolerance or an iteration cap.

linear_solver=\"torch_cholesky\" factors the dense normal equations with PyTorch in float64. It needs PyTorch and runs eagerly. Use it for wide coupled systems where factorization dominates runtime.

Trust region

At the candidate $\\widehat{\\mathbf{x}}$, the actual reduction is $c(\\mathbf{x})-c(\\widehat{\\mathbf{x}})$. The Gauss-Newton model predicts

$$\\begin{aligned}\n\\Delta c_{\\mathrm{pred}}\n&=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2\n-\\frac12\\|\\mathbf{r}(\\mathbf{x})+J\\boldsymbol{\\delta}\\|^2 \\\\\n&=-\\mathbf{r}(\\mathbf{x})^\\top J\\boldsymbol{\\delta}\n-\\frac12(J\\boldsymbol{\\delta})^\\top(J\\boldsymbol{\\delta}).\n\\end{aligned}$$

For $\\Delta c_{\\mathrm{pred}}>0$, the gain ratio compares the two:

$$\\rho=\\frac{c(\\mathbf{x})-c(\\widehat{\\mathbf{x}})}\n{\\Delta c_{\\mathrm{pred}}+\\epsilon}.$$

$\\epsilon\\ge0$ is a small stabilizer, $10^{-8}$ by default; $0$ gives the exact ratio. A $\\rho$ near $1$ means the model was accurate. LM accepts the candidate exactly when

$$\\boxed{\\text{accept}\\iff\n\\Delta c_{\\mathrm{pred}}>0\\ \\land\\ \\rho\\ge\\rho_{\\min}}.$$

The default is $\\rho_{\\min}=10^{-3}$. With damping factor $\\nu>1$, acceptance keeps $\\widehat{\\mathbf{x}}$ and sets $\\lambda\\leftarrow\\lambda/\\nu$ for a larger next step. Rejection keeps $\\mathbf{x}$ and sets $\\lambda\\leftarrow\\lambda\\nu$ for a smaller one.

Algorithm

$$\\begin{array}{l}\n\\textbf{input}: \\mathbf{x}_0,\\quad\n\\lambda_0,\\quad\n\\nu>1 \\text{ (damping update factor)},\\quad\n\\rho_{\\min} \\text{ (acceptance threshold)}, \\\\\n\\hspace{13mm}\n\\epsilon \\text{ (numerical stabilizer)},\\quad\n[\\lambda_{\\min},\\lambda_{\\max}],\\quad\nT \\text{ (iterations)} \\\\[1mm]\n\\textbf{initialize}: \\mathbf{x}\\leftarrow\\mathbf{x}_0,\\ \\lambda\\leftarrow\\lambda_0 \\\\[1mm]\n\\textbf{for}\\ t=1,\\dots,T\\ \\textbf{do} \\\\\n\\hspace{5mm} \\mathbf{r}\\leftarrow\\mathbf{r}(\\mathbf{x}),\\quad\nJ\\leftarrow J(\\mathbf{x}),\\quad\nc\\leftarrow\\tfrac12\\|\\mathbf{r}\\|^2 \\\\\n\\hspace{5mm} \\text{solve } (J^\\top J+\\lambda I)\\boldsymbol{\\delta}=-J^\\top\\mathbf{r}\n\\quad \\text{for } \\boldsymbol{\\delta} \\\\\n\\hspace{5mm} \\widehat{\\mathbf{x}}\\leftarrow\\mathbf{x}\\oplus\\boldsymbol{\\delta},\n\\quad\n\\text{evaluate }c(\\widehat{\\mathbf{x}})=\\tfrac12\\|\\mathbf{r}(\\widehat{\\mathbf{x}})\\|^2 \\\\\n\\hspace{5mm} \\Delta c_{\\mathrm{pred}}\\leftarrow\n\\tfrac12\\|\\mathbf{r}\\|^2-\\tfrac12\\|\\mathbf{r}+J\\boldsymbol{\\delta}\\|^2 \\\\\n\\hspace{5mm} \\textbf{if}\\ \\Delta c_{\\mathrm{pred}}>0\\quad\\textbf{and}\\quad\n\\dfrac{c-c(\\widehat{\\mathbf{x}})}{\\Delta c_{\\mathrm{pred}}+\\epsilon}\\ge\\rho_{\\min} \\\\\n\\hspace{10mm} \\mathbf{x}\\leftarrow\\widehat{\\mathbf{x}},\\quad\n\\lambda\\leftarrow\\lambda/\\nu \\\\\n\\hspace{5mm} \\textbf{else} \\\\\n\\hspace{10mm} \\lambda\\leftarrow\\lambda\\nu\n\\quad \\text{($\\mathbf{x}$ stays unchanged)} \\\\\n\\hspace{5mm} \\lambda\\leftarrow\n\\operatorname{clip}(\\lambda,\\lambda_{\\min},\\lambda_{\\max}) \\\\\n\\textbf{return}\\ \\mathbf{x}\n\\end{array}$$

", + "sub": "Optimizers" + }, + { + "id": "opt-lbfgs", + "nav": "LBFGSOptimizer", + "h": "LBFGSOptimizer", + "body": "

Implements batched L-BFGS on manifold-valued variables. Source: src/robokit/opt/lbfgs_optimizer.py.

Overview

For the variable $\\mathbf{x}$, each iteration computes the cost $c(\\mathbf{x})$ and gradient $\\mathbf{g}=\\nabla c(\\mathbf{x})$. $\\mathbf{g}$ and the history give a descent direction $\\mathbf{d}$. With no history, $\\mathbf{d}$ follows $-\\mathbf{g}$. A line search picks a step size $\\alpha^*$, and $\\mathbf{x}$ moves by $\\alpha^*\\mathbf{d}$.

flowchart TB\n I[Initial variable x] --> E[\"Cost c(x) and gradient g\"]\n E --> D[\"Descent direction d<br/><i>computed using g and history</i>\"]\n D --> L[\"Line-search step size α*\"]\n L --> U[Update x]\n U -- Next iteration --> E

Descent direction

The direction $\\mathbf{d}$ comes from the gradient $\\mathbf{g}$ and a short history of steps. Iteration $t$, from $\\mathbf{x}_t$ to $\\mathbf{x}_{t+1}$, adds one history pair:

$$\\mathbf{g}(\\mathbf{x}_t+\\mathbf{s}_t)\n\\approx \\mathbf{g}(\\mathbf{x}_t)+J_{\\mathbf{g}}(\\mathbf{x}_t)\\mathbf{s}_t.$$

The gradient Jacobian is the cost Hessian, $J_{\\mathbf{g}}(\\mathbf{x})=H(\\mathbf{x})=\\nabla^2 c(\\mathbf{x})$, so $\\mathbf{y}_t\\approx H(\\mathbf{x}_t)\\mathbf{s}_t$.

Newton's method uses $\\mathbf{d}=-H(\\mathbf{x})^{-1}\\mathbf{g}$. L-BFGS replaces the exact inverse with an approximation $A$:

$$A\\approx H(\\mathbf{x})^{-1},\n\\qquad\n\\mathbf{d}=-A\\mathbf{g}.$$

Below, $i$ indexes the history pairs, oldest first. $A_i$ is the approximation after $i$ pairs, with $A_0=\\gamma I$. BFGS adds pair $i$ by

$$A_{i+1}=V_iA_iV_i^\\top+\\rho_i \\mathbf{s}_i \\mathbf{s}_i^\\top,\n\\qquad\nV_i=I-\\rho_i \\mathbf{s}_i \\mathbf{y}_i^\\top,\n\\qquad\n\\rho_i=\\frac{1}{\\mathbf{y}_i^\\top \\mathbf{s}_i}.$$

A pair is used only when $\\mathbf{y}_i^\\top\\mathbf{s}_i>0$; otherwise it is dropped. The update enforces $A_{i+1}\\mathbf{y}_i=\\mathbf{s}_i$ and keeps $A_{i+1}$ symmetric positive definite.

Why does the update work?
  1. Why does it enforce $A_{i+1}\\mathbf{y}_i=\\mathbf{s}_i$?

Since $\\rho_i(\\mathbf{y}_i^\\top \\mathbf{s}_i)=1$, $V_i^\\top \\mathbf{y}_i=\\mathbf{y}_i-\\rho_i\\mathbf{y}_i (\\mathbf{y}_i^\\top \\mathbf{s}_i)=\\mathbf{0}$. Substituting into the update gives

$$A_{i+1}\\mathbf{y}_i\n=V_iA_iV_i^\\top \\mathbf{y}_i\n+\\rho_i\\mathbf{s}_i(\\mathbf{y}_i^\\top \\mathbf{s}_i)\n=\\mathbf{0}+\\rho_i\\mathbf{s}_i(\\mathbf{y}_i^\\top \\mathbf{s}_i)\n=\\mathbf{s}_i.$$

  1. Why does it stay symmetric positive definite?

Let $A_i$ be symmetric positive definite. Then $V_iA_iV_i^\\top$ and $\\rho_i\\mathbf{s}_i\\mathbf{s}_i^\\top$ are symmetric. If $\\mathbf{y}_i^\\top\\mathbf{s}_i>0$, then $\\rho_i>0$, and for any nonzero $\\mathbf{z}$,

$$\\mathbf{z}^\\top A_{i+1}\\mathbf{z}\n=(V_i^\\top \\mathbf{z})^\\top A_i(V_i^\\top \\mathbf{z})\n+\\rho_i(\\mathbf{s}_i^\\top \\mathbf{z})^2>0.$$

So $A_{i+1}$ stays symmetric positive definite.

After all pairs, $A$ approximates $H(\\mathbf{x})^{-1}$ and gives $\\mathbf{d}=-A\\mathbf{g}$. L-BFGS never builds the $n\\times n$ matrix $A$. A two-loop recursion over $m$ history pairs computes $A\\mathbf{g}$ in $O(mn)$ memory and $O(mn)$ operations, where $m\\ll n$.

Normalization. By default, normalize_direction=False keeps the direction's length. Set it to True to scale the direction to unit length before the line search.

How does the matrix update become two loops?

The direction needs $A_m\\mathbf{g}$, where $m$ is the number of history pairs. Expanding $A_m\\mathbf{g}$ with the BFGS update gives

$$\\begin{aligned}\nA_m\\mathbf{g}\n&=V_{m-1}A_{m-1}(V_{m-1}^\\top\\mathbf{g})\n+\\rho_{m-1}\\mathbf{s}_{m-1}\n(\\mathbf{s}_{m-1}^\\top\\mathbf{g}) \\\\\n&=V_{m-1}\\Big[\nV_{m-2}A_{m-2}(V_{m-2}^\\top V_{m-1}^\\top\\mathbf{g})\n+\\rho_{m-2}\\mathbf{s}_{m-2}\n(\\mathbf{s}_{m-2}^\\top V_{m-1}^\\top\\mathbf{g})\n\\Big] \\\\\n&\\quad+\\rho_{m-1}\\mathbf{s}_{m-1}\n(\\mathbf{s}_{m-1}^\\top\\mathbf{g}) \\\\\n&=\\cdots \\\\\n&=V_{m-1}\\cdots V_0A_0\n(V_0^\\top\\cdots V_{m-1}^\\top\\mathbf{g}) \\\\\n&\\quad+\\cdots+\\rho_{m-1}\\mathbf{s}_{m-1}\n(\\mathbf{s}_{m-1}^\\top\\mathbf{g}).\n\\end{aligned}$$

The first loop computes the product $V_0^\\top\\cdots V_{m-1}^\\top\\mathbf{g}$. Define $\\mathbf{q}_0=V_0^\\top\\cdots V_{m-1}^\\top\\mathbf{g}$. Each step goes from $\\mathbf{q}_{i+1}$ to $\\mathbf{q}_i$:

$$\\mathbf{q}_i\n=V_i^\\top\\mathbf{q}_{i+1}\n=\\mathbf{q}_{i+1}\n-\\rho_i\\mathbf{y}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}).$$

Starting from $\\mathbf{q}_m=\\mathbf{g}$, the loop runs backward from $i=m-1$ to $i=0$ and yields $\\mathbf{q}_0$.

The second loop evaluates the remaining terms, starting from $A_0\\mathbf{q}_0$. Define $\\mathbf{r}_0=A_0\\mathbf{q}_0=\\gamma\\mathbf{q}_0$. Each step goes from $\\mathbf{r}_i$ to $\\mathbf{r}_{i+1}$:

$$\\mathbf{r}_{i+1}\n=V_i\\mathbf{r}_i\n+\\rho_i\\mathbf{s}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1})\n=\\mathbf{r}_i+\\rho_i\\mathbf{s}_i\n(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}-\\mathbf{y}_i^\\top\\mathbf{r}_i).$$

Starting from $\\mathbf{r}_0$, the loop runs forward from $i=0$ to $i=m-1$ and yields $\\mathbf{r}_m=A_m\\mathbf{g}$.

Pseudocode:

$$\\begin{array}{l}\n\\textbf{input}: \\mathbf{g},\\ \\text{history},\\ \\gamma \\\\\n\\textbf{initialize}: \\mathbf{q}_m\\leftarrow\\mathbf{g} \\\\\n\\textbf{for }i=m-1,\\ldots,0 \\\\\n\\hspace{5mm} \\mathbf{q}_i\\leftarrow\\mathbf{q}_{i+1}\n-\\rho_i\\mathbf{y}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}) \\\\\n\\mathbf{r}_0\\leftarrow\\gamma\\mathbf{q}_0 \\\\\n\\textbf{for }i=0,\\ldots,m-1 \\\\\n\\hspace{5mm} \\mathbf{r}_{i+1}\\leftarrow\\mathbf{r}_i\n+\\rho_i\\mathbf{s}_i\n(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}-\\mathbf{y}_i^\\top\\mathbf{r}_i) \\\\\n\\textbf{return}: \\mathbf{d}\\leftarrow-\\mathbf{r}_m\n\\end{array}$$

Initial scale. The start is $A_0=\\gamma I$, with $\\gamma$ fixed or adaptive. Barzilai-Borwein scaling picks $\\gamma$ from the newest pair $(\\mathbf{s}_{m-1},\\mathbf{y}_{m-1})$, so $\\gamma\\mathbf{y}_{m-1}$ best fits $\\mathbf{s}_{m-1}$:

$$\\gamma\n=\\frac{\\mathbf{s}_{m-1}^\\top\\mathbf{y}_{m-1}}\n{\\mathbf{y}_{m-1}^\\top\\mathbf{y}_{m-1}}.$$

Line search

The line search tries a fixed set of step sizes $\\alpha_j$ at once and picks

$$\\alpha^*\n=\n\\begin{cases}\n\\displaystyle\n\\max_j\\left\\{\n\\alpha_j\n\\;\\middle|\\;\nc(\\mathbf{x}\\oplus\\alpha_j\\mathbf{d})\n\\le c(\\mathbf{x})+c_1\\alpha_j\\mathbf{g}^\\top\\mathbf{d}\n\\right\\},\n& \\text{if any candidate passes},\n\\\\[3mm]\n0,\n& \\text{otherwise}.\n\\end{cases}$$

Since $A$ is positive definite, $\\mathbf{g}^\\top A\\mathbf{g}>0, \\mathbf{g}^\\top\\mathbf{d}<0$. The Armijo condition $c(\\mathbf{x}\\oplus\\alpha_j\\mathbf{d})\\le c(\\mathbf{x})+c_1\\alpha_j\\mathbf{g}^\\top\\mathbf{d}$ requires the actual decrease to be at least $c_1$ of the predicted first-order decrease. $c_1$ defaults to $10^{-4}$; a larger value requires more decrease.

", + "sub": "Optimizers" + }, + { + "id": "term-frame", + "nav": "Frame Task", + "h": "Frame Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/frame_task.py.

Residual

For the current and target link transforms:

$$\\Delta\\mathbf{T}\n=\n\\left(\\mathbf{T}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1}\n\\mathbf{T}^{\\mathrm{tgt}}_{w\\leftarrow l}$$

SE(3) log map:

$$\\mathbf{e}\n=\n\\mathrm{Log}\\!\\left(\\Delta\\mathbf{T}\\right)\n\\in\\mathbb{R}^6$$

Jacobian

$\\mathbf{J}=\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}}\\in\\mathbb{R}^{6\\times n}$.

Express the world-frame motion subspace in the current link frame:

$$\\mathbf{J}_{\\mathrm{body}}^l\n=\n\\mathrm{Ad}\\!\\left(\\left(\\mathbf{T}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1}\\right)\\mathbf{S}_w\n\\in\\mathbb{R}^{6\\times n}$$

Here, $\\mathrm{Ad}$ maps world-frame twists to the link frame.

With $\\boldsymbol{\\tau}=\\mathrm{Log}(\\Delta\\mathbf{T}^{-1})$ and $J_r$ the SE(3) right Jacobian:

$$\\mathbf{J}\n=\n-\\,J_r^{-1}\\!\\left(\\boldsymbol{\\tau}\\right)\\,\n\\mathbf{J}_{\\mathrm{body}}^l\n\\in\\mathbb{R}^{6\\times n}$$

", + "sub": "Terms" + }, + { + "id": "term-position", + "nav": "Position Task", + "h": "Position Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/position_task.py.

Residual

World-frame position error:

$$\\mathbf{e}\n=\n\\mathbf{p}^{\\mathrm{tgt}}_w - \\mathbf{p}^{\\mathrm{cur}}_w\n\\in\\mathbb{R}^3$$

where $\\mathbf{p}^{\\mathrm{cur}}_w$ and $\\mathbf{p}^{\\mathrm{tgt}}_w$ are the current and target world-frame positions.

Jacobian

$\\mathbf{J}=\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}}\\in\\mathbb{R}^{3\\times n}$.

For column $j$ of $\\mathbf{S}_w$:

$$\\mathbf{J}[\\cdot, j]\n=\n-\\left(\\mathbf{v}_{w,j} + \\boldsymbol{\\omega}_{w,j} \\times \\mathbf{p}^{\\mathrm{cur}}_w\\right)\n\\in\\mathbb{R}^3$$

", + "sub": "Terms" + }, + { + "id": "term-rotation", + "nav": "Rotation Tasks", + "h": "Rotation Tasks", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/rotation_task.py.

RotationTask

Residual

World-frame rotation error:

$$\\mathbf{q}_{\\mathrm{err}}\n=\n\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}\n\\otimes\n\\left(\\mathbf{q}^{\\mathrm{tgt}}_{w\\leftarrow l}\\right)^{-1},\n\\qquad\n\\mathbf{e}=\\mathrm{AxisAngle}(\\mathbf{q}_{\\mathrm{err}})\n\\in\\mathbb{R}^3$$

Here, $\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}$ and $\\mathbf{q}^{\\mathrm{tgt}}_{w\\leftarrow l}$ are the current and target link orientations, and $\\mathrm{AxisAngle}$ converts a quaternion to axis-angle.

Jacobian

From the world-frame motion subspace $ \\mathbf{S}_w= \\begin{bmatrix} \\mathbf{v}_w\\\\ \\boldsymbol{\\omega}_w \\end{bmatrix} \\in\\mathbb{R}^{6\\times n}, $ the exact derivative is:

$$\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}}\n=\n\\mathbf{J}_l^{-1}(\\mathbf{e})\\,\n\\boldsymbol{\\omega}_w,$$

where $\\mathbf{J}_l$ is the SO(3) left Jacobian. The implementation uses the zero-error approximation:

$$\\mathbf{J}\n=\n\\boldsymbol{\\omega}_w\n\\in\\mathbb{R}^{3\\times n}$$

AxisLimitTask

Residual

The link-frame axis $\\mathbf{a}_l\\in\\mathbb{R}^3$ is rotated into the world frame and compared with the world axis $\\mathbf{b}_w\\in\\mathbb{R}^3$:

$$[0,\\mathbf{a}_w]\n=\n\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}\n\\otimes[0,\\mathbf{a}_l]\n\\otimes\n\\left(\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1},\n\\qquad\nc=\\mathbf{a}_w^\\top\\mathbf{b}_w.$$

For optional angle bounds $\\theta_{\\min}$ and $\\theta_{\\max}$, the residual is:

$$e=\n\\max\\!\\left(c-\\cos\\theta_{\\min},0\\right)\n+\n\\max\\!\\left(\\cos\\theta_{\\max}-c,0\\right),$$

where a missing bound contributes zero.

Jacobian

For angular-velocity column $\\boldsymbol{\\omega}_{w,j}$:

$$\\frac{\\partial c}{\\partial q_j}\n=\n\\mathbf{b}_w^\\top\n\\left(\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{a}_w\\right).$$

Therefore:

$$J_j=\\gamma\\,\n\\mathbf{b}_w^\\top\n\\left(\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{a}_w\\right),$$

where $\\gamma=1$ for an active minimum-angle violation, $\\gamma=-1$ for an active maximum-angle violation, and $\\gamma=0$ otherwise.

", + "sub": "Terms" + }, + { + "id": "term-frame-vector", + "nav": "Frame Vector Task", + "h": "Frame Vector Task", + "body": "

Unweighted residuals and Jacobians for:

Residual

For pair $i$, let $\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}$ and $\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}$ be the world positions of its origin and task links. A negative origin index uses $\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}=\\mathbf{0}$. With scale $s_i$ and target displacement $\\mathbf{d}^{\\mathrm{tgt}}_{w,i}$:

$$\\mathbf{d}^{\\mathrm{cur}}_{w,i}=s_i(\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}-\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}),\n\\qquad\n\\mathbf{e}_i=\\mathbf{d}^{\\mathrm{cur}}_{w,i}-\\mathbf{d}^{\\mathrm{tgt}}_{w,i}.$$

With direction_only=True, the target is first replaced by:

$$\\mathbf{d}^{\\mathrm{tgt}}_{w,i}\n\\leftarrow\n\\frac{\\mathbf{d}^{\\mathrm{tgt}}_{w,i}}{\\|\\mathbf{d}^{\\mathrm{tgt}}_{w,i}\\|+10^{-6}}\n\\|\\mathbf{d}^{\\mathrm{cur}}_{w,i}\\|.$$

Optional Huber and soft-gate settings transform and scale $\\mathbf{e}_i$.

Jacobian

The vector derivative is:

$$\\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}}{\\partial q_j}\n=\ns_i\\left(\n\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}}{\\partial q_j}\n-\n\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}}{\\partial q_j}\n\\right).$$

In direction-only mode, with normalized displacements $\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,i}$ and $\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,i}$:

$$\\frac{\\partial\\mathbf{e}_i}{\\partial q_j}\n=\n\\left(\n\\mathbf{I}-\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,i}(\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,i})^\\top\n\\right)\n\\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}}{\\partial q_j}.$$

Otherwise, $\\partial\\mathbf{e}_i/\\partial q_j=\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}/\\partial q_j$. The optional Huber derivative and soft-gate value multiply this column.

Trajectory Retargeting

For each frame and selected pair $(i,j)$, TrajectoryRetargetingTask uses the position residual

$$\\mathbf{e}_{p,ij}\n=\n\\alpha(\\mathbf{p}^{\\mathrm{tgt}}_{w,i}-\\mathbf{p}^{\\mathrm{tgt}}_{w,j})\n-(\\mathbf{p}^{\\mathrm{cur}}_{w,i}-\\mathbf{p}^{\\mathrm{cur}}_{w,j}),$$

where $\\alpha$ is target_scale. It also adds the direction residual

$$e_{d,ij}\n=\n1-(\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij})^\\top\n\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij}.$$

The position Jacobian is $-\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,ij}/\\partial q_k$. For the direction residual,

$$\\frac{\\partial e_{d,ij}}{\\partial q_k}\n=\n-\\frac{\n(\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij}\n-((\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij})^\\top\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij})\n\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij})^\\top\n}{\\|\\mathbf{d}^{\\mathrm{cur}}_{w,ij}\\|+10^{-6}}\n\\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,ij}}{\\partial q_k}.$$

", + "sub": "Terms" + }, + { + "id": "term-com-position", + "nav": "CoM Position Task", + "h": "CoM Position Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/com_position_task.py.

Residual

For link mass $m_l$, current world-frame link center of mass $\\mathbf{p}^{\\mathrm{cur}}_{w,l}$, and total mass $M=\\sum_l m_l$:

$$\\mathbf{p}^{\\mathrm{cur}}_{w,\\mathrm{com}}\n=\n\\frac{1}{M}\\sum_l m_l\\mathbf{p}^{\\mathrm{cur}}_{w,l}.$$

The residual is the world-frame position error:

$$\\mathbf{e}\n=\n\\mathbf{p}^{\\mathrm{tgt}}_w-\\mathbf{p}^{\\mathrm{cur}}_{w,\\mathrm{com}}\n\\in\\mathbb{R}^3.$$

Jacobian

For column $j$ of the link's world-frame motion subspace, $\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,l}}{\\partial q_j}=\\mathbf{v}_{w,l,j}+\\boldsymbol{\\omega}_{w,l,j}\\times\\mathbf{p}^{\\mathrm{cur}}_{w,l}$.

The residual Jacobian is:

$$\\mathbf{J}[\\cdot,j]\n=\n-\\frac{1}{M}\\sum_l m_l\n\\left(\n\\mathbf{v}_{w,l,j}+\\boldsymbol{\\omega}_{w,l,j}\\times\\mathbf{p}^{\\mathrm{cur}}_{w,l}\n\\right).$$

", + "sub": "Terms" + }, + { + "id": "term-position-limit", + "nav": "Position Limit", + "h": "Position Limit", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/position_limit.py.

Residual

For joint position $q_i$ and bounds $[l_i,u_i]$, the default residual is its distance outside the interval:

$$e_i\n=\n\\max(l_i-q_i,0)+\\max(q_i-u_i,0).$$

sqrt_abs replaces each positive $e_i$ by $\\sqrt{e_i+\\epsilon}$.

For exp_barrier, $c_i=(l_i+u_i)/2$ is the interval center, $h_i=(u_i-l_i)/2$ is its half-range, and $v_i=\\max(|(q_i-c_i)/h_i|-a,0)$ is the normalized violation. The residual is:

$$e_i=(q_i-c_i)\n\\left(1-\\exp\\left(-(\\kappa v_i)^p\\right)\\right),$$

with fixed constants $a=0.8$, $\\kappa=5$, and $p=4$.

An optional floating-base bound uses the same interval residual for one world-position axis.

Jacobian

For the default mode:

$$\\frac{\\partial e_i}{\\partial q_i}\n=\n\\begin{cases}\n-1, & q_i<l_i,\\\\\n0, & l_i\\le q_i\\le u_i,\\\\\n1, & q_i>u_i.\n\\end{cases}$$

sqrt_abs multiplies an active row by $1/(2\\sqrt{e_i+\\epsilon})$. exp_barrier differentiates its expression directly.

", + "sub": "Terms" + }, + { + "id": "term-velocity-limit", + "nav": "Velocity Limit Task", + "h": "Velocity Limit Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/velocity_limit_task.py.

Residual

For timestep $\\Delta t$ and joint velocity limit $\\bar{v}_i$:

$$\\dot q_i\n=\n\\frac{q_i^{\\mathrm{cur}}-q_i^{\\mathrm{prev}}}{\\Delta t},\n\\qquad\ne_i=\\max\\!\\left(|\\dot q_i|-\\bar v_i,0\\right).$$

Jacobian

The only nonzero entry in row $i$ is:

$$\\frac{\\partial e_i}{\\partial q_i^{\\mathrm{cur}}}\n=\n\\begin{cases}\n\\mathrm{sign}(\\dot q_i)/\\Delta t, & |\\dot q_i|>\\bar v_i,\\\\\n0, & |\\dot q_i|\\le\\bar v_i.\n\\end{cases}$$

", + "sub": "Terms" + }, + { + "id": "term-configuration", + "nav": "Configuration Task", + "h": "Configuration Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/configuration_task.py.

Residual

For joint configuration $\\mathbf{q}^{\\mathrm{cur}}$ and rest configuration $\\mathbf{q}^{\\mathrm{rest}}$:

$$\\mathbf{e}_q\n=\n\\mathbf{q}^{\\mathrm{cur}}-\\mathbf{q}^{\\mathrm{rest}}.$$

For an optional floating-base rest transform:

$$\\Delta\\mathbf{T}\n=\n\\mathbf{T}^{\\mathrm{cur}}_{w\\leftarrow b}\n\\left(\\mathbf{T}^{\\mathrm{rest}}_{w\\leftarrow b}\\right)^{-1},\n\\qquad\n\\mathbf{e}_b=\\mathrm{Log}(\\Delta\\mathbf{T}).$$

Jacobian

The joint block is the identity matrix. For the base block:

$$\\mathbf{J}_b\n=\n\\mathbf{J}_{\\log}(\\Delta\\mathbf{T})\n\\mathrm{Ad}\\!\\left(\\mathbf{T}^{\\mathrm{rest}}_{w\\leftarrow b}\\right),$$

where $\\mathbf{J}_{\\log}$ is the Jacobian of the SE(3) log map.

", + "sub": "Terms" + }, + { + "id": "term-smoothness", + "nav": "Smoothness Task", + "h": "Smoothness Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/smoothness_task.py and src/robokit/terms/sparse/trajectory_smoothness_task.py.

Dense

SmoothnessTask compares one configuration with the previous one, given at construction.

Residual

$$\\mathbf{e}_q\n=\n\\mathbf{q}^{\\mathrm{cur}}-\\mathbf{q}^{\\mathrm{prev}}.$$

For a floating base:

$$\\Delta\\mathbf{T}\n=\n\\mathbf{T}^{\\mathrm{cur}}_{w\\leftarrow b}\n\\left(\\mathbf{T}^{\\mathrm{prev}}_{w\\leftarrow b}\\right)^{-1},\n\\qquad\n\\mathbf{e}_b=\\mathrm{Log}(\\Delta\\mathbf{T}).$$

Jacobian

The joint block is the identity. The base block is:

$$\\mathbf{J}_b\n=\n\\mathbf{J}_{\\log}(\\Delta\\mathbf{T})\n\\,\\mathrm{Ad}\\!\\left(\\mathbf{T}^{\\mathrm{prev}}_{w\\leftarrow b}\\right).$$

Sparse

Residual

With $\\tilde{\\mathbf{q}}_t=\\mathbf{q}^{\\mathrm{cur}}_t-\\mathbf{q}^{\\mathrm{ref}}_t$, order $p$ takes the difference $p$ times:

$p$weights
1velocity$-1,\\ 1$
2acceleration$1,\\ -2,\\ 1$
3jerk$-1,\\ 3,\\ -3,\\ 1$

One residual per frame gap, num_frames - 1 in total. The one at $r$ uses frames $r-(p-1)$ through $r+1$:

$$\\mathbf{e}_r\n=\n\\frac{1}{\\Delta t^{\\,p}}\n\\sum_{j=0}^{p}\nc_j\\,\\tilde{\\mathbf{q}}_{r-(p-1)+j}.$$

$c_j$ is the $j$-th weight from the table above, $j=0\\ldots p$.

Jacobian

The residual is linear in $\\mathbf{q}$, so the Jacobian is constant:

$$\\frac{\\partial e_{r,i}}{\\partial q^{\\mathrm{cur}}_{r-(p-1)+j,\\;i}}\n=\n\\frac{c_j}{\\Delta t^{\\,p}}.$$

Each row has $p+1$ nonzeros, in the joint columns of the frames it spans. Base columns stay zero.

With base_weight, order=1 also smooths consecutive floating-base transforms:

$$\\Delta\\mathbf{T}_t\n=\n\\left(\\mathbf{T}_{w\\leftarrow b,t}\\right)^{-1}\n\\mathbf{T}_{w\\leftarrow b,t+1},\n\\qquad\n\\mathbf{e}_{b,t}=\\frac{\\mathrm{Log}(\\Delta\\mathbf{T}_t)}{\\Delta t}.$$

Let $\\mathbf{J}_{\\log}^R$ be the right log-map Jacobian and $\\mathbf{J}_{\\log}^L=\\mathbf{J}_{\\log}^R\\mathrm{Ad}(\\Delta\\mathbf{T}_t^{-1})$. Then

$$\\frac{\\partial\\mathbf{e}_{b,t}}{\\partial\\boldsymbol{\\xi}_t}\n=-\\frac{\\mathbf{J}_{\\log}^L}{\\Delta t},\n\\qquad\n\\frac{\\partial\\mathbf{e}_{b,t}}{\\partial\\boldsymbol{\\xi}_{t+1}}\n=\\frac{\\mathbf{J}_{\\log}^R}{\\Delta t}.$$

", + "sub": "Terms" + }, + { + "id": "term-self-collision", + "nav": "Self Collision Task", + "h": "Self Collision Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/self_collision_task.py.

Residual

For an active pair of spheres with world-frame centers $\\mathbf{c}_{w,i},\\mathbf{c}_{w,j}$ and radii $r_i,r_j$, the surface distance is:

$$d_{ij}\n=\n\\|\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j}\\|-r_i-r_j.$$

The residual is:

$$e_{ij}=\\max\\!\\left(\\mathtt{margin}-d_{ij},0\\right).$$

Capsule mode uses the same residual at the closest points on the two capsule axes. The task keeps at most max_active_pairs active link pairs.

Jacobian

Let $\\widehat{\\mathbf{d}}_{w,ij}=(\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j})/\\|\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j}\\|$. For an active pair:

$$J_{ij,k}\n=\n-\\widehat{\\mathbf{d}}_{w,ij}^\\top\n\\left(\n\\frac{\\partial\\mathbf{c}_{w,i}}{\\partial q_k}\n-\n\\frac{\\partial\\mathbf{c}_{w,j}}{\\partial q_k}\n\\right).$$

For sqrt_abs, this is multiplied by $1/(2\\sqrt{e_{ij}+\\epsilon})$.

", + "sub": "Terms" + }, + { + "id": "term-scene-collision", + "nav": "Scene Collision Task", + "h": "Scene Collision Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/scene_collision_task.py and src/robokit/terms/sparse/trajectory_collision_task.py.

Residual

For collision sphere $i$ with world center $\\mathbf{c}_{w,i}$ and radius $r_i$, its clearance from the scene is:

$$s_i=\\mathrm{SDF}(\\mathbf{c}_{w,i})-r_i.$$

Negative $s_i$ means the sphere penetrates the scene. The smooth penalty is:

$$e_i=\n\\begin{cases}\n\\frac{\\mathtt{margin}}{2}-s_i, & s_i<0,\\\\\n\\frac{(\\mathtt{margin}-s_i)^2}{2(\\mathtt{margin}+\\epsilon)}, & 0\\le s_i\\le\\mathtt{margin},\\\\\n0, & s_i>\\mathtt{margin},\n\\end{cases}\n\\qquad\n\\mathbf{e}\\in\\mathbb{R}^N,$$

The quadratic branch reaches zero smoothly at margin. $N$ is the number of selected spheres and $\\epsilon=10^{-6}$.

plain uses $e_i=\\max(\\mathtt{margin}-s_i,0)$. surface_distance uses $e_i=|s_i|$ to pull the sphere toward contact.

Jacobian

For the world-frame motion-subspace column of the sphere's link:

$$\\mathbf{S}_{w,j}\n=\n\\begin{bmatrix}\n\\mathbf{v}_{w,j}\\\\\n\\boldsymbol{\\omega}_{w,j}\n\\end{bmatrix},\n\\qquad\n\\frac{\\partial\\mathbf{c}_{w,i}}{\\partial q_j}\n=\n\\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{c}_{w,i}.$$

With the world-frame scene normal $\\mathbf{n}_{w,i}$ from WarpScene:

$$J_{ij}\n=\n\\frac{\\partial e_i}{\\partial s_i}\\,\n\\mathbf{n}_{w,i}^\\top\n\\left(\n\\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{c}_{w,i}\n\\right),$$

For smooth:

$$\\frac{\\partial e_i}{\\partial s_i}\n=\n\\begin{cases}\n-1, & s_i<0,\\\\\n\\frac{s_i-\\mathtt{margin}}{\\mathtt{margin}+\\epsilon}, & 0\\le s_i\\le\\mathtt{margin},\\\\\n0, & s_i>\\mathtt{margin}.\n\\end{cases}$$

For plain, the derivative is $-1$ below margin and $0$ otherwise; for surface_distance, it is $\\operatorname{sign}(s_i)$.

", + "sub": "Terms" + }, + { + "id": "term-scene-distance", + "nav": "Scene Distance Task", + "h": "Scene Distance Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/scene_distance_task.py.

Residual

For world-frame contact point $\\mathbf{p}_{w,i}$, let $s_i=\\mathrm{SDF}(\\mathbf{p}_{w,i})$. The default residual is:

$$e_i=|s_i|.$$

It is zero on the scene surface and increases on either side.

sqrt_abs uses $e_i=\\sqrt{|s_i|+\\epsilon}$ for L1 regularization.

Jacobian

Let $\\mathbf{n}_{w,i}$ be the world-frame scene normal WarpScene returns. The point derivative is $\\frac{\\partial\\mathbf{p}_{w,i}}{\\partial q_j}=\\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{p}_{w,i}$. Then:

$$J_{ij}\n=\n\\mathrm{sign}(s_i)\\,\n\\mathbf{n}_{w,i}^\\top\n\\frac{\\partial\\mathbf{p}_{w,i}}{\\partial q_j}.$$

For sqrt_abs, this is multiplied by $1/(2\\sqrt{|s_i|+\\epsilon})$.

", + "sub": "Terms" + }, + { + "id": "term-interaction-mesh", + "nav": "Interaction Mesh Task", + "h": "Interaction Mesh Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/interaction_mesh_task.py.

Residual

The interaction mesh contains robot-link vertices and fixed object vertices. For vertex $i$, its Laplacian coordinate is:

$$\\mathbf{l}^{\\mathrm{cur}}_{w,i}\n=\n\\mathbf{p}^{\\mathrm{cur}}_{w,i}-\n\\sum_{j\\in\\mathcal{N}(i)}w_{ij}\\mathbf{p}^{\\mathrm{cur}}_{w,j}.$$

Given the target Laplacian $\\mathbf{l}^{\\mathrm{tgt}}_{w,i}$ built from the human-object frame, the residual is:

$$\\mathbf{e}_i\n=\n\\mathbf{l}^{\\mathrm{cur}}_{w,i}-\\mathbf{l}^{\\mathrm{tgt}}_{w,i}\n\\in\\mathbb{R}^3.$$

Jacobian

The derivative of a fixed object vertex is zero. The Jacobian block for vertex $i$ is:

$$\\mathbf{J}_i[\\cdot,k]\n=\n\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,i}}{\\partial q_k}\n-\n\\sum_{j\\in\\mathcal{N}(i)}w_{ij}\n\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,j}}{\\partial q_k}.$$

", + "sub": "Terms" + }, + { + "id": "term-mask-alignment", + "nav": "Mask Alignment Task", + "h": "Mask Alignment Task", + "body": "

Residual and normal equations for src/robokit/helpers/hand_eye_calibration/mask_alignment_task.py.

Residual

For rendered mask value $M^{\\mathrm{cur}}_{uv}$ and target mask value $M^{\\mathrm{tgt}}_{uv}$ at pixel $(u,v)$:

$$e_{uv}=M^{\\mathrm{cur}}_{uv}-M^{\\mathrm{tgt}}_{uv}.$$

When depth is enabled, valid rendered and target depths add the Huber residual of $Z^{\\mathrm{cur}}_{uv}-Z^{\\mathrm{tgt}}_{uv}$.

Jacobian

A camera twist $\\boldsymbol{\\xi}\\in\\mathbb{R}^6$ moves the projected pixel $(u,v)$ across the rendered mask, so:

$$\\frac{\\partial e_{uv}}{\\partial\\boldsymbol{\\xi}}\n=\n\\begin{bmatrix}\n\\partial M^{\\mathrm{cur}}/\\partial u & \\partial M^{\\mathrm{cur}}/\\partial v\n\\end{bmatrix}\n\\frac{\\partial(u,v)}{\\partial\\boldsymbol{\\xi}}.$$

$\\partial(u,v)/\\partial\\boldsymbol{\\xi}$ is how the projected pixel $(u,v)$ moves with the camera twist. Interior pixels use $\\frac{\\partial M^{\\mathrm{cur}}}{\\partial u}=\\frac{M^{\\mathrm{cur}}_{u+1,v}-M^{\\mathrm{cur}}_{u-1,v}}{2}$ and $\\frac{\\partial M^{\\mathrm{cur}}}{\\partial v}=\\frac{M^{\\mathrm{cur}}_{u,v+1}-M^{\\mathrm{cur}}_{u,v-1}}{2}$. The task sums $\\mathbf{J}^\\top\\mathbf{J}$ and $\\mathbf{J}^\\top\\mathbf{e}$ over pixels without storing $\\mathbf{J}$.

", + "sub": "Terms" + }, + { + "id": "term-manipulability", + "nav": "Manipulability Task", + "h": "Manipulability Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/manipulability_task.py.

Residual

Let $\\mathbf{J}^p_w\\in\\mathbb{R}^{3\\times n}$ be the world-frame position Jacobian of the target link. Its Yoshikawa manipulability is:

$$m\n=\n\\sqrt{\\det(\\mathbf{J}^p_w(\\mathbf{J}^p_w)^\\top)}.$$

The residual is:

$$e=\\frac{1}{m+\\epsilon}.$$

Minimizing it moves the robot away from singular configurations.

Jacobian

For $\\mathbf{A}=\\mathbf{J}^p_w(\\mathbf{J}^p_w)^\\top$:

$$\\frac{\\partial e}{\\partial q_j}\n=\n-\\frac{1}{(m+\\epsilon)^2}\n\\frac{1}{2m}\n\\frac{\\partial\\det(\\mathbf{A})}{\\partial q_j}.$$

Every column of $\\mathbf{J}^p_w$ is differentiated analytically. Floating-base columns are zero.

", + "sub": "Terms" + }, + { + "id": "term-force-closure", + "nav": "Force Closure Task", + "h": "Force Closure Task", + "body": "

Unweighted residual and Jacobian for src/robokit/terms/dense/force_closure_task.py.

Residual

For world-frame contact point $\\mathbf{p}_{w,i}$ and object-surface normal $\\mathbf{n}_{w,i}$, the residual is the summed contact wrench:

$$\\mathbf{e}\n=\n\\begin{bmatrix}\n\\sum_i\\mathbf{n}_{w,i}\\\\\n\\sum_i\\mathbf{p}_{w,i}\\times\\mathbf{n}_{w,i}\n\\end{bmatrix}\n\\in\\mathbb{R}^6.$$

WarpScene supplies unit surface normals and their position Jacobians. Mesh face normals are constant within a face. Derivatives jump where the closest face, voxel cell or object changes.

Jacobian

Let $\\mathbf{N}_i = \\partial\\mathbf{n}_{w,i}/\\partial\\mathbf{p}_{w,i}$ and $\\mathbf{v}_{i,j} = \\partial\\mathbf{p}_{w,i}/\\partial q_j$. Then:

$$\\mathbf{J}[\\cdot,j]\n=\n\\begin{bmatrix}\n\\sum_i\\mathbf{N}_i\\mathbf{v}_{i,j}\\\\\n\\sum_i\n\\left(\\mathbf{v}_{i,j}\\times\\mathbf{n}_{w,i}\n+\\mathbf{p}_{w,i}\\times\\mathbf{N}_i\\mathbf{v}_{i,j}\\right)\n\\end{bmatrix}.$$

For mesh face normals, $\\mathbf{N}_i=0$. Optional contact-force weights scale each contact's force and torque. Residual weights scale the six outputs.

", + "sub": "Terms" + }, + { + "id": "api-robot", + "nav": "Robot", + "h": "Robot", + "body": "
", + "sub": "API", + "api": { + "robokit.robo.Robot": { + "kind": "class", + "name": "Robot", + "module": "robokit.robo", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L29", + "anchor": "robot", + "doc": "

Robot model backed by Warp.

Examples

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)\n>>> state = robot.state(q=q)\n>>> state = robot.forward_kinematics(state)\n>>> hand_idx = robot.spec.link_names.index(\"panda_hand\")\n>>> link_pose = state.T_world_link[:, hand_idx]\n>>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32)\n>>> expected = wp.from_numpy(expected, dtype=wp_vec7)\n>>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)\nTrue
", + "params": [ + { + "name": "spec", + "type": "RobotSpec", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "spec", + "signature": "spec: RobotSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L50", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "load", + "signature": "load(robot_description_or_path: Union[str, Path, yourdfpy.URDF], load_meshes: bool = False, mesh_dir: Optional[Union[str, Path]] = None, load_collision_spheres: bool = False, collision_spheres_path: Optional[Union[str, Path]] = None, base_link_name: Optional[str] = None, ee_link_names: Optional[Union[Sequence[str], str]] = None, self_collision_ignore_path: Optional[Union[str, Path]] = None) -> Robot", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L58", + "doc": "

Load a robot model from a URDF/MJCF path, description string, or parsed yourdfpy.URDF.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> robot.spec.num_actuated_joints\n8
", + "params": [ + { + "name": "robot_description_or_path", + "type": "Union[str, Path, yourdfpy.URDF]", + "default": null, + "required": true, + "doc": "

URDF/MJCF file path, description string, or already-parsed yourdfpy.URDF.

" + }, + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "

Load link visual/collision meshes.

" + }, + { + "name": "mesh_dir", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "

Directory to resolve mesh files against.

" + }, + { + "name": "load_collision_spheres", + "type": "bool", + "default": "False", + "required": false, + "doc": "

Load collision spheres from collision_spheres_path.

" + }, + { + "name": "collision_spheres_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "

YAML file with per-link collision spheres and optional self_collision_link_buffers.

" + }, + { + "name": "base_link_name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "

Base link; defaults to the URDF root.

" + }, + { + "name": "ee_link_names", + "type": "Optional[Union[Sequence[str], str]]", + "default": "None", + "required": false, + "doc": "

End-effector link name(s).

" + }, + { + "name": "self_collision_ignore_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "

YAML file with link pairs self-collision terms skip.

" + } + ], + "returns": { + "type": "Robot", + "doc": "

The loaded robot model.

" + } + }, + { + "kind": "method", + "base": "", + "name": "state", + "signature": "state(q: Optional[Union[wp.array, np.ndarray]] = None, T_world_base: Optional[wp.array] = None) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L105", + "doc": "

Build a robot state for the given joint positions (defaults to zero_q).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> robot.state().q.shape\n(1, 8)
", + "params": [ + { + "name": "q", + "type": "Optional[Union[wp.array, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "forward_kinematics", + "signature": "forward_kinematics(state: RobotState, use_sequential: Optional[bool] = None) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L131", + "doc": "

Compute forward kinematics for given joint positions; returns a state with all link transforms.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)\n>>> state = robot.state(q=q)\n>>> state = robot.forward_kinematics(state)\n>>> hand_idx = robot.spec.link_names.index(\"panda_hand\")\n>>> link_pose = state.T_world_link[:, hand_idx]\n>>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32)\n>>> expected = wp.from_numpy(expected, dtype=wp_vec7)\n>>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)\nTrue\n>>> T_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7)\n>>> state = robot.state(q=q, T_world_base=T_world_base)\n>>> state = robot.forward_kinematics(state)\n>>> link_pose = state.T_world_link[:, hand_idx]\n>>> expected = np.array([1.76371783, 2.0, 2.93915576, -0.24222432, 0.71524162, 0.29626278, -0.58478125], dtype=np.float32)\n>>> expected = wp.from_numpy(expected, dtype=wp_vec7)\n>>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)\nTrue
", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "use_sequential", + "type": "Optional[bool]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "forward_kinematics_via_matrix_numpy", + "signature": "forward_kinematics_via_matrix_numpy(q: Float[np.ndarray, '... num_dofs'], T_world_base: Optional[Float[np.ndarray, '... 4 4']] = None, device: Optional[str] = None) -> Float[np.ndarray, '... num_links 4 4']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L273", + "doc": "

Compute forward kinematics as 4x4 matrices for NumPy arrays, without an autograd round trip.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)\n>>> robot.forward_kinematics_via_matrix_numpy(q).shape\n(1, 13, 4, 4)
", + "params": [ + { + "name": "q", + "type": "Float[np.ndarray, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[Float[np.ndarray, '... 4 4']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[np.ndarray, '... num_links 4 4']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "forward_kinematics_numpy", + "signature": "forward_kinematics_numpy(q: Float[np.ndarray, '... num_dofs'], T_world_base: Optional[Float[np.ndarray, '... 7']] = None, device: Optional[str] = None) -> Float[np.ndarray, '... num_links 7']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L319", + "doc": "

Compute world link poses as translation-first 7D poses for NumPy arrays.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)\n>>> robot.forward_kinematics_numpy(q).shape\n(1, 13, 7)
", + "params": [ + { + "name": "q", + "type": "Float[np.ndarray, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[Float[np.ndarray, '... 7']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[np.ndarray, '... num_links 7']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_center_of_mass_numpy", + "signature": "compute_center_of_mass_numpy(q: Float[np.ndarray, '... num_dofs'], T_world_base: Optional[Float[np.ndarray, '... 7']] = None, device: Optional[str] = None) -> Float[np.ndarray, '... 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L337", + "doc": "

Compute the whole-body center of mass in world frame for NumPy arrays.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)\n>>> np.allclose(robot.compute_center_of_mass_numpy(q)[0], [0.0232, 0.0061, 0.6062], atol=1e-4)\nTrue
", + "params": [ + { + "name": "q", + "type": "Float[np.ndarray, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[Float[np.ndarray, '... 7']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[np.ndarray, '... 3']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_motion_subspace", + "signature": "compute_motion_subspace(state: RobotState) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L355", + "doc": "

Store robot joint Jacobians in state for state.get_link_jacobian().

Base layouts:

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> T_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7)\n>>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)\n>>> state = robot.state(q=q, T_world_base=T_world_base)\n>>> state = robot.compute_motion_subspace(state)\n>>> J = state.get_link_jacobian(robot.spec.link_names.index(\"panda_hand\"), \"body\")\n>>> np.allclose(J.numpy()[0, 0, :6], np.array([0.693, 0.7071, 0.1405, -0.54, 0.5207, 0.043], dtype=np.float32), atol=1e-4)\nTrue\n>>> J = state.get_link_jacobian(robot.spec.link_names.index(\"panda_hand\"), \"spatial\")\n>>> np.allclose(J.numpy()[0, 0, 6:], np.array([0.0001, -3., 1.8641, 3.2647, -1.4346, 3.0467, -0.3974, 0.], dtype=np.float32), atol=1e-3)\nTrue\n>>> np.allclose(J.numpy()[0, 0, :6], np.array([0.0001, 0., 1., -2., -3., 0.0001], dtype=np.float32), atol=1e-3)\nTrue
", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_center_of_mass", + "signature": "compute_center_of_mass(state: RobotState) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L397", + "doc": "

Compute the whole-body center of mass in world frame into state.com_world.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state = robot.compute_center_of_mass(robot.state())\n>>> np.allclose(state.com_world.numpy()[0], [0.0232, 0.0061, 0.6062], atol=1e-4)\nTrue
", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "transform_collision_spheres", + "signature": "transform_collision_spheres(state: RobotState) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L428", + "doc": "

Compute the collision sphere centers in world frame.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state = robot.state()\n>>> robot.transform_collision_spheres(state) is state  # no collision spheres loaded\nTrue
", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

The robot state.

" + } + ], + "returns": { + "type": "RobotState", + "doc": "

The robot state with updated collision sphere centers.

" + } + }, + { + "kind": "method", + "base": "", + "name": "transform_collision_capsules", + "signature": "transform_collision_capsules(state: RobotState) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L478", + "doc": "

Compute the per-link capsule segment endpoints (a, b) in world frame.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state = robot.state()\n>>> robot.transform_collision_capsules(state) is state  # no link capsules loaded\nTrue
", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "forward_kinematics_via_matrix_torch", + "signature": "forward_kinematics_via_matrix_torch(q: Float[torch.Tensor, '... num_dofs'], T_world_base: Optional[Float[torch.Tensor, '... 4 4']] = None, analytical_backward: bool = True, record_cmd: bool = False) -> Float[torch.Tensor, '... num_links 4 4']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L526", + "doc": "

Compute differentiable forward kinematics as 4x4 matrices for torch tensors.

Example

python
>>> import torch\n>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> T_world_link = robot.forward_kinematics_via_matrix_torch(torch.zeros(robot.spec.num_actuated_joints))\n>>> T_world_link.shape\ntorch.Size([13, 4, 4])
", + "params": [ + { + "name": "q", + "type": "Float[torch.Tensor, '... num_dofs']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[Float[torch.Tensor, '... 4 4']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "analytical_backward", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "record_cmd", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_links 4 4']", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "transform_link_points_torch", + "signature": "transform_link_points_torch(T_world_link: Float[torch.Tensor, '... num_links 4 4'], local_points: Float[torch.Tensor, 'num_points 3'], point_link_indices: Float[torch.Tensor, 'num_points']) -> Float[torch.Tensor, '... num_points 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L562", + "doc": "

Transform local points attached to links to world frame.

Example

python
>>> import torch\n>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> T_world_link = robot.forward_kinematics_via_matrix_torch(torch.zeros(robot.spec.num_actuated_joints))\n>>> points = robot.transform_link_points_torch(T_world_link, torch.zeros(2, 3), torch.tensor([0, 1]))\n>>> points.shape\ntorch.Size([2, 3])
", + "params": [ + { + "name": "T_world_link", + "type": "Float[torch.Tensor, '... num_links 4 4']", + "default": null, + "required": true, + "doc": "

Link transforms in world frame [..., num_links, 4, 4]

" + }, + { + "name": "local_points", + "type": "Float[torch.Tensor, 'num_points 3']", + "default": null, + "required": true, + "doc": "

Local points in link frames [num_points, 3]

" + }, + { + "name": "point_link_indices", + "type": "Float[torch.Tensor, 'num_points']", + "default": null, + "required": true, + "doc": "

Link index for each point [num_points]

" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_points 3']", + "doc": "

World-frame points [..., num_points, 3]

" + } + }, + { + "kind": "method", + "base": "", + "name": "map_to_full_joint_values_torch", + "signature": "map_to_full_joint_values_torch(actuated_values: Float[torch.Tensor, '... num_actuated_joints']) -> Float[torch.Tensor, '... num_joints']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L591", + "doc": "

Expand actuated joint values to all joints (mimic joints follow their controlling joint).

Example

python
>>> import torch\n>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> robot.map_to_full_joint_values_torch(torch.zeros(robot.spec.num_actuated_joints)).shape\ntorch.Size([12])
", + "params": [ + { + "name": "actuated_values", + "type": "Float[torch.Tensor, '... num_actuated_joints']", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Float[torch.Tensor, '... num_joints']", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "zero_q", + "signature": "zero_q: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L617", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "midrange_q", + "signature": "midrange_q: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L621", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_actuated_joints", + "signature": "num_actuated_joints: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L625", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_names", + "signature": "link_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L629", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "sample_q", + "signature": "sample_q(num_samples: int = 1, rng: Optional[np.random.Generator] = None, device: wp_device_type = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot.py#L633", + "doc": "

Sample joint positions uniformly within the actuated joint limits.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> robot.sample_q(num_samples=3, rng=np.random.default_rng(0)).shape\n(3, 8)
", + "params": [ + { + "name": "num_samples", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "rng", + "type": "Optional[np.random.Generator]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.robo.RobotSpec": { + "kind": "class", + "name": "RobotSpec", + "module": "robokit.robo", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L44", + "anchor": "robotspec", + "doc": "

Robot specification.

Examples

python
>>> spec = RobotSpec.parse(\"tests/fixtures/wx250s.urdf\")\n>>> spec.num_actuated_joints\n8\n>>> spec.num_links\n14
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot_description", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "format", + "type": "Literal['urdf', 'mjcf']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_names", + "type": "List[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "nonfixed_joint_names", + "type": "List[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actuated_joint_names", + "type": "List[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_types", + "type": "Int[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_axes", + "type": "Float[np.ndarray, 'num_joints 3']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_twists", + "type": "Float[np.ndarray, 'num_joints 6']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actuated_joint_indices", + "type": "Int[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "parent_joint_indices", + "type": "Int[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "parent_joint_transforms", + "type": "Float[np.ndarray, 'num_joints 7']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mimic_actuated_joint_indices", + "type": "Int[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mimic_multipliers", + "type": "Float[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mimic_offsets", + "type": "Float[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_limits", + "type": "Float[np.ndarray, 'num_joints 2']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "joint_velocity_limits", + "type": "Float[np.ndarray, num_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actuated_joint_limits", + "type": "Float[np.ndarray, 'num_actuated_joints 2']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "actuated_joint_velocity_limits", + "type": "Float[np.ndarray, num_actuated_joints]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_names", + "type": "List[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_parent_joint_indices", + "type": "Int[np.ndarray, num_links]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "base_link_name", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "ee_link_names", + "type": "List[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_visual_geometries", + "type": "Dict[str, trimesh.Scene]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_collision_geometries", + "type": "Dict[str, trimesh.Scene]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_collision_sphere_centers", + "type": "Float[np.ndarray, 'num_collision_spheres 3']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "collision_sphere_radii", + "type": "Float[np.ndarray, num_collision_spheres]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "collision_spheres_link_indices", + "type": "Int[np.ndarray, num_collision_spheres]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "self_collision_ignored_pairs", + "type": "Int[np.ndarray, 'num_ignored_pairs 2']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_masses", + "type": "Float[np.ndarray, num_links]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "link_local_com_positions", + "type": "Float[np.ndarray, 'num_links 3']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "loaded_link_capsule_endpoints", + "type": "Optional[Float[np.ndarray, 'num_links 2 3']]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "loaded_link_capsule_radii", + "type": "Optional[Float[np.ndarray, num_links]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "self_collision_link_buffers", + "type": "Dict[str, float]", + "default": "dict()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "name", + "signature": "name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L58", + "doc": "

Name of the robot.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot_description", + "signature": "robot_description: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L60", + "doc": "

Robot description

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "format", + "signature": "format: Literal['urdf', 'mjcf']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L62", + "doc": "

Format of the robot description.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_names", + "signature": "joint_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L66", + "doc": "

Names of all joints, including actuated, mimic and fixed joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "nonfixed_joint_names", + "signature": "nonfixed_joint_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L68", + "doc": "

Names of non-fixed joints, including actuated and mimic joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "actuated_joint_names", + "signature": "actuated_joint_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L70", + "doc": "

Names of actuated joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_types", + "signature": "joint_types: Int[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L72", + "doc": "

Types of all joints, see JointType.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_axes", + "signature": "joint_axes: Float[np.ndarray, 'num_joints 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L74", + "doc": "

Axes of all joints, [x, y, z].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_twists", + "signature": "joint_twists: Float[np.ndarray, 'num_joints 6']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L76", + "doc": "

Twists of all joints, [linear (x, y, z), angular (x, y, z)].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "actuated_joint_indices", + "signature": "actuated_joint_indices: Int[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L78", + "doc": "

Indices of actuated joints, -1 for mimic and non-actuated joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "parent_joint_indices", + "signature": "parent_joint_indices: Int[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L80", + "doc": "

Indices of parent joints, -1 for joints attached to the base link.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "parent_joint_transforms", + "signature": "parent_joint_transforms: Float[np.ndarray, 'num_joints 7']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L82", + "doc": "

Transforms of parent joints, [pos (x, y, z), quat (w, x, y, z)].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mimic_actuated_joint_indices", + "signature": "mimic_actuated_joint_indices: Int[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L85", + "doc": "

Indices of mimicked actuated joints, -1 for non-mimic joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mimic_multipliers", + "signature": "mimic_multipliers: Float[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L87", + "doc": "

Multipliers of mimicked actuated joints, 1.0 for non-mimic joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mimic_offsets", + "signature": "mimic_offsets: Float[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L89", + "doc": "

Offsets of mimicked actuated joints, 0.0 for non-mimic joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_limits", + "signature": "joint_limits: Float[np.ndarray, 'num_joints 2']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L92", + "doc": "

Limits of all joints, [lower, upper].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "joint_velocity_limits", + "signature": "joint_velocity_limits: Float[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L94", + "doc": "

Velocity limits of all joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "actuated_joint_limits", + "signature": "actuated_joint_limits: Float[np.ndarray, 'num_actuated_joints 2']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L96", + "doc": "

Limits of actuated joints, [lower, upper].

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "actuated_joint_velocity_limits", + "signature": "actuated_joint_velocity_limits: Float[np.ndarray, num_actuated_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L98", + "doc": "

Velocity limits of actuated joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_names", + "signature": "link_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L102", + "doc": "

Names of all links.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_parent_joint_indices", + "signature": "link_parent_joint_indices: Int[np.ndarray, num_links]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L104", + "doc": "

Indices of parent joints of all links, -1 for the base link.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_link_name", + "signature": "base_link_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L106", + "doc": "

Base link name (root of the parsed kinematic tree).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ee_link_names", + "signature": "ee_link_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L108", + "doc": "

End-effector (leaf) link names of the parsed kinematic tree.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_visual_geometries", + "signature": "link_visual_geometries: Dict[str, trimesh.Scene]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L112", + "doc": "

Visual geometries of all links.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_collision_geometries", + "signature": "link_collision_geometries: Dict[str, trimesh.Scene]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L114", + "doc": "

Collision geometries of all links.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "local_collision_sphere_centers", + "signature": "local_collision_sphere_centers: Float[np.ndarray, 'num_collision_spheres 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L117", + "doc": "

Collision sphere centers in link-local coordinates.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_sphere_radii", + "signature": "collision_sphere_radii: Float[np.ndarray, num_collision_spheres]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L119", + "doc": "

Collision sphere radii.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_spheres_link_indices", + "signature": "collision_spheres_link_indices: Int[np.ndarray, num_collision_spheres]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L121", + "doc": "

Link indices (in link_names) for each collision sphere.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "self_collision_ignored_pairs", + "signature": "self_collision_ignored_pairs: Int[np.ndarray, 'num_ignored_pairs 2']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L123", + "doc": "

Load ignored self-collision link pairs verbatim from self_collision_ignore_path, or return none.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_masses", + "signature": "link_masses: Float[np.ndarray, num_links]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L127", + "doc": "

Mass of each link (0.0 if no inertial data).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_local_com_positions", + "signature": "link_local_com_positions: Float[np.ndarray, 'num_links 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L129", + "doc": "

Center of mass position in link-local frame.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "loaded_link_capsule_endpoints", + "signature": "loaded_link_capsule_endpoints: Optional[Float[np.ndarray, 'num_links 2 3']] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L132", + "doc": "

Baked capsule endpoints from link_capsules_path; unset means fit them from the collision meshes.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "loaded_link_capsule_radii", + "signature": "loaded_link_capsule_radii: Optional[Float[np.ndarray, num_links]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L134", + "doc": "

Baked capsule radii from link_capsules_path.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "self_collision_link_buffers", + "signature": "self_collision_link_buffers: Dict[str, float] = field(default_factory=dict)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L136", + "doc": "

Per-link self-collision radius inflation from the collision-sphere YAML; world radii stay unchanged.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "parse", + "signature": "parse(robot_description_or_path: Union[str, Path, yourdfpy.URDF], load_meshes: bool = False, mesh_dir: Optional[Union[str, Path]] = None, load_collision_spheres: bool = False, collision_spheres_path: Optional[Union[str, Path]] = None, load_link_capsules: bool = False, link_capsules_path: Optional[Union[str, Path]] = None, self_collision_ignore_path: Optional[Union[str, Path]] = None, base_link_name: Optional[str] = None, ee_link_names: Optional[Union[Sequence[str], str]] = None, keep_mjcf_world_link: bool = False) -> RobotSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L140", + "doc": "", + "params": [ + { + "name": "robot_description_or_path", + "type": "Union[str, Path, yourdfpy.URDF]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "mesh_dir", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_collision_spheres", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "collision_spheres_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_link_capsules", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "link_capsules_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "self_collision_ignore_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_link_name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "ee_link_names", + "type": "Optional[Union[Sequence[str], str]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "keep_mjcf_world_link", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotSpec", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "parse_urdf", + "signature": "parse_urdf(robot_description_or_path: Union[str, Path, yourdfpy.URDF], load_meshes: bool = False, mesh_dir: Optional[Union[str, Path]] = None, load_collision_spheres: bool = False, collision_spheres_path: Optional[Union[str, Path]] = None, load_link_capsules: bool = False, link_capsules_path: Optional[Union[str, Path]] = None, base_link_name: Optional[str] = None, ee_link_names: Optional[Union[Sequence[str], str]] = None) -> RobotSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L283", + "doc": "", + "params": [ + { + "name": "robot_description_or_path", + "type": "Union[str, Path, yourdfpy.URDF]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "mesh_dir", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_collision_spheres", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "collision_spheres_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_link_capsules", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "link_capsules_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_link_name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "ee_link_names", + "type": "Optional[Union[Sequence[str], str]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotSpec", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "parse_mjcf", + "signature": "parse_mjcf(robot_description_or_path: Union[str, Path], load_meshes: bool = False, load_collision_spheres: bool = False, collision_spheres_path: Optional[Union[str, Path]] = None, load_link_capsules: bool = False, link_capsules_path: Optional[Union[str, Path]] = None, base_link_name: Optional[str] = None, ee_link_names: Optional[Union[Sequence[str], str]] = None, keep_world_link: bool = False) -> RobotSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L619", + "doc": "

Parse an MJCF robot: hinge/slide joints, equality mimics; the world body stays if kept or a root has joints. A hinge with an anchor (jnt_pos) turns at a synthetic <body>_anchor link, then a fixed joint shifts back.

", + "params": [ + { + "name": "robot_description_or_path", + "type": "Union[str, Path]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "load_collision_spheres", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "collision_spheres_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "load_link_capsules", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "link_capsules_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_link_name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "ee_link_names", + "type": "Optional[Union[Sequence[str], str]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "keep_world_link", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotSpec", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "num_joints", + "signature": "num_joints: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L926", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_actuated_joints", + "signature": "num_actuated_joints: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L930", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_nonfixed_joints", + "signature": "num_nonfixed_joints: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L934", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_links", + "signature": "num_links: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L938", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "zero_q", + "signature": "zero_q: Float[np.ndarray, num_actuated_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L942", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "midrange_q", + "signature": "midrange_q: Float[np.ndarray, num_actuated_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L946", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "parent_joint_transforms_matrix", + "signature": "parent_joint_transforms_matrix: Float[np.ndarray, 'num_joints 4 4']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L951", + "doc": "

Transforms of parent joints as 4x4 matrices.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "has_mimic_joints", + "signature": "has_mimic_joints: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L958", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "mimic_joint_names", + "signature": "mimic_joint_names: List[str]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L962", + "doc": "

Names of mimic joints.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "total_mass", + "signature": "total_mass: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L971", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "has_collision_spheres", + "signature": "has_collision_spheres: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L976", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "local_collision_sphere_radii", + "signature": "local_collision_sphere_radii: Float[np.ndarray, num_collision_spheres]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L980", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "local_link_bounding_sphere_centers", + "signature": "local_link_bounding_sphere_centers: Float[np.ndarray, 'num_links 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L994", + "doc": "

Per-link bounding sphere centers in link-local coordinates (broad-phase filter).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_bounding_sphere_radii", + "signature": "link_bounding_sphere_radii: Float[np.ndarray, num_links]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L999", + "doc": "

Per-link bounding sphere radii (broad-phase filter).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "local_link_capsule_endpoints", + "signature": "local_link_capsule_endpoints: Float[np.ndarray, 'num_links 2 3']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1025", + "doc": "

Per-link capsule segment endpoints (a, b) in link-local coordinates; zeros for links without a capsule.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_capsule_radii", + "signature": "link_capsule_radii: Float[np.ndarray, num_links]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1032", + "doc": "

Per-link capsule radii; 0.0 for links without a capsule.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "has_link_capsules", + "signature": "has_link_capsules: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1039", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "topological_order_joint_indices", + "signature": "topological_order_joint_indices: Int[np.ndarray, num_joints]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1044", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "kinematic_tree_str", + "signature": "kinematic_tree_str: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1071", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "joints_to_actuated_mapping", + "signature": "joints_to_actuated_mapping: Float[np.ndarray, 'num_joints num_actuated_joints']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1120", + "doc": "

Mapping from all joints to actuated joints.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_ancestor_joints_mask", + "signature": "link_ancestor_joints_mask: Bool[np.ndarray, 'num_links num_joints']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1134", + "doc": "

Boolean mask for ancestor joints of links.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_ancestor_links_mask", + "signature": "link_ancestor_links_mask: Bool[np.ndarray, 'num_links num_links']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1145", + "doc": "

Boolean mask for ancestor links of links.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_link_mesh", + "signature": "get_link_mesh(link_name: str, mode: Literal['visual', 'collision'] = 'collision', return_mesh: bool = True) -> Union[trimesh.Scene, trimesh.Trimesh]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1156", + "doc": "

Link geometry: a single concatenated mesh, or the raw trimesh.Scene when return_mesh=False.

", + "params": [ + { + "name": "link_name", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "mode", + "type": "Literal['visual', 'collision']", + "default": "'collision'", + "required": false, + "doc": "" + }, + { + "name": "return_mesh", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[trimesh.Scene, trimesh.Trimesh]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_link_meshes", + "signature": "get_link_meshes(mode: Literal['visual', 'collision'] = 'collision', return_mesh: bool = True) -> Dict[str, Union[trimesh.Scene, trimesh.Trimesh]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1167", + "doc": "

Per-link geometry: concatenated meshes or trimesh.Scenes when return_mesh=False (needs load_meshes=True).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> spec = RobotSpec.parse(load_robot_description(\"panda_description\"), load_meshes=True)\n>>> \"panda_hand\" in spec.get_link_meshes()\nTrue
", + "params": [ + { + "name": "mode", + "type": "Literal['visual', 'collision']", + "default": "'collision'", + "required": false, + "doc": "" + }, + { + "name": "return_mesh", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Dict[str, Union[trimesh.Scene, trimesh.Trimesh]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_tensors", + "signature": "get_tensors(device: Optional[str] = None) -> RobotSpecTensors", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1219", + "doc": "

Cached Warp spec tensors for device (build on miss).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> spec = RobotSpec.parse(load_robot_description(\"panda_description\"))\n>>> spec.get_tensors() is spec.get_tensors()\nTrue
", + "params": [ + { + "name": "device", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotSpecTensors", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_tensors_torch", + "signature": "get_tensors_torch(device: Optional[Union[str, torch.device]] = None) -> TorchRobotSpecTensors", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_spec.py#L1231", + "doc": "

Cached torch spec tensors for device (build on miss).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> spec = RobotSpec.parse(load_robot_description(\"panda_description\"))\n>>> spec.get_tensors_torch() is spec.get_tensors_torch()\nTrue
", + "params": [ + { + "name": "device", + "type": "Optional[Union[str, torch.device]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "TorchRobotSpecTensors", + "doc": "" + } + } + ] + }, + "robokit.robo.RobotState": { + "kind": "class", + "name": "RobotState", + "module": "robokit.robo", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L41", + "anchor": "robotstate", + "doc": "", + "bases": "Var", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "q", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "Var", + "name": "difference", + "signature": "difference(other: Self, out: Optional[ArrayLike] = None) -> ArrayLike", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L49", + "doc": "

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

", + "params": [ + { + "name": "other", + "type": "Self", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ArrayLike", + "doc": "" + } + }, + { + "kind": "attribute", + "base": "", + "name": "spec", + "signature": "spec: RobotSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L55", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "q", + "signature": "q: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L56", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "T_world_base", + "signature": "T_world_base: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L44", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "has_floating_base", + "signature": "has_floating_base: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L46", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "is_fk_computed", + "signature": "is_fk_computed: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L47", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "is_motion_subspace_computed", + "signature": "is_motion_subspace_computed: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L48", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "is_collision_spheres_computed", + "signature": "is_collision_spheres_computed: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L49", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "is_capsules_computed", + "signature": "is_capsules_computed: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L50", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "is_com_computed", + "signature": "is_com_computed: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L51", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "T_world_joint", + "signature": "T_world_joint: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L77", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "T_world_link", + "signature": "T_world_link: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L88", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "X_local", + "signature": "X_local: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "S_world", + "signature": "S_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L103", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "com_world", + "signature": "com_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L112", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "collision_sphere_centers_world", + "signature": "collision_sphere_centers_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L116", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_bounding_sphere_centers_world", + "signature": "link_bounding_sphere_centers_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L123", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_capsule_endpoint_a_world", + "signature": "link_capsule_endpoint_a_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L130", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "link_capsule_endpoint_b_world", + "signature": "link_capsule_endpoint_b_world: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L139", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "is_trajectory", + "signature": "is_trajectory: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L159", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "shape", + "signature": "shape: Tuple[int, ...]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L163", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "batch_size", + "signature": "batch_size: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L167", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_elements", + "signature": "num_elements: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L171", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L175", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "tangent_dim", + "signature": "tangent_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L179", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "get_T_world_link", + "signature": "get_T_world_link(link_index: int) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L184", + "doc": "", + "params": [ + { + "name": "link_index", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_link_jacobian", + "signature": "get_link_jacobian(link_index: int, reference_frame: Literal['body', 'spatial'] = 'body') -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L192", + "doc": "", + "params": [ + { + "name": "link_index", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "reference_frame", + "type": "Literal['body', 'spatial']", + "default": "'body'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "invalidate", + "signature": "invalidate()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L227", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "precompute", + "signature": "precompute()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L234", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "integrate", + "signature": "integrate(velocity: ArrayLike, out: Optional[RobotState] = None, tangent_mask: Optional[wp.array] = None, weight_decay: float = 0.0, out_velocity: Optional[ArrayLike] = None) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L238", + "doc": "

Integrate the state by a tangent-space velocity, optionally reporting the move the limits let through.

", + "params": [ + { + "name": "velocity", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "tangent_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "out_velocity", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "clamp_q", + "signature": "clamp_q(tangent_mask: Optional[wp.array] = None, record_tape: bool = True) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L314", + "doc": "

Clamp joints while preserving masked coordinates; record_tape=False excludes projection from tape.

", + "params": [ + { + "name": "tangent_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "clone", + "signature": "clone() -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L335", + "doc": "", + "params": [], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "view", + "signature": "view(batch_size: int, offset: int = 0) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L356", + "doc": "

Elements offset to offset + batch_size of every buffer, sharing storage.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "flatten", + "signature": "flatten() -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L381", + "doc": "

Zero-copy view folding the frame axis into the batch axis so per-pose kernels run unchanged.

", + "params": [], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "gather", + "signature": "gather(indices: ArrayLike, out: Optional[RobotState] = None, q_only: bool = True) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L410", + "doc": "", + "params": [ + { + "name": "indices", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "q_only", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accept", + "signature": "accept(accept_mask: ArrayLike, proposed: RobotState) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/robo/robot_state.py#L448", + "doc": "

Optimized accept: copies q, and the forward kinematics this state already had (1 kernel).

", + "params": [ + { + "name": "accept_mask", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "proposed", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-geometry", + "nav": "Geometry", + "h": "Geometry", + "body": "
", + "sub": "API", + "api": { + "robokit.geom.BaseGeom": { + "kind": "class", + "name": "BaseGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L60", + "anchor": "basegeom", + "doc": "

Base geom.

Lifecycle

geom = BoxGeom(...) # store raw inputs (CPU) scene.add(geom) # calls geom.build(device): allocate capacity-padded GPU arrays geom.update(...) # fixed buffers update in place; resource swaps advance graph_revision

", + "params": [ + { + "name": "count", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: Device = 'cpu') -> BaseGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L308", + "doc": "

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "BaseGeom", + "doc": "" + } + } + ] + }, + "robokit.geom.WarpScene": { + "kind": "class", + "name": "WarpScene", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L20", + "anchor": "warpscene", + "doc": "

Heterogeneous batched scene SDF query.

Example

python
>>> import numpy as np\n>>> import torch\n>>> import warp as wp\n>>> from robokit.geom.geoms import SphereGeom\n>>> wp.init()\n>>> scene = WarpScene(num_scenes=1, device=\"cpu\").add(\n...     SphereGeom(np.array([1.0]), np.array([0, 1], dtype=np.int32))\n... )\n>>> signed_dists, _, _ = scene.query_sdf_torch(\n...     torch.tensor([[2.0, 0.0, 0.0], [0.5, 0.0, 0.0]]),\n...     torch.tensor([0, 2]),\n... )\n>>> bool(torch.allclose(signed_dists, torch.tensor([1.0, -0.5])))\nTrue\n>>> normal_jacobians = wp.empty(1, dtype=wp.mat33, device=\"cpu\")\n>>> _ = scene.query_sdf(\n...     wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device=\"cpu\"),\n...     scene_indices=wp.array([0], dtype=wp.int32, device=\"cpu\"),\n...     out_normal_jacobians=normal_jacobians,\n... )\n>>> np.allclose(normal_jacobians.numpy()[0], np.diag([0.0, 0.5, 0.5]))\nTrue\n>>> observed = wp.empty(1, dtype=wp.bool, device=\"cpu\")\n>>> _ = scene.query_sdf(wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device=\"cpu\"),\n...     scene_indices=wp.array([0], dtype=wp.int32, device=\"cpu\"), out_observed=observed)\n>>> bool(observed.numpy()[0])  # analytical geometry is fully known\nTrue
", + "params": [ + { + "name": "num_scenes", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "property", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L68", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "geoms", + "signature": "geoms: Tuple[BaseGeom, ...]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_scenes", + "signature": "num_scenes: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_elements", + "signature": "num_elements: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L80", + "doc": "

Total element count across all attached geoms (a MeshGeom of N meshes counts N).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L85", + "doc": "

Monotonic revision of resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(geom: BaseGeom) -> WarpScene", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L89", + "doc": "

Attach a geom: allocates its GPU arrays on this scene's device; update in place via geom.update(...).

", + "params": [ + { + "name": "geom", + "type": "BaseGeom", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "WarpScene", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L132", + "doc": "

Query the scene SDF (min over all attached geoms) at points.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Query points, any shape (flattened to n internally).

" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

CSR boundaries into the flat points, int32, length num_scenes+1. Pass exactly one of scene_offsets / scene_indices.

" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Scene id of each point, int32, one per point. Skips the derivation launch, so hot loops pass a pre-built map here.

" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional per-point gate, int32, length n. Points with mask 0 skip every geom kernel.

" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "

Skip the normal/closest computation (~2x faster) and return only signed distances.

" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional preallocated output; required shape n. Hot loops and CUDA-graph capture pass all out_* so no allocation happens per call.

" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional preallocated output, shape n.

" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional preallocated output, shape n.

" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "

Record the launches on an active wp.Tape; False keeps the query off the gradient.

" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional preallocated wp.mat33 output, one per point. Entry (i, j) is the derivative of normal component i with respect to point coordinate j. Mesh face normals have zero derivatives; voxel and primitive normals use analytical derivatives of the active query branch. Derivatives at cell, face, or closest-object switches are discontinuous.

" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional device bool array, one per point. True when every sensor map in the scene has observed the queried voxel; outside a sensor map or masked out is False. Meshes and analytical geometry leave this status unchanged. Unknown status never skips distance checks.

" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "

Flat (n,) views: signed_dists if distance_only, else (signed_dists, normals, closest_points). Points in an empty scene get MAX_DIST distance and zero normals.

" + } + }, + { + "kind": "method", + "base": "", + "name": "query_sdf_torch", + "signature": "query_sdf_torch(query_points: torch.Tensor, scene_offsets: torch.Tensor, poses: Optional[Dict[BaseGeom, torch.Tensor]] = None, scales: Optional[Dict[BaseGeom, torch.Tensor]] = None) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/scene.py#L258", + "doc": "

Differentiable scene SDF query (per-point min over all attached geoms).

", + "params": [ + { + "name": "query_points", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "

Query points, shape (n, 3), differentiable.

" + }, + { + "name": "scene_offsets", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "

CSR boundaries into the points, length num_scenes+1.

" + }, + { + "name": "poses", + "type": "Optional[Dict[BaseGeom, torch.Tensor]]", + "default": "None", + "required": false, + "doc": "

Optional per-geom pose overrides, (count, 4, 4) tensors keyed by attached geom. Overridden geoms are queried on these poses and receive gradients; other geoms use their stored (non-differentiable) transforms.

" + }, + { + "name": "scales", + "type": "Optional[Dict[BaseGeom, torch.Tensor]]", + "default": "None", + "required": false, + "doc": "

Optional per-geom scale overrides, (count,) tensors keyed by attached geom. Same semantics as poses.

" + } + ], + "returns": { + "type": "Tuple[torch.Tensor, torch.Tensor, torch.Tensor]", + "doc": "

(signed_dists, normals, closest_points) torch tensors, shapes (n,), (n, 3), (n, 3). Gradients flow to query_points and to the poses/scales tensors of whichever geom is closest at each point.

" + } + } + ] + }, + "robokit.geom.BoxGeom": { + "kind": "class", + "name": "BoxGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L372", + "anchor": "boxgeom", + "doc": "

N boxes: half_extents (N, 3), posed/rotated via poses.

", + "bases": "BaseGeom", + "params": [ + { + "name": "half_extents", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "build", + "signature": "build(device: Device = 'cpu') -> BaseGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L308", + "doc": "

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "BaseGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(half_extents: Optional[np.ndarray] = None, scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L389", + "doc": "", + "params": [ + { + "name": "half_extents", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.geom.SphereGeom": { + "kind": "class", + "name": "SphereGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L404", + "anchor": "spheregeom", + "doc": "

N spheres: radii (N,), centered via poses.

", + "bases": "BaseGeom", + "params": [ + { + "name": "radii", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "build", + "signature": "build(device: Device = 'cpu') -> BaseGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L308", + "doc": "

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "BaseGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(radii: Optional[np.ndarray] = None, scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L421", + "doc": "", + "params": [ + { + "name": "radii", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.geom.PlaneGeom": { + "kind": "class", + "name": "PlaneGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L432", + "anchor": "planegeom", + "doc": "

N halfspaces (local z=0 planes, sdf = local z): count = scene_offsets[-1], orientation via poses.

", + "bases": "BaseGeom", + "params": [ + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "build", + "signature": "build(device: Device = 'cpu') -> BaseGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L308", + "doc": "

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "BaseGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L448", + "doc": "", + "params": [ + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.geom.CapsuleGeom": { + "kind": "class", + "name": "CapsuleGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L458", + "anchor": "capsulegeom", + "doc": "

N capsules: radii (N,) + half_heights (N,), axis along local z via poses.

", + "bases": "BaseGeom", + "params": [ + { + "name": "radii", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "half_heights", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "build", + "signature": "build(device: Device = 'cpu') -> BaseGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L308", + "doc": "

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "BaseGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(radii: Optional[np.ndarray] = None, half_heights: Optional[np.ndarray] = None, scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L479", + "doc": "", + "params": [ + { + "name": "radii", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "half_heights", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.geom.MeshGeom": { + "kind": "class", + "name": "MeshGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L502", + "anchor": "meshgeom", + "doc": "

N triangle meshes; enable_sdf bakes a disk-cached per-mesh SDF for far queries instead of the exact mesh.

", + "bases": "BaseGeom", + "params": [ + { + "name": "meshes", + "type": "MeshList", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "enable_sdf", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "sdf_voxel_size", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "sdf_padding", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "refine_band_voxels", + "type": "float", + "default": "REFINE_BAND_VOXELS", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L529", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L542", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: Device = 'cpu') -> MeshGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L571", + "doc": "", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "MeshGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(meshes: Optional[MeshList] = None, scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L582", + "doc": "

meshes swaps the mesh ids + AABBs (and rebakes the SDF tier if enabled).

", + "params": [ + { + "name": "meshes", + "type": "Optional[MeshList]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.geom.VolumeGeom": { + "kind": "class", + "name": "VolumeGeom", + "module": "robokit.geom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L604", + "anchor": "volumegeom", + "doc": "

N pre-baked SdfVolume grids (NanoVDB trilinear sample; conservative extrapolation outside the AABB).

", + "bases": "BaseGeom", + "params": [ + { + "name": "sdf_volumes", + "type": "List[SdfVolume]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "capacity", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "BaseGeom", + "name": "params_wp", + "signature": "params_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "mesh_ids_wp", + "signature": "mesh_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "volume_ids_wp", + "signature": "volume_ids_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_min_wp", + "signature": "aabb_min_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "aabb_max_wp", + "signature": "aabb_max_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "paddings_wp", + "signature": "paddings_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L76", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "BaseGeom", + "name": "device_wp", + "signature": "device_wp: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L99", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "graph_revision", + "signature": "graph_revision: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L104", + "doc": "

Revision of GPU resources referenced by captured graphs.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "BaseGeom", + "name": "refine_band", + "signature": "refine_band: float", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "BaseGeom", + "name": "query_sdf", + "signature": "query_sdf(points: wp.array, scene_offsets: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, query_mask: Optional[wp.array] = None, distance_only: bool = False, out_signed_dists: Optional[wp.array] = None, out_normals: Optional[wp.array] = None, out_closest_points: Optional[wp.array] = None, record_tape: bool = True, out_normal_jacobians: Optional[wp.array] = None, out_observed: Optional[wp.array] = None) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L151", + "doc": "

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

", + "params": [ + { + "name": "points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "query_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "out_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "record_tape", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_observed", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Union[wp.array, Tuple[wp.array, wp.array, wp.array]]", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "launch_params", + "signature": "launch_params: Tuple", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L623", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(device: Device = 'cpu') -> VolumeGeom", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L647", + "doc": "", + "params": [ + { + "name": "device", + "type": "Device", + "default": "'cpu'", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VolumeGeom", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "update", + "signature": "update(sdf_volumes: Optional[List[SdfVolume]] = None, scene_offsets: Optional[np.ndarray] = None, poses: Optional[wp.array] = None, scales: Optional[wp.array] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/geom/geoms.py#L657", + "doc": "

sdf_volumes swaps ids/AABBs/paddings.

", + "params": [ + { + "name": "sdf_volumes", + "type": "Optional[List[SdfVolume]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "poses", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scales", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-optimization", + "nav": "Optimization", + "h": "Optimization", + "body": "

LMOptimizerConfig(linear_solver=\"cholesky\"), the default, solves each step exactly. Small systems factor in one tile; larger ones use the band implied by SparseTask sparsity patterns. linear_solver=\"cg\" iterates matrix-free on whichever Jacobian the terms provide, sparse or dense, and never forms the normal matrix.

", + "sub": "API", + "api": { + "robokit.opt.Var": { + "kind": "class", + "name": "Var", + "module": "robokit.opt", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L24", + "anchor": "var", + "doc": "", + "bases": "abc.ABC", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "property", + "base": "", + "name": "tangent_dim", + "signature": "tangent_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L27", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "clone", + "signature": "clone() -> Self", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L29", + "doc": "", + "params": [], + "returns": { + "type": "Self", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "view", + "signature": "view(batch_size: int, offset: int = 0) -> Self", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L32", + "doc": "

Elements offset to offset + batch_size, sharing storage.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Self", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "integrate", + "signature": "integrate(velocity: ArrayLike, out: Optional[Self] = None, tangent_mask: Optional[wp.array] = None, weight_decay: float = 0.0, out_velocity: Optional[ArrayLike] = None) -> Self", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L37", + "doc": "

Move by velocity; only shortened steps write out_velocity, which may alias the input velocity.

", + "params": [ + { + "name": "velocity", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[Self]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "tangent_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "out_velocity", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Self", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "difference", + "signature": "difference(other: Self, out: Optional[ArrayLike] = None) -> ArrayLike", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L49", + "doc": "

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

", + "params": [ + { + "name": "other", + "type": "Self", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ArrayLike", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "invalidate", + "signature": "invalidate()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L53", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "batch_size", + "signature": "batch_size: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L58", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L62", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "gather", + "signature": "gather(indices: ArrayLike, out: Optional[Self] = None) -> Self", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L64", + "doc": "", + "params": [ + { + "name": "indices", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[Self]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Self", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accept", + "signature": "accept(accept_mask: ArrayLike, proposed: Self) -> Self", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L67", + "doc": "

Accept proposed values and derived state where accept_mask[i] == 1; leave other rows unchanged.

", + "params": [ + { + "name": "accept_mask", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "proposed", + "type": "Self", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Self", + "doc": "" + } + } + ] + }, + "robokit.opt.VarValues": { + "kind": "class", + "name": "VarValues", + "module": "robokit.opt", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L94", + "anchor": "varvalues", + "doc": "

Combine Vars into tangent-column blocks; preserve subclass step rules across copies and views.

", + "bases": "Var", + "params": [ + { + "name": "named_vars", + "type": "Mapping[Enum, Var]", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "from_var", + "signature": "from_var(var: Var, key: Enum) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L113", + "doc": "", + "params": [ + { + "name": "var", + "type": "Var", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "key", + "type": "Enum", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get", + "signature": "get(key: Enum) -> Var", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L117", + "doc": "", + "params": [ + { + "name": "key", + "type": "Enum", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Var", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "values", + "signature": "values()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L123", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "tangent_offset", + "signature": "tangent_offset(key: Enum) -> int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L126", + "doc": "", + "params": [ + { + "name": "key", + "type": "Enum", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "int", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "tangent_dim", + "signature": "tangent_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L130", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "batch_size", + "signature": "batch_size: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L134", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L138", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "clone", + "signature": "clone() -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L141", + "doc": "", + "params": [], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "view", + "signature": "view(batch_size: int, offset: int = 0) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L145", + "doc": "", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "integrate", + "signature": "integrate(velocity: ArrayLike, out: Optional[VarValues] = None, tangent_mask: Optional[wp.array] = None, weight_decay: float = 0.0, out_velocity: Optional[ArrayLike] = None) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L166", + "doc": "", + "params": [ + { + "name": "velocity", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[VarValues]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "tangent_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "out_velocity", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "difference", + "signature": "difference(other: VarValues, out: Optional[ArrayLike] = None) -> ArrayLike", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L194", + "doc": "", + "params": [ + { + "name": "other", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ArrayLike", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "gather", + "signature": "gather(indices: ArrayLike, out: Optional[VarValues] = None) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L202", + "doc": "", + "params": [ + { + "name": "indices", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[VarValues]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accept", + "signature": "accept(accept_mask: ArrayLike, proposed: VarValues) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L209", + "doc": "", + "params": [ + { + "name": "accept_mask", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "proposed", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "invalidate", + "signature": "invalidate()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L214", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.VectorVar": { + "kind": "class", + "name": "VectorVar", + "module": "robokit.opt", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L251", + "anchor": "vectorvar", + "doc": "

A batched vector optimization variable on Euclidean space.

Example

python
>>> from enum import Enum\n>>> from robokit.opt import VarValues\n>>> class Key(Enum):\n...     X = 0\n>>> var = VectorVar(wp.array([[1.0, 2.0]], dtype=wp.float32))\n>>> values = VarValues.from_var(var, Key.X)\n>>> result = values.integrate(wp.array([[0.5, -1.0]], dtype=wp.float32))\n>>> result.get(Key.X).x.numpy().tolist()\n[[1.5, 1.0]]\n>>> capped = VectorVar(wp.zeros((1, 2), dtype=wp.float32), unit=10.0, max_step=1.0)  # moves 10x, 1 at most\n>>> capped.integrate(wp.array([[0.0625, 1.0]], dtype=wp.float32)).x.numpy().tolist()\n[[0.625, 1.0]]
", + "bases": "Var", + "params": [ + { + "name": "x", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "unit", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "max_step", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "Var", + "name": "invalidate", + "signature": "invalidate()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L53", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "x", + "signature": "x: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L277", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "tangent_dim", + "signature": "tangent_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L287", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "batch_size", + "signature": "batch_size: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L291", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L295", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "clone", + "signature": "clone() -> VectorVar", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L298", + "doc": "", + "params": [], + "returns": { + "type": "VectorVar", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "view", + "signature": "view(batch_size: int, offset: int = 0) -> VectorVar", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L301", + "doc": "", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VectorVar", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "integrate", + "signature": "integrate(velocity: ArrayLike, out: Optional[VectorVar] = None, tangent_mask: Optional[wp.array] = None, weight_decay: float = 0.0, out_velocity: Optional[ArrayLike] = None) -> VectorVar", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L304", + "doc": "", + "params": [ + { + "name": "velocity", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[VectorVar]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "tangent_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "out_velocity", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VectorVar", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "difference", + "signature": "difference(other: VectorVar, out: Optional[ArrayLike] = None) -> ArrayLike", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L329", + "doc": "", + "params": [ + { + "name": "other", + "type": "VectorVar", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[ArrayLike]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ArrayLike", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "gather", + "signature": "gather(indices: ArrayLike, out: Optional[VectorVar] = None) -> VectorVar", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L337", + "doc": "", + "params": [ + { + "name": "indices", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out", + "type": "Optional[VectorVar]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "VectorVar", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accept", + "signature": "accept(accept_mask: ArrayLike, proposed: VectorVar) -> VectorVar", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/var_values.py#L340", + "doc": "", + "params": [ + { + "name": "accept_mask", + "type": "ArrayLike", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "proposed", + "type": "VectorVar", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VectorVar", + "doc": "" + } + } + ] + }, + "robokit.opt.optimizer.Optimizer": { + "kind": "class", + "name": "Optimizer", + "module": "robokit.opt.optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L177", + "anchor": "optimizer", + "doc": "

Warp optimizer lifecycle with shared Jacobian machinery for gradient optimizers and LM's CG step.

Solve sequence:

  1. reset: build once, slice to batch size, optionally capture a graph, then call _start.
  2. Repeat step max_iter times, replaying the iteration graph or running _step_body.

Subclass hooks:

", + "bases": "abc.ABC", + "params": [ + { + "name": "terms", + "type": "Union[Task, Sequence[Task]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "config", + "type": "Optional[OptimizerConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: Sequence[Task]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L204", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "config", + "signature": "config: OptimizerConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L205", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L216", + "doc": "

Optimize var in place; returns it with the final cost per batch element.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset(var: VarValues, num_steps: Optional[int] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L242", + "doc": "

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "step", + "signature": "step(var: VarValues) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L263", + "doc": "

One iteration in place; an outer capture records kernels instead of replaying a graph.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "is_all_sparse", + "signature": "is_all_sparse: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L336", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.optimizer.OptimizerConfig": { + "kind": "class", + "name": "OptimizerConfig", + "module": "robokit.opt.optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L159", + "anchor": "optimizerconfig", + "doc": "", + "params": [ + { + "name": "max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "early_stopping_interval", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "cost_tol", + "type": "float", + "default": "1e-09", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'iter', 'full']", + "default": "'none'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "max_iter", + "signature": "max_iter: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L161", + "doc": "

Iterations per solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "early_stopping_interval", + "signature": "early_stopping_interval: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L163", + "doc": "

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cost_tol", + "signature": "cost_tol: float = 1e-09", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L165", + "doc": "

The solve stops once every batch element's cost is at most this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L167", + "doc": "

Capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(terms: Sequence[Task], device: wp_device_type, active_dof_mask: Optional[wp.array] = None) -> Optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L170", + "doc": "

The optimizer a PopulationSolver steps with this config.

", + "params": [ + { + "name": "terms", + "type": "Sequence[Task]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Optimizer", + "doc": "" + } + } + ] + }, + "robokit.opt.gd_optimizer.GDOptimizer": { + "kind": "class", + "name": "GDOptimizer", + "module": "robokit.opt.gd_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L177", + "anchor": "gdoptimizer", + "doc": "

First-order optimizer supporting GD and Adam, with optional decoupled weight decay (AdamW).

", + "bases": "Optimizer", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Optimizer", + "name": "terms", + "signature": "terms: Sequence[Task]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L204", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Optimizer", + "name": "config", + "signature": "config: OptimizerConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L205", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Optimizer", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L216", + "doc": "

Optimize var in place; returns it with the final cost per batch element.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "reset", + "signature": "reset(var: VarValues, num_steps: Optional[int] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L242", + "doc": "

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "property", + "base": "Optimizer", + "name": "is_all_sparse", + "signature": "is_all_sparse: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L336", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "step", + "signature": "step(var: VarValues) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L281", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.opt.gd_optimizer.GDOptimizerConfig": { + "kind": "class", + "name": "GDOptimizerConfig", + "module": "robokit.opt.gd_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L149", + "anchor": "gdoptimizerconfig", + "doc": "", + "bases": "OptimizerConfig", + "params": [ + { + "name": "max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "early_stopping_interval", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "cost_tol", + "type": "float", + "default": "1e-09", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'iter', 'full']", + "default": "'none'", + "required": false, + "doc": "" + }, + { + "name": "learning_rate", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "lr_schedule", + "type": "Optional[Callable[[int, float], float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "gradient_mode", + "type": "Literal['analytic_jacobian', 'autodiff', 'analytic_gradient']", + "default": "'analytic_jacobian'", + "required": false, + "doc": "" + }, + { + "name": "optimizer_type", + "type": "Literal['gd', 'adam']", + "default": "'gd'", + "required": false, + "doc": "" + }, + { + "name": "gradient_clip", + "type": "float", + "default": "math.inf", + "required": false, + "doc": "" + }, + { + "name": "beta1", + "type": "float", + "default": "0.9", + "required": false, + "doc": "" + }, + { + "name": "beta2", + "type": "float", + "default": "0.999", + "required": false, + "doc": "" + }, + { + "name": "epsilon", + "type": "float", + "default": "1e-08", + "required": false, + "doc": "" + }, + { + "name": "weight_decay", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "max_iter", + "signature": "max_iter: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L161", + "doc": "

Iterations per solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "early_stopping_interval", + "signature": "early_stopping_interval: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L163", + "doc": "

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cost_tol", + "signature": "cost_tol: float = 1e-09", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L165", + "doc": "

The solve stops once every batch element's cost is at most this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L167", + "doc": "

Capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "learning_rate", + "signature": "learning_rate: float = 0.01", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L151", + "doc": "

Step size.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lr_schedule", + "signature": "lr_schedule: Optional[Callable[[int, float], float]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L153", + "doc": "

Learning rate per iteration from (zero-based iteration, learning_rate); None keeps it constant.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gradient_mode", + "signature": "gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L155", + "doc": "

analytic_jacobian: terms fill a shared sparse/dense J, then one Jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimizer_type", + "signature": "optimizer_type: Literal['gd', 'adam'] = 'gd'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L158", + "doc": "

Update rule: plain gradient descent or Adam.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gradient_clip", + "signature": "gradient_clip: float = math.inf", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L160", + "doc": "

Clamp each gradient entry to ±this before the update, so a stiff cost cannot overshoot.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "beta1", + "signature": "beta1: float = 0.9", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L162", + "doc": "

Adam's first-moment decay.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "beta2", + "signature": "beta2: float = 0.999", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L164", + "doc": "

Adam's second-moment decay.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "epsilon", + "signature": "epsilon: float = 1e-08", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L166", + "doc": "

Adam's denominator stabilizer.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weight_decay", + "signature": "weight_decay: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L168", + "doc": "

Decoupled decay: each step also moves x by -learning_rate weight_decay x (AdamW under Adam).

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(terms: Sequence[Task], device: wp_device_type, active_dof_mask: Optional[wp.array] = None) -> GDOptimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L171", + "doc": "", + "params": [ + { + "name": "terms", + "type": "Sequence[Task]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "GDOptimizer", + "doc": "" + } + } + ] + }, + "robokit.opt.gd_optimizer.AnnealedGDOptimizer": { + "kind": "class", + "name": "AnnealedGDOptimizer", + "module": "robokit.opt.gd_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L370", + "anchor": "annealedgdoptimizer", + "doc": "

GD with RMSProp proposals and Metropolis acceptance, supporting every base-class gradient mode.

Acceptance outcomes:

", + "bases": "GDOptimizer", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Optimizer", + "name": "terms", + "signature": "terms: Sequence[Task]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L204", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Optimizer", + "name": "config", + "signature": "config: OptimizerConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L205", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Optimizer", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L216", + "doc": "

Optimize var in place; returns it with the final cost per batch element.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "reset", + "signature": "reset(var: VarValues, num_steps: Optional[int] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L242", + "doc": "

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "property", + "base": "Optimizer", + "name": "is_all_sparse", + "signature": "is_all_sparse: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L336", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "step", + "signature": "step(var: VarValues) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L420", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.opt.gd_optimizer.AnnealedGDConfig": { + "kind": "class", + "name": "AnnealedGDConfig", + "module": "robokit.opt.gd_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L346", + "anchor": "annealedgdconfig", + "doc": "

learning_rate and the Metropolis temperature both decay by temperature_decay, on their own periods.

", + "bases": "OptimizerConfig", + "params": [ + { + "name": "max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "early_stopping_interval", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "cost_tol", + "type": "float", + "default": "1e-09", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'iter', 'full']", + "default": "'none'", + "required": false, + "doc": "" + }, + { + "name": "learning_rate", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "gradient_mode", + "type": "Literal['analytic_jacobian', 'autodiff', 'analytic_gradient']", + "default": "'analytic_jacobian'", + "required": false, + "doc": "" + }, + { + "name": "mu", + "type": "float", + "default": "0.98", + "required": false, + "doc": "" + }, + { + "name": "stepsize_period", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "starting_temperature", + "type": "float", + "default": "18.0", + "required": false, + "doc": "" + }, + { + "name": "temperature_decay", + "type": "float", + "default": "0.95", + "required": false, + "doc": "" + }, + { + "name": "annealing_period", + "type": "int", + "default": "30", + "required": false, + "doc": "" + }, + { + "name": "grad_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "max_iter", + "signature": "max_iter: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L161", + "doc": "

Iterations per solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "early_stopping_interval", + "signature": "early_stopping_interval: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L163", + "doc": "

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cost_tol", + "signature": "cost_tol: float = 1e-09", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L165", + "doc": "

The solve stops once every batch element's cost is at most this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L167", + "doc": "

Capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "OptimizerConfig", + "name": "build", + "signature": "build(terms: Sequence[Task], device: wp_device_type, active_dof_mask: Optional[wp.array] = None) -> Optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L170", + "doc": "

The optimizer a PopulationSolver steps with this config.

", + "params": [ + { + "name": "terms", + "type": "Sequence[Task]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Optimizer", + "doc": "" + } + }, + { + "kind": "attribute", + "base": "", + "name": "learning_rate", + "signature": "learning_rate: float = 0.01", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L350", + "doc": "

Initial RMSProp step size.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gradient_mode", + "signature": "gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L352", + "doc": "

How the gradient is computed, as in GDOptimizerConfig.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mu", + "signature": "mu: float = 0.98", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L354", + "doc": "

RMSProp's weight on the newest squared gradient.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stepsize_period", + "signature": "stepsize_period: int = 50", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L356", + "doc": "

Iterations between step-size decays.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "starting_temperature", + "signature": "starting_temperature: float = 18.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L358", + "doc": "

Initial Metropolis temperature.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "temperature_decay", + "signature": "temperature_decay: float = 0.95", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L360", + "doc": "

Factor applied to the step size and the temperature at each of their periods.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "annealing_period", + "signature": "annealing_period: int = 30", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L362", + "doc": "

Iterations between temperature decays.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "grad_eps", + "signature": "grad_eps: float = 1e-06", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L364", + "doc": "

RMSProp's denominator stabilizer.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/gd_optimizer.py#L366", + "doc": "

Seed of the Metropolis acceptance draws.

", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.lbfgs_optimizer.LBFGSOptimizer": { + "kind": "class", + "name": "LBFGSOptimizer", + "module": "robokit.opt.lbfgs_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L57", + "anchor": "lbfgsoptimizer", + "doc": "", + "bases": "Optimizer", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Optimizer", + "name": "terms", + "signature": "terms: Sequence[Task]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L204", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Optimizer", + "name": "config", + "signature": "config: OptimizerConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L205", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Optimizer", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L216", + "doc": "

Optimize var in place; returns it with the final cost per batch element.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "reset", + "signature": "reset(var: VarValues, num_steps: Optional[int] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L242", + "doc": "

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "step", + "signature": "step(var: VarValues) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L263", + "doc": "

One iteration in place; an outer capture records kernels instead of replaying a graph.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "property", + "base": "Optimizer", + "name": "is_all_sparse", + "signature": "is_all_sparse: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L336", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.lbfgs_optimizer.LBFGSOptimizerConfig": { + "kind": "class", + "name": "LBFGSOptimizerConfig", + "module": "robokit.opt.lbfgs_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L23", + "anchor": "lbfgsoptimizerconfig", + "doc": "", + "bases": "OptimizerConfig", + "params": [ + { + "name": "max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "early_stopping_interval", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "cost_tol", + "type": "float", + "default": "1e-09", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'iter', 'full']", + "default": "'none'", + "required": false, + "doc": "" + }, + { + "name": "history_len", + "type": "int", + "default": "10", + "required": false, + "doc": "" + }, + { + "name": "h0_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "line_search_alphas", + "type": "tuple", + "default": "(1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0)", + "required": false, + "doc": "" + }, + { + "name": "wolfe_c1", + "type": "float", + "default": "0.0001", + "required": false, + "doc": "" + }, + { + "name": "wolfe_c2", + "type": "float", + "default": "0.9", + "required": false, + "doc": "" + }, + { + "name": "line_search", + "type": "Literal['armijo', 'approx_wolfe']", + "default": "'armijo'", + "required": false, + "doc": "" + }, + { + "name": "normalize_direction", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "gradient_mode", + "type": "Literal['analytic_jacobian', 'autodiff', 'analytic_gradient']", + "default": "'analytic_jacobian'", + "required": false, + "doc": "" + }, + { + "name": "fold_line_search_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "max_iter", + "signature": "max_iter: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L161", + "doc": "

Iterations per solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cost_tol", + "signature": "cost_tol: float = 1e-09", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L165", + "doc": "

The solve stops once every batch element's cost is at most this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L167", + "doc": "

Capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "early_stopping_interval", + "signature": "early_stopping_interval: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L25", + "doc": "

Off by default: without host checks, a folded line search defers each step into the next direction launch.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "history_len", + "signature": "history_len: int = 10", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L27", + "doc": "

Curvature pairs kept for the two-loop recursion.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "h0_scale", + "signature": "h0_scale: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L29", + "doc": "

Initial inverse-Hessian scale when there is no history or normalize_direction is on (else Barzilai-Borwein).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "line_search_alphas", + "signature": "line_search_alphas: tuple = (1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L31", + "doc": "

Trial step sizes, evaluated in parallel.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wolfe_c1", + "signature": "wolfe_c1: float = 0.0001", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L33", + "doc": "

Sufficient-decrease constant.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wolfe_c2", + "signature": "wolfe_c2: float = 0.9", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L35", + "doc": "

Curvature constant (approx_wolfe).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "line_search", + "signature": "line_search: Literal['armijo', 'approx_wolfe'] = 'armijo'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L37", + "doc": "

armijo: largest passing trial, else no step; approx_wolfe: largest Armijo/curvature trial, else smallest, and needs folded gradients.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "normalize_direction", + "signature": "normalize_direction: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L39", + "doc": "

Normalize directions so trial steps are lengths; H0 then uses h0_scale instead of Barzilai-Borwein.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gradient_mode", + "signature": "gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L41", + "doc": "

analytic_jacobian: terms fill a shared sparse/dense J, then one Jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "fold_line_search_gradient", + "signature": "fold_line_search_gradient: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L44", + "doc": "

Fold trial gradients to skip a recompute; needs analytic_gradient or all-sparse analytic_jacobian terms.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(terms: Sequence[Task], device: wp_device_type, active_dof_mask: Optional[wp.array] = None) -> LBFGSOptimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lbfgs_optimizer.py#L47", + "doc": "

Runs without a per-iteration graph: each step branches on the host iteration count.

", + "params": [ + { + "name": "terms", + "type": "Sequence[Task]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "LBFGSOptimizer", + "doc": "" + } + } + ] + }, + "robokit.opt.lm_optimizer.LMOptimizer": { + "kind": "class", + "name": "LMOptimizer", + "module": "robokit.opt.lm_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L533", + "anchor": "lmoptimizer", + "doc": "

Levenberg-Marquardt with Cholesky or conjugate gradients.

Solver paths:

", + "bases": "Optimizer", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Optimizer", + "name": "terms", + "signature": "terms: Sequence[Task]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L204", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Optimizer", + "name": "config", + "signature": "config: OptimizerConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L205", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Optimizer", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L216", + "doc": "

Optimize var in place; returns it with the final cost per batch element.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "reset", + "signature": "reset(var: VarValues, num_steps: Optional[int] = None) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L242", + "doc": "

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "Optimizer", + "name": "step", + "signature": "step(var: VarValues) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L263", + "doc": "

One iteration in place; an outer capture records kernels instead of replaying a graph.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "property", + "base": "Optimizer", + "name": "is_all_sparse", + "signature": "is_all_sparse: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L336", + "doc": "", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.lm_optimizer.LMOptimizerConfig": { + "kind": "class", + "name": "LMOptimizerConfig", + "module": "robokit.opt.lm_optimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L502", + "anchor": "lmoptimizerconfig", + "doc": "", + "bases": "OptimizerConfig", + "params": [ + { + "name": "max_iter", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "early_stopping_interval", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "cost_tol", + "type": "float", + "default": "1e-09", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'iter', 'full']", + "default": "'none'", + "required": false, + "doc": "" + }, + { + "name": "lm_lambda", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "lambda_factor", + "type": "float", + "default": "2.0", + "required": false, + "doc": "" + }, + { + "name": "lambda_min", + "type": "float", + "default": "1e-05", + "required": false, + "doc": "" + }, + { + "name": "lambda_max", + "type": "float", + "default": "10000000000.0", + "required": false, + "doc": "" + }, + { + "name": "rho_min", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "gain_ratio_epsilon", + "type": "float", + "default": "1e-08", + "required": false, + "doc": "" + }, + { + "name": "linear_solver", + "type": "Literal['cholesky', 'cg', 'torch_cholesky']", + "default": "'cholesky'", + "required": false, + "doc": "" + }, + { + "name": "cg_max_iter", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "cg_tol", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "cg_check_interval", + "type": "int", + "default": "4", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "max_iter", + "signature": "max_iter: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L161", + "doc": "

Iterations per solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "early_stopping_interval", + "signature": "early_stopping_interval: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L163", + "doc": "

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cost_tol", + "signature": "cost_tol: float = 1e-09", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L165", + "doc": "

The solve stops once every batch element's cost is at most this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "OptimizerConfig", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/optimizer.py#L167", + "doc": "

Capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lm_lambda", + "signature": "lm_lambda: float = 0.001", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L504", + "doc": "

Initial damping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lambda_factor", + "signature": "lambda_factor: float = 2.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L506", + "doc": "

Damping divides by this on accept and multiplies on reject.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lambda_min", + "signature": "lambda_min: float = 1e-05", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L508", + "doc": "

Smallest damping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "lambda_max", + "signature": "lambda_max: float = 10000000000.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L510", + "doc": "

Largest damping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rho_min", + "signature": "rho_min: float = 0.001", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L512", + "doc": "

Minimum gain ratio rho to accept a step.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gain_ratio_epsilon", + "signature": "gain_ratio_epsilon: float = 1e-08", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L514", + "doc": "

Stabilizer in the rho denominator; 0 uses the exact ratio.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "linear_solver", + "signature": "linear_solver: Literal['cholesky', 'cg', 'torch_cholesky'] = 'cholesky'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L516", + "doc": "

Native Cholesky, matrix-free CG, or optional Torch float64 Cholesky for large dense systems.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cg_max_iter", + "signature": "cg_max_iter: Optional[int] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L518", + "doc": "

CG iterations per step; None: max(4, min(64, tangent_dim // 4)).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cg_tol", + "signature": "cg_tol: float = 1e-06", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L520", + "doc": "

Squared CG residual that stops early; checked on the host, so only without CUDA graphs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cg_check_interval", + "signature": "cg_check_interval: int = 4", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L522", + "doc": "

CG iterations between those host checks.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(terms: Sequence[Task], device: wp_device_type, active_dof_mask: Optional[wp.array] = None) -> LMOptimizer", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/lm_optimizer.py#L525", + "doc": "

CG and Torch Cholesky use eager steps; the native backend retains CUDA graph capture.

", + "params": [ + { + "name": "terms", + "type": "Sequence[Task]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "LMOptimizer", + "doc": "" + } + } + ] + }, + "robokit.opt.population_solver.PopulationSolver": { + "kind": "class", + "name": "PopulationSolver", + "module": "robokit.opt.population_solver", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L148", + "anchor": "populationsolver", + "doc": "

Refine batch * num_candidates[0] VarValues, reusing one var, allocation, and graph per population width.

Each scheduled round:

  1. sample: move candidates using prior scores, then draw around them.
  2. optimize: move each candidate toward lower cost.
  3. score: evaluate the terms or score term.
  4. select: keep each problem's best num_candidates[k + 1] candidates.
", + "params": [ + { + "name": "terms", + "type": "Union[List[ResidualTask], List[List[ResidualTask]]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "config", + "type": "PopulationSolverConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "score_terms", + "type": "Optional[Union[ResidualTask, List[Optional[ResidualTask]]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: wp_device_type", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L168", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[List[ResidualTask]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L172", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "score_terms", + "signature": "score_terms: List[Optional[ResidualTask]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L180", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "setup", + "signature": "setup(var: VarValues)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L196", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "winner_indices", + "signature": "winner_indices: wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L402", + "doc": "

(batch, 1) row of each instance's winner: the first ranked index.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(var: VarValues, iteration_callback: Optional[IterationCallback] = None) -> Tuple[VarValues, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L530", + "doc": "

Run the schedule on widest var; return each instance's best candidate and cost.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration_callback", + "type": "Optional[IterationCallback]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[VarValues, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_costs", + "signature": "compute_costs(var: VarValues) -> Dict[str, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L555", + "doc": "

Sum final-segment term costs by cost_name, including duplicate names such as ConfigurationTask.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[str, wp.array]", + "doc": "" + } + } + ] + }, + "robokit.opt.population_solver.PopulationSolverConfig": { + "kind": "class", + "name": "PopulationSolverConfig", + "module": "robokit.opt.population_solver", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L70", + "anchor": "populationsolverconfig", + "doc": "

What a round does, and when: stages run in order, iterations counted across them.

", + "params": [ + { + "name": "stages", + "type": "List[Stage]", + "default": "(lambda: [Stage(iters=10)])()", + "required": false, + "doc": "" + }, + { + "name": "samplers", + "type": "Sequence[SamplerConfig]", + "default": "tuple()", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'full', 'iter']", + "default": "'iter'", + "required": false, + "doc": "" + }, + { + "name": "use_early_stopping", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "rank_final", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "min_improvement", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "patience", + "type": "int", + "default": "2", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "stages", + "signature": "stages: List[Stage] = field(default_factory=lambda: [Stage(iters=10)])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L74", + "doc": "

The schedule, e.g. [Stage(6, 64, LMOptimizerConfig(lm_lambda=10.0)), Stage(10, 4), Stage(0, 1)]: 64 candidates for 6 iterations, the best 4 for 10 more, then the best one.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "samplers", + "signature": "samplers: Sequence[SamplerConfig] = field(default_factory=tuple)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L76", + "doc": "

Built during setup, then applied in order where the stages sample.

At each sampling iteration:

  1. Sample the population before optimizing.
  2. Restart the optimizer on that population.
  3. At the last iteration, sample after the final score and end on the moved candidates.
", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'full', 'iter'] = 'iter'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L84", + "doc": "

\"iter\" replays one optimizer step per width; \"full\" the whole solve (no callbacks or early stopping).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "use_early_stopping", + "signature": "use_early_stopping: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L86", + "doc": "

Let a segment end at its optimizer's stop rule (OptimizerConfig.early_stopping_interval); not under \"full\".

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rank_final", + "signature": "rank_final: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L88", + "doc": "

Score only the final population and return it best first; earlier selects keep the optimization cost.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_improvement", + "signature": "min_improvement: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L90", + "doc": "

If positive, a drawing sampler's solve ends once each instance's cheapest draw beats its first one (the center) by less than this, patience scores in a row; the last sample still moves the candidates. Reads scores on the host.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "patience", + "signature": "patience: int = 2", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L92", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_draws", + "signature": "num_draws: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L95", + "doc": "

The widest the population gets per candidate: the drawing sampler's draw count, or 1.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_iters", + "signature": "num_iters: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L100", + "doc": "

Iterations of the whole schedule.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "select_at", + "signature": "select_at: List[int]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L105", + "doc": "

Iterations (1-based, after the update) where a stage ends and the next one's width is kept.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_candidates", + "signature": "num_candidates: List[int]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L110", + "doc": "

Population width per instance in each stage.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "optimizer", + "signature": "optimizer: Optional[List[Optional[OptimizerConfig]]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L118", + "doc": "

Each stage's gradient update, or None if no stage sets one.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "sample_at", + "signature": "sample_at: List[int]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L126", + "doc": "

Zero-based sampling iterations; empty: the default (see Stage.sample_every).

", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.population_solver.Stage": { + "kind": "class", + "name": "Stage", + "module": "robokit.opt.population_solver", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L56", + "anchor": "stage", + "doc": "

A run of iters iterations at one population width. Entering a stage keeps each instance's best num_candidates (the first stage's is the input width); unset fields keep the previous stage's.

", + "params": [ + { + "name": "iters", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "num_candidates", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "optimizer", + "type": "Optional[OptimizerConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "sample_every", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "iters", + "signature": "iters: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L60", + "doc": "

Iterations of this stage.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_candidates", + "signature": "num_candidates: Optional[int] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L62", + "doc": "

Population width per instance; None: the previous stage's, or 1.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimizer", + "signature": "optimizer: Optional[OptimizerConfig] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L64", + "doc": "

Gradient update; None: the previous stage's. With none in any stage: drawing samplers (MPPI/ES) update by sampling, other solvers by dense LM.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sample_every", + "signature": "sample_every: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/population_solver.py#L66", + "doc": "

Draw with the samplers every this many iterations from the stage's start; 0 in every stage: a drawing sampler draws before every score and once after the last, others at each select.

", + "params": [], + "returns": null + } + ] + }, + "robokit.opt.sampler.SamplerConfig": { + "kind": "class", + "name": "SamplerConfig", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L284", + "anchor": "samplerconfig", + "doc": "

Sampler settings; owners supply variables, population width, device and masks at build time.

", + "params": [ + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L288", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(var: VarValues, num_candidates: int, active_dof_mask: Optional[wp.array] = None) -> Sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L291", + "doc": "

Construct an independent runtime sampler for these variables.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Sampler", + "doc": "" + } + } + ] + }, + "robokit.opt.sampler.RobertsSamplerConfig": { + "kind": "class", + "name": "RobertsSamplerConfig", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L297", + "anchor": "robertssamplerconfig", + "doc": "

Low-discrepancy initialization settings; helpers may scale the spread by joint ranges.

Example

python
>>> config = RobertsSamplerConfig(scale=0.5, keep_first=True)\n>>> config.scale, config.keep_first, config.num_draws\n(0.5, True, 1)
", + "bases": "SamplerConfig", + "params": [ + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + }, + { + "name": "scale", + "type": "Union[float, Sequence[float]]", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "keep_first", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "SamplerConfig", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L288", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "scale", + "signature": "scale: Union[float, Sequence[float]] = 0.2", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L307", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: Optional[int] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L308", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keep_first", + "signature": "keep_first: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L309", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(var: VarValues, num_candidates: int, active_dof_mask: Optional[wp.array] = None) -> Sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L311", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Sampler", + "doc": "" + } + } + ] + }, + "robokit.opt.sampler.GaussianSamplerConfig": { + "kind": "class", + "name": "GaussianSamplerConfig", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L386", + "anchor": "gaussiansamplerconfig", + "doc": "

Gaussian draw/update settings, independent of runtime population buffers.

Example

python
>>> from robokit.opt.var_values import VectorVar\n>>> class Key(Enum):\n...     X = 0\n>>> var = VarValues({Key.X: VectorVar(wp.zeros((1, 2), dtype=wp.float32, device=\"cpu\"))})\n>>> config = GaussianSamplerConfig(var_key=Key.X, num_draws=8)\n>>> first, second = config.build(var, 1), config.build(var, 1)\n>>> first is second\nFalse\n>>> first.noise.shape\n(8, 2)
", + "bases": "SamplerConfig", + "params": [ + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + }, + { + "name": "num_draws", + "type": "int", + "default": "64", + "required": false, + "doc": "" + }, + { + "name": "weighting", + "type": "Weighting", + "default": "'softmax'", + "required": false, + "doc": "" + }, + { + "name": "init_std", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "min_std", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "temperature", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "gamma", + "type": "float", + "default": "0.9", + "required": false, + "doc": "" + }, + { + "name": "learning_rate", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "epsilon", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "sample_mode", + "type": "Literal['mean', 'best']", + "default": "'mean'", + "required": false, + "doc": "" + }, + { + "name": "elite_ratio", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "mean_elites", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "noise_decay", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "wide_ratio", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "wide_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "SamplerConfig", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L288", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_draws", + "signature": "num_draws: int = 64", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L403", + "doc": "

Candidates drawn around each center, the center itself first.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weighting", + "signature": "weighting: Weighting = 'softmax'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L405", + "doc": "

How scored draws become weights: MPPI's softmax, or evolution strategies' fitness shaping.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_std", + "signature": "init_std: float = 0.1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L407", + "doc": "

Noise standard deviation at the start of a solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_std", + "signature": "min_std: float = 0.01", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L409", + "doc": "

Floor the softmax refit keeps the standard deviation above.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "temperature", + "signature": "temperature: float = 0.1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L411", + "doc": "

Softmax temperature; lower follows the cheapest draws more closely.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "gamma", + "signature": "gamma: float = 0.9", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L413", + "doc": "

Share of the weighted spread the softmax refit moves the standard deviation toward.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "learning_rate", + "signature": "learning_rate: float = 0.1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L415", + "doc": "

Fitness-shaping step size.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "epsilon", + "signature": "epsilon: float = 1e-06", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L417", + "doc": "

Guard against division by a zero spread.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L419", + "doc": "

Noise seed; the same seed replays the same draws.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sample_mode", + "signature": "sample_mode: Literal['mean', 'best'] = 'mean'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L421", + "doc": "

Move each center to its draws' weighted mean, or onto its cheapest draw.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "elite_ratio", + "signature": "elite_ratio: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L423", + "doc": "

If positive, the softmax temperature is each center's cost spread over this best share of its draws (at least two) instead of temperature, and best_draws keeps its cheapest draw.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "mean_elites", + "signature": "mean_elites: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L425", + "doc": "

With elite_ratio, move each center to the weighted mean of that share alone.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "noise_decay", + "signature": "noise_decay: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L427", + "doc": "

Each scored round scales std by this before the refit, never below min_std.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wide_ratio", + "signature": "wide_ratio: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L429", + "doc": "

Share of a solve's first-round draws (its last ones) drawn at wide_scale times std, to explore.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wide_scale", + "signature": "wide_scale: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L431", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build", + "signature": "build(var: VarValues, num_candidates: int, active_dof_mask: Optional[wp.array] = None) -> Sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L433", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Sampler", + "doc": "" + } + } + ] + }, + "robokit.opt.sampler.Sampler": { + "kind": "class", + "name": "Sampler", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L268", + "anchor": "sampler", + "doc": "

Draws new candidates around each candidate of one named variable.

", + "bases": "Protocol", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L271", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_draws", + "signature": "num_draws: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L272", + "doc": "

Candidates drawn around each one; 1 draws in place.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset() -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L275", + "doc": "

Reopen the distribution at the start of a solve.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "sample", + "signature": "sample(var: VarValues, scores: Optional[wp.array]) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L279", + "doc": "

Move candidates by scores; return var or sampler-owned draws for scoring.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scores", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + } + ] + }, + "robokit.opt.sampler.RobertsSampler": { + "kind": "class", + "name": "RobertsSampler", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L320", + "anchor": "robertssampler", + "doc": "

Seed candidates once with a Roberts low-discrepancy sequence, covering a box more evenly than random draws.

Sampling options:

Example

python
>>> sampler = RobertsSampler(num_candidates=4, scale=[0.5, 0.5], device=\"cpu\")\n>>> tangent = wp.zeros((8, 2), dtype=wp.float32, device=\"cpu\")\n>>> sampler.fill(tangent)\n>>> tangent.numpy().shape\n(8, 2)\n>>> bool(np.abs(tangent.numpy()).max() <= 0.25)\nTrue
", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scale", + "type": "Sequence[float]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "seed", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "keep_first", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": "'cpu'", + "required": false, + "doc": "" + }, + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset() -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L359", + "doc": "

A Roberts spread is fixed.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "sample", + "signature": "sample(var: VarValues, scores: Optional[wp.array]) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L362", + "doc": "

A Roberts spread is fixed, so scores tell it nothing: spread var in place.

", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scores", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "fill", + "signature": "fill(out_tangent: wp.array, iteration: int = 0) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L374", + "doc": "", + "params": [ + { + "name": "out_tangent", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + }, + "robokit.opt.sampler.GaussianSampler": { + "kind": "class", + "name": "GaussianSampler", + "module": "robokit.opt.sampler", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L445", + "anchor": "gaussiansampler", + "doc": "

Fit a sampling distribution from costs, as in MPPI and evolution strategies.

Each round:

  1. Move centers using scored draws and refit std.
  2. Draw num_draws std-scaled normals per center; draw zero has no noise and preserves the center.

Center updates:

Cost weighting:

Capacity/reset controls:

", + "params": [ + { + "name": "num_draws", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "tangent_dim", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "instances", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weighting", + "type": "Weighting", + "default": "'softmax'", + "required": false, + "doc": "" + }, + { + "name": "init_std", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "min_std", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "temperature", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "gamma", + "type": "float", + "default": "0.9", + "required": false, + "doc": "" + }, + { + "name": "learning_rate", + "type": "float", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "epsilon", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "sample_mode", + "type": "Literal['mean', 'best']", + "default": "'mean'", + "required": false, + "doc": "" + }, + { + "name": "elite_ratio", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "mean_elites", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "noise_decay", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "wide_ratio", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "wide_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "active_dof_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "wp_device_type", + "default": "'cpu'", + "required": false, + "doc": "" + }, + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "lower", + "signature": "lower: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L515", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "upper", + "signature": "upper: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L516", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "best_draws", + "signature": "best_draws: Optional[VarValues]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L517", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "draws", + "signature": "draws: Optional[VarValues]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L528", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset() -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L532", + "doc": "

Reopen the spread to std_reset and replay the same noise sequence.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "sample", + "signature": "sample(var: VarValues, scores: Optional[wp.array]) -> VarValues", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L537", + "doc": "", + "params": [ + { + "name": "var", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "scores", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "VarValues", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "fill", + "signature": "fill(out_tangent: wp.array, iteration: int = 0) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/opt/sampler.py#L573", + "doc": "", + "params": [ + { + "name": "out_tangent", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "iteration", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-terms", + "nav": "Terms", + "h": "Terms", + "body": "
", + "sub": "API", + "api": { + "robokit.terms.Task": { + "kind": "class", + "name": "Task", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L17", + "anchor": "task", + "doc": "

Base of every cost term: names its variable (var_key) and cost row (cost_name).

", + "bases": "abc.ABC", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.ResidualTask": { + "kind": "class", + "name": "ResidualTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L133", + "anchor": "residualtask", + "doc": "

Term consumed as a weighted residual and optional Jacobian.

", + "bases": "Task", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L145", + "doc": "

Dimension of the residual vector.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: Any, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L149", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + } + ] + }, + "robokit.terms.GradientTask": { + "kind": "class", + "name": "GradientTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L109", + "anchor": "gradienttask", + "doc": "

Per-batch scalar cost and gradient, used by GDOptimizer/LBFGSOptimizer in analytic-gradient mode.

", + "bases": "Task", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, *args: Any, out_cost: wp.array, out_gradient: Optional[wp.array] = None, **kwargs: Any)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L112", + "doc": "

Accumulate this term's weighted cost and optional direct gradient.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared gradient buffer. If omitted, only cost is accumulated.

" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.SparseTask": { + "kind": "class", + "name": "SparseTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L316", + "anchor": "sparsetask", + "doc": "

Residual task with an explicitly stored sparse Jacobian.

", + "bases": "ResidualTask", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "ResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L145", + "doc": "

Dimension of the residual vector.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: Any, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L149", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "attribute", + "base": "", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: Any, offset: int = 0, **kwargs: Any) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L332", + "doc": "

Sparsity pattern of the Jacobian matrix.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: Any, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L339", + "doc": "

Compute the non-zero values of the weighted Jacobian matrix according to the sparsity pattern.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + } + ] + }, + "robokit.terms.EagerTask": { + "kind": "class", + "name": "EagerTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L235", + "anchor": "eagertask", + "doc": "

Task with per-iteration work outside a captured CUDA graph.

", + "bases": "ResidualTask", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "ResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L145", + "doc": "

Dimension of the residual vector.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: Any, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L149", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "prepare", + "signature": "prepare(var_values: VarValues, proposed: bool, iter_idx: int)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L238", + "doc": "

Prepare eager state before a Warp reduction.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Current or proposed optimization variables.

" + }, + { + "name": "proposed", + "type": "bool", + "default": null, + "required": true, + "doc": "

Whether this is a line-search proposal.

" + }, + { + "name": "iter_idx", + "type": "int", + "default": null, + "required": true, + "doc": "

Solver iteration.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "on_step", + "signature": "on_step(accept_mask: wp.array, iter_idx: int, costs: wp.array) -> bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L248", + "doc": "

Update eager state after accepting or rejecting a step.

", + "params": [ + { + "name": "accept_mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Per-batch accepted-step mask.

" + }, + { + "name": "iter_idx", + "type": "int", + "default": null, + "required": true, + "doc": "

Solver iteration.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Per-batch costs.

" + } + ], + "returns": { + "type": "bool", + "doc": "

Whether the solver should stop early.

" + } + } + ] + }, + "robokit.terms.RobotTask": { + "kind": "class", + "name": "RobotTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L13", + "anchor": "robottask", + "doc": "

Serial preparation shared by terms that consume a robot state.

", + "bases": "Task", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L16", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.TrajectoryTask": { + "kind": "class", + "name": "TrajectoryTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L65", + "anchor": "trajectorytask", + "doc": "

Apply independent per-pose tasks to trajectory frames, with one dense tangent block per selected frame.

", + "bases": "RobotTask, SparseTask, GradientTask", + "params": [ + { + "name": "dense_task", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "

Per-pose residual task.

" + }, + { + "name": "num_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "

Number of trajectory frames, or omitted so the trajectory optimizer sets it.

" + }, + { + "name": "frame_indices", + "type": "Optional[Union[Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "

Frames to include. Defaults to all frames.

" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "

Optional planner input name (start, goal, target, path_goal, or path_target).

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "dense_task", + "signature": "dense_task: ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L85", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L106", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L113", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L116", + "doc": "

Build for the trajectory in var_values; a built per-pose task keeps its identity and live targets.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L130", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L141", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L149", + "doc": "

A terminal cost whose dense task writes the trajectory layout itself (fill_terminal) takes one launch.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: Any, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L180", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: Any, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: Any) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L220", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: Any, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/trajectory_task.py#L254", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.FrameTask": { + "kind": "class", + "name": "FrameTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L49", + "anchor": "frametask", + "doc": "

Match world-frame link targets; \"distance\" scores translation/angle thresholds, while \"log\" uses log residuals.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"ur10_description\"))\n>>> target_link_index = robot.spec.link_names.index(\"ee_link\")\n>>> state = robot.state(q=robot.spec.zero_q)\n>>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index)\n>>> frame_task = FrameTask(robot, target_link_index, target_link_pose, position_weight=1.0, orientation_weight=1.0)\n>>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32, device=\"cpu\")\n>>> state = robot.state(q=random_q)\n>>> robot.forward_kinematics(state)\n>>> robot.compute_motion_subspace(state)\n>>> weighted_residual = frame_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))\n>>> weighted_jacobian = frame_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))\n>>> assert np.allclose(weighted_residual.numpy()[0, :3], np.array([0.5839, -0.0795, -0.1784], dtype=np.float32), atol=1e-3)\n>>> assert np.allclose(weighted_jacobian.numpy()[0, :, 0], np.array([-1.1628, 0.1626, -0.167, -0.0765, 0.3698, 0.9521], dtype=np.float32), atol=1e-3)
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[Union[int, Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Optional[Union[wp.array, np.ndarray, Sequence[wp.array], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "position_weight", + "type": "Union[float, Sequence[float], np.ndarray, Mapping[str, float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "orientation_weight", + "type": "Union[float, Sequence[float], np.ndarray, Mapping[str, float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "residual_mode", + "type": "Literal['log', 'distance']", + "default": "'log'", + "required": false, + "doc": "" + }, + { + "name": "trajectory_frames", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "residual_mode", + "signature": "residual_mode: Literal['log', 'distance']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L88", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L91", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_target", + "signature": "set_target(target: Union[wp.array, np.ndarray, Sequence[wp.array]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L163", + "doc": "

Update target poses in-place. Batch size must match the original.

", + "params": [ + { + "name": "target", + "type": "Union[wp.array, np.ndarray, Sequence[wp.array]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L174", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L178", + "doc": "

Complete a stub with the helper's links and target buffer (not copied); named weights pick those links.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "weights_for", + "signature": "weights_for(frame_names: Sequence[str]) -> Tuple[np.ndarray, np.ndarray]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L192", + "doc": "

Resolve scalar, ordered, or named template weights for the selected frames.

python
>>> task = FrameTask(position_weight={\"tool\": 2.0}, orientation_weight=3.0)\n>>> task.weights_for([\"tool\"])[0].tolist()\n[2.0]
", + "params": [ + { + "name": "frame_names", + "type": "Sequence[str]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Tuple[np.ndarray, np.ndarray]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_frames", + "signature": "set_frames(robot: Robot, frame_index: Union[int, Sequence[int]], T_world_target: Union[wp.array, np.ndarray, Sequence[wp.array]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L205", + "doc": "

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "frame_index", + "type": "Union[int, Sequence[int]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Union[wp.array, np.ndarray, Sequence[wp.array]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L225", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L228", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "fill_terminal", + "signature": "fill_terminal(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L280", + "doc": "

Write terminal pose residuals and optional sparse Jacobian values in one launch.

Layouts:

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_task.py#L324", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.PositionTask": { + "kind": "class", + "name": "PositionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L18", + "anchor": "positiontask", + "doc": "

Match the world positions of one or more link frames.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"ur10_description\"))\n>>> target_link_index = robot.link_names.index(\"ee_link\")\n>>> state = robot.state(q=robot.zero_q)\n>>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index).reshape((1, 1))\n>>> position_task = PositionTask(robot, target_link_index, target_link_pose, weight=1.0)\n>>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32)\n>>> state = robot.state(q=random_q)\n>>> robot.forward_kinematics(state)\n>>> robot.compute_motion_subspace(state)\n>>> weighted_residual = position_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))\n>>> weighted_jacobian = position_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))\n>>> weighted_residual.numpy().shape[1] == 3\nTrue\n>>> weighted_jacobian.numpy().shape[1] == 3\nTrue
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[Union[int, Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Optional[Union[wp.array, np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": "20.0", + "required": false, + "doc": "" + }, + { + "name": "fixed_target", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L54", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L86", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L89", + "doc": "

Update residual weights in-place. Accepts scalar or per-frame sequence.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_frames", + "signature": "set_frames(robot: Robot, frame_index: Union[int, Sequence[int]], T_world_target: Union[wp.array, np.ndarray])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L97", + "doc": "

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "frame_index", + "type": "Union[int, Sequence[int]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Union[wp.array, np.ndarray]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_target", + "signature": "set_target(T_world_target: Union[wp.array, np.ndarray])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L103", + "doc": "

Update target poses in-place. Batch size must match the original.

", + "params": [ + { + "name": "T_world_target", + "type": "Union[wp.array, np.ndarray]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L107", + "doc": "

Complete a stub with the helper's links and target buffer, which it reads directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L117", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L120", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_task.py#L147", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.RotationTask": { + "kind": "class", + "name": "RotationTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L25", + "anchor": "rotationtask", + "doc": "

Match the world rotations of one or more link frames.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"ur10_description\"))\n>>> target_link_index = robot.link_names.index(\"ee_link\")\n>>> state = robot.state(q=robot.zero_q)\n>>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index).reshape((1, 1))\n>>> rotation_task = RotationTask(robot, target_link_index, target_link_pose, weight=1.0)\n>>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32)\n>>> state = robot.state(q=random_q)\n>>> robot.forward_kinematics(state)\n>>> robot.compute_motion_subspace(state)\n>>> weighted_residual = rotation_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))\n>>> weighted_jacobian = rotation_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))\n>>> weighted_residual.numpy().shape[1] == 3\nTrue\n>>> weighted_jacobian.numpy().shape[1] == 3\nTrue
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[Union[int, Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Optional[Union[wp.array, np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray, Mapping[str, float]]", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "fixed_target", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L61", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L93", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L96", + "doc": "

Update residual weights in-place. Accepts scalar or per-frame sequence.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_frames", + "signature": "set_frames(robot: Robot, frame_index: Union[int, Sequence[int]], T_world_target: Union[wp.array, np.ndarray])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L104", + "doc": "

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "frame_index", + "type": "Union[int, Sequence[int]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Union[wp.array, np.ndarray]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_target", + "signature": "set_target(T_world_target: Union[wp.array, np.ndarray])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L110", + "doc": "

Update target poses in-place. Batch size must match the original.

", + "params": [ + { + "name": "T_world_target", + "type": "Union[wp.array, np.ndarray]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L114", + "doc": "

Complete a stub with the helper's links and target buffer (not copied); named weights zero unlisted links.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L127", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L130", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L157", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.FrameVectorTask": { + "kind": "class", + "name": "FrameVectorTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L62", + "anchor": "framevectortask", + "doc": "

Drive point-pair deltas to target vectors; weight_mode \"cost\" takes sqrt, \"normalized\" divides by sqrt(rows).

Direction metrics:

Named weights pick their rows when the task is built:

", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "origin_link_indices", + "type": "Optional[Union[Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "task_link_indices", + "type": "Optional[Union[Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "targets", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray, Mapping[Any, float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "target_indices", + "type": "Optional[Sequence[int]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scale", + "type": "Union[float, Sequence[float], np.ndarray]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "huber_delta", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "huber_on_norm", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "direction_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "soft_gate_start_distance", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "soft_gate_full_distance", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "soft_gate_pair_mask", + "type": "Optional[List[bool]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "direction_metric", + "type": "Literal['length_scaled', 'cosine']", + "default": "'length_scaled'", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "weight_mode", + "type": "Literal['residual', 'cost', 'normalized']", + "default": "'residual'", + "required": false, + "doc": "" + }, + { + "name": "target_names", + "type": "Optional[Union[Sequence[str], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_links", + "type": "Optional[Union[Mapping[str, str], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "soft_gate_targets", + "type": "Optional[Union[Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L102", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L103", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "targets_wp", + "signature": "targets_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L174", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weights_wp", + "signature": "weights_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L175", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L177", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L181", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L185", + "doc": "

Attach the robot and helper links/targets, reading Warp buffers in place; named weights pick the rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L225", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L228", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_targets", + "signature": "set_targets(targets: Union[np.ndarray, wp.array], weight: Optional[np.ndarray] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L241", + "doc": "

Update targets (and optionally weights) in place; shapes must match the built buffers.

", + "params": [ + { + "name": "targets", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weight", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L256", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, col_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/frame_vector_task.py#L298", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "col_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.ComPositionTask": { + "kind": "class", + "name": "ComPositionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L19", + "anchor": "compositiontask", + "doc": "

Penalize world-frame CoM target error using mass-weighted link CoM positions and their analytic Jacobians.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"g1_description\"))\n>>> task = ComPositionTask(robot=robot, target_com_position=np.zeros(3), weight=1.0)\n>>> task.residual_dim\n3
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_com_position", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": "1.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L37", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_target", + "signature": "set_target(target: np.ndarray)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L44", + "doc": "

Update CoM targets while retaining allocated buffers and captured graphs.

Example

python
>>> task = ComPositionTask(target_com_position=np.zeros(3))\n>>> task.set_target(np.array([0.1, 0.0, 0.8]))\n>>> task.target_com_position.shape\n(3,)
", + "params": [ + { + "name": "target", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L64", + "doc": "

Update the three CoM residual weights in place.

Example

python
>>> task = ComPositionTask(target_com_position=np.zeros(3))\n>>> task.set_weight([1.0, 1.0, 0.0])\n>>> task.weight\n[1.0, 1.0, 0.0]
", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L81", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L91", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L94", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/com_position_task.py#L127", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.PositionLimit": { + "kind": "class", + "name": "PositionLimit", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L185", + "anchor": "positionlimit", + "doc": "

Penalize joint and optional floating-base translation limit violations.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"ur10_description\"))\n>>> joint_var = robot.spec.actuated_joint_limits[:, 0] - 0.1\n>>> state = robot.state(q=wp.from_numpy(joint_var[None].astype(np.float32), dtype=wp.float32))\n>>> position_limit = PositionLimit(robot=robot)\n>>> weighted_residual = position_limit.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))\n>>> np.allclose(weighted_residual.numpy()[0], np.array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1], dtype=np.float32))\nTrue\n>>> weighted_jacobian = position_limit.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))\n>>> np.allclose(np.diag(weighted_jacobian.numpy()[0]), np.array([-1.0, -1.0, -1.0, -1.0, -1.0, -1.0], dtype=np.float32))\nTrue
", + "bases": "RobotTask, ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Optional[Union[float, Sequence[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "residual_mode", + "type": "Literal['abs', 'sqrt_abs', 'exp_barrier']", + "default": "'abs'", + "required": false, + "doc": "" + }, + { + "name": "residual_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "mask", + "type": "Optional[Union[np.ndarray, Mapping[str, float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_axis", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_bounds", + "type": "Tuple[float, float]", + "default": "(0.3, 0.76)", + "required": false, + "doc": "" + }, + { + "name": "base_weight", + "type": "float", + "default": "50.0", + "required": false, + "doc": "" + }, + { + "name": "include_joints", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "joint_limits", + "type": "Optional[Union[np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "warmup_frames", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "activation", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "frame", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L244", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dof_mask", + "signature": "dof_mask: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L246", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L250", + "doc": "

Build from the robot; a base bound needs a floating base, e.g. IK with enable_T_world_base=True.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L256", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L282", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L296", + "doc": "

Update residual weights in-place. Accepts a scalar or per-joint sequence.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L304", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: wp.array = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L307", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: wp.array = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L376", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "wp.array", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, out_cost: wp.array, out_gradient: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/position_limit.py#L455", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.AxisLimitTask": { + "kind": "class", + "name": "AxisLimitTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L196", + "anchor": "axislimittask", + "doc": "

Limit the angle between a frame-local axis and a world-frame axis.

", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_axis", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 1.0)", + "required": false, + "doc": "" + }, + { + "name": "world_axis", + "type": "Tuple[float, float, float]", + "default": "(0.0, 0.0, 1.0)", + "required": false, + "doc": "" + }, + { + "name": "min_angle", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "max_angle", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L236", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: float)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L239", + "doc": "", + "params": [ + { + "name": "weight", + "type": "float", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L244", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L247", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/rotation_task.py#L280", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.VelocityLimitTask": { + "kind": "class", + "name": "VelocityLimitTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L14", + "anchor": "velocitylimittask", + "doc": "

Penalize joint velocity limit violations relative to a previous state.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state_prev = robot.state(q=robot.spec.zero_q)\n>>> state_curr = robot.state(q=robot.spec.zero_q + 0.5)\n>>> vel_task = VelocityLimitTask(robot=robot, dt=0.1, weight=1.0)\n>>> # Residual should be positive if velocity exceeds limits
", + "bases": "ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "Union[float, Context]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "prev_state_var", + "type": "Optional[Union[RobotState, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "velocity_limits", + "type": "Optional[Union[np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Optional[Union[float, Sequence[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L43", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L50", + "doc": "

Build from the robot; a previous state from the helper is its buffer, read directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L55", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L74", + "doc": "

Update residual weights in-place. Accepts a scalar or per-joint sequence.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_prev_state", + "signature": "set_prev_state(prev_state: RobotState)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L81", + "doc": "", + "params": [ + { + "name": "prev_state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L90", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L96", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, prev_state_var: Optional[Union[RobotState, Context]] = None, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L99", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state_var", + "type": "Optional[Union[RobotState, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, prev_state_var: Optional[Union[RobotState, Context]] = None, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/velocity_limit_task.py#L139", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state_var", + "type": "Optional[Union[RobotState, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.SceneCollisionTask": { + "kind": "class", + "name": "SceneCollisionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L276", + "anchor": "scenecollisiontask", + "doc": "

Penalize robot collision spheres that approach scene geometry.

", + "bases": "RobotTask, ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene", + "type": "Optional[Union[WarpScene, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "geometry", + "type": "Optional[BaseGeom]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "use_link_bounding_sphere_filter", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "Optional[float]", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "sphere_indices", + "type": "Optional[Sequence[int]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "residual_mode", + "type": "Literal['abs', 'sqrt_abs']", + "default": "'abs'", + "required": false, + "doc": "" + }, + { + "name": "residual_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "penalty", + "type": "Literal['smooth', 'plain', 'surface_distance']", + "default": "'smooth'", + "required": false, + "doc": "" + }, + { + "name": "skip_trajectory_endpoints", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "movable_only", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L379", + "doc": "

Whether the term adds cost: nonzero weight and a scene with geometry, or a helper's scene to come.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L384", + "doc": "

Build a config-time stub, with fresh query buffers.

", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_scene_indices", + "signature": "set_scene_indices(scene_indices: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L412", + "doc": "

Copy a per-query device scene mapping into stable query buffers.

", + "params": [ + { + "name": "scene_indices", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L439", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L550", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L594", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, out_cost: wp.array, out_gradient: Optional[wp.array] = None, cost_form: Literal['squared_sum', 'sum_squared'] = 'squared_sum')", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_collision_task.py#L746", + "doc": "

Compute collision cost and optional direct gradient.

Lifecycle

  1. Prepare trajectory-shaped collision buffers and kinematics.
  2. Query the scene SDF for every selected sphere.
  3. Accumulate the selected cost form and optional gradient.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "cost_form", + "type": "Literal['squared_sum', 'sum_squared']", + "default": "'squared_sum'", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.SceneDistanceTask": { + "kind": "class", + "name": "SceneDistanceTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L234", + "anchor": "scenedistancetask", + "doc": "

Minimize hand contact-point distance to a scene surface.

", + "bases": "RobotTask, ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "warp_meshes", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_contact_points", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Optional[Union[float, Sequence[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "residual_mode", + "type": "Literal['abs', 'sqrt_abs']", + "default": "'abs'", + "required": false, + "doc": "" + }, + { + "name": "residual_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "points_var_key", + "type": "Optional[Enum]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "residual_weight", + "signature": "residual_weight: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L262", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "last_query", + "signature": "last_query: Optional[tuple]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L265", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L286", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L311", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L345", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, out_cost: wp.array, out_gradient: Optional[wp.array] = None, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None, precomputed_contact_points_world: Optional[wp.array] = None, precomputed_signed_dists: Optional[wp.array] = None, precomputed_closest_points: Optional[wp.array] = None, precomputed_normals: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L416", + "doc": "

Compute cost and optional gradient.

Lifecycle

  1. Transform local contact points or reuse supplied world points.
  2. Query or reuse closest points, signed distances, and normals.
  3. Compute residuals and accumulate cost and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "precomputed_contact_points_world", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "precomputed_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "precomputed_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "precomputed_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/scene_distance_task.py#L534", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.SelfCollisionTask": { + "kind": "class", + "name": "SelfCollisionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L593", + "anchor": "selfcollisiontask", + "doc": "

Penalize the most active robot self-collision pairs.

", + "bases": "RobotTask, ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "representation", + "type": "Literal['sphere', 'capsule', 'link_sphere']", + "default": "'sphere'", + "required": false, + "doc": "" + }, + { + "name": "link_sphere_radius", + "type": "Union[float, Literal['auto']]", + "default": "'auto'", + "required": false, + "doc": "" + }, + { + "name": "link_sphere_center", + "type": "Literal['bounding', 'origin']", + "default": "'bounding'", + "required": false, + "doc": "" + }, + { + "name": "residual_mode", + "type": "Literal['abs', 'sqrt_abs']", + "default": "'abs'", + "required": false, + "doc": "" + }, + { + "name": "residual_eps", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + }, + { + "name": "filter_adjacent_links", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "max_active_pairs", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L739", + "doc": "

Build a config-time stub's collision pairs with the configured settings.

", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L970", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L973", + "doc": "

Compute self-collision residuals.

Lifecycle

  1. Prepare world collision geometry.
  2. Select the most active broad-phase link pairs.
  3. Evaluate the closest sphere or capsule pair for each slot.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L1052", + "doc": "

Compute the analytic self-collision Jacobian.

Lifecycle

  1. Prepare kinematics and motion subspaces.
  2. Reuse the residual's active-pair selection when available.
  3. Differentiate the selected sphere or capsule distances.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, out_cost: wp.array, out_gradient: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/self_collision_task.py#L1154", + "doc": "

Compute fused link-sphere cost and optional gradient.

Lifecycle

  1. Prepare link spheres and motion subspaces.
  2. Allocate a scratch gradient for cost-only evaluations.
  3. Accumulate every active link-pair contribution.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.SmoothnessTask": { + "kind": "class", + "name": "SmoothnessTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L22", + "anchor": "smoothnesstask", + "doc": "

Penalize change from a previous joint and optional base state.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state_prev = robot.state(q=robot.spec.zero_q)\n>>> state_curr = robot.state(q=robot.spec.zero_q + 0.1)\n>>> smooth_task = SmoothnessTask(robot=robot, weight=0.5)\n>>> values = VarValues({VarKey.ROBOT: state_curr})\n>>> cost = wp.zeros(1, device=state_curr.q.device)\n>>> gradient = wp.zeros((1, state_curr.tangent_dim), device=state_curr.q.device)\n>>> smooth_task.compute_weighted_cost_and_gradient(values, state_prev, out_cost=cost, out_gradient=gradient)\n>>> np.allclose(gradient.numpy(), 0.025)\nTrue
", + "bases": "ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "prev_var", + "type": "Optional[Union[RobotState, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "base_weight", + "type": "Optional[Union[float, Sequence[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "warmup_frames", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "frame", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L60", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L67", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L72", + "doc": "

Build from the robot; a previous state from the helper is its buffer, read directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L81", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L102", + "doc": "

Update joint-block residual weights in-place. Base-block weights are preserved.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_prev_state", + "signature": "set_prev_state(prev_state: RobotState)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L111", + "doc": "", + "params": [ + { + "name": "prev_state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L122", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L131", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, prev_var: Optional[RobotState] = None, *, out_cost: wp.array, out_gradient: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L134", + "doc": "

Accumulate half the squared residual norm and its direct gradient.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_var", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, prev_var: Optional[RobotState] = None, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L171", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_var", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, prev_var: Optional[RobotState] = None, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/smoothness_task.py#L234", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_var", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.ConfigurationTask": { + "kind": "class", + "name": "ConfigurationTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L25", + "anchor": "configurationtask", + "doc": "

Bias joints/base toward rest; `rest_q=\"midrange\"` uses joint-limit midpoints as the rest state.

Supported variables:

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> rest_q = robot.spec.midrange_q\n>>> configuration_task = ConfigurationTask(robot=robot, rest_q=rest_q, weight=0.1)\n>>> q_init = wp.from_numpy(rest_q + 0.1, dtype=wp.float32)\n>>> state = robot.state(q=q_init)\n>>> residual = configuration_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))\n>>> # Residual should be ~0.1 * weight
", + "bases": "ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "rest_q", + "type": "Optional[Union[np.ndarray, wp.array, Literal['midrange'], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_base_rest", + "type": "Optional[Union[wp.array, np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "base_weight", + "type": "Optional[Union[float, Sequence[float], np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "include_joints", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "var_key", + "type": "Enum", + "default": "VarKey.ROBOT", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "mask", + "type": "Optional[Union[np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "rest_q_arg", + "signature": "rest_q_arg: Optional[Union[np.ndarray, wp.array, Literal['midrange'], Context]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L61", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "T_world_base_rest", + "signature": "T_world_base_rest: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L67", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L68", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L75", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L82", + "doc": "

Build from the robot; Warp rest values from the helper are its buffers, read directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Optional[Robot] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L96", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L125", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L145", + "doc": "

Update joint-block residual weights in-place. Base-block weights are preserved.

", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_target", + "signature": "set_target(rest_q: Optional[Union[wp.array, np.ndarray]] = None, T_world_base_rest: Optional[Union[wp.array, np.ndarray]] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L153", + "doc": "

Update the rest references; a config-time stub keeps NumPy references until its buffers are built.

", + "params": [ + { + "name": "rest_q", + "type": "Optional[Union[wp.array, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_base_rest", + "type": "Optional[Union[wp.array, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L178", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L189", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/configuration_task.py#L252", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.ManipulabilityTask": { + "kind": "class", + "name": "ManipulabilityTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L35", + "anchor": "manipulabilitytask", + "doc": "

Maximize Yoshikawa sqrt(det(J @ J.T)) at frame_index, using the end-effector translational Jacobian.

Analytic derivative columns:

Example

python
>>> import numpy as np\n>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> from robokit.opt.var_values import VarKey, VarValues\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"ur10_description\"))\n>>> frame_index = robot.spec.link_names.index(\"ee_link\")\n>>> random_q = wp.from_numpy(\n...     np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32\n... )\n>>> state = robot.state(q=random_q)\n>>> task = ManipulabilityTask(robot, frame_index, weight=0.01)\n>>> task.compute_weighted_residual(VarValues({VarKey.ROBOT: state})).numpy().shape[1] == 1\nTrue\n>>> task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state})).numpy().shape[1] == 1\nTrue
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[Union[int, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "0.01", + "required": false, + "doc": "" + }, + { + "name": "epsilon", + "type": "float", + "default": "1e-06", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L69", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weight_wp", + "signature": "weight_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(weight: float)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L75", + "doc": "

Update the manipulability weight in-place (live-tunable, CUDA-graph safe).

", + "params": [ + { + "name": "weight", + "type": "float", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L87", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L90", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/manipulability_task.py#L123", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.ForceClosureTask": { + "kind": "class", + "name": "ForceClosureTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L219", + "anchor": "forceclosuretask", + "doc": "

Force closure task: contacts from var.contact_point_centers_world, normals from the SDF of warp_meshes.

", + "bases": "RobotTask, ResidualTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_contact_points", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "warp_meshes", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Optional[Union[float, Sequence[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_force_weights", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "points_var_key", + "type": "Optional[Enum]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "distance_task", + "type": "Optional[SceneDistanceTask]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_cached_batch_size", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "_residual_weight_np", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "residual_weight", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_force_weights_wp", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_signed_dists", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_sdf_query_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_sdf_normals", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_sdf_closest_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_normal_jacobians", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_contact_points_world", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "_direct_residual_buf", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L20", + "doc": "

Swap placeholders, then take the robot of the state this task reads.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L223", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_contact_points", + "signature": "num_contact_points: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L224", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "warp_meshes", + "signature": "warp_meshes: Optional[WarpScene] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L225", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weight", + "signature": "weight: Optional[Union[float, Sequence[float]]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L226", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_force_weights", + "signature": "contact_force_weights: Optional[Sequence[float]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L227", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "local_contact_points", + "signature": "local_contact_points: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L228", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_points_link_indices", + "signature": "contact_points_link_indices: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L229", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "points_var_key", + "signature": "points_var_key: Optional[Enum] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L230", + "doc": "

Read the contact points from this variable instead of the stored array.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "distance_task", + "signature": "distance_task: Optional[SceneDistanceTask] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L232", + "doc": "

A SceneDistanceTask on the same contacts, listed before this term: its scene query serves both.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "residual_weight", + "signature": "residual_weight: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L238", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_force_weights_wp", + "signature": "contact_force_weights_wp: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L239", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L249", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L271", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L303", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L366", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, out_cost: wp.array, out_gradient: Optional[wp.array] = None, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L427", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, local_contact_points: Optional[wp.array] = None, contact_points_link_indices: Optional[wp.array] = None, scene_offsets: Optional[wp.array] = None, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/force_closure_task.py#L501", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_points_link_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_offsets", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.InteractionMeshTask": { + "kind": "class", + "name": "InteractionMeshTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L162", + "anchor": "interactionmeshtask", + "doc": "

Preserve interaction-mesh Laplacian coordinates from human to robot.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description\n>>> import numpy as np\n>>> from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame\n>>> from robokit.robo.robot import Robot\n>>> robot = Robot.load(load_robot_description(\"panda_description\"))\n>>> state = robot.state(q=robot.zero_q)\n>>> robot.forward_kinematics(state)\n>>> links = [robot.link_names.index(n) for n in robot.link_names[1:5]]\n>>> P = state.T_world_link.numpy()[0][links, :3]\n>>> pts = np.vstack([P, P.mean(0) + np.array([[0.2, 0, 0], [0, 0.2, 0], [0, 0, 0.2]], np.float32)])\n>>> task = InteractionMeshTask(robot, np.array(links, dtype=np.int32))\n>>> T_world_object = np.array([0, 0, 0, 1, 0, 0, 0], np.float32)\n>>> task.set_frame(*build_interaction_mesh_frame(P, pts[len(P):], T_world_object))\n>>> task.residual_dim\n21
", + "bases": "RobotTask, ResidualTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "

Robot model. May be assigned later by the solver.

" + }, + { + "name": "robot_link_indices", + "type": "Optional[Union[np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "

Robot link for each dynamic vertex.

" + }, + { + "name": "weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "

Residual multiplier.

" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L196", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L206", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L214", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L217", + "doc": "

Build from the robot and the helper's links, the first vertices of every frame.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L223", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_frame", + "signature": "set_frame(neighbor_offsets: np.ndarray, neighbor_indices: np.ndarray, neighbor_weights: np.ndarray, reference_vertex_positions: np.ndarray, target_laplacian: np.ndarray)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L228", + "doc": "

Set adjacency, reference vertices, and target Laplacian for one frame.

", + "params": [ + { + "name": "neighbor_offsets", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "neighbor_indices", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "neighbor_weights", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "reference_vertex_positions", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "target_laplacian", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L262", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L274", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, out_jacobian: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/dense/interaction_mesh_task.py#L306", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.CompositeTask": { + "kind": "class", + "name": "CompositeTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L36", + "anchor": "compositetask", + "doc": "

Concatenate weighted residuals, with optional threshold-based selection scoring.

Modes:

Selection sequence:

  1. Require each constraint's absolute residuals to satisfy scalar, per-row or repeating bounds.
  2. Return score norm for valid rows and infinity otherwise, preserving ordinary squared costs on valid rows.
  3. Count valid rows per num_candidates group in valid_count; use stable selection to preserve ties.

Example

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> task = CompositeTask([ConfigurationTask()], thresholds=[None])\n>>> task.residual_dim\n1
", + "bases": "ResidualTask", + "params": [ + { + "name": "tasks", + "type": "Sequence[ResidualTask]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "thresholds", + "type": "Optional[Sequence[Optional[Union[float, Sequence[float]]]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_candidates", + "type": "Union[int, Context]", + "default": "1", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "valid_count", + "signature": "valid_count: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L73", + "doc": "

Build a copy of each unbuilt child, dropping one the context empties, and take the candidate count.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L91", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L94", + "doc": "

Prepare every child task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, out_residual: Optional[wp.array] = None, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/composite_task.py#L103", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectoryPositionTask": { + "kind": "class", + "name": "TrajectoryPositionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L22", + "anchor": "trajectorypositiontask", + "doc": "

Align robot-link positions to optionally indexed world-frame points.

", + "bases": "RobotTask, SparseTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_index", + "type": "Optional[Union[int, Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_positions", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray, Mapping[str, float]]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "target_point_indices", + "type": "Optional[Union[Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "weights", + "signature": "weights: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L63", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L67", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_positions", + "signature": "target_positions: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L68", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_point_indices", + "signature": "target_point_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L69", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "frame_indices", + "signature": "frame_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L70", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ancestor_dof_indices", + "signature": "ancestor_dof_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dof_offsets", + "signature": "dof_offsets: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "nnz_starts", + "signature": "nnz_starts: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_frames", + "signature": "num_frames: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L77", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L80", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L84", + "doc": "

Fill a template with helper links and targets, reading a Warp target directly; unlisted links weigh zero.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L102", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L167", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L173", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L213", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L262", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectoryContactTask": { + "kind": "class", + "name": "TrajectoryContactTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L720", + "anchor": "trajectorycontacttask", + "doc": "

Keep selected link points within a deadband of trajectory contacts: points, or segments along contact_axes.

", + "bases": "RobotTask, SparseTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "

Robot with FK support.

" + }, + { + "name": "contact_points", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "

Shared [T, C, 3] or batched [B, T, C, 3] world targets.

" + }, + { + "name": "contact_link_indices", + "type": "Optional[Union[np.ndarray, Sequence[int], Context]]", + "default": "None", + "required": false, + "doc": "

Padded [T, C] robot link indices.

" + }, + { + "name": "contact_mask", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "

Shared [T, C] or batched [B, T, C] validity mask.

" + }, + { + "name": "contact_margin", + "type": "float", + "default": "0.01", + "required": false, + "doc": "

Deadband margin; no penalty when distance is within this threshold.

" + }, + { + "name": "weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "

Residual weight.

" + }, + { + "name": "local_contact_points", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "

Optional link-local points. Defaults to each link origin.

" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L798", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_points_wp", + "signature": "contact_points_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L799", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "local_contact_points_wp", + "signature": "local_contact_points_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L800", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_axes_wp", + "signature": "contact_axes_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L801", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_link_indices_wp", + "signature": "contact_link_indices_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L802", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "contact_mask_wp", + "signature": "contact_mask_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L803", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_ancestor_dofs_wp", + "signature": "link_ancestor_dofs_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L804", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_num_ancestor_dofs_wp", + "signature": "link_num_ancestor_dofs_wp: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L805", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_ancestor_dofs", + "signature": "max_ancestor_dofs: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L806", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L809", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L812", + "doc": "

Build from the helper's contact links; its Warp contact buffers are read directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_contacts", + "signature": "set_contacts(contact_points: wp.array, contact_mask: wp.array, local_contact_points: Optional[wp.array] = None, contact_axes: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L860", + "doc": "

Copy batched runtime contact data into graph-stable device buffers; omitted points and axes are zero. A nonzero axis makes its contact the segment from the point along it: the link point may sit anywhere on it, e.g. a straight move at its own pace.

", + "params": [ + { + "name": "contact_points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "contact_mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "contact_axes", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L911", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L914", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L956", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_position_task.py#L1008", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectoryCollisionTask": { + "kind": "class", + "name": "TrajectoryCollisionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L848", + "anchor": "trajectorycollisiontask", + "doc": "

Evaluate trajectory-sphere costs against geometry, else every scene geometry; one row block per geometry.

Swept-segment evaluation:

  1. Linearly interpolate sphere centers at sweep_steps samples between waypoints.
  2. Differentiate the largest residual through both endpoints.
  3. Include the final segment even if free_goal_frame disables the standalone goal waypoint.
", + "bases": "RobotTask, SparseTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene", + "type": "Optional[Union[WarpScene, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": "20.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "Union[float, Sequence[float], np.ndarray]", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "max_dist", + "type": "float", + "default": "1000000.0", + "required": false, + "doc": "" + }, + { + "name": "sphere_indices", + "type": "Optional[Union[Sequence[int], np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "active_actuated_indices", + "type": "Optional[Union[Sequence[int], np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "sweep_steps", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "penalty", + "type": "Literal['smooth', 'plain', 'surface_distance']", + "default": "'plain'", + "required": false, + "doc": "" + }, + { + "name": "geometry", + "type": "Optional[BaseGeom]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "frame_sphere_mask", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "speed_dt", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "free_goal_frame", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + }, + { + "name": "goal_radius", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "goal_distance", + "type": "Optional[Union[wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "robot", + "signature": "robot: Optional[Robot]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L16", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L980", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "frame_sphere_mask", + "signature": "frame_sphere_mask: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L983", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L990", + "doc": "

Whether the term adds cost: nonzero weight, a scene, and at least one selected sphere.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L995", + "doc": "

Build for the robot and horizon in var_values, sharing a Warp frame_sphere_mask, unless inactive.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1032", + "doc": "

Build stable scene/sparsity parameters; query caches grow on first use.

Lifecycle

  1. Upload selected sphere and actuated-column indices.
  2. Build the actuated-column joint CSR mapping.
  3. Allocate scene/margin arrays and invalidate lazy query caches.
", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "accumulate_max_penetration", + "signature": "accumulate_max_penetration(out: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1087", + "doc": "

Max-accumulate penetration from the most recent Jacobian query cache, over every geometry.

Runs over the batch the cache holds: out may be longer (a score task sized for every draw).

", + "params": [ + { + "name": "out", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_frame_sphere_mask", + "signature": "set_frame_sphere_mask(frame_sphere_mask: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1114", + "doc": "

Set the active (batch, frame, selected sphere) collision rows.

", + "params": [ + { + "name": "frame_sphere_mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1146", + "doc": "

One block of rows per geometry; an empty scene keeps one block of zeros.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_scene_indices", + "signature": "set_scene_indices(scene_indices: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1218", + "doc": "

Set scenes shaped (batch,) or per-frame scenes shaped (batch, frames).

", + "params": [ + { + "name": "scene_indices", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost_and_gradient", + "signature": "compute_weighted_cost_and_gradient(var_values: VarValues, *args: object, out_cost: wp.array, out_gradient: Optional[wp.array] = None, **kwargs: object)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1231", + "doc": "

Compute sparse cost and optional gradient with one scene query.

Lifecycle

  1. Use the base cost-only path when no gradient is requested.
  2. Compute Jacobian values and cache their scene query.
  3. Rebuild residuals from the cache and reduce cost and gradient.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_gradient", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1283", + "doc": "

Fill residuals and sparse values from one shared scene query.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1337", + "doc": "

Compute trajectory collision residuals.

Lifecycle

  1. Prepare forward kinematics and stable runtime buffers.
  2. Run each geometry's primitive, mesh, volume, or hybrid query kernel.
  3. Evaluate every frame and selected sphere.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1405", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, query_penetration: bool = True, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_collision_task.py#L1503", + "doc": "

Compute sparse trajectory collision Jacobian values.

Lifecycle

  1. Prepare kinematics, motion subspaces, and runtime-sized caches.
  2. Query each geometry and cache its sphere centers and SDF normals.
  3. Assemble active joint and optional floating-base columns.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "query_penetration", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectorySelfCollisionTask": { + "kind": "class", + "name": "TrajectorySelfCollisionTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L22", + "anchor": "trajectoryselfcollisiontask", + "doc": "

Penalize self-collisions between robot collision spheres at all frames.

", + "bases": "RobotTask, SparseTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "penalty", + "type": "Literal['squared', 'max_linear']", + "default": "'squared'", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L69", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sphere_mask", + "signature": "sphere_mask: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L71", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pair_mask", + "signature": "pair_mask: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L72", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L74", + "doc": "

Build from the robot and horizon of the trajectory var_values holds.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L88", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L102", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L137", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L215", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_self_collision_task.py#L265", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectorySmoothnessTask": { + "kind": "class", + "name": "TrajectorySmoothnessTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L58", + "anchor": "trajectorysmoothnesstask", + "doc": "

Penalize joint differences and optional floating-base motion.

Configuration options:

", + "bases": "SparseTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "order", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "Union[float, Context]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "reference_q", + "type": "Optional[Union[np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_weight", + "type": "Optional[Union[float, Sequence[float], np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "smooth_boundary", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "virtual_hold_frames", + "type": "Union[int, Context]", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "history", + "type": "Optional[Union[Tuple[wp.array, wp.array], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L100", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "residual_weight", + "signature": "residual_weight: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_residual_weight", + "signature": "base_residual_weight: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L102", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "boundary_weight", + "signature": "boundary_weight: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L103", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "coefficients", + "signature": "coefficients: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L104", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "q_history", + "signature": "q_history: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L105", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "history_valid", + "signature": "history_valid: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L106", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "reference_q", + "signature": "reference_q: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L107", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_paths", + "signature": "compute_paths(q: np.ndarray, costs: np.ndarray, times: np.ndarray, weight: float = 0.08, count: int = 1) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L123", + "doc": "

Return [K,T,J] paths, preserving alternative initial pose hypotheses; each initial hypothesis retains a distinct branch, and the output contains at most count paths; periodic joints use angular distances and return continuous equivalent angles within supplied limits; if no continuous lift fits the limits, the original bounded path is retained.

python
>>> q = np.array([[[0.], [3.]], [[3.], [0.1]], [[0.2], [3.]]])\n>>> TrajectorySmoothnessTask().compute_paths(q, np.array([[0., .1], [.1, 0.], [0., .1]]), np.arange(3.)).ravel().tolist()\n[0.0, 0.1, 0.2]
", + "params": [ + { + "name": "q", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "times", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "0.08", + "required": false, + "doc": "" + }, + { + "name": "count", + "type": "int", + "default": "1", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_offset_candidates", + "signature": "compute_offset_candidates(q: np.ndarray, samples: int = 16) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L184", + "doc": "

Sample constant joint shifts that preserve every frame's joint limits; full-turn joints need at most one revolution, and extra cubic samples retain small shifts.

", + "params": [ + { + "name": "q", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "samples", + "type": "int", + "default": "16", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L207", + "doc": "

Build finite-difference weights and history buffers.

Lifecycle

  1. Build joint and optional base weights.
  2. Build the requested difference stencil.
  3. Allocate history and reference trajectories.
", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L275", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L278", + "doc": "

Build from the robot and horizon of the trajectory var_values holds, and the helper's values.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_history", + "signature": "set_history(q_history: Optional[wp.array], num_candidates: int, history_valid: bool)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L289", + "doc": "

Set the fixed executed prefix. No-op at order=1, which never reads it.

", + "params": [ + { + "name": "q_history", + "type": "Optional[wp.array]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "history_valid", + "type": "bool", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L311", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L320", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L380", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_smoothness_task.py#L431", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectoryLimitTask": { + "kind": "class", + "name": "TrajectoryLimitTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L29", + "anchor": "trajectorylimittask", + "doc": "

Penalize bound violations with `weight * max(lower - derivative, derivative - upper, 0)`.

Derivative orders:

Difference schemes:

Broadcast layouts:

Time scaling:

Unbuilt templates (resolve):

Example

python
>>> task = TrajectoryLimitTask(robot, 33, order=3, lower=-500.0, upper=500.0)  # doctest: +SKIP
", + "bases": "SparseTask, GradientTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "num_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "order", + "type": "Union[int, Sequence[int]]", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "lower", + "type": "Optional[Union[float, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "upper", + "type": "Optional[Union[float, np.ndarray, Tuple[Any, ...], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "Union[float, Sequence[float], np.ndarray]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "Union[float, wp.array, Context]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "stencil", + "type": "Literal['central', 'forward']", + "default": "'central'", + "required": false, + "doc": "" + }, + { + "name": "dt_power", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "activation", + "type": "Sequence[float]", + "default": "(0.0, 0.0, 0.0, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "normalize", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L122", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "timing", + "signature": "timing: Optional[Tuple[wp.array, int, float]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L93", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L129", + "doc": "

Build a template's robot, horizon, step and bounds from the trajectory var_values holds.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "fuse", + "signature": "fuse(tasks: Sequence[Any], dt: Any, keep: Sequence[Any] = ()) -> List[Any]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L173", + "doc": "

Fuse central bounds at dt and all-frame abs position limits into one launch, skipping tasks in keep.

", + "params": [ + { + "name": "tasks", + "type": "Sequence[Any]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "dt", + "type": "Any", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "keep", + "type": "Sequence[Any]", + "default": "()", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "List[Any]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L231", + "doc": "", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_dt", + "signature": "set_dt(dt: Union[float, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L239", + "doc": "

Set a positive scalar time step or a float32 Warp vector with one entry per plan.

", + "params": [ + { + "name": "dt", + "type": "Union[float, wp.array]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L261", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L265", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L305", + "doc": "

Write the residual and, when asked, the Jacobian values in one launch.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L347", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_limit_task.py#L393", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + }, + "robokit.terms.TrajectoryRetargetingTask": { + "kind": "class", + "name": "TrajectoryRetargetingTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L22", + "anchor": "trajectoryretargetingtask", + "doc": "

Pairwise position and direction residuals for trajectory retargeting.

", + "bases": "RobotTask, SparseTask", + "params": [ + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_keypoints", + "type": "Optional[Union[np.ndarray, wp.array, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "robot_link_indices", + "type": "Optional[Union[List[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_joint_indices", + "type": "Optional[Union[List[int], Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "pair_indices", + "type": "Optional[Union[Sequence[Sequence[int]], np.ndarray, Context]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "position_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "angle_weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "target_scale", + "type": "Union[float, wp.array, Context]", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "name", + "type": "str", + "default": "''", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "var_key", + "signature": "var_key: Enum", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L17", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L28", + "doc": "

Prepare kinematics and geometry required by the task.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L104", + "doc": "

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "SparseTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L373", + "doc": "

Accumulate normal equations directly from existing sparse rows.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "use_mask", + "signature": "use_mask: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L322", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "SparseTask", + "name": "frame_mask", + "signature": "frame_mask: Optional[wp.array] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L323", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "fill_residual_and_jacobian", + "signature": "fill_residual_and_jacobian(var_values: VarValues, out_residual: wp.array, row_offset: int, out_jacobian: Optional[wp.array] = None, nnz_offset: int = 0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L402", + "doc": "

Write residuals and optional sparse Jacobian values into shared buffers.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared residual buffer.

" + }, + { + "name": "row_offset", + "type": "int", + "default": null, + "required": true, + "doc": "

First residual row for this task.

" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared sparse-value buffer.

" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "

First sparse entry for this task.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SparseTask", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: Union[np.ndarray, wp.array])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L448", + "doc": "

Set the valid trajectory length for each batch element.

", + "params": [ + { + "name": "lengths", + "type": "Union[np.ndarray, wp.array]", + "default": null, + "required": true, + "doc": "

Per-batch valid frame counts.

" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "RobotTask", + "name": "precompute_collision_geometry", + "signature": "precompute_collision_geometry: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L18", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "RobotTask", + "name": "set_robot", + "signature": "set_robot(robot: Robot)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/robot_task.py#L25", + "doc": "", + "params": [ + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "device", + "signature": "device: Optional[wp_device_type]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L61", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_keypoints", + "signature": "target_keypoints: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L62", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_scales", + "signature": "target_scales: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L63", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "robot_link_indices", + "signature": "robot_link_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L64", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_joint_indices", + "signature": "target_joint_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L65", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pair_rows", + "signature": "pair_rows: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L66", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pair_cols", + "signature": "pair_cols: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L67", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_ancestor_masks", + "signature": "link_ancestor_masks: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L73", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_unique_dofs", + "signature": "num_unique_dofs: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L74", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "all_ancestor_dof_indices", + "signature": "all_ancestor_dof_indices: Optional[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L77", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_frames", + "signature": "num_frames: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L79", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L82", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L85", + "doc": "

Build from the helper's points, links, pairs and scales; Warp points and scales are read directly.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L102", + "doc": "

Build target, pair, and sparse ancestor buffers.

Lifecycle

  1. Upload targets and pair indices.
  2. Build selected-link ancestor masks.
  3. Collect the active actuated columns.
", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L172", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: VarValues, *args: object, out_residual: Optional[wp.array] = None, row_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L184", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_residual", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_sparse_jacobian_pattern", + "signature": "compute_sparse_jacobian_pattern(var_values: VarValues, *args: object, offset: int = 0, out_row_indices: Optional[wp.array] = None, out_col_indices: Optional[wp.array] = None, nnz_offset: int = 0, **kwargs: object) -> SparsityPattern", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L231", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "out_row_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_col_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SparsityPattern", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_sparse_jacobian_values", + "signature": "compute_weighted_sparse_jacobian_values(var_values: VarValues, *args: object, out_jacobian_values: Optional[wp.array] = None, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/sparse/trajectory_retargeting_task.py#L282", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "object", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian_values", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "nnz_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "object", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-ik", + "nav": "Inverse Kinematics", + "h": "Inverse Kinematics", + "body": "
", + "sub": "API", + "api": { + "robokit.helpers.ik.IKSolver": { + "kind": "class", + "name": "IKSolver", + "module": "robokit.helpers.ik", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L98", + "anchor": "iksolver", + "doc": "

IK solver accepting one target link or a sequence, using names or indices.

", + "params": [ + { + "name": "config", + "type": "IKSolverConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "target_links", + "type": "Union[str, int, Sequence[Union[str, int]]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "robot", + "signature": "robot: Robot", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L110", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_link_indices", + "signature": "target_link_indices: List[int]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L120", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_targets", + "signature": "num_targets: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L172", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "", + "name": "num_solutions", + "signature": "num_solutions: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L176", + "doc": "

Number of solutions returned per target instance.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_weight", + "signature": "set_weight(name: str, value: Union[float, Sequence[float]])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L180", + "doc": "

Update a term's weight in-place: scalar for uniform, per-link sequence for terms on the target links.

", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "value", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_active_joint_mask", + "signature": "set_active_joint_mask(joint_mask: Sequence[float])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L200", + "doc": "

Set which actuated joints are active (1.0) or locked (0.0).

", + "params": [ + { + "name": "joint_mask", + "type": "Sequence[float]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_active_base_mask", + "signature": "set_active_base_mask(base_mask: Sequence[float])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L207", + "doc": "

Set active (1.0)/locked (0.0) base DOFs [x,y,z,roll,pitch,yaw]; needs enable_T_world_base=True.

", + "params": [ + { + "name": "base_mask", + "type": "Sequence[float]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L218", + "doc": "

Eagerly build the multi-candidate solver for a given batch size.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(T_world_target: wp.array, prev_state: Optional[RobotState] = None, init_state: Optional[RobotState] = None, rest_state: Optional[RobotState] = None, out_state: Optional[RobotState] = None, init_sample_range: Optional[float] = None, base_init_sample_range: Optional[Sequence[float]] = None, scene_indices: Optional[wp.array] = None) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L223", + "doc": "

Solve IK and return instance-major final-stage solutions shaped (batch * num_solutions, dofs); solver.rank_final=True sorts them best first within each instance.

", + "params": [ + { + "name": "T_world_target", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "rest_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_sample_range", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_init_sample_range", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_torch", + "signature": "solve_torch(T_world_target: torch.Tensor, prev_state: Optional[RobotState] = None, init_q: Optional[torch.Tensor] = None, init_T_world_base: Optional[torch.Tensor] = None, rest_q: Optional[torch.Tensor] = None, rest_T_world_base: Optional[torch.Tensor] = None, init_sample_range: Optional[float] = None, base_init_sample_range: Optional[Sequence[float]] = None) -> IKResultTorch", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L306", + "doc": "", + "params": [ + { + "name": "T_world_target", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_q", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_T_world_base", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "rest_q", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "rest_T_world_base", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_sample_range", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_init_sample_range", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "IKResultTorch", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_numpy", + "signature": "solve_numpy(T_world_target: np.ndarray, prev_state: Optional[RobotState] = None, init_state: Optional[RobotState] = None, rest_state: Optional[RobotState] = None, out_state: Optional[RobotState] = None, init_sample_range: Optional[float] = None, base_init_sample_range: Optional[Sequence[float]] = None) -> RobotState", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L349", + "doc": "", + "params": [ + { + "name": "T_world_target", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "rest_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "out_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_sample_range", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "base_init_sample_range", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "RobotState", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_costs", + "signature": "compute_costs(state: RobotState, T_world_target: wp.array, prev_state: Optional[RobotState] = None, scene_indices: Optional[wp.array] = None) -> Dict[str, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L373", + "doc": "", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_target", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "prev_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Dict[str, wp.array]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_metrics", + "signature": "compute_metrics(state: RobotState, T_world_target: wp.array, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, out: Optional[IKMetrics] = None) -> IKMetrics", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L387", + "doc": "

Task-space accuracy of state against T_world_target, independent of term weights.

", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

Robot state to score; any solver's output works, not just this one's.

" + }, + { + "name": "T_world_target", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

[batch, num_targets] wp_vec7 targets on this solver's device.

" + }, + { + "name": "position_threshold_m", + "type": "float", + "default": "0.005", + "required": false, + "doc": "

Success threshold on translation error.

" + }, + { + "name": "orientation_threshold_rad", + "type": "float", + "default": "0.05", + "required": false, + "doc": "

Success threshold on rotation error.

" + }, + { + "name": "out", + "type": "Optional[IKMetrics]", + "default": "None", + "required": false, + "doc": "

Buffers to write in place, from an earlier call; allocated when omitted.

" + } + ], + "returns": { + "type": "IKMetrics", + "doc": "

Errors per target and per-batch success.

" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_metrics_numpy", + "signature": "compute_metrics_numpy(state: RobotState, T_world_target: np.ndarray, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05) -> IKMetrics", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L439", + "doc": "

compute_metrics for numpy targets shaped (7,), (batch, 7) or (batch, num_targets, 7).

", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

Robot state to score; any solver's output works, not just this one's.

" + }, + { + "name": "T_world_target", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "

Targets as [x, y, z, q_w, q_x, q_y, q_z].

" + }, + { + "name": "position_threshold_m", + "type": "float", + "default": "0.005", + "required": false, + "doc": "

Success threshold on translation error.

" + }, + { + "name": "orientation_threshold_rad", + "type": "float", + "default": "0.05", + "required": false, + "doc": "

Success threshold on rotation error.

" + } + ], + "returns": { + "type": "IKMetrics", + "doc": "

Errors per target and per-batch success, as numpy arrays.

" + } + } + ] + }, + "robokit.helpers.ik.IKSolverConfig": { + "kind": "class", + "name": "IKSolverConfig", + "module": "robokit.helpers.ik", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L48", + "anchor": "iksolverconfig", + "doc": "

Robot-free IK configuration; build it with IKSolver(config, robot, target_links).

", + "params": [ + { + "name": "terms", + "type": "List[ResidualTask]", + "default": "list()", + "required": false, + "doc": "" + }, + { + "name": "score_terms", + "type": "List[ResidualTask]", + "default": "list()", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "PopulationSolverConfig", + "default": "_default_ik_solver_config()", + "required": false, + "doc": "" + }, + { + "name": "sampler", + "type": "RobertsSamplerConfig", + "default": "(lambda: RobertsSamplerConfig(keep_first=True))()", + "required": false, + "doc": "" + }, + { + "name": "base_init_sample_range", + "type": "Tuple[float, float, float]", + "default": "(0.1, 0.1, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "enable_T_world_base", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "base_active_mask", + "type": "Sequence[float]", + "default": "(1.0, 1.0, 1.0, 1.0, 1.0, 1.0)", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[ResidualTask] = field(default_factory=list)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L52", + "doc": "

Optimization task templates; IKContext lists their inputs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "score_terms", + "signature": "score_terms: List[ResidualTask] = field(default_factory=list)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L54", + "doc": "

Task templates that rank candidates at each select without changing optimization; empty ranks by cost.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: PopulationSolverConfig = field(default_factory=_default_ik_solver_config)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L56", + "doc": "

Candidate schedule and LM settings; the last segment's width is the solutions returned per target.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sampler", + "signature": "sampler: RobertsSamplerConfig = field(default_factory=lambda: RobertsSamplerConfig(keep_first=True))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L58", + "doc": "

Joint noise of the initial candidates; scale is a fraction of each joint's range around init_state.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_init_sample_range", + "signature": "base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L60", + "doc": "

Per-axis base translation noise (m) around init_state, for a floating base.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "enable_T_world_base", + "signature": "enable_T_world_base: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L62", + "doc": "

Optimize the six floating-base DOFs along with the joints.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_active_mask", + "signature": "base_active_mask: Sequence[float] = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L64", + "doc": "

Active (1.0) or locked (0.0) base DOFs [x, y, z, roll, pitch, yaw]; locking needs enable_T_world_base.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: ResidualTask, *, name: Optional[str] = None) -> IKSolverConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L73", + "doc": "", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "IKSolverConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "add_score", + "signature": "add_score(term: ResidualTask, *, name: Optional[str] = None) -> IKSolverConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L78", + "doc": "", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "IKSolverConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "task", + "signature": "task(name: str) -> ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/config.py#L83", + "doc": "

Return the term added under name, so a caller can complete a preset stub.

", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ResidualTask", + "doc": "" + } + } + ] + }, + "robokit.helpers.ik.IKResultTorch": { + "kind": "class", + "name": "IKResultTorch", + "module": "robokit.helpers.ik", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L93", + "anchor": "ikresulttorch", + "doc": "", + "bases": "NamedTuple", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "q", + "signature": "q: torch.Tensor", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L94", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "T_world_base", + "signature": "T_world_base: Optional[torch.Tensor] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/ik/ik.py#L95", + "doc": "", + "params": [], + "returns": null + } + ] + } + } + }, + { + "id": "api-motion-plan", + "nav": "Motion Planning", + "h": "Motion Planning", + "body": "

Objective configuration

GradientTrajectoryOptimizerConfig and MppiTrajectoryOptimizerConfig accept terms, a list of ResidualTask templates. Objective weights and cost options are task constructor parameters. Use config.task(name) to retrieve a named task; for TrajectoryTask, configure its dense_task. deepcopy(config) creates an independent preset whose task attributes can be assigned directly. Config-level cost-weight arguments have been removed. IK objectives are supplied through MotionPlannerConfig.goal_ik.

", + "sub": "API", + "api": { + "robokit.helpers.motion_plan.MotionPlanner": { + "kind": "class", + "name": "MotionPlanner", + "module": "robokit.helpers.motion_plan", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L350", + "anchor": "motionplanner", + "doc": "

Batched motion planning with goal IK, trajectory optimization stages, and retry.

Lifecycle

  1. __init__ copies configuration and constructs goal IK, the optimizer stages, and their retiming.
  2. warmup(batch_size) fixes the batch size and allocates all batch-shaped state.
  3. solve_offline(...), which solve_offline_numpy and solve_offline_torch wrap, places the waypoints, builds candidates, solves and retries trajectories, then retimes them with the last stage's retime and computes motion_time.
  4. solve_online(...) runs a fresh gradient solve with executed-history smoothing, or updates the retained MPPI action distribution.
", + "params": [ + { + "name": "config", + "type": "MotionPlannerConfig", + "default": null, + "required": true, + "doc": "

Planner configuration.

" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "

Robot model.

" + }, + { + "name": "target_links", + "type": "Union[str, int, Sequence[Union[str, int]]]", + "default": null, + "required": true, + "doc": "

One target link or a sequence, using names or indices.

" + }, + { + "name": "scene", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "

Optional collision scene.

" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "

Warp device.

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L537", + "doc": "

Fix the planner batch size and allocate its batch-shaped buffers.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "

Number of queries solved together.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_active_joint_mask", + "signature": "set_active_joint_mask(joint_mask: Sequence[float])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L674", + "doc": "

Set which actuated joints IK and trajectory optimization may change; before the first solve it also limits the trajectory collision Jacobians to the active joints, which later masks must stay within.

", + "params": [ + { + "name": "joint_mask", + "type": "Sequence[float]", + "default": null, + "required": true, + "doc": "

One value per actuated joint; zero pins the joint.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve_offline", + "signature": "solve_offline(waypoints: Sequence[Union[wp.array, Dict[str, wp.array]]], *, start_T_world_base: Optional[wp.array] = None, seed_q: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, segment_check_collision: Optional[Sequence[bool]] = None, segment_fixed_duration: Optional[Sequence[Optional[float]]] = None, segment_locked: Optional[Sequence[bool]] = None, attached_objects: Optional[Sequence[AttachedObject]] = None, fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None) -> MotionPlanResult[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1253", + "doc": "

Plan batched Warp trajectories through waypoints, start first and goal last; the NumPy and Torch APIs wrap it.

Lifecycle

  1. Parse segments: each segment's world collision flag, fixed duration and lock.
  2. Solve waypoint IK: each pose but a final goal by goal IK (scene collision, no self collision), resting at its neighbors' blend.
  3. Create split: each segment's frames by its duration, else evenly, then the locked frames and collision.
  4. Solve: _solve_offline_attempt with retries, one CUDA graph under cuda_graph=\"solve\" but for durations; it builds each guess's goal by goal IK, its later poses' answers nearest its neighbors' blend, and straight lines through its waypoints, on frames resplit by the time each line needs; after the first stage, several segments resplit their frames again.
  5. Retime: every plan under the last stage's retime, its fixed segments held still, and its motion time.
", + "params": [ + { + "name": "waypoints", + "type": "Sequence[Union[wp.array, Dict[str, wp.array]]]", + "default": null, + "required": true, + "doc": "

Ordered list of at least two: joint arrays (batch, dofs) in robot.spec.actuated_joint_names order, wp_vec7 arrays (batch,) or (batch, target links) posing the target links, or dicts of target link names to wp_vec7 (batch,) posing some of them (other keys are ignored). A link a dict leaves out is free at its frame, so each link reaches its own waypoints in turn: the first guess keeps it at its pose of the waypoint before (blended toward any later joint waypoint; a start pose's at seed_q or the next joint waypoint, one needed), and the stages move it from there only as their costs pull. Every link passes each waypoint at the same instant, and the goal names all. An inner waypoint holds the links it names at its joints or IK answer, contact included.

" + }, + { + "name": "start_T_world_base", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

A floating base's start poses, wp_vec7 (batch,); such plans take a start and a goal.

" + }, + { + "name": "seed_q", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional IK seed: the goal IK's initialization, or the rest of a pose waypoint before any joint one.

" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional scene index per batch row; defaults to zero.

" + }, + { + "name": "segment_check_collision", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "

One flag per segment (waypoint i to i + 1); False drops world collision there (self collision stays), and from the checks of anchors only such segments touch, e.g. a contact. Defaults to all True. Every segment_* and waypoint_* list applies to all batch rows alike.

" + }, + { + "name": "segment_fixed_duration", + "type": "Optional[Sequence[Optional[float]]]", + "default": "None", + "required": false, + "doc": "

Seconds per segment, or None to let the planner time it. A duration gives the segment round(duration / dt) frames (at least two) in the solve, keeps them through the resplit and is its time in interpolate; None segments share the rest of num_timesteps, which the durations must fit.

" + }, + { + "name": "segment_locked", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "

One flag per segment; True keeps its frames on the straight joint-space line between its waypoints (the tool's path between them is not straight), whatever it passes through, and holds the links both its waypoints name.

" + }, + { + "name": "attached_objects", + "type": "Optional[Sequence[AttachedObject]]", + "default": "None", + "required": false, + "doc": "

Objects the robot carries, on the spheres max_attached_spheres reserves on the target link each one's link is rigid with: checked by world and self collision over their segments (an inner waypoint: those both its segments carry), in the stages, their scores and waypoint and goal IK.

" + }, + { + "name": "fixed_relative_poses", + "type": "Optional[Sequence[FixedRelativePose]]", + "default": "None", + "required": false, + "doc": "

Link pairs whose relative pose the gradient stages hold over their segments, at most max_fixed_relative_poses.

" + } + ], + "returns": { + "type": "MotionPlanResult[wp.array]", + "doc": "

last and only their rows return; more raise ValueError(\"Batch size mismatch\").

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_offline_numpy", + "signature": "solve_offline_numpy(waypoints: Sequence[Union[np.ndarray, Dict[str, np.ndarray]]], *, start_T_world_base: Optional[np.ndarray] = None, seed_q: Optional[np.ndarray] = None, scene_indices: Optional[np.ndarray] = None, segment_check_collision: Optional[Sequence[bool]] = None, segment_fixed_duration: Optional[Sequence[Optional[float]]] = None, segment_locked: Optional[Sequence[bool]] = None, attached_objects: Optional[Sequence[AttachedObject]] = None, fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None) -> MotionPlanResult[np.ndarray]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1596", + "doc": "

NumPy wrapper for solve_offline: a pose waypoint is a dict of target links to 4x4 or [x, y, z, qw, qx, qy, qz] poses, unbatched values broadcast across queries, and the result holds owned copies.

", + "params": [ + { + "name": "waypoints", + "type": "Sequence[Union[np.ndarray, Dict[str, np.ndarray]]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "start_T_world_base", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "seed_q", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_check_collision", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_fixed_duration", + "type": "Optional[Sequence[Optional[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_locked", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "attached_objects", + "type": "Optional[Sequence[AttachedObject]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "fixed_relative_poses", + "type": "Optional[Sequence[FixedRelativePose]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "MotionPlanResult[np.ndarray]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_offline_torch", + "signature": "solve_offline_torch(waypoints: Sequence[Union[torch.Tensor, Dict[str, torch.Tensor]]], *, start_T_world_base: Optional[torch.Tensor] = None, seed_q: Optional[torch.Tensor] = None, scene_indices: Optional[torch.Tensor] = None, segment_check_collision: Optional[Sequence[bool]] = None, segment_fixed_duration: Optional[Sequence[Optional[float]]] = None, segment_locked: Optional[Sequence[bool]] = None, attached_objects: Optional[Sequence[AttachedObject]] = None, fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None) -> MotionPlanResult[torch.Tensor]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1654", + "doc": "

Torch wrapper for solve_offline, as solve_offline_numpy with 4x4 pose matrices; plans without waypoint IK stay on device.

", + "params": [ + { + "name": "waypoints", + "type": "Sequence[Union[torch.Tensor, Dict[str, torch.Tensor]]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "start_T_world_base", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "seed_q", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_check_collision", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_fixed_duration", + "type": "Optional[Sequence[Optional[float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_locked", + "type": "Optional[Sequence[bool]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "attached_objects", + "type": "Optional[Sequence[AttachedObject]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "fixed_relative_poses", + "type": "Optional[Sequence[FixedRelativePose]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "MotionPlanResult[torch.Tensor]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_online", + "signature": "solve_online(start_state: RobotState, *, T_world_target: Optional[wp.array] = None, target_q: Optional[wp.array] = None, online_state: Optional[OnlineState] = None, scene_indices: Optional[wp.array] = None) -> Tuple[RobotState, OnlineState]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1820", + "doc": "

Solve one online planning update.

", + "params": [ + { + "name": "start_state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

Current configurations with q shaped (batch, dofs), and base poses for a floating base.

" + }, + { + "name": "T_world_target", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional wp_vec7 pose goals, (batch,) or (batch, target links).

" + }, + { + "name": "target_q", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional solved IK goals or joint-space goals with shape (batch, dofs).

" + }, + { + "name": "online_state", + "type": "Optional[OnlineState]", + "default": "None", + "required": false, + "doc": "

Optional state returned by the previous update.

" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional scene indices with shape (batch,).

" + } + ], + "returns": { + "type": "Tuple[RobotState, OnlineState]", + "doc": "

The optimized trajectories, a borrowed buffer, and the caller-owned online state.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_online_numpy", + "signature": "solve_online_numpy(start_q: np.ndarray, *, start_T_world_base: Optional[np.ndarray] = None, T_world_target: Optional[np.ndarray] = None, target_q: Optional[np.ndarray] = None, online_state: Optional[OnlineState] = None, scene_indices: Optional[np.ndarray] = None) -> MotionPlanResult[np.ndarray]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1851", + "doc": "

NumPy wrapper for solve_online.

", + "params": [ + { + "name": "start_q", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "start_T_world_base", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_q", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "online_state", + "type": "Optional[OnlineState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "MotionPlanResult[np.ndarray]", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_metrics", + "signature": "compute_metrics(state: RobotState, *, T_world_target: Optional[wp.array] = None, target_q: Optional[wp.array] = None, scene_indices: Optional[wp.array] = None, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, q_threshold: float = 0.05, penetration_threshold_mm: float = 5.0, out: Optional[MotionPlanMetrics[wp.array]] = None) -> MotionPlanMetrics[wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1882", + "doc": "

Endpoint accuracy of state against exactly one pose or joint goal, independent of term weights.

", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

Trajectories with shape (batch, frames, dofs); any planner's output works.

" + }, + { + "name": "T_world_target", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional batched pose goals.

" + }, + { + "name": "target_q", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional batched joint-space goals.

" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "position_threshold_m", + "type": "float", + "default": "0.005", + "required": false, + "doc": "

Success threshold on translation error.

" + }, + { + "name": "orientation_threshold_rad", + "type": "float", + "default": "0.05", + "required": false, + "doc": "

Success threshold on rotation error.

" + }, + { + "name": "q_threshold", + "type": "float", + "default": "0.05", + "required": false, + "doc": "

Success threshold on joint error, for a joint goal.

" + }, + { + "name": "penetration_threshold_mm", + "type": "float", + "default": "5.0", + "required": false, + "doc": "

Success threshold on scene penetration.

" + }, + { + "name": "out", + "type": "Optional[MotionPlanMetrics[wp.array]]", + "default": "None", + "required": false, + "doc": "

Buffers to write in place, from an earlier call; allocated when omitted.

" + } + ], + "returns": { + "type": "MotionPlanMetrics[wp.array]", + "doc": "

Endpoint errors and success per batch element.

" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_metrics_numpy", + "signature": "compute_metrics_numpy(q_traj: np.ndarray, *, T_world_base_traj: Optional[np.ndarray] = None, T_world_target: Optional[np.ndarray] = None, target_q: Optional[np.ndarray] = None, scene_indices: Optional[np.ndarray] = None, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, q_threshold: float = 0.05, penetration_threshold_mm: float = 5.0) -> MotionPlanMetrics[np.ndarray]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L1930", + "doc": "

compute_metrics for numpy inputs, returning numpy arrays.

", + "params": [ + { + "name": "q_traj", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base_traj", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "T_world_target", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_q", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene_indices", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "position_threshold_m", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "orientation_threshold_rad", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "q_threshold", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "penetration_threshold_mm", + "type": "float", + "default": "5.0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "MotionPlanMetrics[np.ndarray]", + "doc": "" + } + } + ] + }, + "robokit.helpers.motion_plan.MotionPlannerConfig": { + "kind": "class", + "name": "MotionPlannerConfig", + "module": "robokit.helpers.motion_plan", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L271", + "anchor": "motionplannerconfig", + "doc": "

Configuration for offline or online motion planning.

", + "params": [ + { + "name": "num_timesteps", + "type": "int", + "default": "32", + "required": false, + "doc": "" + }, + { + "name": "dt", + "type": "float", + "default": "0.25", + "required": false, + "doc": "" + }, + { + "name": "max_attached_spheres", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "max_fixed_relative_poses", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "fixed_relative_pose_weight", + "type": "Tuple[float, float]", + "default": "(3000.0, 1000.0)", + "required": false, + "doc": "" + }, + { + "name": "acceleration_limit", + "type": "float", + "default": "15.0", + "required": false, + "doc": "" + }, + { + "name": "jerk_limit", + "type": "float", + "default": "500.0", + "required": false, + "doc": "" + }, + { + "name": "duration_weight", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "goal_ik", + "type": "IKSolverConfig", + "default": "build_default_motion_plan_ik_config()", + "required": false, + "doc": "" + }, + { + "name": "init_sample_range", + "type": "float", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "init_detour_samples", + "type": "Tuple[int, int]", + "default": "(16, 64)", + "required": false, + "doc": "" + }, + { + "name": "stages", + "type": "Tuple[Union[GradientTrajectoryOptimizerConfig, MppiTrajectoryOptimizerConfig], ...]", + "default": "(lambda: (build_default_gradient_trajectory_optimizer_config(),))()", + "required": false, + "doc": "" + }, + { + "name": "stage_dt_scale", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "stage_retime", + "type": "Optional[RetimeConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "stage_retries", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "stage_retry_iters", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "stage_retry_dt_growth", + "type": "float", + "default": "1.025", + "required": false, + "doc": "" + }, + { + "name": "max_retries", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "retime", + "type": "Optional[RetimeConfig]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "resplit_waypoints", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph", + "type": "Literal['none', 'stages', 'solve']", + "default": "'stages'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "num_timesteps", + "signature": "num_timesteps: int = 32", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L276", + "doc": "

Steps per plan; a plan has one more frame.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "dt", + "signature": "dt: float = 0.25", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L278", + "doc": "

Planning step (s).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_attached_spheres", + "signature": "max_attached_spheres: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L280", + "doc": "

Collision spheres reserved on each target link for attached_objects, which every solve places there.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_fixed_relative_poses", + "signature": "max_fixed_relative_poses: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L282", + "doc": "

Link pairs reserved for fixed_relative_poses, which every solve sets.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "fixed_relative_pose_weight", + "signature": "fixed_relative_pose_weight: Tuple[float, float] = (3000.0, 1000.0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L284", + "doc": "

Position and rotation weights of fixed_relative_poses, per m and per rad of drift.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "acceleration_limit", + "signature": "acceleration_limit: float = 15.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L286", + "doc": "

Joint acceleration limit (rad/s²): the stages' bounds and ranking, MPPI rollouts, retimes and resplits.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "jerk_limit", + "signature": "jerk_limit: float = 500.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L288", + "doc": "

Joint jerk limit (rad/s³): the stages' bounds and ranking, retimes and resplits.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "duration_weight", + "signature": "duration_weight: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L290", + "doc": "

0: the last stage also optimizes each free segment's duration, from the query's step, at this cost per second

of plan time; its derivative bounds use the optimized durations, which the returned retime only lengthens.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "goal_ik", + "signature": "goal_ik: IKSolverConfig = field(default_factory=build_default_motion_plan_ik_config)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L295", + "doc": "

Goal IK, which turns pose goals into joint goals; fewer goals than trajectory candidates repeat across them.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_sample_range", + "signature": "init_sample_range: float = 0.2", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L299", + "doc": "

Spread of the sampled seed candidates, as a fraction of each joint range; MPPI stages sample their own.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_detour_samples", + "signature": "init_detour_samples: Tuple[int, int] = (16, 64)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L301", + "doc": "

Random-midpoint detours per detour candidate (first round, retries); the shortest collision-free one seeds it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stages", + "signature": "stages: Tuple[Union[GradientTrajectoryOptimizerConfig, MppiTrajectoryOptimizerConfig], ...] = field(default_factory=lambda: (build_default_gradient_trajectory_optimizer_config(),))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L305", + "doc": "

Optimizer stages, run in order on the candidate population every planning round.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage_dt_scale", + "signature": "stage_dt_scale: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L309", + "doc": "

0: each later stage optimizes at this multiple of the previous stage's fastest feasible retimed step.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage_retime", + "signature": "stage_retime: Optional[RetimeConfig] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L311", + "doc": "

Retime between stages (stage_dt_scale); its minimum_dt floors the later stages' steps.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage_retries", + "signature": "stage_retries: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L313", + "doc": "

Reruns of a failed last stage whose predecessor passed, at a growing step; each query keeps its better plan.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage_retry_iters", + "signature": "stage_retry_iters: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L315", + "doc": "

Iterations of each stage retry.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stage_retry_dt_growth", + "signature": "stage_retry_dt_growth: float = 1.025", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L317", + "doc": "

Factor each stage retry grows the step by.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_retries", + "signature": "max_retries: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L321", + "doc": "

Rounds retrying failed plans with new goals and seeds; needs a gradient first stage with several candidates.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "retime", + "signature": "retime: Optional[RetimeConfig] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L325", + "doc": "

Retime of the returned plan; None keeps the planning step.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "resplit_waypoints", + "signature": "resplit_waypoints: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L327", + "doc": "

Resplit a waypoint plan's frames by the time each part needs, so a short segment takes fewer: its straight lines' before the solve, and its paths' after the first stage, which the later gradient stages smooth; False keeps the even split.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cuda_graph", + "signature": "cuda_graph: Literal['none', 'stages', 'solve'] = 'stages'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L329", + "doc": "

CUDA graphs: none, each stage's and goal IK's solve, or the whole NumPy solve with its device-side retries; a capture makes a planner's first solve take seconds longer.

", + "params": [], + "returns": null + } + ] + }, + "robokit.helpers.motion_plan.MotionPlanResult": { + "kind": "class", + "name": "MotionPlanResult", + "module": "robokit.helpers.motion_plan", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L114", + "anchor": "motionplanresult", + "doc": "

Planner output with offline timing or online state.

Offline: q_traj (batch, frames, dofs) with frames = num_timesteps + 1, motion_time (batch,) (s) and waypoint_indices each waypoint's frame in q_traj (one per waypoint, 0 first, the same for every row).

", + "bases": "Generic[ArrayT]", + "params": [ + { + "name": "q_traj", + "type": "ArrayT", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "T_world_base_traj", + "type": "Optional[ArrayT]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "motion_time", + "type": "Optional[ArrayT]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "online_state", + "type": "Optional[OnlineState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "waypoint_indices", + "type": "Optional[Tuple[int, ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_fixed_duration", + "type": "Optional[Tuple[Optional[float], ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "segment_duration", + "type": "Optional[ArrayT]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "q_traj", + "signature": "q_traj: ArrayT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L122", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "T_world_base_traj", + "signature": "T_world_base_traj: Optional[ArrayT] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L123", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "motion_time", + "signature": "motion_time: Optional[ArrayT] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L124", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "online_state", + "signature": "online_state: Optional[OnlineState] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L125", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "waypoint_indices", + "signature": "waypoint_indices: Optional[Tuple[int, ...]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L126", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "segment_fixed_duration", + "signature": "segment_fixed_duration: Optional[Tuple[Optional[float], ...]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L127", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "segment_duration", + "signature": "segment_duration: Optional[ArrayT] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L130", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "interpolate", + "signature": "interpolate(dt: float, speed_scale: float = 1.0) -> ArrayT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/motion_plan/motion_planner.py#L132", + "doc": "

Joint trajectories sampled every dt (s) or slightly less across motion_time.

Each segment between waypoints spreads ceil(its time / dt) steps evenly over its frames, so every waypoint is a sample; a plan then holds its last frame, so a batch shares one length. A segment with a fixed segment_fixed_duration takes that time; the others run at the plan's retimed step or segment_duration.

Example

python
>>> import numpy as np\n>>> q_traj = np.array([[[0.0], [1.0], [2.0]]], np.float32)\n>>> MotionPlanResult(q_traj, motion_time=np.array([1.0], np.float32)).interpolate(0.25)[0, :, 0]\narray([0. , 0.5, 1. , 1.5, 2. ], dtype=float32)
", + "params": [ + { + "name": "dt", + "type": "float", + "default": null, + "required": true, + "doc": "

Control step (s).

" + }, + { + "name": "speed_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "

Fraction of the plan's speed; 0.5 plays its retimed segments over twice their time.

" + } + ], + "returns": { + "type": "ArrayT", + "doc": "

Joint positions with shape (batch, samples, dofs), NumPy or Torch as q_traj.

" + } + } + ] + } + } + }, + { + "id": "api-sim-mpc", + "nav": "Sim MPC", + "h": "Sim MPC", + "body": "
", + "sub": "API", + "api": { + "robokit.helpers.sim_mpc.SimMPC": { + "kind": "class", + "name": "SimMPC", + "module": "robokit.helpers.sim_mpc", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/sim_mpc.py#L175", + "anchor": "simmpc", + "doc": "

Receding-horizon MPPI over simulated rollouts, for config.batch_size instances.

Lifecycle

  1. __init__ resizes sim into the rollout and validation worlds and captures their graphs on the first plan.
  2. plan(data, t0) refines every instance's plan from its state and returns the next ctrl_steps commands.
  3. The caller executes them on its own simulator (or execute does on one), then plans again at t0 + ctrl_steps.

Example

python
>>> import mujoco\n>>> from robokit.helpers.sim_mpc import SimMPCConfig\n>>> from robokit.sim import MjWarpSim\n>>> from robokit.terms import SensorTask\n>>> xml = (\n...     '<mujoco><option timestep=\"0.01\"/><worldbody><body><joint name=\"x\" type=\"slide\" damping=\"5\"/>'\n...     '<geom size=\"0.05\" mass=\"1\"/></body></worldbody><actuator><position joint=\"x\" kp=\"50\"/></actuator>'\n...     '<sensor><jointpos name=\"x\" joint=\"x\"/></sensor></mujoco>'\n... )\n>>> model = mujoco.MjModel.from_xml_string(xml)\n>>> config = SimMPCConfig(num_samples=32, horizon_steps=20, node_steps=10, ctrl_steps=10, max_iterations=2)\n>>> config = config.add(SensorTask(np.full((60, 1), 0.3), {\"x\": 100.0}))\n>>> mpc = SimMPC(config, MjWarpSim(model, 1), np.zeros((60, 1)))\n>>> commands, infos = mpc.plan(mujoco.MjData(model), 0)  # execute these, then plan again at step 10\n>>> commands.shape, mpc.sims[\"rollout\"].nworld\n((10, 1, 1), 31)\n>>> (rollout,), (plans,) = mpc.execute(MjWarpSim(model, 1), 40)  # or run the loop on a simulator\n>>> rollout[\"qpos\"].shape, len(plans)\n((40, 1), 4)\n>>> # \"auto\" picked 4x on the CPU (2x on an RTX 3090): every rollout's first quarter steps at 10 ms, the rest at 40 ms\n>>> mpc.stages  # xdoctest: +IGNORE_WANT\n[SimMPCStage(iters=2, dt=[(0.25, None), (1.0, 0.04)])]
", + "bases": "Task", + "params": [ + { + "name": "config", + "type": "SimMPCConfig", + "default": null, + "required": true, + "doc": "

The settings, with the cost terms (config.add), the node noise (ctrl_std) and command bounds.

" + }, + { + "name": "sim", + "type": "Sim", + "default": null, + "required": true, + "doc": "

The planning simulator, e.g. MjWarpSim(model, 1); for scenes that differ, one scene per instance.

" + }, + { + "name": "ctrl_ref", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "

The reference commands the plans offset, (T, nu) or (batch_size, T, nu).

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "resolve", + "signature": "resolve(var_values: VarValues, context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L41", + "doc": "

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> task = Step(dt=(Inputs.STEP, 2.0))\n>>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only\n>>> task.dt\n(0.5, 2.0)
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/sim_mpc.py#L420", + "doc": "

Add each node row's rollout cost: draws in the rollout worlds, moved plans in the validation worlds.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "plan", + "signature": "plan(data: Any, t0: int) -> Tuple[wp.array, List[dict]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/sim_mpc.py#L499", + "doc": "

Refine every instance's plan from its state at sim step t0; return its next ctrl_steps commands.

", + "params": [ + { + "name": "data", + "type": "Any", + "default": null, + "required": true, + "doc": "

Each instance's time, qpos, qvel, act and qacc_warmstart, (batch_size, ...) arrays: e.g. the executing simulator's data, or a mujoco.MjData for one instance.

" + }, + { + "name": "t0", + "type": "int", + "default": null, + "required": true, + "doc": "

The state's sim step, which indexes ctrl_ref and the costs' references.

" + } + ], + "returns": { + "type": "Tuple[wp.array, List[dict]]", + "doc": "

The commands, (ctrl_steps, batch_size, nu) before any control_map, in a buffer the next call reuses, and each instance's plan info (t0, iterations, plan_cost, best_cost, ...).

" + } + }, + { + "kind": "method", + "base": "", + "name": "execute", + "signature": "execute(sim: Sim, num_steps: int, callback: Optional[Callable[[List[dict]], None]] = None) -> Tuple[List[Dict[str, np.ndarray]], List[List[dict]]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/sim_mpc.py#L538", + "doc": "

Run the planner in closed loop on sim, one world per instance, for num_steps sim steps: each control period plans from sim's state, then steps sim through the commands, mapped by the config's control_map and clipped to the controls MuJoCo applies, and calls callback with every instance's plan info.

", + "params": [ + { + "name": "sim", + "type": "Sim", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_steps", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "callback", + "type": "Optional[Callable[[List[dict]], None]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Tuple[List[Dict[str, np.ndarray]], List[List[dict]]]", + "doc": "

Each instance's rows, time, qpos, qvel, ctrl and sensordata (after the step), each (num_steps, ...), and its plan info per control period.

" + } + } + ] + }, + "robokit.helpers.sim_mpc.SimMPCConfig": { + "kind": "class", + "name": "SimMPCConfig", + "module": "robokit.helpers.sim_mpc", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L27", + "anchor": "simmpcconfig", + "doc": "

SimMPC's per-task settings; times are in sim steps.

Example

python
>>> config = SimMPCConfig(num_samples=64, horizon_steps=30)\n>>> config.num_samples, config.node_steps\n(64, 50)\n>>> SimMPCConfig(stages=[SimMPCStage(3, dt=0.04), SimMPCStage(1)]).max_iterations  # 3 coarse iterations, 1 fine\n4
", + "params": [ + { + "name": "terms", + "type": "List[Tuple[Task, float, Optional[float]]]", + "default": "list()", + "required": false, + "doc": "" + }, + { + "name": "ctrl_std", + "type": "Any", + "default": "0.1", + "required": false, + "doc": "" + }, + { + "name": "ctrl_range", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "qpos_std", + "type": "Any", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "qvel_std", + "type": "Any", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "control_map", + "type": "Optional[Callable[[Sim, wp.array], None]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "batch_size", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "num_samples", + "type": "int", + "default": "512", + "required": false, + "doc": "" + }, + { + "name": "num_replicas", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "horizon_steps", + "type": "int", + "default": "300", + "required": false, + "doc": "" + }, + { + "name": "node_steps", + "type": "int", + "default": "50", + "required": false, + "doc": "" + }, + { + "name": "ctrl_steps", + "type": "int", + "default": "100", + "required": false, + "doc": "" + }, + { + "name": "max_iterations", + "type": "int", + "default": "12", + "required": false, + "doc": "" + }, + { + "name": "init_iterations", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "stages", + "type": "Optional[List[SimMPCStage]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "min_improvement", + "type": "float", + "default": "0.005", + "required": false, + "doc": "" + }, + { + "name": "patience", + "type": "int", + "default": "2", + "required": false, + "doc": "" + }, + { + "name": "std_growth", + "type": "float", + "default": "4.0", + "required": false, + "doc": "" + }, + { + "name": "noise_decay", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "interpolation", + "type": "Union[Literal['linear', 'cubic', 'zero'], np.ndarray]", + "default": "'linear'", + "required": false, + "doc": "" + }, + { + "name": "draw_first_node", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "wide_ratio", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "wide_scale", + "type": "float", + "default": "6.0", + "required": false, + "doc": "" + }, + { + "name": "std_range", + "type": "Optional[Tuple[float, float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "min_std", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + }, + { + "name": "std_gamma", + "type": "float", + "default": "0.5", + "required": false, + "doc": "" + }, + { + "name": "elite_ratio", + "type": "float", + "default": "0.2", + "required": false, + "doc": "" + }, + { + "name": "best_draw_margin", + "type": "float", + "default": "4.0", + "required": false, + "doc": "" + }, + { + "name": "settle_steps", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "terminal_scale", + "type": "float", + "default": "10.0", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "cuda_graph_mode", + "type": "Literal['none', 'step']", + "default": "'step'", + "required": false, + "doc": "" + }, + { + "name": "planner", + "type": "Literal['mppi', 'ilqr']", + "default": "'mppi'", + "required": false, + "doc": "" + }, + { + "name": "ilqr", + "type": "Optional[Any]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[Tuple[Task, float, Optional[float]]] = field(default_factory=list)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L39", + "doc": "

The cost terms with their running and terminal scales, added with add.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ctrl_std", + "signature": "ctrl_std: Any = 0.1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L41", + "doc": "

Node noise per command at the first free node, one value or one per command.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ctrl_range", + "signature": "ctrl_range: Optional[np.ndarray] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L43", + "doc": "

(nu, 2) bounds of the commands; None: the actuator ranges MuJoCo clamps to.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "qpos_std", + "signature": "qpos_std: Any = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L45", + "doc": "

Each replica's start noise on qpos, one value or one per coordinate.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "qvel_std", + "signature": "qvel_std: Any = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L47", + "doc": "

Each replica's start noise on qvel, one value or one per dof.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "control_map", + "signature": "control_map: Optional[Callable[[Sim, wp.array], None]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L49", + "doc": "

control_map(sim, clock) turns the commands in sim.data.ctrl into actuator controls before every step.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "batch_size", + "signature": "batch_size: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L51", + "doc": "

Instances planned at once; they share the model and the config.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_samples", + "signature": "num_samples: int = 512", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L53", + "doc": "

Draws per iteration, one of them reserved to score the moved plan. A sim step costs about the same up to some hundreds of worlds (about 512 on an RTX 3090) and grows past them, so fill that many before adding iterations.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "num_replicas", + "signature": "num_replicas: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L55", + "doc": "

Worlds per draw, which average their costs (e.g. over qpos_std noise).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "horizon_steps", + "signature": "horizon_steps: int = 300", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L57", + "doc": "

Steps each rollout simulates and scores.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "node_steps", + "signature": "node_steps: int = 50", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L59", + "doc": "

Steps between nodes, the points the control offsets are interpolated through.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ctrl_steps", + "signature": "ctrl_steps: int = 100", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L61", + "doc": "

Steps executed per plan; a multiple of node_steps keeps shifted nodes exact.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_iterations", + "signature": "max_iterations: int = 12", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L63", + "doc": "

Sampling iterations per plan, at most; with stages, the sum of their iters.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "init_iterations", + "signature": "init_iterations: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L65", + "doc": "

If positive, the first plan's iterations instead of max_iterations: the stages' last ones, the first stage run longer or cut.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stages", + "signature": "stages: Optional[List[SimMPCStage]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L67", + "doc": "

Coarse to fine: the stages each plan's iterations run in order; the moved plans are scored at the simulator's timestep. None: the first rollouts pick [SimMPCStage(max_iterations, [(0.25, None), (1.0, k * timestep)])] for the largest k of 4 and 2 whose draws end within 11% of their spread of the fine ones, else one fine stage.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_improvement", + "signature": "min_improvement: float = 0.005", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L69", + "doc": "

Stop once the best draw beats the plan by under this, patience times running.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "patience", + "signature": "patience: int = 2", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L71", + "doc": "

Iterations under min_improvement in a row that stop the plan.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "std_growth", + "signature": "std_growth: float = 4.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L73", + "doc": "

Node noise grows from ctrl_std at the first free node to this multiple at the last.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "noise_decay", + "signature": "noise_decay: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L75", + "doc": "

Iteration i scales the node noise by noise_decay**i.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "interpolation", + "signature": "interpolation: Union[Literal['linear', 'cubic', 'zero'], np.ndarray] = 'linear'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L77", + "doc": "

Node interpolation, or a (steps, num_nodes) basis of each step's node weights; \"zero\" also draws the first node.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "draw_first_node", + "signature": "draw_first_node: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L79", + "doc": "

Draw the first node for any interpolation, so a plan can change the command it executes now (predictive sampling, CEM).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wide_ratio", + "signature": "wide_ratio: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L81", + "doc": "

Share of each plan's first-round draws taken at wide_scale times the noise, as predictive sampling explores.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "wide_scale", + "signature": "wide_scale: float = 6.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L83", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "std_range", + "signature": "std_range: Optional[Tuple[float, float]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L84", + "doc": "

If set, a plan of one iteration starts from the last plan's refit noise, as CEM carries its spread: one scale of the configured noise (root mean square over the drawn nodes), clipped to this range.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "min_std", + "signature": "min_std: float = 0.001", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L86", + "doc": "

Floor of the node noise.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "std_gamma", + "signature": "std_gamma: float = 0.5", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L88", + "doc": "

Share of the draws' weighted spread each iteration moves the node noise toward.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "elite_ratio", + "signature": "elite_ratio: float = 0.2", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L90", + "doc": "

Share of the cheapest draws whose cost spread is the temperature and whose weighted mean is the moved plan.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "best_draw_margin", + "signature": "best_draw_margin: float = 4.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L92", + "doc": "

Execute the best draw instead of the moved plan when the moved plan costs this many temperatures more.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "settle_steps", + "signature": "settle_steps: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L94", + "doc": "

Unscored zero-control steps before each rollout.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "terminal_scale", + "signature": "terminal_scale: float = 10.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L96", + "doc": "

Cost scale at the horizon's last step, unless add sets a term's own.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L98", + "doc": "

Seed of the node draws and the replicas' initial-state noise.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "cuda_graph_mode", + "signature": "cuda_graph_mode: Literal['none', 'step'] = 'step'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L100", + "doc": "

\"step\" replays one captured graph per sim step; \"none\" launches every kernel.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "planner", + "signature": "planner: Literal['mppi', 'ilqr'] = 'mppi'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L102", + "doc": "

\"ilqr\": ILQROptimizer refines commands held for node_steps, max_iterations times a plan, instead of nodes.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ilqr", + "signature": "ilqr: Optional[Any] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L104", + "doc": "

\"ilqr\"'s ILQROptimizerConfig, but max_iter; None: damped (robot costs seldom penalize controls) and cautious.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: Task, running_scale: float = 1.0, terminal_scale: Optional[float] = None) -> SimMPCConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/config.py#L111", + "doc": "

Add a cost term, scaled by running_scale per step and by terminal_scale (default: the config's) at the horizon's last step; running_scale=0 makes a terminal-only cost.

", + "params": [ + { + "name": "term", + "type": "Task", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "running_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "terminal_scale", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "SimMPCConfig", + "doc": "" + } + } + ] + }, + "robokit.helpers.sim_mpc.CartesianControl": { + "kind": "class", + "name": "CartesianControl", + "module": "robokit.helpers.sim_mpc", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/sim_mpc/cartesian_control.py#L98", + "anchor": "cartesiancontrol", + "doc": "

A SimMPC control map: world-frame body twists (the first six commands) to joint velocities by damped least squares, with feedback toward position_ref and q_wxyz_ref; needs scalar joint actuators.

Example

python
>>> import mujoco\n>>> model = mujoco.MjModel.from_xml_string('<mujoco><worldbody><body name=\"b\"><joint name=\"j\" type=\"slide\"/>'\n... '<geom size=\"0.1\"/></body></worldbody><actuator><velocity joint=\"j\"/></actuator></mujoco>')\n>>> control = CartesianControl(model, \"b\", position_gain=[0, 0, 1])\n>>> control.dofs.shape\n(1,)
", + "params": [ + { + "name": "model", + "type": "mujoco.MjModel", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "body", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "position_ref", + "type": "Sequence[float]", + "default": "(0, 0, 0)", + "required": false, + "doc": "" + }, + { + "name": "q_wxyz_ref", + "type": "Sequence[float]", + "default": "(1, 0, 0, 0)", + "required": false, + "doc": "" + }, + { + "name": "position_gain", + "type": "Sequence[float]", + "default": "(0, 0, 0)", + "required": false, + "doc": "" + }, + { + "name": "rotation_gain", + "type": "Sequence[float]", + "default": "(0, 0, 0)", + "required": false, + "doc": "" + }, + { + "name": "damping", + "type": "float", + "default": "0.001", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [] + }, + "robokit.helpers.sim_mpc.sim_context": { + "kind": "function", + "name": "sim_context", + "module": "robokit.helpers.sim_mpc", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L67", + "anchor": "sim-context", + "doc": "

The SimContext values of a simulator's worlds, with its mjm's layout, except CLOCK, NUM_INSTANCES and WORLDS_PER_INSTANCE.

", + "params": [ + { + "name": "sim", + "type": "Sim", + "default": null, + "required": true, + "doc": "" + } + ], + "callable": true, + "returns": { + "type": "Dict[Context, Any]", + "doc": "" + }, + "members": [] + }, + "robokit.sim.Sim": { + "kind": "class", + "name": "Sim", + "module": "robokit.sim", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L22", + "anchor": "sim", + "doc": "

What MjWarpSim and newton.NewtonSim offer: device work only, also in a capture on Warp's current stream.

", + "bases": "Protocol", + "params": [], + "callable": false, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "mjm", + "signature": "mjm: Any", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L25", + "doc": "

The mujoco.MjModel whose layout data follows: bodies, joints, sensors (for several scenes, their merge).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "nworld", + "signature": "nworld: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L27", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "substeps", + "signature": "substeps: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L28", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "stream", + "signature": "stream: Optional[wp.Stream]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L29", + "doc": "

The CUDA stream it launches on (None on the CPU); other GPU work on it stays ordered without host syncs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "data", + "signature": "data: Any", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L32", + "doc": "

Warp arrays named and laid out as in mujoco.MjData, with a leading world axis (nworld, ...).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "model", + "signature": "model: Any", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L34", + "doc": "

mujoco.MjModel's fields (NewtonSim: none), a row per world copied from the shared row on first access.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "step", + "signature": "step()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L37", + "doc": "

Advance substeps physics steps; data.substep_sensordata[k]: sensordata after substep k.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "forward", + "signature": "forward()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L40", + "doc": "

Recompute the derived quantities (xpos, sensordata, ...) from the current state.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset(mask: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L43", + "doc": "

Return the worlds where mask is set to the initial state.

", + "params": [ + { + "name": "mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resized", + "signature": "resized(nworld: int) -> Sim", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/__init__.py#L46", + "doc": "

A new simulator of the same scenes and settings with nworld worlds.

", + "params": [ + { + "name": "nworld", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Sim", + "doc": "" + } + } + ] + }, + "robokit.sim.MjWarpSim": { + "kind": "class", + "name": "MjWarpSim", + "module": "robokit.sim", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L160", + "anchor": "mjwarpsim", + "doc": "

Step nworld worlds of model, or nworld[i] of each scene model[i], substeps physics steps per step().

Example

python
>>> import mujoco, numpy as np, warp as wp\n>>> from robokit.sim import MjWarpSim\n>>> xml = '<mujoco><worldbody><geom type=\"plane\" size=\"1 1 .1\"/>'\n>>> xml += '<body pos=\"0 0 .5\"><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>'\n>>> sim = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=8, substeps=4)\n>>> sim.model.geom_friction.shape  # one row per world, ready to randomize\n(8, 2)\n>>> sim.opt.iterations = 5  # from the next step on\n>>> sim.step()\n>>> bool((sim.data.qpos.numpy()[:, 2] < 0.5).all()), sim.data.substep_sensordata.shape\n(True, (4, 8, 0))\n>>> sim.reset(wp.array(np.arange(8) < 4))  # the first four worlds back to the start\n>>> z = sim.data.qpos.numpy()[:, 2]\n>>> float(z[0]), bool(z[7] < 0.5)\n(0.5, True)\n>>> big = mujoco.MjSpec.from_string(xml.replace('size=\".1\"', 'size=\".2\"'))\n>>> mixed = MjWarpSim([mujoco.MjSpec.from_string(xml), big], nworld=[3, 5])  # worlds 3 to 7: the big ball\n>>> (mixed.model.geom_size.numpy()[:, 1, 0] > 0.15).tolist()\n[False, False, False, True, True, True, True, True]\n>>> pos = mixed.model.geom_pos.numpy()\n>>> pos[0, 0, 2] = -1.0  # world 0's floor, a static geom, a meter lower ...\n>>> mixed.model.geom_pos.assign(pos)\n>>> mixed.reset(wp.array(np.arange(8) == 0))  # ... from its next reset\n>>> mixed.data.geom_xpos.numpy()[:2, 0, 2].tolist()\n[-1.0, 0.0]
", + "params": [ + { + "name": "model", + "type": "Union[mujoco.MjModel, Sequence[mujoco.MjSpec]]", + "default": null, + "required": true, + "doc": "

A mujoco.MjModel, or mujoco.MjSpec scenes that may differ in geoms, meshes, inertias, sites, pairs.

" + }, + { + "name": "nworld", + "type": "Union[int, Sequence[int]]", + "default": null, + "required": true, + "doc": "

The worlds, or each scene's; each world gets its scene's values.

" + }, + { + "name": "data", + "type": "Optional[mujoco.MjData]", + "default": "None", + "required": false, + "doc": "

The state reset() restores, else keyframe key's, else the defaults; several scenes: their defaults.

" + }, + { + "name": "substeps", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "njmax", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "nconmax", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "key", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "", + "default": "None", + "required": false, + "doc": "

The Warp device; on a GPU each call runs as one cached CUDA graph.

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "resized", + "signature": "resized(nworld: int) -> MjWarpSim", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L255", + "doc": "

A new simulator of this one's scenes and settings with nworld worlds, split evenly over several scenes.

", + "params": [ + { + "name": "nworld", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "MjWarpSim", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "build_coarse_spec", + "signature": "build_coarse_spec(spec: mujoco.MjSpec, config: CoarseConfig) -> mujoco.MjSpec", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L261", + "doc": "

A copy of spec with config's cheaper geometry and physics, e.g. for planning or early RL training.

Example

python
>>> spec = mujoco.MjSpec.from_string(\n...     '<mujoco><worldbody><body name=\"d\"><freejoint/><geom name=\"a\" size=\"0.1\"/><geom size=\"0.1\"/></body>'\n...     '<geom name=\"b\" size=\"0.1\" pos=\"1 0 0\"/><geom name=\"c\" size=\"0.1\" pos=\"0 0 -0.21\"/></worldbody>'\n...     '<contact><pair geom1=\"a\" geom2=\"b\"/><pair geom1=\"a\" geom2=\"c\"/></contact></mujoco>'\n... )\n>>> coarse = MjWarpSim.build_coarse_spec(spec, CoarseConfig(qpos_ref=np.array([[0, 0, 0, 1, 0, 0, 0]])))\n>>> coarse.compile().npair  # only a-c comes near\n1\n>>> config = CoarseConfig(collide=\"a|c|d\", condim=1, condim_geoms=\"d\", timestep=0.01, pyramidal=True)\n>>> model = MjWarpSim.build_coarse_spec(spec, config).compile()\n>>> model.geom_contype.tolist(), model.geom_condim.tolist()  # b, c, a, d's unnamed: b no longer collides\n([0, 1, 1, 1], [3, 3, 3, 1])\n>>> model.opt.timestep, model.opt.cone\n(0.01, 0)\n>>> config = CoarseConfig(min_timeconst=0.01, min_impedance_width=0.002)\n>>> model = MjWarpSim.build_coarse_spec(spec, config).compile()\n>>> model.geom_solref[:, 0].tolist(), model.geom_solimp[:, 2].tolist()  # from 0.02 and 0.001 by default\n([0.02, 0.02, 0.02, 0.02], [0.002, 0.002, 0.002, 0.002])\n>>> config = CoarseConfig(iterations=2, ls_iterations=4, integrator=\"implicitfast\")\n>>> opt = MjWarpSim.build_coarse_spec(spec, config).option\n>>> opt.iterations, opt.ls_iterations, opt.integrator == mujoco.mjtIntegrator.mjINT_IMPLICITFAST\n(2, 4, True)
", + "params": [ + { + "name": "spec", + "type": "mujoco.MjSpec", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "config", + "type": "CoarseConfig", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "mujoco.MjSpec", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_const", + "signature": "set_const()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L330", + "doc": "

Recompute constants derived from masses and inertias, per world, after randomizing them or body_ipos.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "build_entity", + "signature": "build_entity(prefix: str, soft_joint_pos_limit_factor: float = 1.0) -> Entity", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L337", + "doc": "

The robokit.sim.mjentity.Entity named prefix*, its default pose the initial qpos.

Example

python
>>> xml = '<mujoco><worldbody><body name=\"r/base\" pos=\"0 0 .5\"><freejoint name=\"r/root\"/><geom size=\".1\"/>'\n>>> xml += '<body><joint name=\"r/a\"/><geom size=\".1\"/></body></body></worldbody></mujoco>'\n>>> robot = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).build_entity(\"r/\")\n>>> robot.joint_names, robot.data.default_root_state[:3].tolist()\n(['a'], [0.0, 0.0, 0.5])
", + "params": [ + { + "name": "prefix", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "soft_joint_pos_limit_factor", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Entity", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "build_contact_sensor", + "signature": "build_contact_sensor(name: str, track_air_time: bool = False) -> ContactSensor", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L353", + "doc": "

A robokit.sim.mjsensor.ContactSensor of the contact sensors named {name}_{primary}_{found or force}.

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom name=\"ball\" size=\".1\"/></body></worldbody><sensor>'\n>>> xml += '<contact name=\"touch_ball_found\" geom1=\"ball\" data=\"found\"/></sensor></mujoco>'\n>>> MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).build_contact_sensor(\"touch\").primary_names\n['ball']
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "track_air_time", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "ContactSensor", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "get_sensor", + "signature": "get_sensor(name: str) -> Any", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L367", + "doc": "

(nworld, dim): sensor name's readings, a zero-copy torch view of data.sensordata.

Example

python
>>> xml = '<mujoco><worldbody><body name=\"b\" pos=\"0 0 .5\"><freejoint/><geom size=\".1\"/></body></worldbody>'\n>>> xml += '<sensor><framepos name=\"p\" objtype=\"body\" objname=\"b\"/></sensor></mujoco>'\n>>> MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).get_sensor(\"p\").tolist()\n[[0.0, 0.0, 0.5], [0.0, 0.0, 0.5]]
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Any", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_rays", + "signature": "compute_rays(render_context: Any, **rays: Any)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L381", + "doc": "

Refit render_context's BVH to the current poses, then cast rays (mjw.rays arguments) in every world.

Example

python
>>> mjm = mujoco.MjModel.from_xml_string('<mujoco><worldbody><geom type=\"box\" pos=\"0 0 -.5\" size=\"1 1 .5\"/>'\n...     '</worldbody></mujoco>')\n>>> rc = mjw.create_render_context(mjm, 2, cam_res=[], render_rgb=[], render_depth=[], render_seg=[])\n>>> dist, down = wp.zeros((2, 1), dtype=float), wp.array([[[0, 0, -1]]] * 2, dtype=wp.vec3)  # from z = 1 m\n>>> MjWarpSim(mjm, nworld=2).compute_rays(rc, pnt=wp.array([[[0, 0, 1]]] * 2, dtype=wp.vec3), vec=down,\n...     geomgroup=wp.types.vector(6, wp.float32)(-1, -1, -1, -1, -1, -1), flg_static=True,\n...     bodyexclude=wp.array([-1], dtype=int), dist=dist, geomid=wp.zeros((2, 1), dtype=int),\n...     normal=wp.zeros((2, 1), dtype=wp.vec3))\n>>> dist.numpy().tolist()\n[[1.0], [1.0]]
", + "params": [ + { + "name": "render_context", + "type": "Any", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "rays", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_torch_stream", + "signature": "set_torch_stream()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L401", + "doc": "

Run torch on Warp's stream, so torch and the simulator stay ordered without host syncs.

Example

python
>>> import torch\n>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>'\n>>> (sim := MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2)).set_torch_stream()\n>>> torch.cuda.current_stream().cuda_stream == sim.stream.cuda_stream\nTrue
", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_random", + "signature": "set_random(field: str, index: Tuple[Any, ...], low: Union[float, Sequence[float]], high: Union[float, Sequence[float]], log: bool = False, add: bool = False, rng: Optional[np.random.Generator] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L416", + "doc": "

Set (add: offset) model.<field>[:, *index] to one uniform draw per world from low to high.

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>'\n>>> sim = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=8)\n>>> sim.set_random(\"geom_friction\", (0, 0), 0.5, 1.0)  # sliding friction\n>>> friction = sim.model.geom_friction.numpy()[:, 0, 0]\n>>> bool(((friction >= 0.5) & (friction <= 1.0)).all()), len(set(friction.tolist()))\n(True, 8)\n>>> sim.set_random(\"body_ipos\", (1,), (-0.01, -0.01, 0.0), (0.01, 0.01, 0.0), add=True)  # center of mass\n>>> float(abs(sim.model.body_ipos.numpy()[:, 1, 2]).max())\n0.0
", + "params": [ + { + "name": "field", + "type": "str", + "default": null, + "required": true, + "doc": "

After body_mass, body_inertia, body_ipos or body_iquat, it runs set_const().

" + }, + { + "name": "index", + "type": "Tuple[Any, ...]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "low", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "

Lower bound, broadcast to the trailing axes.

" + }, + { + "name": "high", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "

Upper bound, broadcast to the trailing axes.

" + }, + { + "name": "log", + "type": "bool", + "default": "False", + "required": false, + "doc": "

Draw log-uniformly.

" + }, + { + "name": "add", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "rng", + "type": "Optional[np.random.Generator]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "step", + "signature": "step()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L460", + "doc": "

Advance substeps physics steps into substep_sensordata; derived fields then lag qpos by a substep.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "kinematics", + "signature": "kinematics()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L470", + "doc": "

Recompute xpos, xmat, site_xpos, ... from qpos, e.g. after writing it, as mj_kinematics.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "com_pos", + "signature": "com_pos()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L474", + "doc": "

Recompute subtree_com (subtree centers of mass), cinert and cdof from the positions, as mj_comPos.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "forward", + "signature": "forward()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L478", + "doc": "

Recompute every derived quantity, accelerations and sensordata included, as mj_forward.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset(mask: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L482", + "doc": "

Return the worlds where mask is set to their initial state, static geoms to their current rows.

", + "params": [ + { + "name": "mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

(nworld,), bool or int; read on the device, with no host syncs.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "set_scene", + "signature": "set_scene(mask: wp.array, scene: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/sim/mjwarp.py#L501", + "doc": "

Give the worlds where mask is set scene scene[w]'s model rows; their static geoms move at reset().

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>'\n>>> scenes = [mujoco.MjSpec.from_string(xml), mujoco.MjSpec.from_string(xml.replace(\".1\", \".2\"))]\n>>> sim = MjWarpSim(scenes, nworld=[2, 2])\n>>> sim.set_scene(wp.array([True, False, False, False]), wp.array([1, 0, 0, 0], dtype=int))\n>>> (sim.model.geom_size.numpy()[:, 0, 0] > 0.15).tolist()  # world 0: the big ball\n[True, False, True, True]
", + "params": [ + { + "name": "mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

(nworld,), read on the device, with no host syncs.

" + }, + { + "name": "scene", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

(nworld,), int.

" + } + ], + "returns": null + } + ] + }, + "robokit.terms.SimContext": { + "kind": "class", + "name": "SimContext", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L22", + "anchor": "simcontext", + "doc": "

Values a planner gives its terms for one world set (sim_context); arrays are refilled every step.

", + "bases": "Context", + "params": [], + "callable": false, + "returns": null, + "members": [] + }, + "robokit.terms.StateTask": { + "kind": "class", + "name": "StateTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/state_task.py#L134", + "anchor": "statetask", + "doc": "

Per step, the weighted qpos error norm plus vel_weight times the qvel error norm, and optional contact terms; its residuals cover the errors, while the contact terms (penetration, missing contacts) are cost-only, so SimMPC sees them and ILQROptimizer does not.

Example

python
>>> import copy, mujoco\n>>> from robokit.helpers.sim_mpc import sim_context\n>>> from robokit.sim import MjWarpSim\n>>> model = mujoco.MjModel.from_xml_string(\n...     '<mujoco><worldbody><body><freejoint/><geom size=\"0.1\"/></body></worldbody></mujoco>'\n... )\n>>> data = mujoco.MjData(model)\n>>> data.qpos[0] = 0.05  # 5 cm off the reference in x\n>>> context = sim_context(MjWarpSim(model, 1, data)) | {\n...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n... }\n>>> qpos_ref, qvel_ref, out = np.tile(model.qpos0, (2, 1)), np.zeros((2, model.nv)), wp.zeros(2, dtype=float)\n>>> for i, tolerance in enumerate([0.0, 0.01]):\n...     term = copy.copy(StateTask(qpos_ref, qvel_ref, np.ones(model.nv), pose_tolerance=tolerance))\n...     term.resolve(None, context)\n...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])\n>>> assert np.allclose(out.numpy(), [0.05, 0.04])
", + "bases": "SimResidualTask", + "params": [ + { + "name": "qpos_ref", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "qvel_ref", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "dof_weight", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "vel_weight", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "penetration_groups", + "type": "Optional[Tuple[np.ndarray, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "penetration_scale", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "contacts", + "type": "Sequence[Tuple[np.ndarray, np.ndarray, np.ndarray, float]]", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "squared", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "freeze_reference", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "pose_tolerance", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "SimResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: Optional[VarValues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L113", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/state_task.py#L187", + "doc": "

Build the device references, contact groups and buffers for the context's worlds.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/state_task.py#L226", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.SensorTask": { + "kind": "class", + "name": "SensorTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sensor_task.py#L99", + "anchor": "sensortask", + "doc": "

Per step, sum_s w_s * ||sensordata_s - sensor_ref[k]_s||^2 over the sensors in weight (norm: unsquared).

Example

python
>>> context = {  # what SimMPC gives one world at sim step 0\n...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device=\"cpu\"),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n...     SimContext.SENSORDATA: wp.array([[0.5, 0.5, 0.0, 0.0]], dtype=float, device=\"cpu\"),\n...     SimContext.SENSORS: [(\"x\", 0, 1), (\"p\", 1, 3)],\n... }\n>>> ref, weight = np.zeros((10, 4)), {\"x\": 2.0, \"p\": [1.0, 0.0, 0.0]}\n>>> out = wp.zeros(2, dtype=float, device=\"cpu\")\n>>> for i, norm in enumerate([False, True]):\n...     term = SensorTask(ref, weight, norm=norm)\n...     term.resolve(None, context)\n...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])\n>>> assert np.allclose(out.numpy(), [2 * 0.5**2 + 1 * 0.5**2, 2 * 0.5 + 1 * 0.5])
", + "bases": "SimResidualTask", + "params": [ + { + "name": "sensor_ref", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weight", + "type": "Union[Dict[str, Union[float, Sequence[float]]], np.ndarray]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "norm", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "residual", + "type": "Literal['linear', 'angle', 'quaternion', 'yaw', 'yaw_unwrapped', 'heading']", + "default": "'linear'", + "required": false, + "doc": "" + }, + { + "name": "hinge", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "freeze_reference", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "relative", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L119", + "doc": "

Add each world's 0.5 |r|^2.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "SimResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: Optional[VarValues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L113", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sensor_task.py#L138", + "doc": "

Look up the weighted sensors and build the device weights and reference.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.ControlTask": { + "kind": "class", + "name": "ControlTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/control_task.py#L50", + "anchor": "controltask", + "doc": "

Per step, sum(weight * (ctrl - ctrl_ref[k])**2), or with norm its unsquared norm; ctrl_ref defaults to 0.

Example

python
>>> context = {\n...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device=\"cpu\"),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n...     SimContext.CTRL: wp.array([[1.0, 2.0]], dtype=float, device=\"cpu\"),\n... }\n>>> out = wp.zeros(2, dtype=float, device=\"cpu\")\n>>> for i, term in enumerate([ControlTask([0.5, 1.0]), ControlTask(2.0, np.ones((10, 2)), norm=True)]):\n...     term.resolve(None, context)\n...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])\n>>> out.numpy().tolist()\n[4.5, 2.0]
", + "bases": "SimResidualTask", + "params": [ + { + "name": "weight", + "type": "Union[float, Sequence[float]]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "ctrl_ref", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "norm", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L119", + "doc": "

Add each world's 0.5 |r|^2.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "SimResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: Optional[VarValues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L113", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/control_task.py#L78", + "doc": "

Broadcast the weight to every control and build the device reference.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.AlignTask": { + "kind": "class", + "name": "AlignTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/align_task.py#L56", + "anchor": "aligntask", + "doc": "

Per step, weight * (1 + u.v / (|u||v|)) with u = sensor - origin and v = target_ref[k] - origin.

Example

python
>>> context = {\n...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device=\"cpu\"),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n...     SimContext.SENSORDATA: wp.array([[0.0, 0.0, 0.0, 1.0, 0.0, 0.0]], dtype=float, device=\"cpu\"),\n...     SimContext.SENSORS: [(\"o\", 0, 3), (\"s\", 3, 3)],\n... }\n>>> term, out = AlignTask(\"o\", \"s\", np.tile([0.0, 1.0, 0.0], (10, 1)), weight=2.0), wp.zeros(1, device=\"cpu\")\n>>> term.resolve(None, context)\n>>> term.compute_weighted_cost(None, out_cost=out)\n>>> assert np.isclose(out.numpy()[0], 2.0)  # u = (1, 0) is perpendicular to v = (0, 1)
", + "bases": "SimResidualTask", + "params": [ + { + "name": "origin", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "sensor", + "type": "str", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "target_ref", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "components", + "type": "Sequence[int]", + "default": "(0, 1)", + "required": false, + "doc": "" + }, + { + "name": "freeze_reference", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L119", + "doc": "

Add each world's 0.5 |r|^2.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "SimResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: Optional[VarValues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L113", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/align_task.py#L87", + "doc": "

Look up both sensors and build the device target.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.ContactTask": { + "kind": "class", + "name": "ContactTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/contact_task.py#L63", + "anchor": "contacttask", + "doc": "

Reward geoms' contacts inside their target discs; penalize touches outside every allowed disc.

box, half widths (x, y), replaces each target disc with that axis-aligned box around the target; height, (low, high), rewards only contacts at those heights.

Example

python
>>> context = {  # one contact of geom 1 at (0, 0), 0.25 apart, at sim step 1\n...     SimContext.CLOCK: wp.array([1, 0, 1], dtype=int, device=\"cpu\"),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n...     SimContext.GEOMS: [\"floor\", \"foot\"],\n...     SimContext.CONTACTS: tuple(\n...         wp.array(x, dtype=t, device=\"cpu\")\n...         for x, t in [([1], int), ([0], int), ([[0, 1]], wp.vec2i), ([0.25], float), ([[0, 0, 0]], wp.vec3)]\n...     ),\n... }\n>>> far, allowed = np.ones((1, 1, 2)), np.array([[[[0.0, 0.0, 0.1]]]])  # a disc (x, y, r) around the foot\n>>> terms = [\n...     ContactTask([\"foot\"], np.zeros((1, 1, 2)), np.full((1, 2, 1), 0.1), weight=2.0),  # radius over time\n...     ContactTask([\"foot\"], far, np.zeros((1, 1)), penalty=0.5, margin=0.3),\n...     ContactTask([\"foot\"], far, np.zeros((1, 1)), allowed, penalty=0.5, margin=0.3),\n...     ContactTask([\"foot\"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0)),  # (0, 0) is in the box\n...     ContactTask([\"foot\"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0), height=(0.1, 1.0)),  # too low\n... ]\n>>> out = wp.zeros(5, dtype=float, device=\"cpu\")\n>>> for i, term in enumerate(terms):\n...     term.resolve(None, context)\n...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])\n>>> assert np.allclose(out.numpy(), [-2.0 * 0.75, 0.5, 0.0, -2.0 * 0.75, 0.0])
", + "bases": "Task", + "params": [ + { + "name": "geoms", + "type": "Sequence[str]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "target", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "radius", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "allowed", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "weight", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "penalty", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "margin", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "box", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "height", + "type": "Optional[Sequence[float]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/contact_task.py#L113", + "doc": "

Look up the geoms and build the device targets and discs.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/contact_task.py#L125", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.terms.GraspTask": { + "kind": "class", + "name": "GraspTask", + "module": "robokit.terms", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/grasp_task.py#L51", + "anchor": "grasptask", + "doc": "

Per step, weight[k] times the gripper's distance to body obj plus offset[k], less tolerance, at least 0.

Example

python
>>> context = {  # the hand at (0.1, 0, 0.2), a box at the origin turned 90 degrees about z\n...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device=\"cpu\"),\n...     SimContext.NUM_INSTANCES: 1,\n...     SimContext.WORLDS_PER_INSTANCE: 1,\n...     SimContext.BODIES: [\"world\", \"hand\", \"box\"],\n...     SimContext.BODY_POSITION: wp.array([[[0, 0, 0], [0.1, 0, 0.2], [0, 0, 0]]], dtype=wp.vec3, device=\"cpu\"),\n...     SimContext.BODY_ROTATION: wp.array(\n...         [[np.eye(3), np.eye(3), [[0, -1, 0], [1, 0, 0], [0, 0, 1]]]], dtype=wp.mat33, device=\"cpu\"\n...     ),\n... }\n>>> offset, out = np.tile([0.0, -0.1, 0.2], (2, 1)), wp.zeros(2, dtype=float, device=\"cpu\")\n>>> terms = [GraspTask(\"hand\", \"box\", offset, np.ones(2)), GraspTask(1, 2, offset, np.ones(2), 0.01, False)]\n>>> for i, term in enumerate(terms):  # in the box's frame the hand is on target\n...     term.resolve(None, context)\n...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])\n>>> assert np.allclose(out.numpy(), [0.0, np.hypot(0.1, 0.1) - 0.01], atol=1e-6)
", + "bases": "SimResidualTask", + "params": [ + { + "name": "gripper", + "type": "Union[str, int]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "obj", + "type": "Union[str, int]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offset", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "weight", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "tolerance", + "type": "Union[float, np.ndarray]", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "object_frame", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_CUDA_GRAPH", + "signature": "SUPPORTS_CUDA_GRAPH: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L20", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "SUPPORTS_AUTODIFF", + "signature": "SUPPORTS_AUTODIFF: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L21", + "doc": "

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "var_key", + "signature": "var_key: Enum = VarKey.ROBOT", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L24", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "name", + "signature": "name: str = ''", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L25", + "doc": "

Label a config gave this term, so config.task(name) finds it again.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "robot", + "signature": "robot: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L27", + "doc": "

The robot a built task reads; None on a template.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "Task", + "name": "weight", + "signature": "weight: Any = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L29", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "active", + "signature": "active: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L32", + "doc": "

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "parallel_safe", + "signature": "parallel_safe: bool", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L37", + "doc": "

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "initial_vars", + "signature": "initial_vars(num_candidates: int, device: Any) -> Dict[Enum, Var]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L65", + "doc": "

Variables this task adds beside the helper's, at their nominal values; usually none.

", + "params": [ + { + "name": "num_candidates", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "device", + "type": "Any", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "Dict[Enum, Var]", + "doc": "" + } + }, + { + "kind": "method", + "base": "Task", + "name": "needs", + "signature": "needs() -> set", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L69", + "doc": "

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):\n...     STEP = 0\n>>> class Step(Task):\n...     def __init__(self, dt):\n...         self.dt = dt\n>>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}\nTrue
", + "params": [], + "returns": { + "type": "set", + "doc": "" + } + }, + { + "kind": "property", + "base": "Task", + "name": "cost_name", + "signature": "cost_name: str", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L90", + "doc": "

Return the snake-case task name used in cost reports.

", + "params": [], + "returns": null + }, + { + "kind": "property", + "base": "Task", + "name": "dense_task", + "signature": "dense_task: Task", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L96", + "doc": "

Return the per-pose task this term applies, which is the term itself unless it wraps one.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "Task", + "name": "precompute", + "signature": "precompute(var_values: VarValues, need_gradient: bool = False)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L100", + "doc": "

Prepare shared state before this term is evaluated.

", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "need_gradient", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_cost", + "signature": "compute_weighted_cost(var_values: Optional[VarValues], *, out_cost: wp.array)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L119", + "doc": "

Add each world's 0.5 |r|^2.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_cost", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "residual_weight", + "signature": "residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L136", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "ResidualTask", + "name": "device", + "signature": "device: Any = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L137", + "doc": "

Device of the task's Warp buffers; None before init_buffers.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "init_buffers", + "signature": "init_buffers(device: wp_device_type)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L140", + "doc": "

Allocate Warp buffers on device; a task without any keeps none.

", + "params": [ + { + "name": "device", + "type": "wp_device_type", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "property", + "base": "SimResidualTask", + "name": "residual_dim", + "signature": "residual_dim: int", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L101", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "SimResidualTask", + "name": "compute_weighted_residual", + "signature": "compute_weighted_residual(var_values: Optional[VarValues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/sim_context.py#L113", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "out_residual", + "type": "wp.array", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian_analytic", + "signature": "compute_weighted_jacobian_analytic(var_values: VarValues, *args: Any, out_jacobian: Optional[wp.array] = None, row_offset: int = 0, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L159", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "out_jacobian", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "row_offset", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "compute_weighted_jacobian", + "signature": "compute_weighted_jacobian(var_values: VarValues, *args: Any, **kwargs: Any) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L169", + "doc": "", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "args", + "type": "Any", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "kwargs", + "type": "Any", + "default": "{}", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "wp.array", + "doc": "" + } + }, + { + "kind": "method", + "base": "ResidualTask", + "name": "accumulate_normal_equations", + "signature": "accumulate_normal_equations(var_values: VarValues, *, costs: wp.array, JtJ: Optional[wp.array] = None, Jtr: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/task.py#L176", + "doc": "

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
", + "params": [ + { + "name": "var_values", + "type": "VarValues", + "default": null, + "required": true, + "doc": "

Optimization variables.

" + }, + { + "name": "costs", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Shared per-batch cost buffer.

" + }, + { + "name": "JtJ", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal matrix. Omit for a cost-only step.

" + }, + { + "name": "Jtr", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional shared normal-vector buffer. Omit for a cost-only step.

" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "resolve", + "signature": "resolve(var_values: Optional[VarValues], context: Mapping[Context, Any])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/terms/simulation/grasp_task.py#L88", + "doc": "

Look up both bodies and build the device schedule.

", + "params": [ + { + "name": "var_values", + "type": "Optional[VarValues]", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "context", + "type": "Mapping[Context, Any]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + } + } + }, + { + "id": "api-humanoid-retargeting", + "nav": "Humanoid Retargeting", + "h": "Humanoid Retargeting", + "body": "
", + "sub": "API", + "api": { + "robokit.helpers.humanoid_retargeting.HumanoidRetargeterOnline": { + "kind": "class", + "name": "HumanoidRetargeterOnline", + "module": "robokit.helpers.humanoid_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L26", + "anchor": "humanoidretargeteronline", + "doc": "

Online humanoid retargeting with input joints ordered by human_joint_names.

Lifecycle

  1. __init__ stores the robot, configuration, and caller-owned scene.
  2. warmup(batch_size) builds batch-shaped buffers and solvers.
  3. solve(T_world_human) advances one batched frame from Warp inputs.
", + "params": [ + { + "name": "config", + "type": "HumanoidRetargeterOnlineConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scene", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "property", + "base": "", + "name": "interaction_task", + "signature": "interaction_task: InteractionMeshTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L95", + "doc": "

Return the interaction task; set its first frame before warmup and update it before each solve.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L160", + "doc": "

Fix the online batch size and build its reusable solver state.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(T_world_human: wp.array, human_heights: Optional[wp.array] = None, *, out: Optional[wp.array] = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L220", + "doc": "

Retarget one batched human frame from Warp inputs.

Lifecycle

  1. Validate the shape fixed by warmup(...).
  2. Update temporal terms from the previous robot state.
  3. Compute targets and candidate states.
  4. Solve once, retain the state, and write the requested output buffer.
", + "params": [ + { + "name": "T_world_human", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Human joint transforms with shape (batch, joints).

" + }, + { + "name": "human_heights", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional human height in meters for each batch element.

" + }, + { + "name": "out", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional caller-owned output with shape (batch, 7 + dofs).

" + } + ], + "returns": { + "type": "wp.array", + "doc": "

out when provided; otherwise a reusable helper-owned buffer overwritten by the next call.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_numpy", + "signature": "solve_numpy(T_world_human: np.ndarray, human_heights: Optional[np.ndarray] = None) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L329", + "doc": "

Convert NumPy inputs, call solve(...), and return a NumPy copy.

", + "params": [ + { + "name": "T_world_human", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "human_heights", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset(T_world_base: Optional[wp.array] = None)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/online.py#L349", + "doc": "

Reset temporal state, optionally from an initial floating-base transform.

", + "params": [ + { + "name": "T_world_base", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": null + } + ] + }, + "robokit.helpers.humanoid_retargeting.HumanoidRetargeterOnlineConfig": { + "kind": "class", + "name": "HumanoidRetargeterOnlineConfig", + "module": "robokit.helpers.humanoid_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L253", + "anchor": "humanoidretargeteronlineconfig", + "doc": "

A robot's human-to-robot mapping, task templates and per-frame solver; offline retargeting reuses the mapping.

", + "params": [ + { + "name": "terms", + "type": "List[ResidualTask]", + "default": "_default_online_terms()", + "required": false, + "doc": "" + }, + { + "name": "urdf_path", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "human_root_name", + "type": "str", + "default": "'pelvis'", + "required": false, + "doc": "" + }, + { + "name": "human_height_assumption", + "type": "float", + "default": "1.8", + "required": false, + "doc": "" + }, + { + "name": "ground_height", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "collision_spheres_path", + "type": "Optional[Union[str, Path]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "scale_table", + "type": "Dict[str, float]", + "default": "dict()", + "required": false, + "doc": "" + }, + { + "name": "link_mapping", + "type": "Dict[str, LinkMapping]", + "default": "dict()", + "required": false, + "doc": "" + }, + { + "name": "correspondence_edges", + "type": "Optional[List[CorrespondenceEdge]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "interaction_terms", + "type": "List[ResidualTask]", + "default": "list()", + "required": false, + "doc": "" + }, + { + "name": "velocity_limit_dt", + "type": "float", + "default": "1.0 / 30.0", + "required": false, + "doc": "" + }, + { + "name": "velocity_clamp_scale", + "type": "float", + "default": "0.6", + "required": false, + "doc": "" + }, + { + "name": "velocity_limit_override", + "type": "Optional[Sequence[Union[int, float]]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "PopulationSolverConfig", + "default": "_default_retargeting_solver()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[ResidualTask] = field(default_factory=_default_online_terms)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L257", + "doc": "

Task templates; each names its inputs with HumanoidContext members.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "urdf_path", + "signature": "urdf_path: Optional[str] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L259", + "doc": "

Robot URDF, loaded when the retargeter gets no robot.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "human_root_name", + "signature": "human_root_name: str = 'pelvis'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L261", + "doc": "

Human joint that places the robot base.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "human_height_assumption", + "signature": "human_height_assumption: float = 1.8", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L263", + "doc": "

Human height in meters when a solve gets no human_heights.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "ground_height", + "signature": "ground_height: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L265", + "doc": "

Ground height of the human motion, subtracted from every target height.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "collision_spheres_path", + "signature": "collision_spheres_path: Optional[Union[str, Path]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L267", + "doc": "

Robot collision spheres, needed by a weighted self-collision task.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "scale_table", + "signature": "scale_table: Dict[str, float] = field(default_factory=dict)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L269", + "doc": "

Target scale per human joint; absent joints use 1.0.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "link_mapping", + "signature": "link_mapping: Dict[str, LinkMapping] = field(default_factory=dict)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L271", + "doc": "

Robot link to the human joint it tracks, in target order.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "correspondence_edges", + "signature": "correspondence_edges: Optional[List[CorrespondenceEdge]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L273", + "doc": "

Link vectors the correspondence task drives toward human joint vectors; None is off (online only).

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "interaction_terms", + "signature": "interaction_terms: List[ResidualTask] = field(default_factory=list)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L275", + "doc": "

Interaction-mesh task templates, built at construction so the first frame is set before warmup; empty is off.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "velocity_limit_dt", + "signature": "velocity_limit_dt: float = 1.0 / 30.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L277", + "doc": "

Time between frames, for the velocity limits and the output clamp.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "velocity_clamp_scale", + "signature": "velocity_clamp_scale: float = 0.6", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L279", + "doc": "

Clamp each output step at this fraction of the velocity limits; 0 is off.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "velocity_limit_override", + "signature": "velocity_limit_override: Optional[Sequence[Union[int, float]]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L281", + "doc": "

Joint velocity limits in rad/s, replacing the URDF's; None uses the URDF's.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: PopulationSolverConfig = field(default_factory=_default_retargeting_solver)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L283", + "doc": "

Candidate schedule and optimizers of each frame's solve.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: ResidualTask, *, name: Optional[str] = None) -> HumanoidRetargeterOnlineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L286", + "doc": "

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HumanoidRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.1
", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "HumanoidRetargeterOnlineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "task", + "signature": "task(name: str) -> ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L301", + "doc": "

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HumanoidRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.2
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ResidualTask", + "doc": "" + } + }, + { + "kind": "property", + "base": "", + "name": "human_joint_names", + "signature": "human_joint_names: Tuple[str, ...]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L315", + "doc": "

Return the ordered human joints expected by the solve APIs.

Example

python
>>> import numpy as np\n>>> config = HumanoidRetargeterOnlineConfig(\n...     link_mapping={\"torso\": LinkMapping(\"spine\", np.zeros(3), np.zeros(4))},\n... )\n>>> config.human_joint_names  # mapped joints first, then the root\n('spine', 'pelvis')
", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "target_arrays", + "signature": "target_arrays(human_joint_names: Sequence[str]) -> TargetArrays", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L332", + "doc": "

Resolve link_mapping in input human_joint_names order for both solvers' compute_targets_kernel arrays.

Example

python
>>> import numpy as np\n>>> config = HumanoidRetargeterOnlineConfig(\n...     link_mapping={\n...         \"torso\": LinkMapping(\"spine\", np.zeros(3), np.zeros(4)),\n...         \"hip\": LinkMapping(\"pelvis\", np.zeros(3), np.zeros(4)),\n...     },\n...     scale_table={\"spine\": 0.9},\n... )\n>>> arrays = config.target_arrays(config.human_joint_names)\n>>> arrays.joint_indices.tolist(), arrays.scales.tolist()\n([0, 1], [0.8999999761581421, 1.0])\n>>> arrays.root_joint_index, arrays.root_target_index\n(1, 1)\n>>> arrays.rotation_offsets[0].tolist()  # zero offset normalizes to identity\n[1.0, 0.0, 0.0, 0.0]
", + "params": [ + { + "name": "human_joint_names", + "type": "Sequence[str]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "TargetArrays", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "from_yaml", + "signature": "from_yaml(yaml_path: Union[str, Path]) -> HumanoidRetargeterOnlineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L375", + "doc": "", + "params": [ + { + "name": "yaml_path", + "type": "Union[str, Path]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "HumanoidRetargeterOnlineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "to_dict", + "signature": "to_dict() -> dict", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L521", + "doc": "", + "params": [], + "returns": { + "type": "dict", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "to_yaml", + "signature": "to_yaml(yaml_path: Union[str, Path])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L588", + "doc": "", + "params": [ + { + "name": "yaml_path", + "type": "Union[str, Path]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "load_robot", + "signature": "load_robot(load_meshes: bool = False) -> Robot", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L593", + "doc": "

Load the config's robot, with its collision spheres when the config names them.

", + "params": [ + { + "name": "load_meshes", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "Robot", + "doc": "" + } + } + ] + }, + "robokit.helpers.humanoid_retargeting.HumanoidRetargeterOffline": { + "kind": "class", + "name": "HumanoidRetargeterOffline", + "module": "robokit.helpers.humanoid_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/offline.py#L25", + "anchor": "humanoidretargeteroffline", + "doc": "

Whole-clip retargeting with input joints ordered by human_joint_names.

Lifecycle

  1. __init__ stores the robot and configuration.
  2. warmup(batch_size, num_frames) builds shape-specific buffers and optimizers.
  3. solve(T_world_human) retargets one fixed-shape Warp trajectory batch.
", + "params": [ + { + "name": "config", + "type": "HumanoidRetargeterOnlineConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "offline_config", + "type": "HumanoidRetargeterOfflineConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot", + "type": "Optional[Robot]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int, num_frames: int)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/offline.py#L53", + "doc": "

Build and cache all state for (batch_size, num_frames).

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "num_frames", + "type": "int", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(T_world_human: wp.array, valid_lengths: Optional[wp.array] = None, human_heights: Optional[wp.array] = None, *, out: Optional[wp.array] = None, target_overrides: Optional[Dict[str, np.ndarray]] = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/offline.py#L204", + "doc": "

Retarget one padded [B, T, J] Warp trajectory batch.

Lifecycle

  1. Validate the shape fixed by warmup(...).
  2. Compute all frame targets and independent IK warm starts.
  3. Reset the cached trajectory state and valid-frame masks.
  4. Solve once and write the requested padded output buffer.
", + "params": [ + { + "name": "T_world_human", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Human joint transforms with shape (batch, frames, joints).

" + }, + { + "name": "valid_lengths", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional valid frame count for each padded batch element.

" + }, + { + "name": "human_heights", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional human height in meters for each batch element.

" + }, + { + "name": "out", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional caller-owned output with shape (batch, frames, 7 + dofs).

" + }, + { + "name": "target_overrides", + "type": "Optional[Dict[str, np.ndarray]]", + "default": "None", + "required": false, + "doc": "

Optional (batch, frames, 7) target tracks keyed by robot link; they move the IK warm start and TARGET_POSITIONS, while orientation templates read TARGETS (the mapped poses) unless they read OVERRIDDEN_TARGETS.

" + } + ], + "returns": { + "type": "wp.array", + "doc": "

out when provided; otherwise a reusable helper-owned buffer overwritten by the next call.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_numpy", + "signature": "solve_numpy(T_world_human: np.ndarray, valid_lengths: Optional[np.ndarray] = None, human_heights: Optional[np.ndarray] = None, *, target_overrides: Optional[Dict[str, np.ndarray]] = None) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/offline.py#L293", + "doc": "

Convert padded [B, T, J, 7] NumPy inputs, warm up for their shape, solve, and return a NumPy copy.

", + "params": [ + { + "name": "T_world_human", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "valid_lengths", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "human_heights", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_overrides", + "type": "Optional[Dict[str, np.ndarray]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + } + ] + }, + "robokit.helpers.humanoid_retargeting.HumanoidRetargeterOfflineConfig": { + "kind": "class", + "name": "HumanoidRetargeterOfflineConfig", + "module": "robokit.helpers.humanoid_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L606", + "anchor": "humanoidretargeterofflineconfig", + "doc": "

Whole-clip optimizer settings; the paired online config supplies the mapping and velocity limits.

", + "params": [ + { + "name": "terms", + "type": "List[ResidualTask]", + "default": "_default_offline_terms()", + "required": false, + "doc": "" + }, + { + "name": "warm_start", + "type": "IKSolverConfig", + "default": "(lambda: IKSolverConfig(enable_T_world_base=True, solver=PopulationSolverConfig(stages=[Stage(6, 4, LMOptimizerConfig(lm_lambda=1.5)), Stage(3, 1)])).add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0)).add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0)).add(PositionLimit(weight=30.0)))()", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "LMOptimizerConfig", + "default": "(lambda: LMOptimizerConfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[ResidualTask] = field(default_factory=_default_offline_terms)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L610", + "doc": "

Trajectory task templates; tracking weights are per link, and self-collision costs O(pairs) per frame.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "warm_start", + "signature": "warm_start: IKSolverConfig = field(default_factory=lambda: IKSolverConfig(enable_T_world_base=True, solver=PopulationSolverConfig(stages=[Stage(6, 4, LMOptimizerConfig(lm_lambda=1.5)), Stage(3, 1)])).add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0)).add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0)).add(PositionLimit(weight=30.0)))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L612", + "doc": "

Per-frame IK that seeds the trajectory.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: LMOptimizerConfig = field(default_factory=lambda: LMOptimizerConfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L624", + "doc": "

Trajectory solver.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: ResidualTask, *, name: Optional[str] = None) -> HumanoidRetargeterOfflineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L637", + "doc": "

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HumanoidRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.1
", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "HumanoidRetargeterOfflineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "task", + "signature": "task(name: str) -> ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L652", + "doc": "

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HumanoidRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.2
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ResidualTask", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "from_yaml", + "signature": "from_yaml(yaml_path: Union[str, Path]) -> HumanoidRetargeterOfflineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L665", + "doc": "", + "params": [ + { + "name": "yaml_path", + "type": "Union[str, Path]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "HumanoidRetargeterOfflineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "to_yaml", + "signature": "to_yaml(yaml_path: Union[str, Path])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/humanoid_retargeting/config.py#L703", + "doc": "", + "params": [ + { + "name": "yaml_path", + "type": "Union[str, Path]", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": null + } + ] + } + } + }, + { + "id": "api-hand-retargeting", + "nav": "Hand Retargeting", + "h": "Hand Retargeting", + "body": "
", + "sub": "API", + "api": { + "robokit.helpers.hand_retargeting.HandRetargeterOnline": { + "kind": "class", + "name": "HandRetargeterOnline", + "module": "robokit.helpers.hand_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L32", + "anchor": "handretargeteronline", + "doc": "

Retarget point streams; reference_origin=\"wrist\" centers floating hands internally, but I/O stays world-frame.

Temporal cost:

Example

python
>>> from robokit.robo.robot_spec import RobotSpec\n>>> from robokit.utils.ee_coord_utils import MANOPTH_HAND_COORD_SPEC as coords\n>>> from robokit.opt.population_solver import PopulationSolverConfig, Stage\n>>> from robokit.opt.lm_optimizer import LMOptimizerConfig\n>>> from robokit.utils.warp_utils import wp_vec7\n>>> urdf = '''<robot name=\"finger\"><link name=\"palm\"/><link name=\"tip\"/>\n... <joint name=\"finger\" type=\"revolute\"><parent link=\"palm\"/><child link=\"tip\"/>\n... <origin xyz=\"0 0.03 0\"/><axis xyz=\"0 0 1\"/>\n... <limit lower=\"0\" upper=\"1\" effort=\"1\" velocity=\"1\"/></joint></robot>'''\n>>> robot = Robot(RobotSpec.parse(urdf, load_meshes=False, mesh_dir=None))\n>>> spec = HandSpec(True, (\"tip\", \"wrist\"), {\"tip\": \"tip\", \"wrist\": \"palm\"},\n...                 ((\"tip\",),), \"wrist\", (\"tip\",), coords)\n>>> config = HandRetargeterOnlineConfig(reference_origin=\"wrist\",\n...     solver=PopulationSolverConfig(stages=[Stage(2, optimizer=LMOptimizerConfig())],\n...         cuda_graph_mode=\"none\"))\n>>> config.task(\"positions\").weight = {\"tip\": 24.0, \"wrist\": 0.1}\n>>> solver = HandRetargeterOnline(config, robot, spec, device=\"cpu\")\n>>> solver.warmup(1)\n>>> points = np.array([[[1, 2.03, 3], [1, 2, 3]]], dtype=np.float32)\n>>> packed = solver.solve_numpy(points)\n>>> packed.shape\n(1, 8)\n>>> output = wp.empty((1, 8), dtype=wp.float32, device=\"cpu\")\n>>> solver.solve(wp.from_numpy(points, dtype=wp.float32, device=\"cpu\"), out=output) is output\nTrue\n>>> state = robot.state(q=wp.from_numpy(packed[:, 7:].copy(), dtype=wp.float32, device=\"cpu\"),\n...     T_world_base=wp.from_numpy(packed[:, :7].copy(), dtype=wp_vec7, device=\"cpu\"))\n>>> all(np.isfinite(cost.numpy()).all() for cost in solver.compute_costs(state).values())\nTrue\n>>> solver.reset()
", + "params": [ + { + "name": "config", + "type": "HandRetargeterOnlineConfig", + "default": null, + "required": true, + "doc": "

Online solver, objective, filtering, and sampling settings.

" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "

Loaded robot model; self-collision skip pairs come from its spec (Robot.load(self_collision_ignore_path=...)).

" + }, + { + "name": "spec", + "type": "HandSpec", + "default": null, + "required": true, + "doc": "

Ordered semantic point topology.

" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "

Warp device. The first CUDA device is used when available.

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L126", + "doc": "

Build all batch-shaped terms, buffers, and solver state.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "

Number of independent streams advanced by each solve.

" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(target_points: wp.array, init_state: Optional[RobotState] = None, out: Optional[wp.array] = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L265", + "doc": "

Retarget one batched frame.

", + "params": [ + { + "name": "target_points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Point targets with shape (batch, targets, 3) in spec.target_names order.

" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "

Optional state overriding the streaming warm start.

" + }, + { + "name": "out", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional packed output buffer with shape (batch, 7 + dofs).

" + } + ], + "returns": { + "type": "wp.array", + "doc": "

Packed base transform and joint positions; a helper-owned buffer is reused when out is omitted.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_numpy", + "signature": "solve_numpy(target_points: np.ndarray, init_state: Optional[RobotState] = None) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L380", + "doc": "

NumPy wrapper for solve().

", + "params": [ + { + "name": "target_points", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "reset", + "signature": "reset() -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L392", + "doc": "

Clear all streaming history and disable smoothness until a previous frame exists.

", + "params": [], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "compute_costs", + "signature": "compute_costs(state: RobotState) -> Dict[str, wp.array]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/online.py#L415", + "doc": "

Evaluate the current targets for a caller-provided robot state.

", + "params": [ + { + "name": "state", + "type": "RobotState", + "default": null, + "required": true, + "doc": "

Robot state matching the warmed batch and device.

" + } + ], + "returns": { + "type": "Dict[str, wp.array]", + "doc": "

Per-term costs keyed by task cost name.

" + } + } + ] + }, + "robokit.helpers.hand_retargeting.HandRetargeterOnlineConfig": { + "kind": "class", + "name": "HandRetargeterOnlineConfig", + "module": "robokit.helpers.hand_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L255", + "anchor": "handretargeteronlineconfig", + "doc": "

Frame-level hand-retargeting configuration.

", + "params": [ + { + "name": "terms", + "type": "List[ResidualTask]", + "default": "_default_online_terms()", + "required": false, + "doc": "" + }, + { + "name": "pinch_correspondences", + "type": "Tuple[_Correspondence, ...]", + "default": "()", + "required": false, + "doc": "" + }, + { + "name": "target_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "target_ema_alpha", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "output_ema_alpha", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "sampler", + "type": "RobertsSamplerConfig", + "default": "(lambda: RobertsSamplerConfig(keep_first=True))()", + "required": false, + "doc": "" + }, + { + "name": "base_init_sample_range", + "type": "Tuple[float, float, float]", + "default": "(0.1, 0.1, 0.0)", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "PopulationSolverConfig", + "default": "_online_solver()", + "required": false, + "doc": "" + }, + { + "name": "pinch_threshold", + "type": "float", + "default": "0.03", + "required": false, + "doc": "" + }, + { + "name": "pinch_release_threshold", + "type": "float", + "default": "0.05", + "required": false, + "doc": "" + }, + { + "name": "reference_origin", + "type": "Literal['world', 'wrist']", + "default": "'world'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[ResidualTask] = field(default_factory=_default_online_terms)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L259", + "doc": "

Task templates built at warmup; HandContext lists their inputs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pinch_correspondences", + "signature": "pinch_correspondences: Tuple[_Correspondence, ...] = ()", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L261", + "doc": "

Vector rows whose target shrinks to near zero while their two targets pinch.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_scale", + "signature": "target_scale: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L263", + "doc": "

Scale from human to robot hand size applied to vector targets; pinched rows keep their own length.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_ema_alpha", + "signature": "target_ema_alpha: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L265", + "doc": "

EMA weight of the newest vector and direction targets, in (0, 1]; 1 disables smoothing.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "output_ema_alpha", + "signature": "output_ema_alpha: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L267", + "doc": "

EMA weight of the newest output joints, in (0, 1]; 1 disables smoothing.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "sampler", + "signature": "sampler: RobertsSamplerConfig = field(default_factory=lambda: RobertsSamplerConfig(keep_first=True))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L269", + "doc": "

Joint noise around the previous solution; scale is a fraction of each joint's range.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "base_init_sample_range", + "signature": "base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L271", + "doc": "

Per-axis base translation noise (m) around the previous solution of a floating hand.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: PopulationSolverConfig = field(default_factory=_online_solver)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L273", + "doc": "

Candidate schedule and LM settings of each frame's solve.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pinch_threshold", + "signature": "pinch_threshold: float = 0.03", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L275", + "doc": "

Target distance (m) below which a pinch pair latches.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "pinch_release_threshold", + "signature": "pinch_release_threshold: float = 0.05", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L277", + "doc": "

Target distance (m) above which a latched pinch pair releases.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "reference_origin", + "signature": "reference_origin: Literal['world', 'wrist'] = 'world'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L279", + "doc": "

Solve floating hands relative to the target wrist position (\"wrist\") or in world; I/O frames are unchanged.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: ResidualTask, *, name: Optional[str] = None) -> HandRetargeterOnlineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L282", + "doc": "

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HandRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.1
", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "HandRetargeterOnlineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "task", + "signature": "task(name: str) -> ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L297", + "doc": "

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HandRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.2
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ResidualTask", + "doc": "" + } + } + ] + }, + "robokit.helpers.hand_retargeting.HandRetargeterOffline": { + "kind": "class", + "name": "HandRetargeterOffline", + "module": "robokit.helpers.hand_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L31", + "anchor": "handretargeteroffline", + "doc": "

Retarget trajectory batches in HandSpec.target_names order by solving config.terms over HandContext inputs.

", + "params": [ + { + "name": "config", + "type": "HandRetargeterOfflineConfig", + "default": null, + "required": true, + "doc": "

Trajectory, contact, and solver settings.

" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "

Loaded robot model.

" + }, + { + "name": "spec", + "type": "HandSpec", + "default": null, + "required": true, + "doc": "

Ordered semantic point topology.

" + }, + { + "name": "scene", + "type": "Optional[WarpScene]", + "default": "None", + "required": false, + "doc": "

Optional caller-owned collision scene.

" + }, + { + "name": "device", + "type": "Optional[wp_device_type]", + "default": "None", + "required": false, + "doc": "

Warp device. The first CUDA device is used when available.

" + }, + { + "name": "scene_indices", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional static (batch,) or per-frame (batch, frames) scene mapping.

" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "warmup", + "signature": "warmup(batch_size: int, num_frames: int) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L132", + "doc": "

Build buffers and the config's tasks, and capture the solver for one trajectory shape.

", + "params": [ + { + "name": "batch_size", + "type": "int", + "default": null, + "required": true, + "doc": "

Number of independent trajectories.

" + }, + { + "name": "num_frames", + "type": "int", + "default": null, + "required": true, + "doc": "

Frames in each fixed-shape trajectory.

" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_valid_lengths", + "signature": "set_valid_lengths(lengths: np.ndarray) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L231", + "doc": "

Mask padded frames and temporal edges in every task.

", + "params": [ + { + "name": "lengths", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "set_target_scales", + "signature": "set_target_scales(scales: np.ndarray) -> None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L243", + "doc": "

Set one positive pairwise target scale per warmed trajectory without rebuilding the solver.

Example

python
>>> from robokit.helpers.full_body_retargeting import FullBodyRetargeter\n>>> from robokit.helpers.hand_retargeting.presets.inspire import offline, spec\n>>> solver = HandRetargeterOffline(offline, FullBodyRetargeter().hand_robot(\"right\"), spec)\n>>> solver.warmup(2, 3)\n>>> solver.set_target_scales(np.array([0.9, 1.2]))
", + "params": [ + { + "name": "scales", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "None", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(target_points: wp.array, root_quat_wxyz: Optional[wp.array] = None, init_state: Optional[RobotState] = None, out: Optional[wp.array] = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L261", + "doc": "

Retarget one Warp trajectory batch.

", + "params": [ + { + "name": "target_points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Float points shaped (batch, frames, targets, 3) in spec.target_names order.

" + }, + { + "name": "root_quat_wxyz", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional root rotations shaped (batch, frames, 4).

" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "

Optional joint and base warm start.

" + }, + { + "name": "out", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional packed output shaped (batch, frames, 7 + dofs).

" + } + ], + "returns": { + "type": "wp.array", + "doc": "

Packed base transforms and joint positions.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_numpy", + "signature": "solve_numpy(target_points: np.ndarray, root_quat_wxyz: Optional[np.ndarray] = None, init_state: Optional[RobotState] = None) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L285", + "doc": "

NumPy wrapper for solve().

", + "params": [ + { + "name": "target_points", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "root_quat_wxyz", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_with_contact", + "signature": "solve_with_contact(target_points: wp.array, contact_points: wp.array, contact_mask: wp.array, init_state: Optional[RobotState] = None, local_contact_points: Optional[wp.array] = None, out: Optional[wp.array] = None, surface_contact_mask: Optional[wp.array] = None) -> wp.array", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L316", + "doc": "

Retarget with world-frame contacts; an init_state anchors the solution and its motion to that trajectory.

", + "params": [ + { + "name": "target_points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Named points shaped (batch, frames, targets, 3).

" + }, + { + "name": "contact_points", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

World contacts shaped (batch, frames, contacts, 3).

" + }, + { + "name": "contact_mask", + "type": "wp.array", + "default": null, + "required": true, + "doc": "

Active contacts shaped (batch, frames, contacts).

" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "

Optional state that anchors the solution around that trajectory.

" + }, + { + "name": "local_contact_points", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional contacts in each link frame.

" + }, + { + "name": "out", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional caller-owned packed output.

" + }, + { + "name": "surface_contact_mask", + "type": "Optional[wp.array]", + "default": "None", + "required": false, + "doc": "

Optional mask for sphere-surface contacts; uses contact_mask when omitted.

" + } + ], + "returns": { + "type": "wp.array", + "doc": "

Packed base transforms and joint positions.

" + } + }, + { + "kind": "method", + "base": "", + "name": "solve_with_contact_numpy", + "signature": "solve_with_contact_numpy(target_points: np.ndarray, contact_points: np.ndarray, contact_mask: np.ndarray, init_state: Optional[RobotState] = None, local_contact_points: Optional[np.ndarray] = None, surface_contact_mask: Optional[np.ndarray] = None) -> np.ndarray", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/offline.py#L448", + "doc": "

NumPy wrapper for solve_with_contact().

", + "params": [ + { + "name": "target_points", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "contact_points", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "contact_mask", + "type": "np.ndarray", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "init_state", + "type": "Optional[RobotState]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "local_contact_points", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "surface_contact_mask", + "type": "Optional[np.ndarray]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "np.ndarray", + "doc": "" + } + } + ] + }, + "robokit.helpers.hand_retargeting.HandRetargeterOfflineConfig": { + "kind": "class", + "name": "HandRetargeterOfflineConfig", + "module": "robokit.helpers.hand_retargeting", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L311", + "anchor": "handretargeterofflineconfig", + "doc": "

One whole-trajectory problem; contact_config and refine_config derive the contact ones from tracking.

", + "params": [ + { + "name": "terms", + "type": "List[ResidualTask]", + "default": "_default_offline_terms()", + "required": false, + "doc": "" + }, + { + "name": "target_scale", + "type": "float", + "default": "1.0", + "required": false, + "doc": "" + }, + { + "name": "optimize_base", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "active_joint_names", + "type": "Optional[Tuple[str, ...]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "locked_prefix_frames", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "LMOptimizerConfig", + "default": "_offline_solver()", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: List[ResidualTask] = field(default_factory=_default_offline_terms)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L315", + "doc": "

Task templates of the tracking solve; HandContext lists their inputs.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "target_scale", + "signature": "target_scale: float = 1.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L317", + "doc": "

Scale from human to robot hand size of each trajectory's pairwise targets until set_target_scales.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimize_base", + "signature": "optimize_base: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L319", + "doc": "

Optimize a floating hand's base trajectory; False keeps the initial one.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "active_joint_names", + "signature": "active_joint_names: Optional[Tuple[str, ...]] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L321", + "doc": "

Joints the solve moves; None moves every joint.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "locked_prefix_frames", + "signature": "locked_prefix_frames: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L323", + "doc": "

Leading frames whose joints keep their initial values; base activity follows optimize_base.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: LMOptimizerConfig = field(default_factory=_offline_solver)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L325", + "doc": "

LM settings of the whole-trajectory solve.

", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "add", + "signature": "add(term: ResidualTask, *, name: Optional[str] = None) -> HandRetargeterOfflineConfig", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L328", + "doc": "

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HandRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.1
", + "params": [ + { + "name": "term", + "type": "ResidualTask", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "name", + "type": "Optional[str]", + "default": "None", + "required": false, + "doc": "" + } + ], + "returns": { + "type": "HandRetargeterOfflineConfig", + "doc": "" + } + }, + { + "kind": "method", + "base": "", + "name": "task", + "signature": "task(name: str) -> ResidualTask", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_retargeting/config.py#L343", + "doc": "

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask\n>>> config = HandRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name=\"rest\")\n>>> config.task(\"rest\").weight\n0.2
", + "params": [ + { + "name": "name", + "type": "str", + "default": null, + "required": true, + "doc": "" + } + ], + "returns": { + "type": "ResidualTask", + "doc": "" + } + } + ] + } + } + }, + { + "id": "api-hand_eye_calibration", + "nav": "Hand-Eye Calibration", + "h": "Hand-Eye Calibration", + "body": "
", + "sub": "API", + "api": { + "robokit.helpers.hand_eye_calibration.HandEyeCalibrator": { + "kind": "class", + "name": "HandEyeCalibrator", + "module": "robokit.helpers.hand_eye_calibration", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/calibrator.py#L206", + "anchor": "handeyecalibrator", + "doc": "

Solve the camera extrinsic from robot silhouette masks and/or depth maps.

", + "params": [ + { + "name": "config", + "type": "HandEyeCalibratorConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "camera_intrinsic", + "type": "Float[torch.Tensor, '*obs 3 3']", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "height", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "width", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "render_link_names", + "type": "Optional[List[str]]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "target_link_names", + "type": "Optional[Union[List[str], List[List[str]]]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "last_q", + "signature": "last_q: Optional[torch.Tensor]", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/calibrator.py#L229", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(initial_extrinsic: Float[torch.Tensor, '4 4'], target_masks: Optional[Float[torch.Tensor, 'n_obs height width']] = None, target_depths: Optional[Float[torch.Tensor, 'n_obs height width']] = None, observation_weights: Optional[Float[torch.Tensor, n_obs]] = None, q: Optional[Float[torch.Tensor, '*batch num_dofs']] = None, T_mount_base: Optional[Float[torch.Tensor, 'n_obs 4 4']] = None, keypoint_links: Optional[List[str]] = None, target_keypoints: Optional[torch.Tensor] = None, keypoint_weights: Optional[torch.Tensor] = None) -> Float[torch.Tensor, '4 4']", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/calibrator.py#L466", + "doc": "

Solve camera extrinsics from initial_extrinsic.

Lifecycle

  1. Build the solver for new observations, or reuse stored data.
  2. Reset variables and sample camera or joint candidates.
  3. Optionally initialize q from keypoints, then run native population LM.
  4. Retain the best result and restart if mask mismatch remains high.

Data:

", + "params": [ + { + "name": "initial_extrinsic", + "type": "Float[torch.Tensor, '4 4']", + "default": null, + "required": true, + "doc": "

Initial OpenCV T_camera_base or mounted-camera T_camera_mount, [4,4].

" + }, + { + "name": "target_masks", + "type": "Optional[Float[torch.Tensor, 'n_obs height width']]", + "default": "None", + "required": false, + "doc": "

Robot silhouette masks [N, H, W] in [0, 1].

" + }, + { + "name": "target_depths", + "type": "Optional[Float[torch.Tensor, 'n_obs height width']]", + "default": "None", + "required": false, + "doc": "

Robot-only depth maps [N, H, W] in meters, 0 = invalid.

" + }, + { + "name": "observation_weights", + "type": "Optional[Float[torch.Tensor, n_obs]]", + "default": "None", + "required": false, + "doc": "

Optional nonnegative objective weights [N].

" + }, + { + "name": "q", + "type": "Optional[Float[torch.Tensor, '*batch num_dofs']]", + "default": "None", + "required": false, + "doc": "

Known [N,num_dofs], or one initial [num_dofs] shared across views with optimize_q; None uses midpoints.

" + }, + { + "name": "T_mount_base", + "type": "Optional[Float[torch.Tensor, 'n_obs 4 4']]", + "default": "None", + "required": false, + "doc": "

Per-sample mount pose [N, 4, 4] (mounted camera).

" + }, + { + "name": "keypoint_links", + "type": "Optional[List[str]]", + "default": "None", + "required": false, + "doc": "

Optional link-frame origins to project, with optimize_q.

" + }, + { + "name": "target_keypoints", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Their observed pixels [N,P,2]. NaNs mark missing points.

" + }, + { + "name": "keypoint_weights", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Optional nonnegative confidence weights [N,P].

" + } + ], + "returns": { + "type": "Float[torch.Tensor, '4 4']", + "doc": "

Optimized extrinsic [4,4] on the input device; last_q stores fitted q and last_var includes model offsets.

" + } + } + ] + }, + "robokit.helpers.hand_eye_calibration.HandEyeCalibratorConfig": { + "kind": "class", + "name": "HandEyeCalibratorConfig", + "module": "robokit.helpers.hand_eye_calibration", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L52", + "anchor": "handeyecalibratorconfig", + "doc": "

Eager fitting with pyramid levels, cost terms and candidate sampling.

Example

python
>>> config = HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False)\n>>> config.optimize_q, config.optimize_camera, config.candidate_noise_q\n(True, False, None)
", + "params": [ + { + "name": "levels", + "type": "Sequence[PyramidLevel]", + "default": "_default_levels()", + "required": false, + "doc": "" + }, + { + "name": "terms", + "type": "Sequence[ResidualTask]", + "default": "(lambda: [MaskAlignmentNormalEqTask()])()", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "PopulationSolverConfig", + "default": "_default_solver()", + "required": false, + "doc": "" + }, + { + "name": "candidate_noise_t", + "type": "float", + "default": "0.35", + "required": false, + "doc": "" + }, + { + "name": "candidate_noise_r", + "type": "float", + "default": "0.7", + "required": false, + "doc": "" + }, + { + "name": "restart_mismatch", + "type": "float", + "default": "0.5", + "required": false, + "doc": "" + }, + { + "name": "max_restarts", + "type": "int", + "default": "4", + "required": false, + "doc": "" + }, + { + "name": "seed", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "optimize_q", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "optimize_camera", + "type": "bool", + "default": "True", + "required": false, + "doc": "" + }, + { + "name": "candidate_noise_q", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "keypoint_weight", + "type": "float", + "default": "0.03", + "required": false, + "doc": "" + }, + { + "name": "keypoint_sigma", + "type": "float", + "default": "8.0", + "required": false, + "doc": "" + }, + { + "name": "keypoint_huber_delta", + "type": "float", + "default": "12.0", + "required": false, + "doc": "" + }, + { + "name": "keypoint_warmup_iters", + "type": "int", + "default": "24", + "required": false, + "doc": "" + }, + { + "name": "candidate_metric", + "type": "Literal['objective', 'iou']", + "default": "'objective'", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "levels", + "signature": "levels: Sequence[PyramidLevel] = field(default_factory=_default_levels)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L63", + "doc": "

Coarse-to-fine levels, one per solver segment.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "terms", + "signature": "terms: Sequence[ResidualTask] = field(default_factory=lambda: [MaskAlignmentNormalEqTask()])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L65", + "doc": "

Cost terms; each walks levels itself. MaskAlignmentOffsetTask also calibrates the kinematic model.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: PopulationSolverConfig = field(default_factory=_default_solver)", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L67", + "doc": "

One segment per level; native final ranking returns the best candidate.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "candidate_noise_t", + "signature": "candidate_noise_t: float = 0.35", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L69", + "doc": "

Largest translation (m) of the initial candidates from the initial guess; each draws 0.5-1x of it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "candidate_noise_r", + "signature": "candidate_noise_r: float = 0.7", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L71", + "doc": "

Largest rotation (rad) of the initial candidates from the initial guess; each draws 0.5-1x of it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "restart_mismatch", + "signature": "restart_mismatch: float = 0.5", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L73", + "doc": "

Re-solve with fresh candidates while the final mask mismatch (2 * cost / target mask area) exceeds this.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "max_restarts", + "signature": "max_restarts: int = 4", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L75", + "doc": "

Re-solves allowed after the first; 0 turns restarts off.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "seed", + "signature": "seed: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L77", + "doc": "

Seed of the candidate noise.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimize_q", + "signature": "optimize_q: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L79", + "doc": "

Fit one unknown q vector shared across views; solve(q=...) takes an initial [num_dofs] guess.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimize_camera", + "signature": "optimize_camera: bool = True", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L81", + "doc": "

Optimize the camera extrinsic; False keeps the supplied extrinsic fixed.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "candidate_noise_q", + "signature": "candidate_noise_q: Optional[float] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L83", + "doc": "

Joint sampling radius in radians/meters; None samples the full finite joint limits. Candidate 0 keeps initial q.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keypoint_weight", + "signature": "keypoint_weight: float = 0.03", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L85", + "doc": "

Relative weight of optional 2D link-origin observations.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keypoint_sigma", + "signature": "keypoint_sigma: float = 8.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L87", + "doc": "

Keypoint residual scale in input-image pixels.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keypoint_huber_delta", + "signature": "keypoint_huber_delta: float = 12.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L89", + "doc": "

Robust-loss transition in input-image pixels.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "keypoint_warmup_iters", + "signature": "keypoint_warmup_iters: int = 24", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L91", + "doc": "

Keypoint-only initialization steps; half the broad samples remain unmodified.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "candidate_metric", + "signature": "candidate_metric: Literal['objective', 'iou'] = 'objective'", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L93", + "doc": "

Select by cost or soft IoU; IoU mode uses union-normalized coarse fitting.

", + "params": [], + "returns": null + } + ] + }, + "robokit.helpers.hand_eye_calibration.QposTrajectoryCalibrator": { + "kind": "class", + "name": "QposTrajectoryCalibrator", + "module": "robokit.helpers.hand_eye_calibration", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/qpos_trajectory_calibrator.py#L247", + "anchor": "qpostrajectorycalibrator", + "doc": "

Fit unknown q[T,J], optionally refining static cameras[V,4,4] shared over time; temporal penalties apply only to q.

Example (CUDA, robot meshes and observations required):

python
>>> from robokit.helpers.hand_eye_calibration import presets\n>>> config = presets.rgb_qpos_trajectory\n>>> config.optimize_camera\nFalse\n>>> # helper = QposTrajectoryCalibrator(config, robot, K, H, W)\n>>> # cameras = helper.solve(cameras, masks, timestamps)\n>>> # helper.last_q.shape  # (timestamps, joints)
", + "params": [ + { + "name": "config", + "type": "QposTrajectoryCalibratorConfig", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "robot", + "type": "Robot", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "camera_intrinsic", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "height", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "width", + "type": "int", + "default": null, + "required": true, + "doc": "" + }, + { + "name": "render_link_names", + "type": "Optional[List[str]]", + "default": "None", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "method", + "base": "", + "name": "solve", + "signature": "solve(initial_extrinsics: torch.Tensor, target_masks: torch.Tensor, timestamps: torch.Tensor, observation_weights: Optional[torch.Tensor] = None, q: Optional[torch.Tensor] = None, keypoint_links: Optional[List[str]] = None, target_keypoints: Optional[torch.Tensor] = None, keypoint_weights: Optional[torch.Tensor] = None) -> torch.Tensor", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/qpos_trajectory_calibrator.py#L599", + "doc": "

Fit synchronized silhouettes and optional keypoints to a joint trajectory; an empty mask with positive weight constrains absence.

Lifecycle

  1. Validate calibration, timestamps and observations; normalize mask costs by area.
  2. Initialize a coherent trajectory, or use supplied q without frame sampling.
  3. Fit the coupled image, temporal and optional camera system.
  4. Resolve shared joint offsets against source frames and retain joints and cameras.

Outputs

last_frame_q: Independent frame fits, or the supplied q. last_initial_q: Coherent path before coupled refinement, or the supplied q. last_q: Final joint result [T,J] on the input device.

", + "params": [ + { + "name": "initial_extrinsics", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "

Static calibrated cameras [V,4,4].

" + }, + { + "name": "target_masks", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "

Silhouettes [T,V,H,W] in [0,1].

" + }, + { + "name": "timestamps", + "type": "torch.Tensor", + "default": null, + "required": true, + "doc": "

Finite, strictly increasing source times [T].

" + }, + { + "name": "observation_weights", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Nonnegative mask weights [T,V]; zero marks a missing view.

" + }, + { + "name": "q", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Optional joint trajectory [T,J]; skips frame sampling.

" + }, + { + "name": "keypoint_links", + "type": "Optional[List[str]]", + "default": "None", + "required": false, + "doc": "

Link-frame origins [P] observed by the keypoints.

" + }, + { + "name": "target_keypoints", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Image coordinates [T,V,P,2]; NaNs mark missing points.

" + }, + { + "name": "keypoint_weights", + "type": "Optional[torch.Tensor]", + "default": "None", + "required": false, + "doc": "

Optional confidence weights [T,V,P]; zero excludes a point.

" + } + ], + "returns": { + "type": "torch.Tensor", + "doc": "

Cameras [V,4,4] on the input device; fixed unless camera refinement is enabled.

" + } + } + ] + }, + "robokit.helpers.hand_eye_calibration.QposTrajectoryCalibratorConfig": { + "kind": "class", + "name": "QposTrajectoryCalibratorConfig", + "module": "robokit.helpers.hand_eye_calibration", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L112", + "anchor": "qpostrajectorycalibratorconfig", + "doc": "

Eager frame fitting followed by coupled mask and temporal refinement.

python
>>> config = QposTrajectoryCalibratorConfig(velocity_weight=0.01)\n>>> config.optimize_camera, config.velocity_weight\n(False, 0.01)
", + "params": [ + { + "name": "frame", + "type": "HandEyeCalibratorConfig", + "default": "(lambda: HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False))()", + "required": false, + "doc": "" + }, + { + "name": "initialization_frames", + "type": "Optional[int]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "initialization_paths", + "type": "int", + "default": "1", + "required": false, + "doc": "" + }, + { + "name": "initialization_repairs", + "type": "int", + "default": "0", + "required": false, + "doc": "" + }, + { + "name": "initialization_seconds", + "type": "Optional[float]", + "default": "None", + "required": false, + "doc": "" + }, + { + "name": "levels", + "type": "Sequence[PyramidLevel]", + "default": "(lambda: [PyramidLevel(4, 1.0, 5), PyramidLevel(1, 0.0, 5)])()", + "required": false, + "doc": "" + }, + { + "name": "solver", + "type": "PopulationSolverConfig", + "default": "(lambda: PopulationSolverConfig(stages=[Stage(20, 1, LMOptimizerConfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), Stage(20)]))()", + "required": false, + "doc": "" + }, + { + "name": "path_weight", + "type": "float", + "default": "0.08", + "required": false, + "doc": "" + }, + { + "name": "velocity_weight", + "type": "float", + "default": "0.015", + "required": false, + "doc": "" + }, + { + "name": "acceleration_weight", + "type": "float", + "default": "0.02", + "required": false, + "doc": "" + }, + { + "name": "optimize_camera", + "type": "bool", + "default": "False", + "required": false, + "doc": "" + }, + { + "name": "camera_prior_weight", + "type": "float", + "default": "0.0", + "required": false, + "doc": "" + }, + { + "name": "camera_prior_t", + "type": "float", + "default": "0.03", + "required": false, + "doc": "" + }, + { + "name": "camera_prior_r", + "type": "float", + "default": "0.06", + "required": false, + "doc": "" + } + ], + "callable": true, + "returns": null, + "members": [ + { + "kind": "attribute", + "base": "", + "name": "frame", + "signature": "frame: HandEyeCalibratorConfig = field(default_factory=lambda: HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L122", + "doc": "

Unknown-qpos frame initialization; cameras stay fixed during initialization.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "initialization_frames", + "signature": "initialization_frames: Optional[int] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L126", + "doc": "

Limit broad frame searches to this many visible frames; interpolate before fitting every frame. None searches all.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "initialization_paths", + "signature": "initialization_paths: int = 1", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L128", + "doc": "

Alternative initial pose branches to rank against every source mask before refinement.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "initialization_repairs", + "signature": "initialization_repairs: int = 0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L130", + "doc": "

Additional frame searches at the worst fitted source times; 0 disables repair.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "initialization_seconds", + "signature": "initialization_seconds: Optional[float] = None", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L132", + "doc": "

Stop starting repairs after this initialization time; the initial searches and ranking still complete.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "levels", + "signature": "levels: Sequence[PyramidLevel] = field(default_factory=lambda: [PyramidLevel(4, 1.0, 5), PyramidLevel(1, 0.0, 5)])", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L134", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "solver", + "signature": "solver: PopulationSolverConfig = field(default_factory=lambda: PopulationSolverConfig(stages=[Stage(20, 1, LMOptimizerConfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), Stage(20)]))", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L135", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "path_weight", + "signature": "path_weight: float = 0.08", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L140", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "velocity_weight", + "signature": "velocity_weight: float = 0.015", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L141", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "acceleration_weight", + "signature": "acceleration_weight: float = 0.02", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L142", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "optimize_camera", + "signature": "optimize_camera: bool = False", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L143", + "doc": "

Refine one static extrinsic per view, shared across all frames.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_prior_weight", + "signature": "camera_prior_weight: float = 0.0", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L145", + "doc": "

Prior cost relative to the supplied calibration; 0 disables it.

", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_prior_t", + "signature": "camera_prior_t: float = 0.03", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L147", + "doc": "", + "params": [], + "returns": null + }, + { + "kind": "attribute", + "base": "", + "name": "camera_prior_r", + "signature": "camera_prior_r: float = 0.06", + "source": "https://github.com/openrobokit/robokit/blob/main/src/robokit/helpers/hand_eye_calibration/config.py#L148", + "doc": "

Translation (m) and rotation (rad) scales of shared camera corrections.

", + "params": [], + "returns": null + } + ] + } + } + } + ] +}, +{ + "name": "Development", + "items": [ + { + "id": "dev", + "nav": "Development Guide", + "h": "Development Guide", + "body": "

Setup

Clone the repository and install the development environment with uv:

shell
git clone https://github.com/openrobokit/robokit\ncd robokit\nuv sync

PyTorch is optional. For examples that need it, pick the extra for your CUDA toolkit:

shell
uv sync --extra pt-cu126       # CUDA 12.6\nuv sync --extra pt-cu118       # CUDA 11.8\nuv sync --extra pt-cu128       # CUDA 12.8\nuv sync --extra pt-cpu         # CPU only

See Installation for other extras.

Git Workflow

Work on your own branch. Merge to main through a pull request with squash merge, then delete the branch. Run make ci before committing; it formats, lints, type-checks and runs all tests. It defaults to pt-cu126; use make ci PT=pt-cpu for CPU-only PyTorch.

Formatting, Linting, and Type Checking

shell
uvx ruff check\nuvx ruff format
shell
uv run pyright

Warp's stubs cannot type every kernel expression. Put a needed Pyright ignore on that expression only; keep host code checked. In autograd wrappers, narrow optional gradient buffers only where they are always allocated.

Function Naming

Start function names with one of these verbs:

Warp kernels and functions additionally:

Variable Naming

Use the public notation: T_dst_src, t_dst_src, q_wxyz_dst_src, and q for joint positions.

Comments and Docstrings

Use the full-width separator for sections. Use the short form for class sections and long phases inside a function.

python
# --- kernels ----------------------------------------------------------------\n# --- build solver ---

Use lowercase fragments for section labels and short code comments:

python
# skip the normal/closest math (~2x faster)

Write full-sentence comments with normal capitalization and punctuation. Keep proper names, acronyms and identifiers as they are. Spell out words in section labels.

Use Google-style docstrings (Args: / Returns: / Raises: sections) with single-backtick inline code.

Testing

Run pytest and documentation tests:

shell
uv run pytest\nuv run xdoctest robokit\nuv run scripts/test_docs.py

Markdown Examples

Each Python fence runs on its own. Include imports, small sample inputs and assertions. Wrap setup and checks in # docs: hide / # docs: endhide to hide them from the short view:

text
# docs: hide\nvalues = [1, 2, 3]\n# docs: endhide\ntotal = sum(values)\n# docs: hide\nassert total == 6\n# docs: endhide

The website shows the short view; Full and Copy use the complete code. scripts/test_docs.py runs every fence with xdoctest. Hide # xdoctest: +SKIP in examples that download assets, and # xdoctest: +REQUIRES(...) in optional ones: ROBOKIT_CUDA_DOCS=1 for CUDA, ROBOKIT_BODY_MODELS for body models, ROBOKIT_PARAHOME_DOCS=1 for ParaHome. To test the website's copies, run uv run scripts/test_docs.py <robokit-website>/_page/docs/robokit.

Doctest

Give every public function a doctest:

python
def quaternion_multiply(\n    q_wxyz_1: Float[torch.Tensor, \"... 4\"], q_wxyz_2: Float[torch.Tensor, \"... 4\"]\n) -> Float[torch.Tensor, \"... 4\"]:\n    \"\"\"\n    Multiply two quaternions.\n\n    Example:\n        >>> q1 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834])\n        >>> q2 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834])\n        >>> expected = torch.tensor([0.7071068, 0.0, 0.0, 0.7071068])\n        >>> torch.allclose(quaternion_multiply(q1, q2), expected, atol=1e-6)\n        True\n    \"\"\"\n    return _quaternion_multiply(q_wxyz_1, q_wxyz_2)

Pytest

Tests use local fixtures. Hugging Face calls are blocked.

To test MANO PKL conversion and CPU engine parity with local body models:

shell
ROBOKIT_BODY_MODELS=\"$HOME/.robokit/body_models\" CUDA_VISIBLE_DEVICES='' \\\nuv run pytest tests/assets/test_body_models.py tests/smplx/test_mano_engine.py -q --no-cov

Group test cases into one class. Compare results across implementations:

python
class TestQuaternionToMatrix:\n    @pytest.fixture(autouse=True)\n    def setup(self):\n        \"\"\"Initialize Warp before each test.\"\"\"\n        wp.init()\n\n    def _test_consistency(self, quat_torch: torch.Tensor):\n        \"\"\"Helper function to test consistency between implementations.\"\"\"\n        quat_np = quat_torch.numpy(force=True)\n\n        result_warp = quaternion_to_matrix_warp(quat_torch)\n        result_numpy = torch.as_tensor(\n            quaternion_to_matrix_numpy(quat_np), device=result_warp.device, dtype=result_warp.dtype\n        )\n\n        torch.testing.assert_close(result_warp, result_numpy, atol=1e-6, rtol=1e-6)\n\n        return result_warp\n\n    def test_identity_quaternion(self):\n        \"\"\"Test identity quaternion conversion.\"\"\"\n        quat = torch.tensor([1.0, 0.0, 0.0, 0.0])\n        result = self._test_consistency(quat)\n        expected = torch.eye(3)\n        assert result.shape == (3, 3)\n        torch.testing.assert_close(result, expected, atol=1e-6, rtol=1e-6)

Documentation Assets

README and docs images load from https://openrobokit.com/assets/docs/robokit/assets/<path>, so the repository stays light; the task previews are under built-in-tasks/. Pages link them by relative path. Gallery recordings stay in the website repository. Update assets here, then run make import PROJECT=robokit SRC=/path/to/robokit in the website checkout, with SRC pointing at this branch or worktree. Do not keep copies in the website source.

Asset Authoring

Robot descriptions, datasets and collision configs live at openrobokit/robokit. Import an asset module to use its path symbols. See Built-in Robots & Datasets for loading assets and fetch().

Layout

text
~/.robokit/\n├── assets/                              # extension-preserving runtime paths\n│   └── <pinned-commit>/\n│       ├── robots/\n│       │   ├── robot_description/       # URDFs and meshes\n│       │   │   ├── arms/\n│       │   │   ├── end_effectors/\n│       │   │   ├── humanoids/\n│       │   │   └── assembly/\n│       │   ├── robot_mj_description/    # MJCFs and MuJoCo assets\n│       │   ├── collision_spheres/\n│       │   ├── contact_points/\n│       │   ├── contact_avoid_points/\n│       │   └── self_collision/\n│       ├── datasets/                   # one folder per source\n│       │   └── <name>/                 # clips, metadata, objects/ when provided\n│       ├── policies/\n│       └── calibration/\n├── body_models/                         # user-provided, never fetched from HF\n│   ├── mano/\n│   └── smplx/\n├── hf_cache/                            # Hugging Face blobs and snapshots\n│   └── datasets--openrobokit--robokit/\n│       ├── blobs/\n│       └── snapshots/\n└── hf_repo/                             # writable authoring checkout

Robot files are type-major. One robot's URDF, collision spheres and contact points sit in different robots/ subdirs under the same robot name.

Each dataset source gets a lowercase datasets/<name>/ folder for its clips and object meshes. Its access module lives in robokit.assets.datasets.

Robot asset naming

Self-collision ignore sets

scripts/geom/self_collision/generate_ignore.py writes ignore.<backend>.{yml,srdf} for one robot. Run it per model and backend, into the writable checkout. capsule needs only the URDF/MJCF; sphere also needs collision spheres that cover the whole model:

shell
uv run scripts/geom/self_collision/generate_ignore.py <urdf> --backend capsule \\\n    --out-dir ~/.robokit/hf_repo/robots/self_collision/<robot> --out-stem ignore\nuv run scripts/geom/self_collision/generate_ignore.py <urdf> --backend sphere --spheres <yaml> \\\n    --out-dir ~/.robokit/hf_repo/robots/self_collision/<robot> --out-stem ignore

Expose each file as SPHERE_/CAPSULE_SELF_COLLISION_IGNORE_PATH, with an MJ_ prefix for MJCF variants. The fcl backend is not shipped.

Publishing Assets

Keep upstream license files and copyright notices beside copied assets, including those of each assembly component.

Create the writable checkout, edit robokit_assets/, then commit and push:

shell
uv run python -c \"from robokit.assets import checkout; checkout()\"\ncd robokit_assets\ngit add -A && git commit -m \"add <asset>\" && git push\ngit rev-parse HEAD

Keep the type-major layout above. In the same RoboKit change, expose the path in src/robokit/assets/<kind>/<name>.py. Set the pinned commit in src/robokit/assets/__init__.py to the printed hash.

Note

checkout() clones the writable checkout to ~/.robokit/hf_repo and links it as ./robokit_assets. Binary assets use Git LFS. Before adding a new binary extension, run git lfs track \"*.<ext>\".

" + } + ] +}, +// END GENERATED DOCS + ] +}; diff --git a/data/search.json b/data/search.json deleted file mode 100644 index c06775f..0000000 --- a/data/search.json +++ /dev/null @@ -1 +0,0 @@ -{"robokit/overview":"overview overview robokit is a high-performance, general-purpose toolkit for versatile robotic tasks. it scales from one problem to thousands in parallel. it provides a library of cost terms and optimizers that compose freely. built-in tasks such as ik, motion planning, and retargeting are validated on real robots. thousands of robots solving in parallel. benchmarks bars are wall-clock time on the same task, baseline normalized to full width. check the paper for benchmark details. optimization/learning with simulation nist assembly rl a franka puts six nist board parts in place, one after another (3× speed). rough terrain rl a go1 walks up and down stairs, following the green velocity command. pen spinning mpc a sharpa hand spins a pen in its fingers. notebook opening mpc two xhands open a hinged arctic notebook. box carrying mpc a g1 lifts and carries a box. climbing mpc a g1 climbs a box on hands and knees. optimization with analytic objectives ik multi-link targets, fixed or floating base. motion planning collision-free trajectories, offline or online. hand-eye calibration camera pose from rendered robot masks. humanoid retargeting human motion capture to a humanoid. hand retargeting human hand motion to a robot hand. grasp optimization force-closure grasps for any hand or body. how it works component role read more robot load urdf or mjcf models and compute batched, differentiable kinematics. robot objectives cost terms that define a task: pose matching, collision, limits, contacts. terms optimizers sampling and gradient methods that minimize the objectives in parallel. optimization acceleration fast geometry and rendering for contact-rich and calibration tasks. geometry distillation train policies on solver outputs for even faster inference. installation requires python 3.8 or newer: shell uv add robokit # or: pip install robokit pytorch is optional. see installation for source installs and extras. quick links quickstart installation development github citation bibtex @inproceedings{ye2026robokit, title = {robokit: accelerating parallel differentiable optimization for robot learning}, author = {ye, jianglong and peng, xuanbin and mc gartoll, conor and jing, changwei and wei, lai and chen, jiali and zou, xueyan and wang, xiaolong}, booktitle = {conference on robot learning (corl)}, year = {2026} }","robokit/quickstart":"quickstart quickstart try it without installing run this to start the interactive ik gallery: shell uvx --from robokit python -m robokit.gallery.ik drag targets, switch robots, and adjust weights. replace ik with any gallery below. ik drag targets and tune ik weights. ik_legged balance humanoids and quadrupeds. motion_plan plan motions around obstacles. humanoid_retargeting retarget human motion to humanoids. humanoid_retargeting_contact retarget humanoids with object contacts. hand_retargeting_contact retarget hands with object contacts. hand_retargeting retarget hands onto any base, online or offline. robot_models browse robots, collision spheres, and frames. full_body_retargeting retarget whole-body human-object interaction. solve one ik problem after installing , this is the whole program: python from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.helpers.ik import iksolver, presets from robokit.robo import robot robot = robot.load(load_robot_description(\"panda_description\")) ik = iksolver(presets.basic, robot=robot, target_links=\"panda_hand\") t_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0] # x, y, z, qw, qx, qy, qz state = ik.solve_numpy(t_world_target) print(state.q.numpy()[0]) # joint positions ik uses the gpu when one is visible, else the cpu. more examples galleries are interactive demos. for code to copy, open a runnable script below. paths are relative to src/robokit/examples . directory scripts ik 01_basic.py , 02_smooth.py , 03_batch.py , 04_torch.py , 05_bimanual.py , 06_mobile.py , 07_mimic_joints.py , 08_collision.py , 09_self_collision.py , 10_humanoid.py , 11_manipulability.py , 12_heterogeneous_collision.py motion_plan 01_online_mppi.py , 02_offline_lbfgs.py , 03_offline_batch.py , 04_online_lbfgs.py , 05_q_goal.py , 06_heterogeneous.py humanoid_retargeting 01_online.py , 02_collision.py , 03_self_collision.py , 04_offline.py , 05_batch.py , 06_online_batch.py , 07_contact.py , 08_terrain.py , 09_alignment.py , 10_full_body.py , 11_full_body_batch.py hand_retargeting 01_online.py , 02_offline.py , 03_batch.py , 04_arm.py , 05_online_batch.py , 06_contact.py , 07_batch_contact.py hand_eye_calibration 01_sim_rgb.py , 02_sim_mounted.py , 03_sim_depth.py , 04_real_xarm.py , 05_sim_offsets.py , 06_sim_qpos.py grasp 01_basic.py , 02_annealed_gd.py geom 01_basic.py , 02_robot.py , 03_heterogeneous_batch.py , 04_lod.py opt 01_rosenbrock.py , 02_solvers.py , 03_multi_candidate.py , 04_curve_fit.py , 05_mpc_pendulum.py , 06_mpc_navigation.py , 07_ilqr_pendulum.py sim_mpc 01_sharpa_oakink.py , 02_xhand_arctic.py , 03_g1_climb.py , 04_g1_carry.py , 05_g1_amass.py , 06_leap_cube.py , 07_sharpa_pen.py , 08_sharpa_coin.py , 09_sharpa_cap.py , 10_wuji_cube.py , 11_h1_jog.py , 12_go2_jump.py , 13_fr3_push.py , 14_fr3_balance.py , 15_batch.py , 16_demo_repair.py , 18_g1_flip.py example usage: shell uv run src/robokit/examples/ik/01_basic.py","robokit/install":"installation installation robokit needs python 3.8 or newer. uv pip shell uv add robokit shell pip install robokit from source uv pip shell uv add git+https://github.com/openrobokit/robokit shell pip install git+https://github.com/openrobokit/robokit to work on robokit itself, follow the development guide . extras extra what it adds mj mjcf loading (assembly needs mujoco 3.3.4+, python 3.9+). mjwarp mujoco warp for simmpc (python 3.10+). pt-cu126 , pt-cu118 , pt-cu128 , pt-cpu pytorch for your cuda toolkit. the mask-alignment term and camera calibration also need nvdiffrast built for your exact pytorch and cuda, such as pip install \"nvdiffrast==0.3.3+pt2.11.0cu126\" --extra-index-url https://jianglongye.github.io/torch_packages_builder .","robokit/rl":"rl rl a g1 tracks a lafan1 dance. a go1 follows joystick commands. robokit.helpers.rl trains policies on batched gpu simulations, with features including ppo, cuda-graphed updates, and coarse-to-fine physics. this tutorial covers the main rl workflows. the examples' envs run on mujoco warp ( mjwarpsim ); install it with the mj and mjwarp extras , and pytorch with a pt-* extra. complete runnable examples are in src/robokit/examples/rl . how rl works each ppo update follows three steps: roll the actor out for horizon steps in every world of the env. update the actor and the critic on that rollout over several epochs. adapt the learning rate to the policy's kl divergence. flowchart td input[input

env of batched gpu worlds] subgraph training[training] direction tb roll[1. roll out the actor] update[2. update actor and critic] adapt[3. adapt the learning rate] roll --> update --> adapt adapt -->|repeat| roll end actor[return the actor] input --> roll adapt --> actor the env's tensors stay on the gpu, so no step waits for the host. after a few warm-up updates, each update replays as one cuda graph. environments an env implements env : n worlds, the actor's and the critic's observation sizes ( obs_dims ), the action bound , and the names of its reward terms. its methods take and return gpu tensors: method what it does obs() returns the actor's and the critic's observations. step(action) acts; returns the reward, terminated and truncated flags per world, and each reward term's mean. reset(mask) resets the masked worlds. curriculum(step) moves the curriculum to step env steps. the examples wrap mjwarpsim worlds and read sim.data.torch.qpos , qvel and ctrl , zero-copy torch views. basic ppo a ppo holds an actor and a critic. each update(env) rolls out once and updates once; the caller owns the loop. this trains on a toy env where actions near zero pay: python full from robokit.helpers.rl import ppo learner = ppo.ppo(env.obs_dims, len(env.bound), ppo.ppoconfig()) for _ in range(10): learner.update(env) score = ppo.evaluate(env, learner.actor, steps=100) # each reward term's mean per step, and terminations from types import simplenamespace import torch obs, done = torch.zeros(64, 3, device=\"cuda\"), torch.zeros(64, dtype=torch.bool, device=\"cuda\") env = simplenamespace( n=64, obs_dims=(3, 3), bound=torch.ones(2, device=\"cuda\"), names=[\"effort\"], obs=lambda: (obs, obs), step=lambda a: (-(a**2).sum(1), done, done, (a**2).mean()[none]), reset=id, curriculum=id, ) from robokit.helpers.rl import ppo learner = ppo.ppo(env.obs_dims, len(env.bound), ppo.ppoconfig()) for _ in range(10): learner.update(env) score = ppo.evaluate(env, learner.actor, steps=100) # each reward term's mean per step, and terminations assert set(score) == {\"effort\", \"terminations\"} learner.actor(obs) returns the mean action. ppoconfig holds the ppo settings, such as horizon , epochs , minibatches , lr , kl , entropy , and hidden . coarse-to-fine training a policy can train on cheaper physics first. build the coarse env's scene with mjwarpsim.build_coarse_spec and a coarseconfig , then let train mix it in: over the first half of the time, an update draws it with a chance falling to 0. python actor = learner.train(fine, minutes, coarse_env=coarse, coarse=0.5) examples example task 01_joystick.py a go1 or g1 tracks twist commands. 02_rough_joystick.py a go1 or g1 tracks twist commands on rough terrain. 03_lift.py a yam arm carries a cube to random targets. 04_go1_getup.py a go1 stands up from a random pose. 05_panda_pick.py a panda picks up a cube and brings it to a target. 06_leap_reorient.py a leap hand turns a cube to goal after goal. 07_aloha_handover.py two aloha arms pass a box between grippers. 08_g1_tracking.py a g1 tracks a lafan1 dance. 09_go1_handstand.py a go1 balances on its front feet. 10_h1_gait.py an h1 walks at a commanded step rate and swing height. 11_aloha_peg.py two aloha arms push a peg into a socket. 12_panda_cabinet.py a panda pulls a drawer open. 13_cartpole.py a cart swings up and balances a pole. 14_nist_assembly.py a panda inserts pegs and meshes gears on the nist assembly board. run one with uv run src/robokit/examples/rl/13_cartpole.py swingup --minutes 1 .","robokit/sim-mpc":"sim mpc sim mpc a g1 lifts and carries a box. a sharpa hand spins a pen in its fingers. robokit.helpers.sim_mpc is sampling mpc in simulation, with features including motion-capture tracking, legged gaits, hand-object manipulation, pushing, and batched scenes. this tutorial covers the main simmpc workflows. rollouts run in mujoco warp ( mjwarpsim ) or newton ( robokit.sim.newton.newtonsim ); install mujoco warp with the mj and mjwarp extras . complete runnable examples are in src/robokit/examples/sim_mpc . how simmpc works each plan(data, t0) starts from the given state, then follows four steps: sample control offsets around the current plan; draw zero is the plan itself. roll every draw out in parallel worlds for horizon_steps and sum its costs. move the plan toward the low-cost draws, until it stops improving or reaches max_iterations . return the first ctrl_steps commands and shift the plan forward. flowchart td input[input

current state
sim step t0] subgraph planning[planning] direction tb sample[1. sample control offsets] roll[2. roll out and score] move[3. move the plan] sample --> roll --> move move -->|repeat| sample end output[return the next commands] input --> sample move --> output controls are ctrl_ref plus offsets interpolated between nodes every node_steps sim steps. the sampler is robokit's mppi, the one motion planning runs. simmpc runs on the current warp device; on a cuda gpu every sim step replays a captured cuda graph, and the cpu is much slower. basic simmpc a simmpc combines a simmpcconfig , a planning simulator, and ctrl_ref . this drives a cart on a slide joint from x = 0 to x = 0.3 : python full import mujoco import numpy as np from robokit.helpers.sim_mpc import simmpc, simmpcconfig from robokit.sim import mjwarpsim from robokit.terms import sensortask model = mujoco.mjmodel.from_xml_string(\"\"\" \"\"\") data = mujoco.mjdata(model) mujoco.mj_forward(model, data) steps = 100 config = simmpcconfig(num_samples=64, horizon_steps=30, node_steps=10, ctrl_steps=10, max_iterations=4, ctrl_std=0.1) ctrl_ref = np.zeros((steps + config.horizon_steps, model.nu)) # a row for every step a horizon reaches sensor_ref = np.full((len(ctrl_ref), model.nsensordata), 0.3) config.add(sensortask(sensor_ref, weight={\"x\": 100.0})) mpc = simmpc(config, mjwarpsim(model, 1, data), ctrl_ref) # plans on resized copies of this simulator (rollout,), (plans,) = mpc.execute(mjwarpsim(model, 1, data), steps) # one rollout and one plan list per instance qpos = rollout[\"qpos\"] # (steps, nq), row k is the state at sim step k # or execute the commands yourself, here in mujoco on the cpu mpc = simmpc(config, mjwarpsim(model, 1, data), ctrl_ref) for t0 in range(0, steps, config.ctrl_steps): commands, infos = mpc.plan(data, t0) # (ctrl_steps, batch_size, nu); the plan then shifts by ctrl_steps for command in commands.numpy()[:, 0]: data.ctrl[:] = command mujoco.mj_step(model, data) import mujoco import numpy as np from robokit.helpers.sim_mpc import simmpc, simmpcconfig from robokit.sim import mjwarpsim from robokit.terms import sensortask model = mujoco.mjmodel.from_xml_string(\"\"\" \"\"\") data = mujoco.mjdata(model) mujoco.mj_forward(model, data) steps = 100 config = simmpcconfig(num_samples=64, horizon_steps=30, node_steps=10, ctrl_steps=10, max_iterations=4, ctrl_std=0.1) ctrl_ref = np.zeros((steps + config.horizon_steps, model.nu)) # a row for every step a horizon reaches sensor_ref = np.full((len(ctrl_ref), model.nsensordata), 0.3) config.add(sensortask(sensor_ref, weight={\"x\": 100.0})) mpc = simmpc(config, mjwarpsim(model, 1, data), ctrl_ref) # plans on resized copies of this simulator (rollout,), (plans,) = mpc.execute(mjwarpsim(model, 1, data), steps) # one rollout and one plan list per instance qpos = rollout[\"qpos\"] # (steps, nq), row k is the state at sim step k assert qpos.shape == (steps, model.nq) and rollout[\"ctrl\"].shape == (steps, model.nu) assert abs(qpos[-1, 0] - 0.3) < 0.05, qpos[-1, 0] # or execute the commands yourself, here in mujoco on the cpu mpc = simmpc(config, mjwarpsim(model, 1, data), ctrl_ref) for t0 in range(0, steps, config.ctrl_steps): commands, infos = mpc.plan(data, t0) # (ctrl_steps, batch_size, nu); the plan then shifts by ctrl_steps for command in commands.numpy()[:, 0]: data.ctrl[:] = command mujoco.mj_step(model, data) assert abs(data.qpos[0] - 0.3) < 0.05, data.qpos[0] execute(sim, num_steps) runs the closed loop on sim and returns each instance's executed time , qpos , qvel , sensordata and ctrl at every sim step, plus one info dict per plan. plan(data, t0) takes a simulator's data or one mujoco.mjdata ; t0 indexes ctrl_ref and the references. ctrl_std sets each actuator's sampling noise, and ctrl_range bounds the commands (default: the actuator ranges). simmpc resizes the planning simulator into its worlds, so size its contact buffers up front: mjwarpsim(model, 1, data, nconmax=..., njmax=...) . costs a cost is a robokit.terms task that reads the simulator's arrays after each step. row k of a reference array describes sim step k , matching the rows execute returns. term per step statetask(qpos_ref, qvel_ref, dof_weight) weighted qpos and qvel error to the reference. sensortask(sensor_ref, weight) weighted error of the named sensors to the reference. controltask(weight, ctrl_ref) weighted squared deviation of the controls from ctrl_ref . aligntask(origin, sensor, target_ref, weight) pushes an object toward a goal. contacttask(geoms, target, radius, allowed, weight, penalty, margin) rewards contacts in target discs (or a box around each target, at a height ); penalizes touches outside allowed ones. grasptask(gripper, obj, offset, weight) distance from a gripper body to an object body. config.add(term, running_scale=1.0, terminal_scale=none) scales a term at every step and at the horizon's last step; running_scale=0 makes it terminal-only. custom costs a new cost subclasses task : its constructor stores simcontext placeholders, resolve swaps them for the simulator's arrays, and compute_weighted_cost launches warp kernels. terms read only simcontext values, so one can be checked without a simulator: python full import numpy as np import warp as wp from robokit.terms import controltask, simcontext context = { simcontext.ctrl: wp.array([[1.0, 2.0], [0.0, 1.0]], dtype=float, device=\"cpu\"), simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), simcontext.num_instances: 1, simcontext.worlds_per_instance: 2, } term, out = controltask(weight=[0.5, 1.0]), wp.zeros(2, dtype=float, device=\"cpu\") term.resolve(none, context) term.compute_weighted_cost(none, out_cost=out) # each world's 0.5 * u0**2 + 1.0 * u1**2 import numpy as np import warp as wp from robokit.terms import controltask, simcontext context = { simcontext.ctrl: wp.array([[1.0, 2.0], [0.0, 1.0]], dtype=float, device=\"cpu\"), simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), simcontext.num_instances: 1, simcontext.worlds_per_instance: 2, } term, out = controltask(weight=[0.5, 1.0]), wp.zeros(2, dtype=float, device=\"cpu\") term.resolve(none, context) term.compute_weighted_cost(none, out_cost=out) # each world's 0.5 * u0**2 + 1.0 * u1**2 assert np.allclose(out.numpy(), [4.5, 1.0]) faster planning the planning simulator may be cheaper than the executed one if nq , nv , nu and nsensordata match: mjwarpsim.build_coarse_spec(spec, coarseconfig(max_hull_vertices, qpos_ref)) caps each mesh's convex hull and keeps only the contact pairs that come near along the motion. config.stages runs simmpcstage(iters, dt) stages in order. dt=[(0.25, none), (1.0, 0.04)] steps the first quarter of the horizon at the timestep and the rest at 40 ms. by default, simmpc picks 4x or 2x steps when their rollouts stay close to fine ones. contacts exist only near a geom. to reward a foot before it lands, give the planning model geoms that detect far but push at the usual distance: margin=\"1\" gap=\"0.999\" before mujoco 3.10, and margin=\"0.001\" gap=\"0.999\" from 3.10. batch planning simmpcconfig.batch_size plans several instances of one model at once, such as several clips of one scene. give plan one state per instance; ctrl_ref and reference arrays take a leading instance axis, or are shared without one. rollout worlds are instance-major. instances whose scenes differ, such as one hand with a different object each, plan on mjwarpsim(specs, [1] * batch_size) . the scenes must share bodies, joints, actuators and sensors. control maps simmpcconfig.control_map(sim, clock) turns sampled commands into actuator controls before every step. cartesiancontrol(model, body, ...) reads the first six commands as a world-frame twist of body and solves damped least squares for joint velocities; the scene needs velocity actuators on scalar joints.","robokit/ik":"ik ik an arm tracking a dragged target. a humanoid tracking hand targets while balancing. robokit.helpers.ik solves inverse kinematics. it handles multiple target links, floating bases, joint limits, smoothness, and collision avoidance. the snippets assume robot , device , and targets are defined. runnable examples are in src/robokit/examples/ik . how ik works each solve takes target link poses and an optional initial state: sample candidate states near the initial state. optimize pose errors and other costs (levenberg-marquardt by default). return the best candidates as a robotstate . flowchart td input[input

target link poses
optional initial state] subgraph solving[solving] direction tb sample[1. sample candidates] opt[2. optimize costs] pick[3. select the best] sample --> opt --> pick end state[return robotstate] input --> sample pick --> state basic ik an iksolver takes a configuration, a robot, and target_links : one or more link names or indices. presets.basic has position, rotation, and joint-limit terms. pass the target as a translation-first 7d pose: python full from robokit.helpers.ik import iksolver, presets ik = iksolver(presets.basic, robot=robot, target_links=\"panda_hand\", device=device) t_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0] # x, y, z, qw, qx, qy, qz state = ik.solve_numpy(t_world_target) q = state.q.numpy()[0] import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import iksolver, presets ik = iksolver(presets.basic, robot=robot, target_links=\"panda_hand\", device=device) t_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0] # x, y, z, qw, qx, qy, qz state = ik.solve_numpy(t_world_target) q = state.q.numpy()[0] assert q.shape == (robot.spec.num_actuated_joints,) assert np.isfinite(q).all() the first solve builds the solver for its batch size. call ik.warmup(batch_size=1) to build it before a control loop. create a new ik to change the batch size. solve() takes warp arrays. tracking ik presets.smooth adds a smoothness term. pass the previous result as both init_state and prev_state when solving a moving target: python full ik = iksolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device) state = none for t_world_target in target_trajectory: state = ik.solve_numpy(t_world_target, init_state=state, prev_state=state) import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import iksolver, iksolverconfig, presets from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.smoothness_task import smoothnesstask target_trajectory = np.array([[0.5, 0.2, 0.5, 0, 0, 1, 0], [0.5, 0.21, 0.5, 0, 0, 1, 0]], dtype=np.float32) ik = iksolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device) state = none for t_world_target in target_trajectory: state = ik.solve_numpy(t_world_target, init_state=state, prev_state=state) assert np.isfinite(state.q.numpy()).all() init_state centers new samples on the previous answer. prev_state feeds temporal terms. the solver keeps the previous answer if it scores better. custom terms build an iksolverconfig when a preset does not contain the terms you need: python full from robokit.helpers.ik import ikcontext, iksolver, iksolverconfig from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.smoothness_task import smoothnesstask config = ( iksolverconfig(sampler=robertssamplerconfig(scale=1.0, keep_first=true)) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=20.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=1.0)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device) import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import ikcontext, iksolver, iksolverconfig from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.smoothness_task import smoothnesstask config = ( iksolverconfig(sampler=robertssamplerconfig(scale=1.0, keep_first=true)) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=20.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=1.0)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device) assert ik.config.task(\"smoothness_task_0\").weight == 1.0 arguments the solver fills hold ikcontext members, such as target (the poses passed to solve ), previous_state (its prev_state ), and scene (the solver's scene). use add_score() to rank candidates without changing the optimization. compositetask(tasks, thresholds=[...]) mixes constraints and scores. a numeric threshold makes a child a constraint; none makes it a score. candidates that pass every constraint rank first. batch ik add a leading batch dimension to solve several targets in one call: python full from robokit.helpers.ik import iksolver, presets ik = iksolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device) state = ik.solve_numpy(t_world_target_batch) q_batch = state.q.numpy() import numpy as np from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot from robokit.helpers.ik import iksolver, presets device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) t_world_target_batch = np.tile(np.array([0.5, 0.2, 0.5, 0, 0, 1, 0], dtype=np.float32), (2, 1)) ik = iksolver(presets.smooth, robot=robot, target_links=\"panda_hand\", device=device) state = ik.solve_numpy(t_world_target_batch) q_batch = state.q.numpy() assert q_batch.shape == (2, robot.spec.num_actuated_joints) the output shape is (batch * ik.num_solutions, dofs) . presets return one solution per target. a custom final stage can keep more, in instance-major order. multiple target links pass several link names to solve them together. target row i belongs to links[i] : python full links = [\"yumi_link_7_r\", \"yumi_link_7_l\"] ik = iksolver(presets.single_candidate, robot=robot, target_links=links, device=device) # t_world_target: shape (2, 7), or (batch, 2, 7) state = ik.solve_numpy(t_world_target) import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import iksolver, iksolverconfig, presets from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.smoothness_task import smoothnesstask robot = robot.load(load_robot_description(\"yumi_description\")) initial = robot.forward_kinematics(robot.state()) t_world_target = initial.t_world_link.numpy()[ 0, [robot.spec.link_names.index(name) for name in (\"yumi_link_7_r\", \"yumi_link_7_l\")] ] links = [\"yumi_link_7_r\", \"yumi_link_7_l\"] ik = iksolver(presets.single_candidate, robot=robot, target_links=links, device=device) # t_world_target: shape (2, 7), or (batch, 2, 7) state = ik.solve_numpy(t_world_target) assert state.q.shape[0] == 1 pass per-link weights to positiontask or rotationtask , such as weight=[20.0, 5.0] . floating base set enable_t_world_base=true to optimize the base pose with the joints. a zero in base_active_mask locks that dof. this config allows planar base motion and locks z, roll, and pitch: python full config = ( iksolverconfig( enable_t_world_base=true, sampler=robertssamplerconfig(scale=1.0, keep_first=true), base_init_sample_range=(1.0, 1.0, 0.0), base_active_mask=[1.0, 1.0, 0.0, 0.0, 0.0, 1.0], ) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=5.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=0.1, base_weight=0.5)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device) state = ik.solve_numpy(t_world_target, init_state=state, prev_state=state) t_world_base = state.t_world_base.numpy()[0] import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import ikcontext, iksolver, iksolverconfig, presets from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.smoothness_task import smoothnesstask robot = robot.load(load_robot_description(\"panda_description\")) state = none t_world_target = np.array([0.3, 0.0, 0.3, 1, 0, 0, 0], dtype=np.float32) config = ( iksolverconfig( enable_t_world_base=true, sampler=robertssamplerconfig(scale=1.0, keep_first=true), base_init_sample_range=(1.0, 1.0, 0.0), base_active_mask=[1.0, 1.0, 0.0, 0.0, 0.0, 1.0], ) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=5.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=0.1, base_weight=0.5)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device) state = ik.solve_numpy(t_world_target, init_state=state, prev_state=state) t_world_base = state.t_world_base.numpy()[0] assert t_world_base.shape == (7,) assert np.isfinite(t_world_base).all() base_init_sample_range sets the per-axis translation noise around the initial base pose. collision avoidance load the robot with collision spheres, then add scene and self-collision terms: python full from robokit.terms.dense.scene_collision_task import scenecollisiontask from robokit.terms.dense.self_collision_task import selfcollisiontask config = ( iksolverconfig(sampler=robertssamplerconfig(scale=1.0, keep_first=true), solver=presets.smooth.solver) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=20.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=1.0)) .add(scenecollisiontask(scene=ikcontext.scene, weight=100.0, margin=0.02)) .add(selfcollisiontask(robot, representation=\"sphere\", weight=5.0, margin=0.01)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device, scene=scene) import numpy as np import warp as wp from robokit.helpers.ik import ikcontext, iksolver, iksolverconfig, presets from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.smoothness_task import smoothnesstask device = \"cpu\" from robokit.robo import robot from robokit.assets.robots.arms import franka_panda from robokit.geom import boxgeom, warpscene robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) scene = warpscene(1, device).add( boxgeom(np.array([[0.1, 0.1, 0.1]], dtype=np.float32), np.array([0, 1], dtype=np.int32)) ) from robokit.terms.dense.scene_collision_task import scenecollisiontask from robokit.terms.dense.self_collision_task import selfcollisiontask config = ( iksolverconfig(sampler=robertssamplerconfig(scale=1.0, keep_first=true), solver=presets.smooth.solver) .add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=20.0)) .add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)) .add(positionlimit(weight=50.0)) .add(smoothnesstask(prev_var=ikcontext.previous_state, weight=1.0)) .add(scenecollisiontask(scene=ikcontext.scene, weight=100.0, margin=0.02)) .add(selfcollisiontask(robot, representation=\"sphere\", weight=5.0, margin=0.01)) ) ik = iksolver(config, robot=robot, target_links=\"panda_hand\", device=device, scene=scene) assert ik.config.task(\"scene_collision_task_0\").weight == 100.0 the margin keeps collision spheres away from obstacles or one another. the scene layout is fixed after the solver is built. update existing geometry poses in place; create a new ik only when the layout changes. runtime changes each term gets a name such as position_task_0 . use it to change a supported term's weight without rebuilding the solver: python full ik.set_weight(\"position_task_0\", 20.0 * proximity_factor(state)) ik.set_weight(\"rotation_task_0\", [0.0, 1.5]) # one weight per target link import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.helpers.ik import iksolver, iksolverconfig, presets from robokit.opt.sampler import robertssamplerconfig from robokit.terms.dense.position_task import positiontask from robokit.terms.dense.rotation_task import rotationtask from robokit.terms.dense.position_limit import positionlimit from robokit.terms.dense.smoothness_task import smoothnesstask links = [\"panda_hand\", \"panda_leftfinger\"] ik = iksolver(presets.smooth, robot, links, device=device) target = robot.forward_kinematics(robot.state(q_init)).t_world_link.numpy()[ 0, [robot.spec.link_names.index(name) for name in links] ] state = ik.solve_numpy(target) from robokit.robo.robot_state import robotstate def proximity_factor(state: robotstate) -> float: return 0.5 ik.set_weight(\"position_task_0\", 20.0 * proximity_factor(state)) ik.set_weight(\"rotation_task_0\", [0.0, 1.5]) # one weight per target link assert np.isfinite(state.q.numpy()).all() set_active_joint_mask() and set_active_base_mask() lock dofs at runtime. changing links, terms, solver stages, collision margins, or scene layout needs a new ik .","robokit/motion-planning":"motion planning motion planning planning around a shelf. a humanoid reaching around a box while balancing. robokit.helpers.motion_plan plans a collision-free joint trajectory from a start state to a goal pose or joint state. offline planning solves one motion. batch planning solves several at once. online planning updates a trajectory while the robot moves. the snippets assume robot , scene , device , and start_q are defined. runnable examples and visualizations are in src/robokit/examples/motion_plan . how planning works motionplanner runs four steps: for a pose goal, ik finds goal joint states. a joint goal skips ik. the planner samples initial trajectories from the start to those goals. gradienttrajectoryoptimizer or mppitrajectoryoptimizer refines them for the goal, collisions, joint limits, and smoothness. solve_online() returns the trajectory. solve_offline() first retimes it, if the last stage sets retime . the trajectory candidate count must be divisible by the ik goal count. flowchart td mp[motionplanner] ik[iksolver] sample[sample initial trajectories] opt[gradienttrajectoryoptimizer
or
mppitrajectoryoptimizer] online[return trajectory] offline[optional retime] result[return trajectory] mp -->|goal pose| ik ik --> sample mp -->|goal joint state| sample sample --> opt opt -->|solve_online| online opt -->|solve_offline| offline offline --> result basic example plan to a hand pose past a box, then sample the plan at 50 hz: python full import numpy as np import warp as wp from robokit.assets.robots.arms import franka_panda from robokit.geom import boxgeom, warpscene from robokit.helpers.motion_plan import motionplanner, presets from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) # a box with half extents (0.04, 0.25, 0.2) m standing in front of the arm. t_world_box = np.eye(4, dtype=np.float32)[none] t_world_box[0, :3, 3] = (0.45, 0.0, 0.2) box = boxgeom( np.array([[0.04, 0.25, 0.2]], np.float32), np.array([0, 1], np.int32), poses=wp.array(t_world_box, dtype=wp.mat44, device=device), ) scene = warpscene(1, device).add(box) planner = motionplanner(presets.offline_pose_lbfgs, robot, \"panda_hand\", scene=scene, device=device) start_q = robot.spec.midrange_q.astype(np.float32) t_world_goal = np.array([0.45, 0.35, 0.25, 0.0, 1.0, 0.0, 0.0], np.float32) # x, y, z, qw, qx, qy, qz result = planner.solve_offline_numpy([start_q, {\"panda_hand\": t_world_goal}]) q_traj = result.q_traj[0] # planned joint trajectory, (frames, dofs) motion_time = result.motion_time[0] # seconds, at the robot's velocity, acceleration and jerk limits q_control = result.interpolate(0.02)[0] # one joint sample every 0.02 s, (samples, dofs) import numpy as np import warp as wp from robokit.assets.robots.arms import franka_panda from robokit.geom import boxgeom, warpscene from robokit.helpers.motion_plan import motionplanner, presets from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) # a box with half extents (0.04, 0.25, 0.2) m standing in front of the arm. t_world_box = np.eye(4, dtype=np.float32)[none] t_world_box[0, :3, 3] = (0.45, 0.0, 0.2) box = boxgeom( np.array([[0.04, 0.25, 0.2]], np.float32), np.array([0, 1], np.int32), poses=wp.array(t_world_box, dtype=wp.mat44, device=device), ) scene = warpscene(1, device).add(box) planner = motionplanner(presets.offline_pose_lbfgs, robot, \"panda_hand\", scene=scene, device=device) start_q = robot.spec.midrange_q.astype(np.float32) t_world_goal = np.array([0.45, 0.35, 0.25, 0.0, 1.0, 0.0, 0.0], np.float32) # x, y, z, qw, qx, qy, qz result = planner.solve_offline_numpy([start_q, {\"panda_hand\": t_world_goal}]) q_traj = result.q_traj[0] # planned joint trajectory, (frames, dofs) motion_time = result.motion_time[0] # seconds, at the robot's velocity, acceleration and jerk limits q_control = result.interpolate(0.02)[0] # one joint sample every 0.02 s, (samples, dofs) assert np.isfinite(q_control).all() and motion_time > 0 the scene layout and batch size are fixed once the planner allocates its buffers. move obstacles with box.update(...) ; build a new planner only when the layout or batch size changes. offline planning solve_offline_numpy() and solve_offline_torch() take a list of waypoints. the first is the start; the last is the goal. each waypoint is a joint array q or a dict {link_name: t_world_target} of 7d poses or 4x4 matrices. inputs may have a leading batch dimension; see batch planning . joint goals a joint goal skips goal ik. use a joint preset: python full planner = motionplanner(presets.offline_joint_lbfgs, robot, \"panda_hand\", device=device) result = planner.solve_offline_numpy([start_q, target_q]) import numpy as np import warp as wp from robokit.assets.robots.arms import franka_panda from robokit.helpers.motion_plan import motionplanner, presets from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) start_q = robot.spec.midrange_q.astype(np.float32) target_q = start_q.copy() target_q[0] += 0.5 planner = motionplanner(presets.offline_joint_lbfgs, robot, \"panda_hand\", device=device) result = planner.solve_offline_numpy([start_q, target_q]) assert np.isfinite(result.q_traj).all() waypoints waypoints between start and goal can be joint arrays or poses: python full t_world_mid = np.array([0.5, 0.0, 0.5, 0.0, 1.0, 0.0, 0.0], np.float32) result = planner.solve_offline_numpy([start_q, {\"panda_hand\": t_world_mid}, target_q]) q_mid = result.q_traj[:, result.waypoint_indices[1]] import numpy as np import warp as wp from robokit.assets.robots.arms import franka_panda from robokit.helpers.motion_plan import motionplanner, presets from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) start_q = robot.spec.midrange_q.astype(np.float32) target_q = start_q.copy() target_q[0] += 0.5 planner = motionplanner(presets.offline_joint_lbfgs, robot, \"panda_hand\", device=device) t_world_mid = np.array([0.5, 0.0, 0.5, 0.0, 1.0, 0.0, 0.0], np.float32) result = planner.solve_offline_numpy([start_q, {\"panda_hand\": t_world_mid}, target_q]) q_mid = result.q_traj[:, result.waypoint_indices[1]] assert np.isfinite(result.q_traj).all() the planner then: solves ik for each pose waypoint, seeded from its neighbors. optimizes one trajectory with every waypoint locked on a frame; the robot passes through without stopping. gives each segment frames by the time it needs ( resplit_waypoints=false splits them evenly). retimes the whole trajectory. waypoint_indices gives each waypoint's frame. pose waypoints name the planner's target links; planner.ik solves their ik alone. 10_waypoints.py compares one global optimization with per-segment ones, and 12_interpolated_waypoints.py shows resplitting. three options take one entry per segment, waypoint i to i + 1 : segment_check_collision=false ignores the scene there, e.g. for the final grasp approach of [start_q, pre_grasp_q, grasp_q] with (true, false) . segment_fixed_duration fixes a segment's time in seconds; none segments are retimed. the durations must fit in num_timesteps . segment_locked=true keeps a segment on the straight line between its waypoints, e.g. a 1.5 s hold while a gripper closes: segment_fixed_duration=(none, 1.5) , segment_locked=(false, true) . to plan for some joints only, such as one arm of a bimanual robot, call set_active_joint_mask before the first solve. speed and control rate offline plans are retimed to the fastest motion within the robot's velocity limits and the planner's acceleration_limit and jerk_limit . retimeconfig.speed_scale runs slower: 0.5 takes twice as long. result.interpolate(dt, speed_scale) samples the plan every dt seconds and keeps each waypoint as a sample. its speed_scale slows the plan further without replanning. 11_interpolated_speed.py sets both with viser sliders. batch planning batch planning solves several start-goal pairs in one call. starts and goals get a leading batch dimension. scene_indices[i] picks the collision scene for query i ; queries and scenes need not match in number. here four queries use two scenes: text query: 0 1 2 3 scene_indices: 0 0 1 1 the call is the same: python full # start_q_batch: shape (4, dofs) # t_world_target_batch: shape (4, 7) scene_indices = np.array([0, 0, 1, 1], dtype=np.int32) # here scene is a warpscene containing scene 0 and scene 1. planner = motionplanner(presets.offline_pose_lm, robot, \"panda_hand\", scene=scene, device=device) result = planner.solve_offline_numpy([start_q_batch, {\"panda_hand\": t_world_target_batch}], scene_indices=scene_indices) q_traj_batch = result.q_traj import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" from robokit.assets.robots.arms import franka_panda robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) start_q = robot.spec.midrange_q.astype(np.float32) from robokit.geom import boxgeom, warpscene from robokit.helpers.motion_plan import motionplanner, presets from robokit.utils.warp_utils import wp_vec7 # a box away from the arm's starting configuration. t_world_box = np.eye(4, dtype=np.float32)[none] t_world_box[:, :3, 3] = [2, 0, 0] scene = warpscene(1, device).add( boxgeom( np.array([[0.1, 0.1, 0.1]], dtype=np.float32), np.array([0, 1], dtype=np.int32), poses=wp.array(t_world_box, dtype=wp.mat44, device=device), ) ) start_q_batch = np.tile(start_q, (4, 1)) t_world_target_batch = np.tile([0.60, 0.0, 0.40, 0, 1, 0, 0], (4, 1)).astype(np.float32) scene = warpscene(2, device).add( boxgeom( np.full((2, 3), 0.1, dtype=np.float32), np.array([0, 1, 2], dtype=np.int32), poses=wp.array(np.repeat(t_world_box, 2, axis=0), dtype=wp.mat44, device=device), ) ) # start_q_batch: shape (4, dofs) # t_world_target_batch: shape (4, 7) scene_indices = np.array([0, 0, 1, 1], dtype=np.int32) # here scene is a warpscene containing scene 0 and scene 1. planner = motionplanner(presets.offline_pose_lm, robot, \"panda_hand\", scene=scene, device=device) result = planner.solve_offline_numpy([start_q_batch, {\"panda_hand\": t_world_target_batch}], scene_indices=scene_indices) q_traj_batch = result.q_traj assert q_traj_batch.shape[0] == 4 assert np.isfinite(q_traj_batch).all() for a shared scene, use a one-scene warpscene and fill scene_indices with zeros. a scene can mix boxes, meshes, and other geometry. online planning online planning runs in a control loop. each step plans from the current state and moves the robot to the next trajectory frame. goals and obstacle poses may change before any solve. mppi keeps its trajectory between solves. solve goal ik when the pose target changes and pass the result as target_q . python full planner = motionplanner(presets.online_pose_mppi, robot, \"panda_hand\", scene=scene, device=device) current = robot.state(q=wp.array(start_q[none], dtype=wp.float32, device=device)) t_world_target_wp = wp.array( [[0.60, 0.0, 0.40, 0.0, 1.0, 0.0, 0.0]], dtype=wp_vec7, device=device, ) target_q_wp = wp.clone( planner.ik.solve(t_world_target_wp.reshape((1, 1)), init_state=current, rest_state=current).q[:1] ) online_state = none for _ in range(20): trajectory, online_state = planner.solve_online( current, t_world_target=t_world_target_wp, target_q=target_q_wp, online_state=online_state, ) wp.copy(current.q, trajectory.q[:, 1]) current.invalidate() import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" from robokit.assets.robots.arms import franka_panda robot = robot.load( franka_panda.urdf_path, load_collision_spheres=true, collision_spheres_path=franka_panda.collision_sphere_path ) start_q = robot.spec.midrange_q.astype(np.float32) from robokit.geom import boxgeom, warpscene from robokit.helpers.motion_plan import motionplanner, presets from robokit.utils.warp_utils import wp_vec7 # a box away from the arm's starting configuration. t_world_box = np.eye(4, dtype=np.float32)[none] t_world_box[:, :3, 3] = [2, 0, 0] scene = warpscene(1, device).add( boxgeom( np.array([[0.1, 0.1, 0.1]], dtype=np.float32), np.array([0, 1], dtype=np.int32), poses=wp.array(t_world_box, dtype=wp.mat44, device=device), ) ) planner = motionplanner(presets.online_pose_mppi, robot, \"panda_hand\", scene=scene, device=device) current = robot.state(q=wp.array(start_q[none], dtype=wp.float32, device=device)) t_world_target_wp = wp.array( [[0.60, 0.0, 0.40, 0.0, 1.0, 0.0, 0.0]], dtype=wp_vec7, device=device, ) target_q_wp = wp.clone( planner.ik.solve(t_world_target_wp.reshape((1, 1)), init_state=current, rest_state=current).q[:1] ) online_state = none for _ in range(20): trajectory, online_state = planner.solve_online( current, t_world_target=t_world_target_wp, target_q=target_q_wp, online_state=online_state, ) wp.copy(current.q, trajectory.q[:, 1]) current.invalidate() assert np.isfinite(current.q.numpy()).all() for l-bfgs, use presets.online_pose_lbfgs . it solves pose ik itself, so target_q is optional. to move obstacles, call geom.update(...) before the next solve. in tight loops, allocate input warp arrays once, outside the loop. customization objectives each optimizer stage holds a list of tasks with their weights, margins and limits. edit a copy of a preset: python from copy import deepcopy from robokit.helpers.motion_plan import presets stage = deepcopy(presets.offline_pose_lm.stages[0]) stage.task(\"collision\").weight = 1000.0 stage.task(\"collision\").margin = 0.03 stage.task(\"position_limit\").dense_task.weight = 200.0 for a new objective, list only the tasks you want. arguments set to a motionplancontext member, such as ctx.target or ctx.start_q , are filled in for each query: python from robokit.helpers.motion_plan import gradienttrajectoryoptimizerconfig, motionplancontext as ctx from robokit.terms.dense.frame_task import frametask from robokit.terms.sparse.trajectory_smoothness_task import trajectorysmoothnesstask from robokit.terms.trajectory_task import trajectorytask target = frametask( frame_index=ctx.target_links, t_world_target=ctx.target, position_weight=400.0, orientation_weight=200.0 ) stage = gradienttrajectoryoptimizerconfig( terms=[ trajectorytask(target, frame_indices=[-1], name=\"target\"), trajectorysmoothnesstask(weight=5.0), ] ) goal ik has its own task list, config.goal_ik.terms . point clouds and depth sdfvolume.from_mesh , from_points , and from_depth build collision grids. points mark occupied cells. depth also marks free space, given the camera intrinsics and t_world_camera (opencv axes: right, down, forward), so later depth can clear old points. unknown space is free; pass unknown_is_occupied=true to block it. python full workspace_min = np.array([-0.2, -0.2, 0.2]) workspace_max = np.array([0.2, 0.2, 1.0]) volume = sdfvolume.from_points(points, workspace_min, workspace_max) scene = warpscene(1, \"cuda:0\").add(volumegeom([volume], np.array([0, 1], dtype=np.int32))) volume.update(depth=depth, intrinsics=intrinsics, t_world_camera=t_world_camera) import numpy as np import warp as wp from robokit.geom import sdfvolume, volumegeom, warpscene wp.init() points = wp.array([[0.0, 0.0, 0.6]], dtype=wp.vec3, device=\"cuda:0\") depth = wp.full((48, 64), 0.6, dtype=wp.float32, device=\"cuda:0\") intrinsics = wp.mat33(100, 0, 32, 0, 100, 24, 0, 0, 1) t_world_camera = wp.mat44(np.eye(4)) workspace_min = np.array([-0.2, -0.2, 0.2]) workspace_max = np.array([0.2, 0.2, 1.0]) volume = sdfvolume.from_points(points, workspace_min, workspace_max) scene = warpscene(1, \"cuda:0\").add(volumegeom([volume], np.array([0, 1], dtype=np.int32))) volume.update(depth=depth, intrinsics=intrinsics, t_world_camera=t_world_camera) pass scene to the planner and call volume.update as observations arrive; reset=true forgets old ones. bounds, device and resolution are fixed; to change them, create a new volume and call volumegeom.update . bounds crop observations; they are not walls. pass device warp arrays to avoid uploads. points alone cannot mark free space, so add calibrated depth when you can. humanoids presets.humanoid_offline_lbfgs , humanoid_online_lbfgs and humanoid_online_mppi plan both hands of a floating-base humanoid with its feet planted. their feet_position , feet_rotation , balance and posture terms are stubs. fill them in once the standing pose is known, through config.goal_ik.task(name) and config.stages[0].task(name) ; examples 08 and 09 show how. floating-base results also include t_world_base_traj .","robokit/humanoid-retargeting":"humanoid retargeting humanoid retargeting two-feet jump retargeted to a g1 humanoid. a cha-cha dance retargeted to a g1 humanoid. robokit.helpers.humanoid_retargeting maps human motion onto a floating-base humanoid. online retargeting solves one frame at a time. offline retargeting solves a whole trajectory at once. the snippets assume robot , device , motion , and human_heights exist. complete examples are in src/robokit/examples/humanoid_retargeting . how retargeting works each solve scales human joint transforms to robot-link targets by the robot-to-human height ratio. it then optimizes the floating base and joints and returns the best state. flowchart td input[input

human joint transforms
optional human heights] subgraph solving[solving] direction tb map[1. scale to robot link targets] opt[2. optimize base and joints] pack[3. pack the best state] map --> opt --> pack end out[return base pose and joint positions] input --> map pack --> out poses are 7d (x, y, z, qw, qx, qy, qz) . the joint axis follows retargeter.human_joint_names . workflow numpy input output online (b, j, 7) per frame (b, 7 + q) offline (b, t, j, 7) (b, t, 7 + q) b is batch size, t frame count, j human joints, and q robot joints. each output row is the base pose followed by joint positions. human_heights has shape (b,) . omit it to use the preset's assumed height. presets a preset is a humanoidretargeteronlineconfig for one robot and one human motion source. presets exist for the g1, gr3, h1-2, and bhl robots. python full from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned # g1, aligned smpl-x from robokit.helpers.humanoid_retargeting.presets.g1_smplh import g1_smplh # g1, smpl-h interaction from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline # g1 offline optimizer from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned # g1, aligned smpl-x from robokit.helpers.humanoid_retargeting.presets.g1_smplh import g1_smplh # g1, smpl-h interaction from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline # g1 offline optimizer assert g1_smplh.interaction_terms derive a variant with dataclasses.replace(...) ; do not mutate a preset. costs are tasks in config.terms . some task weights take a dict keyed by link or joint name. online retargeting online retargeting follows __init__ → warmup → solve → reset . the caller owns the frame loop: python full from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned retargeter = humanoidretargeteronline(g1_aligned, robot=robot, device=device) retargeter.warmup(batch_size=1) for t_world_human in motion: # one (j, 7) frame per iteration qpos = retargeter.solve_numpy(t_world_human[none], human_heights)[0] retargeter.reset() import numpy as np import warp as wp from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = g1_aligned.load_robot() human_heights = np.array([g1_aligned.human_height_assumption], dtype=np.float32) motion = np.zeros((3, len(g1_aligned.human_joint_names), 7), dtype=np.float32) motion[..., 3] = 1.0 motion[..., 2] = np.linspace(0.2, 1.6, motion.shape[1]) motion[..., 0] = 0.05 * np.sin(np.arange(motion.shape[1])) from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned retargeter = humanoidretargeteronline(g1_aligned, robot=robot, device=device) retargeter.warmup(batch_size=1) for t_world_human in motion: # one (j, 7) frame per iteration qpos = retargeter.solve_numpy(t_world_human[none], human_heights)[0] retargeter.reset() assert qpos.shape == (7 + robot.spec.num_actuated_joints,) assert np.isfinite(qpos).all() omit robot to load it from the config. the first solve captures the cuda graph. before a timed loop, run one throwaway solve and call reset() . solve() is the warp api. call reset() between clips. reset(t_world_base=...) also seeds the floating base. use it when the first frame is far from the origin; see 08_terrain.py . see 01_online.py . online batches call warmup(batch_size=b) and pass one (b, j, 7) frame per iteration. streams advance in lockstep. repeat the last frame of shorter streams. the batch size is fixed after warmup ; create a new retargeter to change it. see 06_online_batch.py . collision avoidance weight the collision task and pass your own warpscene : python full from copy import deepcopy from robokit.geom import planegeom, warpscene config = deepcopy(g1_aligned) config.task(\"collision\").weight = 1000.0 scene = warpscene(1, device).add(planegeom(np.array([0, 1], dtype=np.int32))) retargeter = humanoidretargeteronline(config, scene=scene, device=device) import numpy as np import warp as wp from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = g1_aligned.load_robot() human_heights = np.array([g1_aligned.human_height_assumption], dtype=np.float32) motion = np.zeros((3, len(g1_aligned.human_joint_names), 7), dtype=np.float32) motion[..., 3] = 1.0 motion[..., 2] = np.linspace(0.2, 1.6, motion.shape[1]) motion[..., 0] = 0.05 * np.sin(np.arange(motion.shape[1])) from copy import deepcopy from robokit.geom import planegeom, warpscene config = deepcopy(g1_aligned) config.task(\"collision\").weight = 1000.0 scene = warpscene(1, device).add(planegeom(np.array([0, 1], dtype=np.int32))) retargeter = humanoidretargeteronline(config, scene=scene, device=device) retargeter.warmup(batch_size=1) assert retargeter.config.task(\"collision\").weight == 1000.0 the collision task needs a scene. the self_collision task does not. both need robot collision spheres; a robot loaded from the config has them. move obstacles with geom.update(...) . the scene layout is fixed after warmup . see 02_collision.py and 03_self_collision.py . contact-aware retargeting contact-aware retargeting keeps the human joints' layout relative to points on a moving object. it needs an interaction preset such as g1_smplh , a scene with the object as its only mesh, and batch_size=1 . set the first target before warmup . update it before each solve: python full from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame retargeter = humanoidretargeteronline(g1_smplh, robot=robot, scene=scene, device=device) retargeter.interaction_task.set_frame( *build_interaction_mesh_frame(human_points[0], object_points, t_world_object_vec7[0]) ) retargeter.warmup(batch_size=1) for i, t_world_human in enumerate(motion): retargeter.interaction_task.set_frame( *build_interaction_mesh_frame(human_points[i], object_points, t_world_object_vec7[i]) ) qpos = retargeter.solve_numpy(t_world_human[none])[0] import numpy as np import trimesh import warp as wp from robokit.geom import meshgeom, warpscene from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_smplh import g1_smplh device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = g1_smplh.load_robot() mesh = trimesh.creation.box((0.1, 0.1, 0.1)) scene = warpscene(1, device).add(meshgeom([mesh], np.array([0, 1], dtype=np.int32))) object_points = mesh.vertices.astype(np.float32) t_world_object_vec7 = np.tile([0, 0, 0, 1, 0, 0, 0], (3, 1)).astype(np.float32) motion = np.zeros((3, len(g1_smplh.human_joint_names), 7), dtype=np.float32) motion[..., 3] = 1.0 motion[..., :3] = np.random.default_rng(0).uniform([-0.2, -0.2, 0.2], [0.2, 0.2, 1.6], (3, motion.shape[1], 3)) human_points = motion[..., :3].copy() from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame retargeter = humanoidretargeteronline(g1_smplh, robot=robot, scene=scene, device=device) retargeter.interaction_task.set_frame( *build_interaction_mesh_frame(human_points[0], object_points, t_world_object_vec7[0]) ) retargeter.warmup(batch_size=1) for i, t_world_human in enumerate(motion): retargeter.interaction_task.set_frame( *build_interaction_mesh_frame(human_points[i], object_points, t_world_object_vec7[i]) ) qpos = retargeter.solve_numpy(t_world_human[none])[0] assert np.isfinite(qpos).all() move the scene object with object_geom.update(...) . move the interaction target with set_frame(...) . the first target fixes the vertex count. see 07_contact.py . offline retargeting offline retargeting optimizes all frames jointly. pass an online mapping config for the targets and an offline config for the tasks: python full from robokit.helpers.humanoid_retargeting import humanoidretargeteroffline from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline from robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping retargeter = humanoidretargeteroffline(g1_offline_mapping, g1_offline, device=device) qpos = retargeter.solve_numpy(motion[none], human_heights=human_heights)[0] # (t, 7 + q) import numpy as np import warp as wp from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = g1_aligned.load_robot() human_heights = np.array([g1_aligned.human_height_assumption], dtype=np.float32) motion = np.zeros((3, len(g1_aligned.human_joint_names), 7), dtype=np.float32) motion[..., 3] = 1.0 motion[..., 2] = np.linspace(0.2, 1.6, motion.shape[1]) motion[..., 0] = 0.05 * np.sin(np.arange(motion.shape[1])) from robokit.helpers.humanoid_retargeting import humanoidretargeteroffline from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline from robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping from robokit.helpers.humanoid_retargeting import humanoidretargeteroffline from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline from robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping retargeter = humanoidretargeteroffline(g1_offline_mapping, g1_offline, device=device) qpos = retargeter.solve_numpy(motion[none], human_heights=human_heights)[0] # (t, 7 + q) assert qpos.shape == (3, 7 + robot.spec.num_actuated_joints) assert np.isfinite(qpos).all() the mapping config must not set interaction or correspondence options. its tasks apply online only; its velocity limits and output clamp also apply offline. for offline self-collision, add a trajectoryselfcollisiontask to the offline tasks. solve_numpy(...) warms up for its input shape. the warp path needs warmup(batch_size=b, num_frames=t) before solve() . see 04_offline.py . batch clips pad shorter clips by repeating their last frame. pass the real lengths: python full lengths = np.array([len(m) for m in motions], dtype=np.int32) num_frames = int(lengths.max()) padded = np.stack([np.concatenate([m, np.repeat(m[-1:], num_frames - len(m), axis=0)]) for m in motions]) qpos = retargeter.solve_numpy(padded, valid_lengths=lengths, human_heights=human_heights) first_clip = qpos[0, : lengths[0]] import numpy as np import warp as wp from robokit.helpers.humanoid_retargeting import humanoidretargeteronline from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = g1_aligned.load_robot() human_heights = np.array([g1_aligned.human_height_assumption], dtype=np.float32) motion = np.zeros((3, len(g1_aligned.human_joint_names), 7), dtype=np.float32) motion[..., 3] = 1.0 motion[..., 2] = np.linspace(0.2, 1.6, motion.shape[1]) motion[..., 0] = 0.05 * np.sin(np.arange(motion.shape[1])) from robokit.helpers.humanoid_retargeting import humanoidretargeteroffline from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline from robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping retargeter = humanoidretargeteroffline(g1_offline_mapping, g1_offline, device=device) motions = [motion, np.concatenate([motion, motion[-1:]])] human_heights = np.repeat(human_heights, len(motions)) lengths = np.array([len(m) for m in motions], dtype=np.int32) num_frames = int(lengths.max()) padded = np.stack([np.concatenate([m, np.repeat(m[-1:], num_frames - len(m), axis=0)]) for m in motions]) qpos = retargeter.solve_numpy(padded, valid_lengths=lengths, human_heights=human_heights) first_clip = qpos[0, : lengths[0]] assert first_clip.shape[0] == len(motions[0]) assert np.isfinite(qpos).all() see 05_batch.py .","robokit/hand-retargeting":"hand retargeting hand retargeting an xhand on an xarm7 replaying a captured hand motion. hand-object retargeting across three datasets. robokit.helpers.hand_retargeting maps ordered hand points to robot states. online retargeting solves one frame at a time. offline retargeting solves a whole trajectory. complete programs are in src/robokit/examples/hand_retargeting . how retargeting works flowchart lr points[ordered target points] --> online[handretargeteronline] points --> offline[handretargeteroffline] online --> online_solve[\"solve()\"] offline --> solve[\"solve()\"] offline --> contact[\"solve_with_contact()\"] online_solve --> state[base transform and joints] solve --> state contact --> state presets each robot preset is a module with one hand spec and a config per workflow. python full from robokit.helpers.hand_retargeting.presets import shadow spec = shadow.spec online_config = shadow.online online_wrist_config = shadow.online_wrist offline_config = shadow.offline from robokit.helpers.hand_retargeting.presets import shadow spec = shadow.spec online_config = shadow.online online_wrist_config = shadow.online_wrist offline_config = shadow.offline assert online_wrist_config.reference_origin == \"wrist\" order points as spec.target_names . the mano layout is not assumed. workflow numpy input output online (k, 3) or (b, k, 3) (b, 7 + q) offline (t, k, 3) or (b, t, k, 3) (t, 7 + q) or (b, t, 7 + q) b is batch size, t frame count, k is len(spec.target_names) , and q actuated joints. each output row is the base transform (x, y, z, qw, qx, qy, qz) followed by the joints. online retargeting a preset's costs are tasks in config.terms ; change one by name: python full from copy import deepcopy config = deepcopy(shadow.online) config.task(\"smoothness\").weight = 0.1 config.task(\"rest\").weight = 0.01 from robokit.helpers.hand_retargeting.presets import shadow from copy import deepcopy config = deepcopy(shadow.online) config.task(\"smoothness\").weight = 0.1 config.task(\"rest\").weight = 0.01 offline configs work the same way. contact_config() and refine_config() derive the contact and refinement problems from a tracking config. online retargeting follows __init__ → warmup → solve → reset , one frame per solve ; the caller owns the loop. each frame after the first is smoothed against the previous solution. python full from robokit.helpers.hand_retargeting import handretargeteronline retargeter = handretargeteronline( config=shadow.online, robot=robot, spec=shadow.spec, device=device, ) retargeter.warmup(batch_size=1) for points in stream: qpos = retargeter.solve_numpy(target_points=points) retargeter.reset() import numpy as np import warp as wp from robokit.assets.robots.end_effectors import shadow_hand from robokit.helpers.hand_retargeting import handretargeteroffline from robokit.helpers.hand_retargeting.presets import shadow from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( shadow_hand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=shadow_hand.collision_sphere_path_right, ) # a three-frame synthetic hand, ordered as shadow.spec.target_names. points = np.zeros((3, 21, 3), dtype=np.float32) for finger in range(5): for joint in range(4): points[:, 1 + 4 * finger + joint] = [(finger - 2) * 0.025, (joint + 1) * 0.025, 0.0] stream = [frame[none] for frame in points] root_quat_wxyz = np.tile([1, 0, 0, 0], (3, 1)).astype(np.float32) from robokit.helpers.hand_retargeting import handretargeteronline retargeter = handretargeteronline( config=shadow.online, robot=robot, spec=shadow.spec, device=device, ) retargeter.warmup(batch_size=1) for points in stream: qpos = retargeter.solve_numpy(target_points=points) retargeter.reset() assert qpos.shape[-1] == robot.spec.num_actuated_joints + 7 assert np.isfinite(qpos).all() see 01_online.py , 05_online_batch.py , and 03_batch.py . wrist tracking pass an online_wrist preset to handretargeteronline to track the wrist pose and finger joints together. floating hands take world points and return the base transform in the world frame: python full from robokit.helpers.hand_retargeting import handretargeteronline retargeter = handretargeteronline(shadow.online_wrist, robot, shadow.spec, device=device) retargeter.warmup(batch_size=1) for points in stream: qpos = retargeter.solve_numpy(points) retargeter.reset() import numpy as np import warp as wp from robokit.assets.robots.end_effectors import shadow_hand from robokit.helpers.hand_retargeting import handretargeteroffline from robokit.helpers.hand_retargeting.presets import shadow from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( shadow_hand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=shadow_hand.collision_sphere_path_right, ) # a three-frame synthetic hand, ordered as shadow.spec.target_names. points = np.zeros((3, 21, 3), dtype=np.float32) for finger in range(5): for joint in range(4): points[:, 1 + 4 * finger + joint] = [(finger - 2) * 0.025, (joint + 1) * 0.025, 0.0] stream = [frame[none] for frame in points] root_quat_wxyz = np.tile([1, 0, 0, 0], (3, 1)).astype(np.float32) from robokit.helpers.hand_retargeting import handretargeteronline retargeter = handretargeteronline(shadow.online_wrist, robot, shadow.spec, device=device) retargeter.warmup(batch_size=1) for points in stream: qpos = retargeter.solve_numpy(points) retargeter.reset() assert qpos.shape[-1] == robot.spec.num_actuated_joints + 7 assert np.isfinite(qpos).all() wrist presets set reference_origin=\"wrist\" ; the default is \"world\" . inputs and outputs stay in world coordinates either way, including init_state and compute_costs(state) . fixed-base arm rigs take points and states in the robot base frame. offline retargeting solve_numpy() warms up for its input shape. the warp api needs warmup(batch_size=b, num_frames=t) before solve() . python full from robokit.helpers.hand_retargeting import handretargeteroffline retargeter = handretargeteroffline( config=shadow.offline, robot=robot, spec=shadow.spec, device=device, ) qpos = retargeter.solve_numpy( target_points=points, root_quat_wxyz=root_quat_wxyz, ) import numpy as np import warp as wp from robokit.assets.robots.end_effectors import shadow_hand from robokit.helpers.hand_retargeting import handretargeteroffline from robokit.helpers.hand_retargeting.presets import shadow from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( shadow_hand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=shadow_hand.collision_sphere_path_right, ) # a three-frame synthetic hand, ordered as shadow.spec.target_names. points = np.zeros((3, 21, 3), dtype=np.float32) for finger in range(5): for joint in range(4): points[:, 1 + 4 * finger + joint] = [(finger - 2) * 0.025, (joint + 1) * 0.025, 0.0] stream = [frame[none] for frame in points] root_quat_wxyz = np.tile([1, 0, 0, 0], (3, 1)).astype(np.float32) from robokit.helpers.hand_retargeting import handretargeteroffline retargeter = handretargeteroffline( config=shadow.offline, robot=robot, spec=shadow.spec, device=device, ) qpos = retargeter.solve_numpy( target_points=points, root_quat_wxyz=root_quat_wxyz, ) assert qpos.shape == (3, robot.spec.num_actuated_joints + 7) assert np.isfinite(qpos).all() pass root_quat_wxyz when a task reads the root pose; the default root_rotation task does. split long trajectories into chunks yourself. see 02_offline.py and 04_arm.py . contact and collision contact solves take one contact point and mask per spec.contact_target_names entry. wrap a tracking config with contact_config() . use refine_config() to keep the result near init_state . python full from robokit.helpers.hand_retargeting import contact_config retargeter = handretargeteroffline( config=contact_config(shadow.offline), robot=robot, spec=shadow.spec, scene=scene, device=device, ) qpos = retargeter.solve_with_contact_numpy( target_points=points, contact_points=contact_points, contact_mask=contact_mask, init_state=init_state, local_contact_points=local_contact_points, ) import numpy as np import warp as wp from robokit.assets.robots.end_effectors import shadow_hand from robokit.helpers.hand_retargeting import handretargeteroffline from robokit.helpers.hand_retargeting.presets import shadow from robokit.robo import robot device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" robot = robot.load( shadow_hand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=shadow_hand.collision_sphere_path_right, ) # a three-frame synthetic hand, ordered as shadow.spec.target_names. points = np.zeros((3, 21, 3), dtype=np.float32) for finger in range(5): for joint in range(4): points[:, 1 + 4 * finger + joint] = [(finger - 2) * 0.025, (joint + 1) * 0.025, 0.0] stream = [frame[none] for frame in points] root_quat_wxyz = np.tile([1, 0, 0, 0], (3, 1)).astype(np.float32) from robokit.geom import planegeom, warpscene scene = warpscene(1, device).add(planegeom(np.array([0, 1], dtype=np.int32))) contact_points = points[:, [4, 8, 12, 16, 20]].copy() contact_mask = np.zeros((3, 5), dtype=bool) local_contact_points = np.zeros((3, 5, 3), dtype=np.float32) init_state = none from robokit.helpers.hand_retargeting import contact_config retargeter = handretargeteroffline( config=contact_config(shadow.offline), robot=robot, spec=shadow.spec, scene=scene, device=device, ) qpos = retargeter.solve_with_contact_numpy( target_points=points, contact_points=contact_points, contact_mask=contact_mask, init_state=init_state, local_contact_points=local_contact_points, ) assert qpos.shape == (3, robot.spec.num_actuated_joints + 7) assert np.isfinite(qpos).all() pass init_state to start from a trajectory; the refinement keeps the result near it. pass a warpscene for scene collision; config.task(\"collision\").weight sets its cost. self-collision uses the robot's collision spheres and the skip pairs from robot.load(self_collision_ignore_path=...) . see 06_contact.py . 07_batch_contact.py retargets every right-hand dexycb capture and writes one npz per capture: uv run src/robokit/examples/hand_retargeting/07_batch_contact.py --output-dir path .","robokit/hand_eye_calibration":"hand-eye calibration hand-eye calibration robokit.helpers.hand_eye_calibration solves the camera extrinsic (opencv t_camera_base ) from robot masks and/or depth maps. it renders the robot with nvdiffrast at n known joint positions q and aligns the renders to your images. no calibration board is needed. overview flowchart td subgraph inputs obs[\"masks/depths\"] q[\"q\"] init[\"initial guess\"] end q -- fk --> poses[\"link poses\"] init -- sample around it --> candidates[\"candidates\"] subgraph solve[\"handeyecalibrator.solve: render + lm per level (mask and/or depth term)\"] l0[\"coarse, blurred · many candidates · search the basin\"] l1[\"fine · 1 candidate · polish the best\"] l0 --> l1 end obs --> solve poses --> solve candidates --> solve solve --> out[\"t_camera_base\"] quick start from src/robokit/examples/hand_eye_calibration/01_sim_rgb.py (fixed camera, masks only): python full from robokit.helpers.hand_eye_calibration import handeyecalibrator, presets hec = handeyecalibrator(presets.rgb, robot, camera_intrinsic=intrinsic, height=h, width=w) predicted = hec.solve(initial, target_masks=masks, q=q) import torch from robokit.helpers.hand_eye_calibration import compute_robot_masks from robokit.robo import robot # a one-joint box robot needs no external assets. robot = robot.load( \"\"\" \"\"\", load_meshes=true, ) h = w = 64 q = torch.tensor([[-0.6], [-0.2], [0.2], [0.6]], device=\"cuda\") intrinsic = torch.tensor([[80.0, 0, w / 2], [0, 80.0, h / 2], [0, 0, 1]], device=\"cuda\") initial = torch.eye(4, device=\"cuda\") initial[2, 3] = 1.5 masks = compute_robot_masks(robot, q, intrinsic, initial, h, w) from robokit.helpers.hand_eye_calibration import handeyecalibrator, presets hec = handeyecalibrator(presets.rgb, robot, camera_intrinsic=intrinsic, height=h, width=w) predicted = hec.solve(initial, target_masks=masks, q=q) assert predicted.shape == (4, 4) assert torch.isfinite(predicted).all() masks are [n, h, w] float robot silhouettes. q is [n, num_dofs] in robot.spec.actuated_joint_names order. initial is a rough [4, 4] guess; the default config handles up to ~35 cm / 45 deg of error. common variants mounted camera. for a camera on a moving mount, such as a wrist camera, pass per-sample t_mount_base . the solver then returns t_camera_mount . see src/robokit/examples/hand_eye_calibration/02_sim_mounted.py : python full predicted = hec.solve(initial, target_masks=masks, q=q, t_mount_base=t_mount_base) import torch from robokit.helpers.hand_eye_calibration import handeyecalibrator, compute_robot_masks, presets from robokit.robo import robot # a one-joint box robot needs no external assets. robot = robot.load( \"\"\" \"\"\", load_meshes=true, ) h = w = 64 q = torch.tensor([[-0.6], [-0.2], [0.2], [0.6]], device=\"cuda\") intrinsic = torch.tensor([[80.0, 0, w / 2], [0, 80.0, h / 2], [0, 0, 1]], device=\"cuda\") initial = torch.eye(4, device=\"cuda\") initial[2, 3] = 1.5 masks = compute_robot_masks(robot, q, intrinsic, initial, h, w) t_mount_base = torch.eye(4, device=\"cuda\").repeat(len(q), 1, 1) hec = handeyecalibrator(presets.rgb, robot, camera_intrinsic=intrinsic, height=h, width=w) predicted = hec.solve(initial, target_masks=masks, q=q, t_mount_base=t_mount_base) assert predicted.shape == (4, 4) assert torch.isfinite(predicted).all() depth. use presets.rgbd to add depth on the fine levels, or presets.depth for depth only. for depth only, omit masks and pass robot-only depth, with 0 marking invalid pixels. see src/robokit/examples/hand_eye_calibration/03_sim_depth.py : python full from robokit.helpers.hand_eye_calibration import handeyecalibrator, presets hec = handeyecalibrator(presets.depth, robot, camera_intrinsic=intrinsic, height=h, width=w) predicted = hec.solve(initial, target_depths=depths, q=q) import torch import nvdiffrast.torch as dr from robokit.helpers.hand_eye_calibration.calibrator import build_robot_render_data from robokit.helpers.hand_eye_calibration.mask_alignment_task import _precompute_merged_mesh, _render_batch from robokit.robo import robot # a one-joint box robot needs no external assets. robot = robot.load( \"\"\" \"\"\", load_meshes=true, ) h = w = 64 q = torch.tensor([[-0.6], [-0.2], [0.2], [0.6]], device=\"cuda\") intrinsic = torch.tensor([[80.0, 0, w / 2], [0, 80.0, h / 2], [0, 0, 1]], device=\"cuda\") initial = torch.eye(4, device=\"cuda\") initial[2, 3] = 1.5 transforms, vertices, faces = build_robot_render_data(robot, q) faces, vertices = _precompute_merged_mesh(vertices, faces, transforms) with torch.no_grad(): masks, positions = _render_batch(dr.rasterizecudacontext(), initial, intrinsic, faces, vertices, h, w) depths = positions[..., 2].clamp(min=0) * (masks > 0.5) from robokit.helpers.hand_eye_calibration import handeyecalibrator, presets hec = handeyecalibrator(presets.depth, robot, camera_intrinsic=intrinsic, height=h, width=w) predicted = hec.solve(initial, target_depths=depths, q=q) assert predicted.shape == (4, 4) assert torch.isfinite(predicted).all() for a custom schedule, set use_depth per pyramidlevel . set depth_weight on the mask task in config.terms . model offsets. encoder zero offsets and an unknown mount also shift the rendered robot. to solve for them with the extrinsic, swap the pyramid's mask task for maskalignmentoffsettask : offset_joints frees joint zeros, and offset_link frees the transform a link hangs from. see 05_sim_offsets.py with --offset joints or --offset mount : python full from dataclasses import replace import warp as wp from robokit.opt.var_values import varkey from robokit.helpers.hand_eye_calibration.mask_alignment_task import maskalignmentoffsettask from robokit.terms.dense.configuration_task import configurationtask rest = configurationtask(rest_q=robot.spec.zero_q, weight=150.0, var_key=varkey.qpos_offset) mask_term = maskalignmentoffsettask(offset_joints=list(range(robot.num_actuated_joints))) hec = handeyecalibrator(replace(presets.rgb, terms=[mask_term, rest]), robot, intrinsic, h, w) predicted = hec.solve(initial, target_masks=masks, q=q) delta_q = wp.to_torch(hec.last_var.get(varkey.qpos_offset).x)[0] # radians, add to measured q import torch from robokit.helpers.hand_eye_calibration import handeyecalibrator, compute_robot_masks, presets from robokit.robo import robot # a one-joint box robot needs no external assets. robot = robot.load( \"\"\" \"\"\", load_meshes=true, ) h = w = 64 q = torch.tensor([[-0.6], [-0.2], [0.2], [0.6]], device=\"cuda\") intrinsic = torch.tensor([[80.0, 0, w / 2], [0, 80.0, h / 2], [0, 0, 1]], device=\"cuda\") initial = torch.eye(4, device=\"cuda\") initial[2, 3] = 1.5 masks = compute_robot_masks(robot, q, intrinsic, initial, h, w) from dataclasses import replace import warp as wp from robokit.opt.var_values import varkey from robokit.helpers.hand_eye_calibration.mask_alignment_task import maskalignmentoffsettask from robokit.terms.dense.configuration_task import configurationtask rest = configurationtask(rest_q=robot.spec.zero_q, weight=150.0, var_key=varkey.qpos_offset) mask_term = maskalignmentoffsettask(offset_joints=list(range(robot.num_actuated_joints))) hec = handeyecalibrator(replace(presets.rgb, terms=[mask_term, rest]), robot, intrinsic, h, w) predicted = hec.solve(initial, target_masks=masks, q=q) delta_q = wp.to_torch(hec.last_var.get(varkey.qpos_offset).x)[0] # radians, add to measured q assert delta_q.shape == (robot.num_actuated_joints,) assert torch.isfinite(predicted).all() and torch.isfinite(delta_q).all() config.terms holds every cost term, mask alignment included. set offset_link_dofs to free only the mount's translation or rotation. weakly observable dofs, such as roll about a round wrist flange, drift; the configurationtask holds them near nominal. real hardware. src/robokit/examples/hand_eye_calibration/04_real_xarm.py runs the full pipeline on an xarm + realsense. it captures images at several joint configurations, segments the arm with sam2, takes an initial guess dragged in viser, then solves. for larger initial errors, raise candidate_noise_t/r , num_candidates and iterations, as the example does. unknown frame qpos. fit q from silhouette views of one frame. preset optimized variables presets.rgb camera; q is supplied presets.rgb_qpos qpos; camera is fixed presets.rgb_qpos_camera qpos and camera pass target_masks[v,h,w] and an optional initial q[j] . read the result from last_q[j] . omit q to search the full joint limits. frame and trajectory comparison . joint trajectories (experimental). qpostrajectorycalibrator fits a smooth last_q[t,j] from masks[t,v,h,w] and timestamps[t] . use presets.rgb_qpos_trajectory for fixed cameras, or presets.rgb_qpos_trajectory_camera to also refine static cameras. both apis also take image keypoints through keypoint_links and target_keypoints . nans mark missing points. trajectory example · benchmark .","robokit/ref-assets":"built-in robots & datasets built-in robots & datasets robot descriptions and datasets live in the huggingface dataset openrobokit/robokit . assets are under their own licenses; see license files and outstanding gaps . consuming import a named asset module and use its static path symbols. required files are downloaded and cached automatically. use fetch() for paths without static symbols: python full from robokit.assets import fetch from robokit.assets.robots.humanoids import unitree_g1 unitree_g1.urdf_path unitree_g1.collision_sphere_path fetch([\"datasets/sfu/**\"]) / \"datasets/sfu/0005/x.npz\" from robokit.assets import fetch from robokit.assets.robots.humanoids import unitree_g1 unitree_g1.urdf_path unitree_g1.collision_sphere_path fetch([\"datasets/sfu/**\"]) / \"datasets/sfu/0005/x.npz\" assert unitree_g1.urdf_path.is_file() note files are pinned to one dataset commit and cached under ~/.robokit/ , so imports work offline. self-collision ignore sets each robot lists the link pairs that always touch, so self-collision terms skip them. each geometry representation has its own set. match it to your selfcollisiontask representation ( sphere by default): python full robot = robot.load( xhand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=xhand.collision_sphere_path_right, self_collision_ignore_path=xhand.sphere_self_collision_ignore_path_right, # or capsule_... ) from robokit.robo import robot from robokit.assets.robots.end_effectors import xhand robot = robot.load( xhand.urdf_path_right, load_collision_spheres=true, collision_spheres_path=xhand.collision_sphere_path_right, self_collision_ignore_path=xhand.sphere_self_collision_ignore_path_right, # or capsule_... ) assert robot.spec.has_collision_spheres mjcf variants have only mj_capsule_... sets. robots without collision spheres have no sphere set. for asset layout and authoring, see the development guide . robots licenses are upstream. — means unavailable or unspecified. a side, such as (right) , means only that side is available. arms name format source license collision spheres self-collision ignore franka_panda urdf maniskill apache-2.0 yaml ( nvidia non-commercial ) ✓ mjcf menagerie apache-2.0 — ✓ xarm6 urdf ufactory bsd-3-clause yaml ✓ xarm7 urdf ufactory / sapien bsd-3-clause + — — ✓ mjcf menagerie bsd-3-clause — ✓ yumi yaml — — yaml ✓ end effectors name format source license collision spheres self-collision ignore ability_hand urdf psyonic mit yaml (right) ✓ (right) allegro_hand urdf simlab bsd-style yaml (right) ✓ (right) arx_x5_gripper urdf robodojo mit yaml ✓ barrett_hand urdf barrett technology bsd-style yaml ✓ dclaw_gripper urdf robel apache-2.0 yaml ✓ inspire_hand urdf inspire robots cc-by-nc-sa-4.0 yaml ✓ leap_hand urdf ananye agarwal mit yaml (right) ✓ (right) mano_hand urdf (right) mano mano yaml (right) ✓ (right) orcahand urdf (right) orca mit yaml (right) ✓ (right) paxini_hand urdf paxini — yaml (right) ✓ (right) robotiq_2f85 urdf a-price bsd yaml ✓ schunk_hand urdf schunk gplv3 yaml (right) ✓ (right) shadow_hand urdf shadow robot bsd-3-clause + apache-2.0 yaml (right) ✓ (right) mjcf (right) menagerie / dexgraspnet apache-2.0 + cc-by-nc-4.0 yaml (right) — sharpa_hand urdf sharpa robotics apache-2.0 yaml ✓ umi_gripper mjcf menagerie mit — — xhand urdf robotera — yaml (right) ✓ (right) mjcf (right) robotera — — ✓ wuji_hand (hand 1) urdf wuji technology mit yaml ✓ mjcf wuji technology mit — — wuji_hand_2_2 (hand 2.2) urdf wuji technology mit yaml ✓ mjcf wuji technology mit — — yam_gripper urdf i2rt mit yaml ✓ mjcf i2rt mit — ✓ humanoids name format source license collision spheres self-collision ignore berkeley_humanoid_lite urdf hybrid robotics cc-by-sa-4.0 yaml ✓ booster_k1 urdf booster bsd-3-clause yaml ✓ booster_t1 urdf booster bsd-3-clause yaml ✓ engineai_pm01 urdf engineai bsd-3-clause yaml ✓ fourier_gr3 urdf fourier gplv3 yaml ✓ pal_talos urdf pal robotics / stack of tasks lgpl-3.0 yaml ✓ pnd_adam_lite urdf pndbotics bsd-3-clause yaml ✓ tienkung_lite urdf x-humanoid openatom open hardware 1.0 yaml ✓ toddlerbot_2xc urdf toddlerbot mit yaml ✓ unitree_g1 urdf unitree bsd-3-clause yaml ✓ unitree_h1 urdf unitree bsd-3-clause yaml ✓ unitree_h1_2 urdf unitree bsd-3-clause yaml ✓ datasets name format source license climb npy, obj omniretarget / holosoma apache-2.0 dex_retargeting pkl dex-retargeting / dexycb cc-by-nc-4.0 dexmachina npz dexmachina / arctic arctic dexycb npz, json, obj dexycb cc-by-nc-4.0 gigahands npz gigahands cc-by-nc-4.0 nist_assembly xml, npz assemblenist / uw lab mit oakink2 npz oakink-v2 cc-by-sa-4.0 omomo pt, pkl, obj omomo / intermimic — parahome pkl, json, obj parahome cc-by-nc-sa-4.0 user-provided body models download mano or smpl-x from its official website after accepting its license. put the files you need under ~/.robokit/body_models/ , or set robokit_body_models to another folder: mano/mano_right.pkl or mano/mano_left.pkl smplx/smplx_neutral.npz , smplx/smplx_male.npz , or smplx/smplx_female.npz python full from robokit.smplx import load_mano, load_smplx hand = load_mano() # or load_mano(\"/path/to/mano_right.pkl\") body = load_smplx() from robokit.smplx import load_mano, load_smplx hand = load_mano() # or load_mano(\"/path/to/mano_right.pkl\") body = load_smplx() assert hand is not none and body is not none npzs load directly. pkls convert once beside the originals, so the folder must be writable. robokit never downloads body models.","robokit/robot":"robot robot robokit.robo computes differentiable kinematics. it splits the work among three classes: type role holds robot compute kinematics methods; stateless robotspec model data structure, geometry, inertia; fixed after load └─ robotspectensors device model data robotspec on a device robotstate values batched joint and base values, and results use robot , robot.spec and robotstate . robotspectensors is internal. python full from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot # load a robot from a urdf file robot = robot.load(load_robot_description(\"panda_description\")) # access its actuated joint names joint_names = robot.spec.actuated_joint_names # create a state to store values state = robot.state() # compute forward kinematics for the current state state = robot.forward_kinematics(state) # access the world transforms of all links t_world_link = state.t_world_link from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot # load a robot from a urdf file robot = robot.load(load_robot_description(\"panda_description\")) # access its actuated joint names joint_names = robot.spec.actuated_joint_names # create a state to store values state = robot.state() # compute forward kinematics for the current state state = robot.forward_kinematics(state) # access the world transforms of all links t_world_link = state.t_world_link assert state.q.shape[-1] == len(joint_names) state a robotstate holds one configuration, a batch of them, or a batch of trajectories: python full state = robot.state(q) # [num_dofs] or [batch, num_dofs] trajectory_state = robot.state(q_trajectory) # [batch, num_frames, num_dofs] floating_base_state = robot.state(q, t_world_base=base) # joint values plus a floating base import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.utils.warp_utils import wp_vec7 q = q_init q_trajectory = np.repeat(q_init[:, none], 3, axis=1) base = wp.array([[0, 0, 0, 1, 0, 0, 0]], dtype=wp_vec7, device=device) state = robot.state(q) # [num_dofs] or [batch, num_dofs] trajectory_state = robot.state(q_trajectory) # [batch, num_frames, num_dofs] floating_base_state = robot.state(q, t_world_base=base) # joint values plus a floating base assert trajectory_state.q.shape == (1, 3, robot.spec.num_actuated_joints) q follows robot.spec.actuated_joint_names and excludes mimic joints. computation robot methods write results into the passed state and return it: method writes forward_kinematics(state) t_world_joint , t_world_link compute_motion_subspace(state) s_world └─ state.get_link_jacobian(link_idx, frame) body or spatial jacobian compute_center_of_mass(state) com_world transform_collision_spheres(state) sphere and bounding-sphere world centers transform_collision_capsules(state) link capsule world endpoints methods that need link transforms run forward kinematics first when the state lacks them. a fixed-base jacobian has shape [..., 6, num_dofs] . a floating-base jacobian adds six base columns in front. torch the torch interface takes plain tensors instead of a robotstate and supports gradients: python full # q: torch.tensor [..., num_dofs] t_world_link = robot.forward_kinematics_via_matrix_torch(q) # torch.tensor [..., num_links, 4, 4] # points_local: torch.tensor [num_points, 3] points_world = robot.transform_link_points_torch(t_world_link, points_local, link_indices) import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] import torch q = torch.from_numpy(q_init) points_local = torch.zeros((1, 3)) link_indices = torch.tensor([robot.spec.link_names.index(\"panda_hand\")]) # q: torch.tensor [..., num_dofs] t_world_link = robot.forward_kinematics_via_matrix_torch(q) # torch.tensor [..., num_links, 4, 4] # points_local: torch.tensor [num_points, 3] points_world = robot.transform_link_points_torch(t_world_link, points_local, link_indices) assert points_world.shape == (1, 1, 3)","robokit/geom":"geometry geometry robokit.geom runs batched sdf queries against scenes of mixed geometry types. each query point gets its signed distance (negative inside), the surface normal and the closest surface point. collision terms, motion planning and grasp optimization build on it. overview text boxgeom / spheregeom / planegeom / capsulegeom / meshgeom / volumegeom | scene.add(geom) v warpscene.query_sdf(points, scene_offsets) 1. route each point to its scene 2. launch one warp kernel per geom, aggregated through the min 3. return signed distances (+ normals, closest points) example usage: python full geom = boxgeom(half_extents, scene_offsets, poses=poses) # store raw inputs (cpu) scene = warpscene(num_scenes=1, device=device).add(geom) # allocate gpu arrays of the geom geom.update(poses=new_poses) # in-place copy import numpy as np import warp as wp from robokit.geom import boxgeom, warpscene device = \"cpu\" half_extents = np.array([[0.5, 0.5, 0.5]], dtype=np.float32) scene_offsets = np.array([0, 1], dtype=np.int32) poses = wp.array(np.eye(4, dtype=np.float32)[none], dtype=wp.mat44, device=device) new_poses = wp.clone(poses) geom = boxgeom(half_extents, scene_offsets, poses=poses) # store raw inputs (cpu) scene = warpscene(num_scenes=1, device=device).add(geom) # allocate gpu arrays of the geom geom.update(poses=new_poses) # in-place copy assert scene.num_scenes == 1 update copies in place and never reallocates. a query captured in a cuda graph keeps working after the scene moves. geom types geom elements sdf boxgeom half extents analytical spheregeom radii analytical planegeom local z=0 halfspaces, posed analytical capsulegeom radii + half heights analytical meshgeom triangle meshes mesh bvh or baked grid volumegeom pre-baked sdfvolume grids trilinear grid sample every geom takes scene_offsets , which assign its elements to scenes. poses and scales are optional. set capacity to add elements later without reallocating. query python full sdf, normals, closest = scene.query_sdf(points, scene_offsets) # min aggregate over all geoms sdf = scene.query_sdf(points, scene_offsets, distance_only=true) # query the whole scene, but skip normals/closest sdf, _, _ = geom.query_sdf(points, scene_offsets) # this geom only import numpy as np import warp as wp from robokit.geom import boxgeom, warpscene device = \"cpu\" half_extents = np.array([[0.5, 0.5, 0.5]], dtype=np.float32) scene_offsets = np.array([0, 1], dtype=np.int32) poses = wp.array(np.eye(4, dtype=np.float32)[none], dtype=wp.mat44, device=device) new_poses = wp.clone(poses) geom = boxgeom(half_extents, scene_offsets, poses=poses) scene = warpscene(1, device).add(geom) points = wp.array([[1, 0, 0]], dtype=wp.vec3, device=device) scene_offsets = wp.array([0, 1], dtype=wp.int32, device=device) sdf, normals, closest = scene.query_sdf(points, scene_offsets) # min aggregate over all geoms sdf = scene.query_sdf(points, scene_offsets, distance_only=true) # query the whole scene, but skip normals/closest sdf, _, _ = geom.query_sdf(points, scene_offsets) # this geom only np.testing.assert_allclose(sdf.numpy(), [0.5]) batching: one warpscene holds num_scenes independent scenes. scene_offsets or per-point scene_indices map each query point to its scene. masking: query_mask skips masked points. gradients: query_sdf_torch(points, offsets, poses={geom: t}) is differentiable in the points and any pose or scale overrides. mesh level-of-detail a baked sdf grid speeds up mesh queries. meshgeom(enable_sdf=true, sdf_voxel_size=0.01) bakes one per mesh and caches it under ~/.robokit/sdf_cache . queries then cascade: text outside the padded aabb -> aabb distance + padding inside the grid -> o(1) grid sample near the surface -> exact mesh bvh","robokit/optimization":"optimization optimization robokit.opt solves batched nonlinear optimization problems on the gpu. variables live on manifolds. costs come from robokit.terms . ik, motion planning, retargeting, hand-eye calibration and grasp synthesis build on it. overview a solver keeps a population of candidates per problem. an optimizer moves each candidate. a sampler draws tangent noise around them. flowchart td subgraph solver ps[populationsolver] end subgraph optimizers opt[\"(sparse) lmoptimizer · lbfgsoptimizer · gdoptimizer\"] end subgraph samplers smp[\"robertssampler · gaussiansampler\"] end subgraph problem tasks[\"tasks: residualtask · gradienttask\"] var[\"varvalues: container of multiple var\"] end ps -- builds --> opt ps -- builds --> smp ps -- costs --> tasks opt -- residuals · jacobians --> tasks opt -- tangent steps --> var smp -- tangent noise --> var one round over the population: flowchart lr subgraph solver direction lr n[\"sample
sampler\"] --> u[\"optimize
optimizer\"] u --> s[\"score
task\"] --> k[select] k -.next round.-> n end sample : a sampler moves each candidate by the last scores, then draws new ones around it. optimize : the optimizer moves every candidate toward lower cost. score : the tasks cost every candidate. select : keep the best candidates per problem. each method is a schedule over these four. multi-candidate lm: optimize, score, select. mppi: sample, score. es: sample, score, select. python full state = robot.state(q=q_init) # a var leaf task = frametask(robot, frame_index=ee, t_world_target=target) # a task optimizer = lbfgsoptimizer(terms=[task], device=state.q.device) values, costs = optimizer.solve(varvalues({varkey.robot: state})) # one final cost per returned instance state = values.get(varkey.robot) values = varvalues({varkey.robot: state, key.ee: ee_traj}) # co-optimize multiple vars values, costs = lbfgsoptimizer(terms=[task, ee_task], device=state.q.device).solve(values) solver = populationsolver(terms=[[task]], config=cfg, device=state.q.device) best_values, best_costs = solver.solve(seed_values) # b × num_candidates candidates in, the candidates import numpy as np import warp as wp from robot_descriptions.loaders.yourdfpy import load_robot_description from robokit.robo import robot device = \"cpu\" robot = robot.load(load_robot_description(\"panda_description\")) q_init = np.mean(robot.spec.actuated_joint_limits, axis=1).astype(np.float32)[none] from robokit.lie.se3 import se3var from robokit.opt.lbfgs_optimizer import lbfgsoptimizer from robokit.opt.lm_optimizer import lmoptimizerconfig from robokit.opt.population_solver import populationsolver, populationsolverconfig, stage from robokit.opt.var_values import varkey, varvalues from robokit.terms.dense.configuration_task import configurationtask from robokit.terms.dense.frame_task import frametask from enum import enum class key(enum): # a problem's own variables get their own enum ee = 0 initial = robot.forward_kinematics(robot.state(q_init)) ee = robot.spec.link_names.index(\"panda_hand\") target = initial.get_t_world_link(ee) ee_traj = se3var(wp.clone(target)) ee_task = configurationtask(t_world_base_rest=target, base_weight=1.0, include_joints=false, var_key=key.ee) cfg = populationsolverconfig(stages=[stage(2, 1, lmoptimizerconfig())]) seed_values = varvalues({varkey.robot: robot.state(q_init)}) state = robot.state(q=q_init) # a var leaf task = frametask(robot, frame_index=ee, t_world_target=target) # a task optimizer = lbfgsoptimizer(terms=[task], device=state.q.device) values, costs = optimizer.solve(varvalues({varkey.robot: state})) # one final cost per returned instance state = values.get(varkey.robot) values = varvalues({varkey.robot: state, key.ee: ee_traj}) # co-optimize multiple vars values, costs = lbfgsoptimizer(terms=[task, ee_task], device=state.q.device).solve(values) solver = populationsolver(terms=[[task]], config=cfg, device=state.q.device) best_values, best_costs = solver.solve(seed_values) # b × num_candidates candidates in, the candidates assert np.isfinite(best_costs.numpy()).all() variables var is an optimizable value on a manifold, such as joint angles or an se(3) pose. varvalues maps keys to var instances. optimizers and tasks see it as one variable. flowchart lr opt[optimizer] -->|update| vv[varvalues] opt -->|evaluate| task[tasks] task -->|read| vv task -->|results| opt common methods: integrate(delta, out=none) applies a tangent step. joint angles add it; poses use t·exp(δ) . accept(mask, proposed) takes the proposed rows where mask is set and keeps the rest. invalidate() marks the var instances as changed and invalidates their caches. varvalues lays out tangent columns in insertion order: text tangent columns: [ robot (t=7) | ee (t=6) ] offset=0 offset=7 subclass varvalues to give a group its own tangent or sampling rule. for example, one variable is optimized and the rest follow from it; the tangent then covers only the free one. tasks tasks come from robokit.terms . both interfaces subclass task : term contract consumed by residualtask residual vector r (+ jacobian) lm; gd/lbfgs residual modes gradienttask per-batch scalar cost (+ gradient) gd/lbfgs sparsetask is a residualtask with a sparse jacobian. eagertask is a residualtask with hooks for work outside captured cuda graphs. a task can implement both. smoothnesstask(residualtask, gradienttask) gives residuals and gradients. optimizers optimizers come from robokit.opt . all three share one lifecycle: python full class optimizer: def solve(self, var: varvalues) -> tuple[varvalues, wp.array]: \"\"\"`reset` then `max_iter` × `step`, in place; returns `var` and one cost per candidate.\"\"\" def reset(self, var: varvalues) -> none: ... def step(self, var: varvalues) -> none: ... from typing import optional, tuple import warp as wp from robokit.opt.var_values import varvalues class optimizer: def solve(self, var: varvalues) -> tuple[varvalues, wp.array]: \"\"\"`reset` then `max_iter` × `step`, in place; returns `var` and one cost per candidate.\"\"\" def reset(self, var: varvalues) -> none: ... def step(self, var: varvalues) -> none: ... assert callable(optimizer.solve) optimizer method lmoptimizer damped gauss–newton (cholesky or cg) lbfgsoptimizer quasi-newton with line search gdoptimizer gd, adam, or adamw one optimization step: changed varvalues invalidate their caches. the optimizer calls each task's precompute() , one at a time. tasks compute costs and derivatives, in parallel when enabled. the optimizer updates the values, or accepts or rejects a proposal. samplers a sampler owns one named variable and one method: python full class sampler: var_key: str def reset(self) -> none: \"\"\"reopen the spread at the start of a solve.\"\"\" def sample(self, var: varvalues, scores: optional[wp.array]) -> varvalues: \"\"\"move each candidate by `scores` (its costs, none before any), then draw new ones around it. the population handed in is the one that moves; the returned one is the one to score.\"\"\" from typing import optional, tuple import warp as wp from robokit.opt.var_values import varvalues class sampler: var_key: str def reset(self) -> none: \"\"\"reopen the spread at the start of a solve.\"\"\" def sample(self, var: varvalues, scores: optional[wp.array]) -> varvalues: \"\"\"move each candidate by `scores` (its costs, none before any), then draw new ones around it. the population handed in is the one that moves; the returned one is the one to score.\"\"\" assert callable(sampler.sample) sampler draws robertssampler a low-discrepancy spread; no move gaussiansampler normals around a mean moved by the scores (mppi, es) contactsampler a copy with fresh contacts; the better one stays (grasp) solvers a solver runs sampler and optimizer configs as a schedule of stages: python full class populationsolver: def solve(self, var: varvalues) -> tuple[varvalues, wp.array]: \"\"\"`batch × num_candidates[0]` candidates in; the best per problem and its cost out.\"\"\" from typing import optional, tuple import warp as wp from robokit.opt.var_values import varvalues class populationsolver: def solve(self, var: varvalues) -> tuple[varvalues, wp.array]: \"\"\"`batch × num_candidates[0]` candidates in; the best per problem and its cost out.\"\"\" assert callable(populationsolver.solve) each iteration of solve : sample , per stage.sample_every : each sampler moves its candidates by the last scores, then draws new ones. optimize : the stage's optimizer steps every candidate. score : the tasks, or the score term, cost every candidate. select , at each new stage: keep its best num_candidates per problem; its optimizer takes over. python full from robokit.helpers.grasp import contactsamplerconfig from robokit.opt.sampler import gaussiansamplerconfig, robertssamplerconfig roberts = robertssamplerconfig(scale=0.2) mppi = gaussiansamplerconfig(num_draws=64) contacts = contactsamplerconfig() # multi-candidate lm: roberts noise spreads 64 candidates at iteration 0, lm steps them, selects narrow 64 → 4 → 1 populationsolverconfig(stages=[stage(6, 64, sample_every=6), stage(10, 4), stage(0, 1)], samplers=[roberts]) # mppi: every iteration moves each candidate by its draws' scores and draws again; a last sample # after the final score moves it once more, and the solve ends on the moved candidates populationsolverconfig(stages=[stage(6)], samplers=[mppi]) # grasp lm: every 8 iterations each candidate is joined by a copy with fresh contacts, lm steps both, # and the next sample keeps the better; the final select picks one of the last pair populationsolverconfig(stages=[stage(64, 1, lm, sample_every=8)], samplers=[contacts]) from robokit.opt.population_solver import populationsolverconfig, stage from robokit.opt.lm_optimizer import lmoptimizerconfig lm = lmoptimizerconfig() from robokit.helpers.grasp import contactsamplerconfig from robokit.opt.sampler import gaussiansamplerconfig, robertssamplerconfig roberts = robertssamplerconfig(scale=0.2) mppi = gaussiansamplerconfig(num_draws=64) contacts = contactsamplerconfig() # multi-candidate lm: roberts noise spreads 64 candidates at iteration 0, lm steps them, selects narrow 64 → 4 → 1 populationsolverconfig(stages=[stage(6, 64, sample_every=6), stage(10, 4), stage(0, 1)], samplers=[roberts]) # mppi: every iteration moves each candidate by its draws' scores and draws again; a last sample # after the final score moves it once more, and the solve ends on the moved candidates populationsolverconfig(stages=[stage(6)], samplers=[mppi]) # grasp lm: every 8 iterations each candidate is joined by a copy with fresh contacts, lm steps both, # and the next sample keeps the better; the final select picks one of the last pair populationsolverconfig(stages=[stage(64, 1, lm, sample_every=8)], samplers=[contacts]) assert contacts.num_draws == 2","robokit/conventions":"conventions conventions se(3) representation quaternion : scalar first ordering $(q_w, q_x, q_y, q_z)$ (follows mujoco). 7d pose : translation first, rotation second: $(x, y, z, q_w, q_x, q_y, q_z)$ (follows mujoco's free-joint qpos ). twist representation matches pinocchio / pink. 6d twist : translation first, rotation second. velocity : defined in the body frame (local). integration : right multiplication. $\\mathbf{t}_{\\text{new}} = \\mathbf{t}_{\\text{old}} \\cdot \\exp(\\mathbf{v}_{\\text{body}})$ jacobian : right perturbation. $\\frac{\\partial}{\\partial \\delta \\boldsymbol{\\xi}}$ where $\\mathbf{t} \\leftarrow \\mathbf{t} \\cdot \\exp(\\delta \\boldsymbol{\\xi})$. multi-candidate layout instance major order: output_idx = instance_idx * num_candidates + candidate_idx example (3 instances × 2 candidates): [i0s0, i0s1, i1s0, i1s1, i2s0, i2s1] utility functions: function purpose example warp_utils.repeat expand instances for candidates [i0, i1] → [i0, i0, i1, i1] warp_utils.tile expand candidates for instances [s0, s1] → [s0, s1, s0, s1] notation transformations t_dst_src is a transform $\\mathbf{t}_{\\mathrm{dst}\\leftarrow\\mathrm{src}} \\in se(3)$ from the source to the destination frame: $\\mathbf{p}^{\\mathrm{dst}} = \\mathbf{t}_{\\mathrm{dst}\\leftarrow\\mathrm{src}}\\, \\mathbf{p}^{\\mathrm{src}}$. components: t_dst_src : translation vector $(x, y, z)$ q_wxyz_dst_src : rotation quaternion $(q_w, q_x, q_y, q_z)$ without frames, robokit.xform names arguments q_wxyz ( q_wxyz_1 , q_wxyz_2 for pairs), rot_mat for rotation matrices, and tf_mat for transformation matrices. joint positions q denotes joint positions.","robokit/opt-gd":"gdoptimizer gdoptimizer optimizers implements batched gradient descent , adam , and adamw on manifold-valued variables. source: src/robokit/opt/gd_optimizer.py . gd $$\\begin{array}{l} \\textbf{input}: x_0 \\text{ (initial var)},\\ c \\text{ (scalar cost)},\\ \\eta \\text{ (learning\\_rate)},\\ t \\text{ (max\\_iter)} \\\\[1mm] \\textbf{for}\\ t = 1, \\dots, t\\ \\textbf{do} \\\\ \\hspace{5mm} g_t \\leftarrow \\nabla c(x_{t-1}) \\\\ \\hspace{5mm} x_t \\leftarrow x_{t-1} \\oplus (-\\eta\\, g_t) \\\\ \\textbf{return}\\ x_t \\end{array}$$ adam / adamw adamw is adam with weight_decay > 0. in gd and adam, gradient_clip clamps each entry of $g_t$, and weight_decay adds the decoupled decay below. $m$ and $v$ are moving averages of $g$ and $g^2$, with decay rates $\\beta_1$ and $\\beta_2$. both start at zero, so early estimates lean toward zero. $\\widehat{m}_t$ and $\\widehat{v}_t$ correct this by dividing by $1-\\beta_1^t$ and $1-\\beta_2^t$. $$\\begin{array}{l} \\textbf{input}: x_0 \\text{ (initial var)},\\ c \\text{ (scalar cost)},\\ \\eta \\text{ (learning\\_rate)}, \\\\ \\hspace{13mm} \\beta_1, \\beta_2, \\epsilon,\\ \\lambda \\text{ (weight\\_decay)},\\ t \\text{ (max\\_iter)} \\\\[1mm] \\textbf{initialize}: m_0 \\leftarrow 0,\\ v_0 \\leftarrow 0 \\\\[1mm] \\textbf{for}\\ t = 1, \\dots, t\\ \\textbf{do} \\\\ \\hspace{5mm} g_t \\leftarrow \\nabla c(x_{t-1}) \\\\ \\hspace{5mm} m_t \\leftarrow \\beta_1 m_{t-1} + (1 - \\beta_1)\\, g_t,\\qquad v_t \\leftarrow \\beta_2 v_{t-1} + (1 - \\beta_2)\\, g_t^2 \\\\ \\hspace{5mm} \\widehat{m}_t \\leftarrow m_t / (1 - \\beta_1^t),\\qquad \\widehat{v}_t \\leftarrow v_t / (1 - \\beta_2^t) \\\\ \\hspace{5mm} \\delta_t \\leftarrow -\\eta\\, \\widehat{m}_t / (\\sqrt{\\widehat{v}_t} + \\epsilon) \\\\ \\hspace{5mm} \\textbf{if}\\ \\lambda > 0 \\\\ \\hspace{10mm} \\delta_t \\leftarrow \\delta_t - \\eta \\lambda\\, x_{t-1} \\quad \\text{(decoupled weight decay)} \\\\ \\hspace{5mm} x_t \\leftarrow x_{t-1} \\oplus \\delta_t \\\\ \\textbf{return}\\ x_t \\end{array}$$","robokit/opt-lm":"lmoptimizer lmoptimizer optimizers implements batched levenberg-marquardt on manifold-valued variables. source: src/robokit/opt/lm_optimizer.py . overview for the variable $\\mathbf{x}$, each iteration computes the residual vector $\\mathbf{r}(\\mathbf{x})$, the cost $c(\\mathbf{x})=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2$ and the residual jacobian $j$. these give a damped step $\\boldsymbol{\\delta}$ and a candidate $\\widehat{\\mathbf{x}}=\\mathbf{x}\\oplus\\boldsymbol{\\delta}$. the step comes from a model of the cost near $\\mathbf{x}$, so lm compares the actual cost drop with the predicted one. the comparison decides whether $\\widehat{\\mathbf{x}}$ replaces $\\mathbf{x}$ and whether the damping $\\lambda$ grows or shrinks. flowchart tb x[variable x] --> e[\"compute residual r, cost c, and jacobian j\"] e --> s[\"compute damped step δ\"] s --> c[\"evaluate candidate x ⊕ δ and its cost\"] c --> a[\"compare actual vs predicted drop
keep or discard candidate, update λ\"] a -- next iteration --> e lm step gauss-newton . for the cost $c(\\mathbf{x})=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2$ and a tangent step $\\boldsymbol{\\delta}$, to first order $\\mathbf{r}(\\mathbf{x}\\oplus\\boldsymbol{\\delta})\\approx \\mathbf{r}(\\mathbf{x})+j\\boldsymbol{\\delta}$. this gives the subproblem $\\min_{\\boldsymbol{\\delta}}\\; \\frac12\\|\\mathbf{r}(\\mathbf{x})+j\\boldsymbol{\\delta}\\|^2$, with gradient $j^\\top(\\mathbf{r}(\\mathbf{x})+j\\boldsymbol{\\delta})$. setting it to zero gives the normal equations $$j^\\top j\\boldsymbol{\\delta}=-j^\\top\\mathbf{r}(\\mathbf{x}).$$ solving it for $\\boldsymbol{\\delta}$ gives the candidate $\\widehat{\\mathbf{x}}= \\mathbf{x}\\oplus\\boldsymbol{\\delta}$. this is a newton-like step : $j^\\top\\mathbf{r}(\\mathbf{x})=\\nabla c(\\mathbf{x})$ and $j^\\top j\\approx h(\\mathbf{x})=\\nabla^2c(\\mathbf{x})$. levenberg-marquardt. lm adds a penalty for large steps: $$\\min_{\\boldsymbol{\\delta}}\\quad \\frac12\\left\\|\\mathbf{r}(\\mathbf{x})+j\\boldsymbol{\\delta}\\right\\|^2 +\\frac{\\lambda}{2}\\left\\|\\boldsymbol{\\delta}\\right\\|^2.$$ this gives $$\\left(j^\\top j+\\lambda i\\right)\\boldsymbol{\\delta} =-j^\\top\\mathbf{r}(\\mathbf{x}).$$ a larger $\\lambda$ gives a smaller step. the default linear_solver=\"cholesky\" solves this system exactly. \"cg\" uses matrix-free conjugate gradient and stops at a tolerance or an iteration cap. linear_solver=\"torch_cholesky\" factors the dense normal equations with pytorch in float64. it needs pytorch and runs eagerly. use it for wide coupled systems where factorization dominates runtime. trust region at the candidate $\\widehat{\\mathbf{x}}$, the actual reduction is $c(\\mathbf{x})-c(\\widehat{\\mathbf{x}})$. the gauss-newton model predicts $$\\begin{aligned} \\delta c_{\\mathrm{pred}} &=\\frac12\\|\\mathbf{r}(\\mathbf{x})\\|^2 -\\frac12\\|\\mathbf{r}(\\mathbf{x})+j\\boldsymbol{\\delta}\\|^2 \\\\ &=-\\mathbf{r}(\\mathbf{x})^\\top j\\boldsymbol{\\delta} -\\frac12(j\\boldsymbol{\\delta})^\\top(j\\boldsymbol{\\delta}). \\end{aligned}$$ for $\\delta c_{\\mathrm{pred}}>0$, the gain ratio compares the two: $$\\rho=\\frac{c(\\mathbf{x})-c(\\widehat{\\mathbf{x}})} {\\delta c_{\\mathrm{pred}}+\\epsilon}.$$ $\\epsilon\\ge0$ is a small stabilizer, $10^{-8}$ by default; $0$ gives the exact ratio. a $\\rho$ near $1$ means the model was accurate. lm accepts the candidate exactly when $$\\boxed{\\text{accept}\\iff \\delta c_{\\mathrm{pred}}>0\\ \\land\\ \\rho\\ge\\rho_{\\min}}.$$ the default is $\\rho_{\\min}=10^{-3}$. with damping factor $\\nu>1$, acceptance keeps $\\widehat{\\mathbf{x}}$ and sets $\\lambda\\leftarrow\\lambda/\\nu$ for a larger next step. rejection keeps $\\mathbf{x}$ and sets $\\lambda\\leftarrow\\lambda\\nu$ for a smaller one. algorithm $$\\begin{array}{l} \\textbf{input}: \\mathbf{x}_0,\\quad \\lambda_0,\\quad \\nu>1 \\text{ (damping update factor)},\\quad \\rho_{\\min} \\text{ (acceptance threshold)}, \\\\ \\hspace{13mm} \\epsilon \\text{ (numerical stabilizer)},\\quad [\\lambda_{\\min},\\lambda_{\\max}],\\quad t \\text{ (iterations)} \\\\[1mm] \\textbf{initialize}: \\mathbf{x}\\leftarrow\\mathbf{x}_0,\\ \\lambda\\leftarrow\\lambda_0 \\\\[1mm] \\textbf{for}\\ t=1,\\dots,t\\ \\textbf{do} \\\\ \\hspace{5mm} \\mathbf{r}\\leftarrow\\mathbf{r}(\\mathbf{x}),\\quad j\\leftarrow j(\\mathbf{x}),\\quad c\\leftarrow\\tfrac12\\|\\mathbf{r}\\|^2 \\\\ \\hspace{5mm} \\text{solve } (j^\\top j+\\lambda i)\\boldsymbol{\\delta}=-j^\\top\\mathbf{r} \\quad \\text{for } \\boldsymbol{\\delta} \\\\ \\hspace{5mm} \\widehat{\\mathbf{x}}\\leftarrow\\mathbf{x}\\oplus\\boldsymbol{\\delta}, \\quad \\text{evaluate }c(\\widehat{\\mathbf{x}})=\\tfrac12\\|\\mathbf{r}(\\widehat{\\mathbf{x}})\\|^2 \\\\ \\hspace{5mm} \\delta c_{\\mathrm{pred}}\\leftarrow \\tfrac12\\|\\mathbf{r}\\|^2-\\tfrac12\\|\\mathbf{r}+j\\boldsymbol{\\delta}\\|^2 \\\\ \\hspace{5mm} \\textbf{if}\\ \\delta c_{\\mathrm{pred}}>0\\quad\\textbf{and}\\quad \\dfrac{c-c(\\widehat{\\mathbf{x}})}{\\delta c_{\\mathrm{pred}}+\\epsilon}\\ge\\rho_{\\min} \\\\ \\hspace{10mm} \\mathbf{x}\\leftarrow\\widehat{\\mathbf{x}},\\quad \\lambda\\leftarrow\\lambda/\\nu \\\\ \\hspace{5mm} \\textbf{else} \\\\ \\hspace{10mm} \\lambda\\leftarrow\\lambda\\nu \\quad \\text{($\\mathbf{x}$ stays unchanged)} \\\\ \\hspace{5mm} \\lambda\\leftarrow \\operatorname{clip}(\\lambda,\\lambda_{\\min},\\lambda_{\\max}) \\\\ \\textbf{return}\\ \\mathbf{x} \\end{array}$$","robokit/opt-lbfgs":"lbfgsoptimizer lbfgsoptimizer optimizers implements batched l-bfgs on manifold-valued variables. source: src/robokit/opt/lbfgs_optimizer.py . overview for the variable $\\mathbf{x}$, each iteration computes the cost $c(\\mathbf{x})$ and gradient $\\mathbf{g}=\\nabla c(\\mathbf{x})$. $\\mathbf{g}$ and the history give a descent direction $\\mathbf{d}$. with no history, $\\mathbf{d}$ follows $-\\mathbf{g}$. a line search picks a step size $\\alpha^*$, and $\\mathbf{x}$ moves by $\\alpha^*\\mathbf{d}$. flowchart tb i[initial variable x] --> e[\"cost c(x) and gradient g\"] e --> d[\"descent direction d
computed using g and history\"] d --> l[\"line-search step size α*\"] l --> u[update x] u -- next iteration --> e descent direction the direction $\\mathbf{d}$ comes from the gradient $\\mathbf{g}$ and a short history of steps. iteration $t$, from $\\mathbf{x}_t$ to $\\mathbf{x}_{t+1}$, adds one history pair: $\\mathbf{s}_t = \\alpha_t^* \\mathbf{d}_t$: the tangent step applied to $\\mathbf{x}_t$. $\\mathbf{y}_t = \\mathbf{g}_{t+1} - \\mathbf{g}_t$: the gradient change from $\\mathbf{s}_t$. to first order, $$\\mathbf{g}(\\mathbf{x}_t+\\mathbf{s}_t) \\approx \\mathbf{g}(\\mathbf{x}_t)+j_{\\mathbf{g}}(\\mathbf{x}_t)\\mathbf{s}_t.$$ the gradient jacobian is the cost hessian, $j_{\\mathbf{g}}(\\mathbf{x})=h(\\mathbf{x})=\\nabla^2 c(\\mathbf{x})$, so $\\mathbf{y}_t\\approx h(\\mathbf{x}_t)\\mathbf{s}_t$. newton's method uses $\\mathbf{d}=-h(\\mathbf{x})^{-1}\\mathbf{g}$. l-bfgs replaces the exact inverse with an approximation $a$: $$a\\approx h(\\mathbf{x})^{-1}, \\qquad \\mathbf{d}=-a\\mathbf{g}.$$ below, $i$ indexes the history pairs, oldest first. $a_i$ is the approximation after $i$ pairs, with $a_0=\\gamma i$. bfgs adds pair $i$ by $$a_{i+1}=v_ia_iv_i^\\top+\\rho_i \\mathbf{s}_i \\mathbf{s}_i^\\top, \\qquad v_i=i-\\rho_i \\mathbf{s}_i \\mathbf{y}_i^\\top, \\qquad \\rho_i=\\frac{1}{\\mathbf{y}_i^\\top \\mathbf{s}_i}.$$ a pair is used only when $\\mathbf{y}_i^\\top\\mathbf{s}_i>0$; otherwise it is dropped. the update enforces $a_{i+1}\\mathbf{y}_i=\\mathbf{s}_i$ and keeps $a_{i+1}$ symmetric positive definite. why does the update work? why does it enforce $a_{i+1}\\mathbf{y}_i=\\mathbf{s}_i$? since $\\rho_i(\\mathbf{y}_i^\\top \\mathbf{s}_i)=1$, $v_i^\\top \\mathbf{y}_i=\\mathbf{y}_i-\\rho_i\\mathbf{y}_i (\\mathbf{y}_i^\\top \\mathbf{s}_i)=\\mathbf{0}$. substituting into the update gives $$a_{i+1}\\mathbf{y}_i =v_ia_iv_i^\\top \\mathbf{y}_i +\\rho_i\\mathbf{s}_i(\\mathbf{y}_i^\\top \\mathbf{s}_i) =\\mathbf{0}+\\rho_i\\mathbf{s}_i(\\mathbf{y}_i^\\top \\mathbf{s}_i) =\\mathbf{s}_i.$$ why does it stay symmetric positive definite? let $a_i$ be symmetric positive definite. then $v_ia_iv_i^\\top$ and $\\rho_i\\mathbf{s}_i\\mathbf{s}_i^\\top$ are symmetric. if $\\mathbf{y}_i^\\top\\mathbf{s}_i>0$, then $\\rho_i>0$, and for any nonzero $\\mathbf{z}$, $$\\mathbf{z}^\\top a_{i+1}\\mathbf{z} =(v_i^\\top \\mathbf{z})^\\top a_i(v_i^\\top \\mathbf{z}) +\\rho_i(\\mathbf{s}_i^\\top \\mathbf{z})^2>0.$$ so $a_{i+1}$ stays symmetric positive definite. after all pairs, $a$ approximates $h(\\mathbf{x})^{-1}$ and gives $\\mathbf{d}=-a\\mathbf{g}$. l-bfgs never builds the $n\\times n$ matrix $a$. a two-loop recursion over $m$ history pairs computes $a\\mathbf{g}$ in $o(mn)$ memory and $o(mn)$ operations, where $m\\ll n$. normalization. by default, normalize_direction=false keeps the direction's length. set it to true to scale the direction to unit length before the line search. how does the matrix update become two loops? the direction needs $a_m\\mathbf{g}$, where $m$ is the number of history pairs. expanding $a_m\\mathbf{g}$ with the bfgs update gives $$\\begin{aligned} a_m\\mathbf{g} &=v_{m-1}a_{m-1}(v_{m-1}^\\top\\mathbf{g}) +\\rho_{m-1}\\mathbf{s}_{m-1} (\\mathbf{s}_{m-1}^\\top\\mathbf{g}) \\\\ &=v_{m-1}\\big[ v_{m-2}a_{m-2}(v_{m-2}^\\top v_{m-1}^\\top\\mathbf{g}) +\\rho_{m-2}\\mathbf{s}_{m-2} (\\mathbf{s}_{m-2}^\\top v_{m-1}^\\top\\mathbf{g}) \\big] \\\\ &\\quad+\\rho_{m-1}\\mathbf{s}_{m-1} (\\mathbf{s}_{m-1}^\\top\\mathbf{g}) \\\\ &=\\cdots \\\\ &=v_{m-1}\\cdots v_0a_0 (v_0^\\top\\cdots v_{m-1}^\\top\\mathbf{g}) \\\\ &\\quad+\\cdots+\\rho_{m-1}\\mathbf{s}_{m-1} (\\mathbf{s}_{m-1}^\\top\\mathbf{g}). \\end{aligned}$$ the first loop computes the product $v_0^\\top\\cdots v_{m-1}^\\top\\mathbf{g}$. define $\\mathbf{q}_0=v_0^\\top\\cdots v_{m-1}^\\top\\mathbf{g}$. each step goes from $\\mathbf{q}_{i+1}$ to $\\mathbf{q}_i$: $$\\mathbf{q}_i =v_i^\\top\\mathbf{q}_{i+1} =\\mathbf{q}_{i+1} -\\rho_i\\mathbf{y}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}).$$ starting from $\\mathbf{q}_m=\\mathbf{g}$, the loop runs backward from $i=m-1$ to $i=0$ and yields $\\mathbf{q}_0$. the second loop evaluates the remaining terms, starting from $a_0\\mathbf{q}_0$. define $\\mathbf{r}_0=a_0\\mathbf{q}_0=\\gamma\\mathbf{q}_0$. each step goes from $\\mathbf{r}_i$ to $\\mathbf{r}_{i+1}$: $$\\mathbf{r}_{i+1} =v_i\\mathbf{r}_i +\\rho_i\\mathbf{s}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}) =\\mathbf{r}_i+\\rho_i\\mathbf{s}_i (\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}-\\mathbf{y}_i^\\top\\mathbf{r}_i).$$ starting from $\\mathbf{r}_0$, the loop runs forward from $i=0$ to $i=m-1$ and yields $\\mathbf{r}_m=a_m\\mathbf{g}$. pseudocode: $$\\begin{array}{l} \\textbf{input}: \\mathbf{g},\\ \\text{history},\\ \\gamma \\\\ \\textbf{initialize}: \\mathbf{q}_m\\leftarrow\\mathbf{g} \\\\ \\textbf{for }i=m-1,\\ldots,0 \\\\ \\hspace{5mm} \\mathbf{q}_i\\leftarrow\\mathbf{q}_{i+1} -\\rho_i\\mathbf{y}_i(\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}) \\\\ \\mathbf{r}_0\\leftarrow\\gamma\\mathbf{q}_0 \\\\ \\textbf{for }i=0,\\ldots,m-1 \\\\ \\hspace{5mm} \\mathbf{r}_{i+1}\\leftarrow\\mathbf{r}_i +\\rho_i\\mathbf{s}_i (\\mathbf{s}_i^\\top\\mathbf{q}_{i+1}-\\mathbf{y}_i^\\top\\mathbf{r}_i) \\\\ \\textbf{return}: \\mathbf{d}\\leftarrow-\\mathbf{r}_m \\end{array}$$ initial scale. the start is $a_0=\\gamma i$, with $\\gamma$ fixed or adaptive. barzilai-borwein scaling picks $\\gamma$ from the newest pair $(\\mathbf{s}_{m-1},\\mathbf{y}_{m-1})$, so $\\gamma\\mathbf{y}_{m-1}$ best fits $\\mathbf{s}_{m-1}$: $$\\gamma =\\frac{\\mathbf{s}_{m-1}^\\top\\mathbf{y}_{m-1}} {\\mathbf{y}_{m-1}^\\top\\mathbf{y}_{m-1}}.$$ line search the line search tries a fixed set of step sizes $\\alpha_j$ at once and picks $$\\alpha^* = \\begin{cases} \\displaystyle \\max_j\\left\\{ \\alpha_j \\;\\middle|\\; c(\\mathbf{x}\\oplus\\alpha_j\\mathbf{d}) \\le c(\\mathbf{x})+c_1\\alpha_j\\mathbf{g}^\\top\\mathbf{d} \\right\\}, & \\text{if any candidate passes}, \\\\[3mm] 0, & \\text{otherwise}. \\end{cases}$$ since $a$ is positive definite, $\\mathbf{g}^\\top a\\mathbf{g}>0, \\mathbf{g}^\\top\\mathbf{d}<0$. the armijo condition $c(\\mathbf{x}\\oplus\\alpha_j\\mathbf{d})\\le c(\\mathbf{x})+c_1\\alpha_j\\mathbf{g}^\\top\\mathbf{d}$ requires the actual decrease to be at least $c_1$ of the predicted first-order decrease. $c_1$ defaults to $10^{-4}$; a larger value requires more decrease.","robokit/term-frame":"frame task frame task terms unweighted residual and jacobian for src/robokit/terms/dense/frame_task.py . residual for the current and target link transforms: $$\\delta\\mathbf{t} = \\left(\\mathbf{t}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1} \\mathbf{t}^{\\mathrm{tgt}}_{w\\leftarrow l}$$ se(3) log map: $$\\mathbf{e} = \\mathrm{log}\\!\\left(\\delta\\mathbf{t}\\right) \\in\\mathbb{r}^6$$ jacobian $\\mathbf{j}=\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}}\\in\\mathbb{r}^{6\\times n}$. express the world-frame motion subspace in the current link frame: $$\\mathbf{j}_{\\mathrm{body}}^l = \\mathrm{ad}\\!\\left(\\left(\\mathbf{t}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1}\\right)\\mathbf{s}_w \\in\\mathbb{r}^{6\\times n}$$ here, $\\mathrm{ad}$ maps world-frame twists to the link frame. with $\\boldsymbol{\\tau}=\\mathrm{log}(\\delta\\mathbf{t}^{-1})$ and $j_r$ the se(3) right jacobian: $$\\mathbf{j} = -\\,j_r^{-1}\\!\\left(\\boldsymbol{\\tau}\\right)\\, \\mathbf{j}_{\\mathrm{body}}^l \\in\\mathbb{r}^{6\\times n}$$","robokit/term-position":"position task position task terms unweighted residual and jacobian for src/robokit/terms/dense/position_task.py . residual world-frame position error: $$\\mathbf{e} = \\mathbf{p}^{\\mathrm{tgt}}_w - \\mathbf{p}^{\\mathrm{cur}}_w \\in\\mathbb{r}^3$$ where $\\mathbf{p}^{\\mathrm{cur}}_w$ and $\\mathbf{p}^{\\mathrm{tgt}}_w$ are the current and target world-frame positions. jacobian $\\mathbf{j}=\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}}\\in\\mathbb{r}^{3\\times n}$. for column $j$ of $\\mathbf{s}_w$: $$\\mathbf{j}[\\cdot, j] = -\\left(\\mathbf{v}_{w,j} + \\boldsymbol{\\omega}_{w,j} \\times \\mathbf{p}^{\\mathrm{cur}}_w\\right) \\in\\mathbb{r}^3$$","robokit/term-rotation":"rotation tasks rotation tasks terms unweighted residual and jacobian for src/robokit/terms/dense/rotation_task.py . rotationtask residual world-frame rotation error: $$\\mathbf{q}_{\\mathrm{err}} = \\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l} \\otimes \\left(\\mathbf{q}^{\\mathrm{tgt}}_{w\\leftarrow l}\\right)^{-1}, \\qquad \\mathbf{e}=\\mathrm{axisangle}(\\mathbf{q}_{\\mathrm{err}}) \\in\\mathbb{r}^3$$ here, $\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}$ and $\\mathbf{q}^{\\mathrm{tgt}}_{w\\leftarrow l}$ are the current and target link orientations, and $\\mathrm{axisangle}$ converts a quaternion to axis-angle. jacobian from the world-frame motion subspace $ \\mathbf{s}_w= \\begin{bmatrix} \\mathbf{v}_w\\\\ \\boldsymbol{\\omega}_w \\end{bmatrix} \\in\\mathbb{r}^{6\\times n}, $ the exact derivative is: $$\\frac{\\partial\\mathbf{e}}{\\partial\\mathbf{q}} = \\mathbf{j}_l^{-1}(\\mathbf{e})\\, \\boldsymbol{\\omega}_w,$$ where $\\mathbf{j}_l$ is the so(3) left jacobian. the implementation uses the zero-error approximation: $$\\mathbf{j} = \\boldsymbol{\\omega}_w \\in\\mathbb{r}^{3\\times n}$$ axislimittask residual the link-frame axis $\\mathbf{a}_l\\in\\mathbb{r}^3$ is rotated into the world frame and compared with the world axis $\\mathbf{b}_w\\in\\mathbb{r}^3$: $$[0,\\mathbf{a}_w] = \\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l} \\otimes[0,\\mathbf{a}_l] \\otimes \\left(\\mathbf{q}^{\\mathrm{cur}}_{w\\leftarrow l}\\right)^{-1}, \\qquad c=\\mathbf{a}_w^\\top\\mathbf{b}_w.$$ for optional angle bounds $\\theta_{\\min}$ and $\\theta_{\\max}$, the residual is: $$e= \\max\\!\\left(c-\\cos\\theta_{\\min},0\\right) + \\max\\!\\left(\\cos\\theta_{\\max}-c,0\\right),$$ where a missing bound contributes zero. jacobian for angular-velocity column $\\boldsymbol{\\omega}_{w,j}$: $$\\frac{\\partial c}{\\partial q_j} = \\mathbf{b}_w^\\top \\left(\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{a}_w\\right).$$ therefore: $$j_j=\\gamma\\, \\mathbf{b}_w^\\top \\left(\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{a}_w\\right),$$ where $\\gamma=1$ for an active minimum-angle violation, $\\gamma=-1$ for an active maximum-angle violation, and $\\gamma=0$ otherwise.","robokit/term-frame-vector":"frame vector task frame vector task terms unweighted residuals and jacobians for: src/robokit/terms/dense/frame_vector_task.py src/robokit/terms/sparse/trajectory_retargeting_task.py residual for pair $i$, let $\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}$ and $\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}$ be the world positions of its origin and task links. a negative origin index uses $\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}=\\mathbf{0}$. with scale $s_i$ and target displacement $\\mathbf{d}^{\\mathrm{tgt}}_{w,i}$: $$\\mathbf{d}^{\\mathrm{cur}}_{w,i}=s_i(\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}-\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}), \\qquad \\mathbf{e}_i=\\mathbf{d}^{\\mathrm{cur}}_{w,i}-\\mathbf{d}^{\\mathrm{tgt}}_{w,i}.$$ with direction_only=true , the target is first replaced by: $$\\mathbf{d}^{\\mathrm{tgt}}_{w,i} \\leftarrow \\frac{\\mathbf{d}^{\\mathrm{tgt}}_{w,i}}{\\|\\mathbf{d}^{\\mathrm{tgt}}_{w,i}\\|+10^{-6}} \\|\\mathbf{d}^{\\mathrm{cur}}_{w,i}\\|.$$ optional huber and soft-gate settings transform and scale $\\mathbf{e}_i$. jacobian the vector derivative is: $$\\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}}{\\partial q_j} = s_i\\left( \\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,k_i}}{\\partial q_j} - \\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,o_i}}{\\partial q_j} \\right).$$ in direction-only mode, with normalized displacements $\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,i}$ and $\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,i}$: $$\\frac{\\partial\\mathbf{e}_i}{\\partial q_j} = \\left( \\mathbf{i}-\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,i}(\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,i})^\\top \\right) \\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}}{\\partial q_j}.$$ otherwise, $\\partial\\mathbf{e}_i/\\partial q_j=\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,i}/\\partial q_j$. the optional huber derivative and soft-gate value multiply this column. trajectory retargeting for each frame and selected pair $(i,j)$, trajectoryretargetingtask uses the position residual $$\\mathbf{e}_{p,ij} = \\alpha(\\mathbf{p}^{\\mathrm{tgt}}_{w,i}-\\mathbf{p}^{\\mathrm{tgt}}_{w,j}) -(\\mathbf{p}^{\\mathrm{cur}}_{w,i}-\\mathbf{p}^{\\mathrm{cur}}_{w,j}),$$ where $\\alpha$ is target_scale . it also adds the direction residual $$e_{d,ij} = 1-(\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij})^\\top \\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij}.$$ the position jacobian is $-\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,ij}/\\partial q_k$. for the direction residual, $$\\frac{\\partial e_{d,ij}}{\\partial q_k} = -\\frac{ (\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij} -((\\widehat{\\mathbf{d}}^{\\mathrm{tgt}}_{w,ij})^\\top\\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij}) \\widehat{\\mathbf{d}}^{\\mathrm{cur}}_{w,ij})^\\top }{\\|\\mathbf{d}^{\\mathrm{cur}}_{w,ij}\\|+10^{-6}} \\frac{\\partial\\mathbf{d}^{\\mathrm{cur}}_{w,ij}}{\\partial q_k}.$$","robokit/term-com-position":"com position task com position task terms unweighted residual and jacobian for src/robokit/terms/dense/com_position_task.py . residual for link mass $m_l$, current world-frame link center of mass $\\mathbf{p}^{\\mathrm{cur}}_{w,l}$, and total mass $m=\\sum_l m_l$: $$\\mathbf{p}^{\\mathrm{cur}}_{w,\\mathrm{com}} = \\frac{1}{m}\\sum_l m_l\\mathbf{p}^{\\mathrm{cur}}_{w,l}.$$ the residual is the world-frame position error: $$\\mathbf{e} = \\mathbf{p}^{\\mathrm{tgt}}_w-\\mathbf{p}^{\\mathrm{cur}}_{w,\\mathrm{com}} \\in\\mathbb{r}^3.$$ jacobian for column $j$ of the link's world-frame motion subspace, $\\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,l}}{\\partial q_j}=\\mathbf{v}_{w,l,j}+\\boldsymbol{\\omega}_{w,l,j}\\times\\mathbf{p}^{\\mathrm{cur}}_{w,l}$. the residual jacobian is: $$\\mathbf{j}[\\cdot,j] = -\\frac{1}{m}\\sum_l m_l \\left( \\mathbf{v}_{w,l,j}+\\boldsymbol{\\omega}_{w,l,j}\\times\\mathbf{p}^{\\mathrm{cur}}_{w,l} \\right).$$","robokit/term-position-limit":"position limit position limit terms unweighted residual and jacobian for src/robokit/terms/dense/position_limit.py . residual for joint position $q_i$ and bounds $[l_i,u_i]$, the default residual is its distance outside the interval: $$e_i = \\max(l_i-q_i,0)+\\max(q_i-u_i,0).$$ sqrt_abs replaces each positive $e_i$ by $\\sqrt{e_i+\\epsilon}$. for exp_barrier , $c_i=(l_i+u_i)/2$ is the interval center, $h_i=(u_i-l_i)/2$ is its half-range, and $v_i=\\max(|(q_i-c_i)/h_i|-a,0)$ is the normalized violation. the residual is: $$e_i=(q_i-c_i) \\left(1-\\exp\\left(-(\\kappa v_i)^p\\right)\\right),$$ with fixed constants $a=0.8$, $\\kappa=5$, and $p=4$. an optional floating-base bound uses the same interval residual for one world-position axis. jacobian for the default mode: $$\\frac{\\partial e_i}{\\partial q_i} = \\begin{cases} -1, & q_iu_i. \\end{cases}$$ sqrt_abs multiplies an active row by $1/(2\\sqrt{e_i+\\epsilon})$. exp_barrier differentiates its expression directly.","robokit/term-velocity-limit":"velocity limit task velocity limit task terms unweighted residual and jacobian for src/robokit/terms/dense/velocity_limit_task.py . residual for timestep $\\delta t$ and joint velocity limit $\\bar{v}_i$: $$\\dot q_i = \\frac{q_i^{\\mathrm{cur}}-q_i^{\\mathrm{prev}}}{\\delta t}, \\qquad e_i=\\max\\!\\left(|\\dot q_i|-\\bar v_i,0\\right).$$ jacobian the only nonzero entry in row $i$ is: $$\\frac{\\partial e_i}{\\partial q_i^{\\mathrm{cur}}} = \\begin{cases} \\mathrm{sign}(\\dot q_i)/\\delta t, & |\\dot q_i|>\\bar v_i,\\\\ 0, & |\\dot q_i|\\le\\bar v_i. \\end{cases}$$","robokit/term-configuration":"configuration task configuration task terms unweighted residual and jacobian for src/robokit/terms/dense/configuration_task.py . residual for joint configuration $\\mathbf{q}^{\\mathrm{cur}}$ and rest configuration $\\mathbf{q}^{\\mathrm{rest}}$: $$\\mathbf{e}_q = \\mathbf{q}^{\\mathrm{cur}}-\\mathbf{q}^{\\mathrm{rest}}.$$ for an optional floating-base rest transform: $$\\delta\\mathbf{t} = \\mathbf{t}^{\\mathrm{cur}}_{w\\leftarrow b} \\left(\\mathbf{t}^{\\mathrm{rest}}_{w\\leftarrow b}\\right)^{-1}, \\qquad \\mathbf{e}_b=\\mathrm{log}(\\delta\\mathbf{t}).$$ jacobian the joint block is the identity matrix. for the base block: $$\\mathbf{j}_b = \\mathbf{j}_{\\log}(\\delta\\mathbf{t}) \\mathrm{ad}\\!\\left(\\mathbf{t}^{\\mathrm{rest}}_{w\\leftarrow b}\\right),$$ where $\\mathbf{j}_{\\log}$ is the jacobian of the se(3) log map.","robokit/term-smoothness":"smoothness task smoothness task terms unweighted residual and jacobian for src/robokit/terms/dense/smoothness_task.py and src/robokit/terms/sparse/trajectory_smoothness_task.py . dense smoothnesstask compares one configuration with the previous one, given at construction. residual $$\\mathbf{e}_q = \\mathbf{q}^{\\mathrm{cur}}-\\mathbf{q}^{\\mathrm{prev}}.$$ for a floating base: $$\\delta\\mathbf{t} = \\mathbf{t}^{\\mathrm{cur}}_{w\\leftarrow b} \\left(\\mathbf{t}^{\\mathrm{prev}}_{w\\leftarrow b}\\right)^{-1}, \\qquad \\mathbf{e}_b=\\mathrm{log}(\\delta\\mathbf{t}).$$ jacobian the joint block is the identity. the base block is: $$\\mathbf{j}_b = \\mathbf{j}_{\\log}(\\delta\\mathbf{t}) \\,\\mathrm{ad}\\!\\left(\\mathbf{t}^{\\mathrm{prev}}_{w\\leftarrow b}\\right).$$ sparse residual with $\\tilde{\\mathbf{q}}_t=\\mathbf{q}^{\\mathrm{cur}}_t-\\mathbf{q}^{\\mathrm{ref}}_t$, order $p$ takes the difference $p$ times: $p$ weights 1 velocity $-1,\\ 1$ 2 acceleration $1,\\ -2,\\ 1$ 3 jerk $-1,\\ 3,\\ -3,\\ 1$ one residual per frame gap, num_frames - 1 in total. the one at $r$ uses frames $r-(p-1)$ through $r+1$: $$\\mathbf{e}_r = \\frac{1}{\\delta t^{\\,p}} \\sum_{j=0}^{p} c_j\\,\\tilde{\\mathbf{q}}_{r-(p-1)+j}.$$ $c_j$ is the $j$-th weight from the table above, $j=0\\ldots p$. jacobian the residual is linear in $\\mathbf{q}$, so the jacobian is constant: $$\\frac{\\partial e_{r,i}}{\\partial q^{\\mathrm{cur}}_{r-(p-1)+j,\\;i}} = \\frac{c_j}{\\delta t^{\\,p}}.$$ each row has $p+1$ nonzeros, in the joint columns of the frames it spans. base columns stay zero. with base_weight , order=1 also smooths consecutive floating-base transforms: $$\\delta\\mathbf{t}_t = \\left(\\mathbf{t}_{w\\leftarrow b,t}\\right)^{-1} \\mathbf{t}_{w\\leftarrow b,t+1}, \\qquad \\mathbf{e}_{b,t}=\\frac{\\mathrm{log}(\\delta\\mathbf{t}_t)}{\\delta t}.$$ let $\\mathbf{j}_{\\log}^r$ be the right log-map jacobian and $\\mathbf{j}_{\\log}^l=\\mathbf{j}_{\\log}^r\\mathrm{ad}(\\delta\\mathbf{t}_t^{-1})$. then $$\\frac{\\partial\\mathbf{e}_{b,t}}{\\partial\\boldsymbol{\\xi}_t} =-\\frac{\\mathbf{j}_{\\log}^l}{\\delta t}, \\qquad \\frac{\\partial\\mathbf{e}_{b,t}}{\\partial\\boldsymbol{\\xi}_{t+1}} =\\frac{\\mathbf{j}_{\\log}^r}{\\delta t}.$$","robokit/term-self-collision":"self collision task self collision task terms unweighted residual and jacobian for src/robokit/terms/dense/self_collision_task.py . residual for an active pair of spheres with world-frame centers $\\mathbf{c}_{w,i},\\mathbf{c}_{w,j}$ and radii $r_i,r_j$, the surface distance is: $$d_{ij} = \\|\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j}\\|-r_i-r_j.$$ the residual is: $$e_{ij}=\\max\\!\\left(\\mathtt{margin}-d_{ij},0\\right).$$ capsule mode uses the same residual at the closest points on the two capsule axes. the task keeps at most max_active_pairs active link pairs. jacobian let $\\widehat{\\mathbf{d}}_{w,ij}=(\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j})/\\|\\mathbf{c}_{w,i}-\\mathbf{c}_{w,j}\\|$. for an active pair: $$j_{ij,k} = -\\widehat{\\mathbf{d}}_{w,ij}^\\top \\left( \\frac{\\partial\\mathbf{c}_{w,i}}{\\partial q_k} - \\frac{\\partial\\mathbf{c}_{w,j}}{\\partial q_k} \\right).$$ for sqrt_abs , this is multiplied by $1/(2\\sqrt{e_{ij}+\\epsilon})$.","robokit/term-scene-collision":"scene collision task scene collision task terms unweighted residual and jacobian for src/robokit/terms/dense/scene_collision_task.py and src/robokit/terms/sparse/trajectory_collision_task.py . residual for collision sphere $i$ with world center $\\mathbf{c}_{w,i}$ and radius $r_i$, its clearance from the scene is: $$s_i=\\mathrm{sdf}(\\mathbf{c}_{w,i})-r_i.$$ negative $s_i$ means the sphere penetrates the scene. the smooth penalty is: $$e_i= \\begin{cases} \\frac{\\mathtt{margin}}{2}-s_i, & s_i<0,\\\\ \\frac{(\\mathtt{margin}-s_i)^2}{2(\\mathtt{margin}+\\epsilon)}, & 0\\le s_i\\le\\mathtt{margin},\\\\ 0, & s_i>\\mathtt{margin}, \\end{cases} \\qquad \\mathbf{e}\\in\\mathbb{r}^n,$$ the quadratic branch reaches zero smoothly at margin . $n$ is the number of selected spheres and $\\epsilon=10^{-6}$. plain uses $e_i=\\max(\\mathtt{margin}-s_i,0)$. surface_distance uses $e_i=|s_i|$ to pull the sphere toward contact. jacobian for the world-frame motion-subspace column of the sphere's link: $$\\mathbf{s}_{w,j} = \\begin{bmatrix} \\mathbf{v}_{w,j}\\\\ \\boldsymbol{\\omega}_{w,j} \\end{bmatrix}, \\qquad \\frac{\\partial\\mathbf{c}_{w,i}}{\\partial q_j} = \\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{c}_{w,i}.$$ with the world-frame scene normal $\\mathbf{n}_{w,i}$ from warpscene : $$j_{ij} = \\frac{\\partial e_i}{\\partial s_i}\\, \\mathbf{n}_{w,i}^\\top \\left( \\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{c}_{w,i} \\right),$$ for smooth : $$\\frac{\\partial e_i}{\\partial s_i} = \\begin{cases} -1, & s_i<0,\\\\ \\frac{s_i-\\mathtt{margin}}{\\mathtt{margin}+\\epsilon}, & 0\\le s_i\\le\\mathtt{margin},\\\\ 0, & s_i>\\mathtt{margin}. \\end{cases}$$ for plain , the derivative is $-1$ below margin and $0$ otherwise; for surface_distance , it is $\\operatorname{sign}(s_i)$.","robokit/term-scene-distance":"scene distance task scene distance task terms unweighted residual and jacobian for src/robokit/terms/dense/scene_distance_task.py . residual for world-frame contact point $\\mathbf{p}_{w,i}$, let $s_i=\\mathrm{sdf}(\\mathbf{p}_{w,i})$. the default residual is: $$e_i=|s_i|.$$ it is zero on the scene surface and increases on either side. sqrt_abs uses $e_i=\\sqrt{|s_i|+\\epsilon}$ for l1 regularization. jacobian let $\\mathbf{n}_{w,i}$ be the world-frame scene normal warpscene returns. the point derivative is $\\frac{\\partial\\mathbf{p}_{w,i}}{\\partial q_j}=\\mathbf{v}_{w,j}+\\boldsymbol{\\omega}_{w,j}\\times\\mathbf{p}_{w,i}$. then: $$j_{ij} = \\mathrm{sign}(s_i)\\, \\mathbf{n}_{w,i}^\\top \\frac{\\partial\\mathbf{p}_{w,i}}{\\partial q_j}.$$ for sqrt_abs , this is multiplied by $1/(2\\sqrt{|s_i|+\\epsilon})$.","robokit/term-interaction-mesh":"interaction mesh task interaction mesh task terms unweighted residual and jacobian for src/robokit/terms/dense/interaction_mesh_task.py . residual the interaction mesh contains robot-link vertices and fixed object vertices. for vertex $i$, its laplacian coordinate is: $$\\mathbf{l}^{\\mathrm{cur}}_{w,i} = \\mathbf{p}^{\\mathrm{cur}}_{w,i}- \\sum_{j\\in\\mathcal{n}(i)}w_{ij}\\mathbf{p}^{\\mathrm{cur}}_{w,j}.$$ given the target laplacian $\\mathbf{l}^{\\mathrm{tgt}}_{w,i}$ built from the human-object frame, the residual is: $$\\mathbf{e}_i = \\mathbf{l}^{\\mathrm{cur}}_{w,i}-\\mathbf{l}^{\\mathrm{tgt}}_{w,i} \\in\\mathbb{r}^3.$$ jacobian the derivative of a fixed object vertex is zero. the jacobian block for vertex $i$ is: $$\\mathbf{j}_i[\\cdot,k] = \\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,i}}{\\partial q_k} - \\sum_{j\\in\\mathcal{n}(i)}w_{ij} \\frac{\\partial\\mathbf{p}^{\\mathrm{cur}}_{w,j}}{\\partial q_k}.$$","robokit/term-mask-alignment":"mask alignment task mask alignment task terms residual and normal equations for src/robokit/helpers/hand_eye_calibration/mask_alignment_task.py . residual for rendered mask value $m^{\\mathrm{cur}}_{uv}$ and target mask value $m^{\\mathrm{tgt}}_{uv}$ at pixel $(u,v)$: $$e_{uv}=m^{\\mathrm{cur}}_{uv}-m^{\\mathrm{tgt}}_{uv}.$$ when depth is enabled, valid rendered and target depths add the huber residual of $z^{\\mathrm{cur}}_{uv}-z^{\\mathrm{tgt}}_{uv}$. jacobian a camera twist $\\boldsymbol{\\xi}\\in\\mathbb{r}^6$ moves the projected pixel $(u,v)$ across the rendered mask, so: $$\\frac{\\partial e_{uv}}{\\partial\\boldsymbol{\\xi}} = \\begin{bmatrix} \\partial m^{\\mathrm{cur}}/\\partial u & \\partial m^{\\mathrm{cur}}/\\partial v \\end{bmatrix} \\frac{\\partial(u,v)}{\\partial\\boldsymbol{\\xi}}.$$ $\\partial(u,v)/\\partial\\boldsymbol{\\xi}$ is how the projected pixel $(u,v)$ moves with the camera twist. interior pixels use $\\frac{\\partial m^{\\mathrm{cur}}}{\\partial u}=\\frac{m^{\\mathrm{cur}}_{u+1,v}-m^{\\mathrm{cur}}_{u-1,v}}{2}$ and $\\frac{\\partial m^{\\mathrm{cur}}}{\\partial v}=\\frac{m^{\\mathrm{cur}}_{u,v+1}-m^{\\mathrm{cur}}_{u,v-1}}{2}$. the task sums $\\mathbf{j}^\\top\\mathbf{j}$ and $\\mathbf{j}^\\top\\mathbf{e}$ over pixels without storing $\\mathbf{j}$.","robokit/term-manipulability":"manipulability task manipulability task terms unweighted residual and jacobian for src/robokit/terms/dense/manipulability_task.py . residual let $\\mathbf{j}^p_w\\in\\mathbb{r}^{3\\times n}$ be the world-frame position jacobian of the target link. its yoshikawa manipulability is: $$m = \\sqrt{\\det(\\mathbf{j}^p_w(\\mathbf{j}^p_w)^\\top)}.$$ the residual is: $$e=\\frac{1}{m+\\epsilon}.$$ minimizing it moves the robot away from singular configurations. jacobian for $\\mathbf{a}=\\mathbf{j}^p_w(\\mathbf{j}^p_w)^\\top$: $$\\frac{\\partial e}{\\partial q_j} = -\\frac{1}{(m+\\epsilon)^2} \\frac{1}{2m} \\frac{\\partial\\det(\\mathbf{a})}{\\partial q_j}.$$ every column of $\\mathbf{j}^p_w$ is differentiated analytically. floating-base columns are zero.","robokit/term-force-closure":"force closure task force closure task terms unweighted residual and jacobian for src/robokit/terms/dense/force_closure_task.py . residual for world-frame contact point $\\mathbf{p}_{w,i}$ and object-surface normal $\\mathbf{n}_{w,i}$, the residual is the summed contact wrench: $$\\mathbf{e} = \\begin{bmatrix} \\sum_i\\mathbf{n}_{w,i}\\\\ \\sum_i\\mathbf{p}_{w,i}\\times\\mathbf{n}_{w,i} \\end{bmatrix} \\in\\mathbb{r}^6.$$ warpscene supplies unit surface normals and their position jacobians. mesh face normals are constant within a face. derivatives jump where the closest face, voxel cell or object changes. jacobian let $\\mathbf{n}_i = \\partial\\mathbf{n}_{w,i}/\\partial\\mathbf{p}_{w,i}$ and $\\mathbf{v}_{i,j} = \\partial\\mathbf{p}_{w,i}/\\partial q_j$. then: $$\\mathbf{j}[\\cdot,j] = \\begin{bmatrix} \\sum_i\\mathbf{n}_i\\mathbf{v}_{i,j}\\\\ \\sum_i \\left(\\mathbf{v}_{i,j}\\times\\mathbf{n}_{w,i} +\\mathbf{p}_{w,i}\\times\\mathbf{n}_i\\mathbf{v}_{i,j}\\right) \\end{bmatrix}.$$ for mesh face normals, $\\mathbf{n}_i=0$. optional contact-force weights scale each contact's force and torque. residual weights scale the six outputs.","robokit/api-robot":"robot robot api robot robokit.robo class

robot model backed by warp.

examples

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32) >>> state = robot.state(q=q) >>> state = robot.forward_kinematics(state) >>> hand_idx = robot.spec.link_names.index(\"panda_hand\") >>> link_pose = state.t_world_link[:, hand_idx] >>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32) >>> expected = wp.from_numpy(expected, dtype=wp_vec7) >>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4) true
spec robotspec spec: robotspec load(robot_description_or_path: union[str, path, yourdfpy.urdf], load_meshes: bool = false, mesh_dir: optional[union[str, path]] = none, load_collision_spheres: bool = false, collision_spheres_path: optional[union[str, path]] = none, base_link_name: optional[str] = none, ee_link_names: optional[union[sequence[str], str]] = none, self_collision_ignore_path: optional[union[str, path]] = none) -> robot

load a robot model from a urdf/mjcf path, description string, or parsed yourdfpy.urdf.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> robot.spec.num_actuated_joints 8
state(q: optional[union[wp.array, np.ndarray]] = none, t_world_base: optional[wp.array] = none) -> robotstate

build a robot state for the given joint positions (defaults to zero_q).

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> robot.state().q.shape (1, 8)
forward_kinematics(state: robotstate, use_sequential: optional[bool] = none) -> robotstate

compute forward kinematics for given joint positions; returns a state with all link transforms.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32) >>> state = robot.state(q=q) >>> state = robot.forward_kinematics(state) >>> hand_idx = robot.spec.link_names.index(\"panda_hand\") >>> link_pose = state.t_world_link[:, hand_idx] >>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32) >>> expected = wp.from_numpy(expected, dtype=wp_vec7) >>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4) true >>> t_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7) >>> state = robot.state(q=q, t_world_base=t_world_base) >>> state = robot.forward_kinematics(state) >>> link_pose = state.t_world_link[:, hand_idx] >>> expected = np.array([1.76371783, 2.0, 2.93915576, -0.24222432, 0.71524162, 0.29626278, -0.58478125], dtype=np.float32) >>> expected = wp.from_numpy(expected, dtype=wp_vec7) >>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4) true
forward_kinematics_via_matrix_numpy(q: float[np.ndarray, '... num_dofs'], t_world_base: optional[float[np.ndarray, '... 4 4']] = none, device: optional[str] = none) -> float[np.ndarray, '... num_links 4 4']

compute forward kinematics as 4x4 matrices for numpy arrays, without an autograd round trip.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32) >>> robot.forward_kinematics_via_matrix_numpy(q).shape (1, 13, 4, 4)
forward_kinematics_numpy(q: float[np.ndarray, '... num_dofs'], t_world_base: optional[float[np.ndarray, '... 7']] = none, device: optional[str] = none) -> float[np.ndarray, '... num_links 7']

compute world link poses as translation-first 7d poses for numpy arrays.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32) >>> robot.forward_kinematics_numpy(q).shape (1, 13, 7)
compute_center_of_mass_numpy(q: float[np.ndarray, '... num_dofs'], t_world_base: optional[float[np.ndarray, '... 7']] = none, device: optional[str] = none) -> float[np.ndarray, '... 3']

compute the whole-body center of mass in world frame for numpy arrays.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32) >>> np.allclose(robot.compute_center_of_mass_numpy(q)[0], [0.0232, 0.0061, 0.6062], atol=1e-4) true
compute_motion_subspace(state: robotstate) -> robotstate

store robot joint jacobians in state for state.get_link_jacobian().

base layouts:

  • fixed base: joint columns only.
  • floating base: prepend j_base, giving shape [batch, 6, 6 + num_dofs].

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> t_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7) >>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32) >>> state = robot.state(q=q, t_world_base=t_world_base) >>> state = robot.compute_motion_subspace(state) >>> j = state.get_link_jacobian(robot.spec.link_names.index(\"panda_hand\"), \"body\") >>> np.allclose(j.numpy()[0, 0, :6], np.array([0.693, 0.7071, 0.1405, -0.54, 0.5207, 0.043], dtype=np.float32), atol=1e-4) true >>> j = state.get_link_jacobian(robot.spec.link_names.index(\"panda_hand\"), \"spatial\") >>> np.allclose(j.numpy()[0, 0, 6:], np.array([0.0001, -3., 1.8641, 3.2647, -1.4346, 3.0467, -0.3974, 0.], dtype=np.float32), atol=1e-3) true >>> np.allclose(j.numpy()[0, 0, :6], np.array([0.0001, 0., 1., -2., -3., 0.0001], dtype=np.float32), atol=1e-3) true
compute_center_of_mass(state: robotstate) -> robotstate

compute the whole-body center of mass in world frame into state.com_world.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state = robot.compute_center_of_mass(robot.state()) >>> np.allclose(state.com_world.numpy()[0], [0.0232, 0.0061, 0.6062], atol=1e-4) true
transform_collision_spheres(state: robotstate) -> robotstate

compute the collision sphere centers in world frame.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state = robot.state() >>> robot.transform_collision_spheres(state) is state # no collision spheres loaded true
transform_collision_capsules(state: robotstate) -> robotstate

compute the per-link capsule segment endpoints (a, b) in world frame.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state = robot.state() >>> robot.transform_collision_capsules(state) is state # no link capsules loaded true
forward_kinematics_via_matrix_torch(q: float[torch.tensor, '... num_dofs'], t_world_base: optional[float[torch.tensor, '... 4 4']] = none, analytical_backward: bool = true, record_cmd: bool = false) -> float[torch.tensor, '... num_links 4 4']

compute differentiable forward kinematics as 4x4 matrices for torch tensors.

example

python
>>> import torch >>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> t_world_link = robot.forward_kinematics_via_matrix_torch(torch.zeros(robot.spec.num_actuated_joints)) >>> t_world_link.shape torch.size([13, 4, 4])
transform_link_points_torch(t_world_link: float[torch.tensor, '... num_links 4 4'], local_points: float[torch.tensor, 'num_points 3'], point_link_indices: float[torch.tensor, 'num_points']) -> float[torch.tensor, '... num_points 3']

transform local points attached to links to world frame.

example

python
>>> import torch >>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> t_world_link = robot.forward_kinematics_via_matrix_torch(torch.zeros(robot.spec.num_actuated_joints)) >>> points = robot.transform_link_points_torch(t_world_link, torch.zeros(2, 3), torch.tensor([0, 1])) >>> points.shape torch.size([2, 3])
map_to_full_joint_values_torch(actuated_values: float[torch.tensor, '... num_actuated_joints']) -> float[torch.tensor, '... num_joints']

expand actuated joint values to all joints (mimic joints follow their controlling joint).

example

python
>>> import torch >>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> robot.map_to_full_joint_values_torch(torch.zeros(robot.spec.num_actuated_joints)).shape torch.size([12])
zero_q: wp.array midrange_q: wp.array num_actuated_joints: int link_names: list[str] sample_q(num_samples: int = 1, rng: optional[np.random.generator] = none, device: wp_device_type = none) -> wp.array

sample joint positions uniformly within the actuated joint limits.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> robot.sample_q(num_samples=3, rng=np.random.default_rng(0)).shape (3, 8)
robotspec robokit.robo class

robot specification.

examples

python
>>> spec = robotspec.parse(\"tests/fixtures/wx250s.urdf\") >>> spec.num_actuated_joints 8 >>> spec.num_links 14
name str robot_description str format literal['urdf', 'mjcf'] joint_names list[str] nonfixed_joint_names list[str] actuated_joint_names list[str] joint_types int[np.ndarray, num_joints] joint_axes float[np.ndarray, 'num_joints 3'] joint_twists float[np.ndarray, 'num_joints 6'] actuated_joint_indices int[np.ndarray, num_joints] parent_joint_indices int[np.ndarray, num_joints] parent_joint_transforms float[np.ndarray, 'num_joints 7'] mimic_actuated_joint_indices int[np.ndarray, num_joints] mimic_multipliers float[np.ndarray, num_joints] mimic_offsets float[np.ndarray, num_joints] joint_limits float[np.ndarray, 'num_joints 2'] joint_velocity_limits float[np.ndarray, num_joints] actuated_joint_limits float[np.ndarray, 'num_actuated_joints 2'] actuated_joint_velocity_limits float[np.ndarray, num_actuated_joints] link_names list[str] link_parent_joint_indices int[np.ndarray, num_links] base_link_name str ee_link_names list[str] link_visual_geometries dict[str, trimesh.scene] link_collision_geometries dict[str, trimesh.scene] local_collision_sphere_centers float[np.ndarray, 'num_collision_spheres 3'] collision_sphere_radii float[np.ndarray, num_collision_spheres] collision_spheres_link_indices int[np.ndarray, num_collision_spheres] self_collision_ignored_pairs int[np.ndarray, 'num_ignored_pairs 2'] link_masses float[np.ndarray, num_links] link_local_com_positions float[np.ndarray, 'num_links 3'] loaded_link_capsule_endpoints optional[float[np.ndarray, 'num_links 2 3']] loaded_link_capsule_radii optional[float[np.ndarray, num_links]] self_collision_link_buffers dict[str, float] name: str

name of the robot.

robot_description: str

robot description

format: literal['urdf', 'mjcf']

format of the robot description.

joint_names: list[str]

names of all joints, including actuated, mimic and fixed joints.

nonfixed_joint_names: list[str]

names of non-fixed joints, including actuated and mimic joints.

actuated_joint_names: list[str]

names of actuated joints.

joint_types: int[np.ndarray, num_joints]

types of all joints, see jointtype.

joint_axes: float[np.ndarray, 'num_joints 3']

axes of all joints, [x, y, z].

joint_twists: float[np.ndarray, 'num_joints 6']

twists of all joints, [linear (x, y, z), angular (x, y, z)].

actuated_joint_indices: int[np.ndarray, num_joints]

indices of actuated joints, -1 for mimic and non-actuated joints.

parent_joint_indices: int[np.ndarray, num_joints]

indices of parent joints, -1 for joints attached to the base link.

parent_joint_transforms: float[np.ndarray, 'num_joints 7']

transforms of parent joints, [pos (x, y, z), quat (w, x, y, z)].

mimic_actuated_joint_indices: int[np.ndarray, num_joints]

indices of mimicked actuated joints, -1 for non-mimic joints.

mimic_multipliers: float[np.ndarray, num_joints]

multipliers of mimicked actuated joints, 1.0 for non-mimic joints.

mimic_offsets: float[np.ndarray, num_joints]

offsets of mimicked actuated joints, 0.0 for non-mimic joints.

joint_limits: float[np.ndarray, 'num_joints 2']

limits of all joints, [lower, upper].

joint_velocity_limits: float[np.ndarray, num_joints]

velocity limits of all joints.

actuated_joint_limits: float[np.ndarray, 'num_actuated_joints 2']

limits of actuated joints, [lower, upper].

actuated_joint_velocity_limits: float[np.ndarray, num_actuated_joints]

velocity limits of actuated joints.

link_names: list[str]

names of all links.

link_parent_joint_indices: int[np.ndarray, num_links]

indices of parent joints of all links, -1 for the base link.

base_link_name: str

base link name (root of the parsed kinematic tree).

ee_link_names: list[str]

end-effector (leaf) link names of the parsed kinematic tree.

link_visual_geometries: dict[str, trimesh.scene]

visual geometries of all links.

link_collision_geometries: dict[str, trimesh.scene]

collision geometries of all links.

local_collision_sphere_centers: float[np.ndarray, 'num_collision_spheres 3']

collision sphere centers in link-local coordinates.

collision_sphere_radii: float[np.ndarray, num_collision_spheres]

collision sphere radii.

collision_spheres_link_indices: int[np.ndarray, num_collision_spheres]

link indices (in link_names) for each collision sphere.

self_collision_ignored_pairs: int[np.ndarray, 'num_ignored_pairs 2']

load ignored self-collision link pairs verbatim from self_collision_ignore_path, or return none.

link_masses: float[np.ndarray, num_links]

mass of each link (0.0 if no inertial data).

link_local_com_positions: float[np.ndarray, 'num_links 3']

center of mass position in link-local frame.

loaded_link_capsule_endpoints: optional[float[np.ndarray, 'num_links 2 3']] = none

baked capsule endpoints from link_capsules_path; unset means fit them from the collision meshes.

loaded_link_capsule_radii: optional[float[np.ndarray, num_links]] = none

baked capsule radii from link_capsules_path.

self_collision_link_buffers: dict[str, float] = field(default_factory=dict)

per-link self-collision radius inflation from the collision-sphere yaml; world radii stay unchanged.

parse(robot_description_or_path: union[str, path, yourdfpy.urdf], load_meshes: bool = false, mesh_dir: optional[union[str, path]] = none, load_collision_spheres: bool = false, collision_spheres_path: optional[union[str, path]] = none, load_link_capsules: bool = false, link_capsules_path: optional[union[str, path]] = none, self_collision_ignore_path: optional[union[str, path]] = none, base_link_name: optional[str] = none, ee_link_names: optional[union[sequence[str], str]] = none, keep_mjcf_world_link: bool = false) -> robotspec parse_urdf(robot_description_or_path: union[str, path, yourdfpy.urdf], load_meshes: bool = false, mesh_dir: optional[union[str, path]] = none, load_collision_spheres: bool = false, collision_spheres_path: optional[union[str, path]] = none, load_link_capsules: bool = false, link_capsules_path: optional[union[str, path]] = none, base_link_name: optional[str] = none, ee_link_names: optional[union[sequence[str], str]] = none) -> robotspec parse_mjcf(robot_description_or_path: union[str, path], load_meshes: bool = false, load_collision_spheres: bool = false, collision_spheres_path: optional[union[str, path]] = none, load_link_capsules: bool = false, link_capsules_path: optional[union[str, path]] = none, base_link_name: optional[str] = none, ee_link_names: optional[union[sequence[str], str]] = none, keep_world_link: bool = false) -> robotspec

parse an mjcf robot: hinge/slide joints, equality mimics; the world body stays if kept or a root has joints. a hinge with an anchor (jnt_pos) turns at a synthetic <body>_anchor link, then a fixed joint shifts back.

num_joints: int num_actuated_joints: int num_nonfixed_joints: int num_links: int zero_q: float[np.ndarray, num_actuated_joints] midrange_q: float[np.ndarray, num_actuated_joints] parent_joint_transforms_matrix: float[np.ndarray, 'num_joints 4 4']

transforms of parent joints as 4x4 matrices.

has_mimic_joints: bool mimic_joint_names: list[str]

names of mimic joints.

total_mass: float has_collision_spheres: bool local_collision_sphere_radii: float[np.ndarray, num_collision_spheres] local_link_bounding_sphere_centers: float[np.ndarray, 'num_links 3']

per-link bounding sphere centers in link-local coordinates (broad-phase filter).

link_bounding_sphere_radii: float[np.ndarray, num_links]

per-link bounding sphere radii (broad-phase filter).

local_link_capsule_endpoints: float[np.ndarray, 'num_links 2 3']

per-link capsule segment endpoints (a, b) in link-local coordinates; zeros for links without a capsule.

link_capsule_radii: float[np.ndarray, num_links]

per-link capsule radii; 0.0 for links without a capsule.

has_link_capsules: bool topological_order_joint_indices: int[np.ndarray, num_joints] kinematic_tree_str: str joints_to_actuated_mapping: float[np.ndarray, 'num_joints num_actuated_joints']

mapping from all joints to actuated joints.

link_ancestor_joints_mask: bool[np.ndarray, 'num_links num_joints']

boolean mask for ancestor joints of links.

link_ancestor_links_mask: bool[np.ndarray, 'num_links num_links']

boolean mask for ancestor links of links.

get_link_mesh(link_name: str, mode: literal['visual', 'collision'] = 'collision', return_mesh: bool = true) -> union[trimesh.scene, trimesh.trimesh]

link geometry: a single concatenated mesh, or the raw trimesh.scene when return_mesh=false.

get_link_meshes(mode: literal['visual', 'collision'] = 'collision', return_mesh: bool = true) -> dict[str, union[trimesh.scene, trimesh.trimesh]]

per-link geometry: concatenated meshes or trimesh.scenes when return_mesh=false (needs load_meshes=true).

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> spec = robotspec.parse(load_robot_description(\"panda_description\"), load_meshes=true) >>> \"panda_hand\" in spec.get_link_meshes() true
get_tensors(device: optional[str] = none) -> robotspectensors

cached warp spec tensors for device (build on miss).

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> spec = robotspec.parse(load_robot_description(\"panda_description\")) >>> spec.get_tensors() is spec.get_tensors() true
get_tensors_torch(device: optional[union[str, torch.device]] = none) -> torchrobotspectensors

cached torch spec tensors for device (build on miss).

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> spec = robotspec.parse(load_robot_description(\"panda_description\")) >>> spec.get_tensors_torch() is spec.get_tensors_torch() true
robotstate robokit.robo class var robot robot q wp.array t_world_base optional[wp.array] difference(other: self, out: optional[arraylike] = none) -> arraylike

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

spec: robotspec q: wp.array t_world_base: wp.array has_floating_base: bool is_fk_computed: bool is_motion_subspace_computed: bool is_collision_spheres_computed: bool is_capsules_computed: bool is_com_computed: bool t_world_joint: wp.array t_world_link: wp.array x_local: wp.array s_world: wp.array com_world: wp.array collision_sphere_centers_world: wp.array link_bounding_sphere_centers_world: wp.array link_capsule_endpoint_a_world: wp.array link_capsule_endpoint_b_world: wp.array is_trajectory: bool shape: tuple[int, ...] batch_size: int num_elements: int device: wp_device_type tangent_dim: int get_t_world_link(link_index: int) -> wp.array get_link_jacobian(link_index: int, reference_frame: literal['body', 'spatial'] = 'body') -> wp.array invalidate() precompute() integrate(velocity: arraylike, out: optional[robotstate] = none, tangent_mask: optional[wp.array] = none, weight_decay: float = 0.0, out_velocity: optional[arraylike] = none) -> robotstate

integrate the state by a tangent-space velocity, optionally reporting the move the limits let through.

clamp_q(tangent_mask: optional[wp.array] = none, record_tape: bool = true) -> robotstate

clamp joints while preserving masked coordinates; record_tape=false excludes projection from tape.

clone() -> robotstate view(batch_size: int, offset: int = 0) -> robotstate

elements offset to offset + batch_size of every buffer, sharing storage.

flatten() -> robotstate

zero-copy view folding the frame axis into the batch axis so per-pose kernels run unchanged.

gather(indices: arraylike, out: optional[robotstate] = none, q_only: bool = true) -> robotstate accept(accept_mask: arraylike, proposed: robotstate) -> robotstate

optimized accept: copies q, and the forward kinematics this state already had (1 kernel).

","robokit/api-geometry":"geometry geometry api basegeom robokit.geom class

base geom.

lifecycle

geom = boxgeom(...) # store raw inputs (cpu) scene.add(geom) # calls geom.build(device): allocate capacity-padded gpu arrays geom.update(...) # fixed buffers update in place; resource swaps advance graph_revision

count int scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float launch_params: tuple query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

build(device: device = 'cpu') -> basegeom

allocate the gpu arrays; called by warpscene.add, or directly for scene-less query_sdf.

warpscene robokit.geom class

heterogeneous batched scene sdf query.

example

python
>>> import numpy as np >>> import torch >>> import warp as wp >>> from robokit.geom.geoms import spheregeom >>> wp.init() >>> scene = warpscene(num_scenes=1, device=\"cpu\").add( ... spheregeom(np.array([1.0]), np.array([0, 1], dtype=np.int32)) ... ) >>> signed_dists, _, _ = scene.query_sdf_torch( ... torch.tensor([[2.0, 0.0, 0.0], [0.5, 0.0, 0.0]]), ... torch.tensor([0, 2]), ... ) >>> bool(torch.allclose(signed_dists, torch.tensor([1.0, -0.5]))) true >>> normal_jacobians = wp.empty(1, dtype=wp.mat33, device=\"cpu\") >>> _ = scene.query_sdf( ... wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device=\"cpu\"), ... scene_indices=wp.array([0], dtype=wp.int32, device=\"cpu\"), ... out_normal_jacobians=normal_jacobians, ... ) >>> np.allclose(normal_jacobians.numpy()[0], np.diag([0.0, 0.5, 0.5])) true >>> observed = wp.empty(1, dtype=wp.bool, device=\"cpu\") >>> _ = scene.query_sdf(wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device=\"cpu\"), ... scene_indices=wp.array([0], dtype=wp.int32, device=\"cpu\"), out_observed=observed) >>> bool(observed.numpy()[0]) # analytical geometry is fully known true
num_scenes int device device device: wp_device_type geoms: tuple[basegeom, ...] num_scenes: int num_elements: int

total element count across all attached geoms (a meshgeom of n meshes counts n).

graph_revision: int

monotonic revision of resources referenced by captured graphs.

add(geom: basegeom) -> warpscene

attach a geom: allocates its gpu arrays on this scene's device; update in place via geom.update(...).

query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query the scene sdf (min over all attached geoms) at points.

query_sdf_torch(query_points: torch.tensor, scene_offsets: torch.tensor, poses: optional[dict[basegeom, torch.tensor]] = none, scales: optional[dict[basegeom, torch.tensor]] = none) -> tuple[torch.tensor, torch.tensor, torch.tensor]

differentiable scene sdf query (per-point min over all attached geoms).

boxgeom robokit.geom class basegeom

n boxes: half_extents (n, 3), posed/rotated via poses.

half_extents np.ndarray scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float launch_params: tuple query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

build(device: device = 'cpu') -> basegeom

allocate the gpu arrays; called by warpscene.add, or directly for scene-less query_sdf.

update(half_extents: optional[np.ndarray] = none, scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none spheregeom robokit.geom class basegeom

n spheres: radii (n,), centered via poses.

radii np.ndarray scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float launch_params: tuple query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

build(device: device = 'cpu') -> basegeom

allocate the gpu arrays; called by warpscene.add, or directly for scene-less query_sdf.

update(radii: optional[np.ndarray] = none, scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none planegeom robokit.geom class basegeom

n halfspaces (local z=0 planes, sdf = local z): count = scene_offsets[-1], orientation via poses.

scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float launch_params: tuple query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

build(device: device = 'cpu') -> basegeom

allocate the gpu arrays; called by warpscene.add, or directly for scene-less query_sdf.

update(scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none capsulegeom robokit.geom class basegeom

n capsules: radii (n,) + half_heights (n,), axis along local z via poses.

radii np.ndarray half_heights np.ndarray scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float launch_params: tuple query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

build(device: device = 'cpu') -> basegeom

allocate the gpu arrays; called by warpscene.add, or directly for scene-less query_sdf.

update(radii: optional[np.ndarray] = none, half_heights: optional[np.ndarray] = none, scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none meshgeom robokit.geom class basegeom

n triangle meshes; enable_sdf bakes a disk-cached per-mesh sdf for far queries instead of the exact mesh.

meshes meshlist scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] enable_sdf bool sdf_voxel_size float sdf_padding float refine_band_voxels float capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

launch_params: tuple refine_band: float build(device: device = 'cpu') -> meshgeom update(meshes: optional[meshlist] = none, scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none

meshes swaps the mesh ids + aabbs (and rebakes the sdf tier if enabled).

volumegeom robokit.geom class basegeom

n pre-baked sdfvolume grids (nanovdb trilinear sample; conservative extrapolation outside the aabb).

sdf_volumes list[sdfvolume] scene_offsets np.ndarray poses optional[wp.array] scales optional[wp.array] capacity optional[int] params_wp: optional[wp.array] = none mesh_ids_wp: optional[wp.array] = none volume_ids_wp: optional[wp.array] = none aabb_min_wp: optional[wp.array] = none aabb_max_wp: optional[wp.array] = none paddings_wp: optional[wp.array] = none device_wp: optional[wp_device_type] graph_revision: int

revision of gpu resources referenced by captured graphs.

refine_band: float query_sdf(points: wp.array, scene_offsets: optional[wp.array] = none, scene_indices: optional[wp.array] = none, query_mask: optional[wp.array] = none, distance_only: bool = false, out_signed_dists: optional[wp.array] = none, out_normals: optional[wp.array] = none, out_closest_points: optional[wp.array] = none, record_tape: bool = true, out_normal_jacobians: optional[wp.array] = none, out_observed: optional[wp.array] = none) -> union[wp.array, tuple[wp.array, wp.array, wp.array]]

query this geom alone (same semantics as warpscene.query_sdf); call build first.

launch_params: tuple build(device: device = 'cpu') -> volumegeom update(sdf_volumes: optional[list[sdfvolume]] = none, scene_offsets: optional[np.ndarray] = none, poses: optional[wp.array] = none, scales: optional[wp.array] = none) -> none

sdf_volumes swaps ids/aabbs/paddings.

","robokit/api-optimization":"optimization optimization api lmoptimizerconfig(linear_solver=\"cholesky\") , the default, solves each step exactly. small systems factor in one tile; larger ones use the band implied by sparsetask sparsity patterns. linear_solver=\"cg\" iterates matrix-free on whichever jacobian the terms provide, sparse or dense, and never forms the normal matrix. var robokit.opt class abc.abc tangent_dim: int clone() -> self view(batch_size: int, offset: int = 0) -> self

elements offset to offset + batch_size, sharing storage.

integrate(velocity: arraylike, out: optional[self] = none, tangent_mask: optional[wp.array] = none, weight_decay: float = 0.0, out_velocity: optional[arraylike] = none) -> self

move by velocity; only shortened steps write out_velocity, which may alias the input velocity.

difference(other: self, out: optional[arraylike] = none) -> arraylike

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

invalidate() batch_size: int device: wp_device_type gather(indices: arraylike, out: optional[self] = none) -> self accept(accept_mask: arraylike, proposed: self) -> self

accept proposed values and derived state where accept_mask[i] == 1; leave other rows unchanged.

varvalues robokit.opt class var

combine vars into tangent-column blocks; preserve subclass step rules across copies and views.

named_vars mapping[enum, var] from_var(var: var, key: enum) -> varvalues get(key: enum) -> var values() tangent_offset(key: enum) -> int tangent_dim: int batch_size: int device: wp_device_type clone() -> varvalues view(batch_size: int, offset: int = 0) -> varvalues integrate(velocity: arraylike, out: optional[varvalues] = none, tangent_mask: optional[wp.array] = none, weight_decay: float = 0.0, out_velocity: optional[arraylike] = none) -> varvalues difference(other: varvalues, out: optional[arraylike] = none) -> arraylike gather(indices: arraylike, out: optional[varvalues] = none) -> varvalues accept(accept_mask: arraylike, proposed: varvalues) -> varvalues invalidate() vectorvar robokit.opt class var

a batched vector optimization variable on euclidean space.

example

python
>>> from enum import enum >>> from robokit.opt import varvalues >>> class key(enum): ... x = 0 >>> var = vectorvar(wp.array([[1.0, 2.0]], dtype=wp.float32)) >>> values = varvalues.from_var(var, key.x) >>> result = values.integrate(wp.array([[0.5, -1.0]], dtype=wp.float32)) >>> result.get(key.x).x.numpy().tolist() [[1.5, 1.0]] >>> capped = vectorvar(wp.zeros((1, 2), dtype=wp.float32), unit=10.0, max_step=1.0) # moves 10x, 1 at most >>> capped.integrate(wp.array([[0.0625, 1.0]], dtype=wp.float32)).x.numpy().tolist() [[0.625, 1.0]]
x wp.array unit float max_step float invalidate() x: wp.array tangent_dim: int batch_size: int device: wp_device_type clone() -> vectorvar view(batch_size: int, offset: int = 0) -> vectorvar integrate(velocity: arraylike, out: optional[vectorvar] = none, tangent_mask: optional[wp.array] = none, weight_decay: float = 0.0, out_velocity: optional[arraylike] = none) -> vectorvar difference(other: vectorvar, out: optional[arraylike] = none) -> arraylike gather(indices: arraylike, out: optional[vectorvar] = none) -> vectorvar accept(accept_mask: arraylike, proposed: vectorvar) -> vectorvar optimizer robokit.opt.optimizer class abc.abc

warp optimizer lifecycle with shared jacobian machinery for gradient optimizers and lm's cg step.

solve sequence:

  1. reset: build once, slice to batch size, optionally capture a graph, then call _start.
  2. repeat step max_iter times, replaying the iteration graph or running _step_body.

subclass hooks:

  • _build(var): allocate all buffers at the first var's batch size (max_batch_size).
  • _batch_buffers: identify batch-leading arrays and vars to slice per solve.
  • _start(var): initialize per-solve damping/history/schedules and starting cost.
  • _step_body(var): run one iteration in place using kernels only.
terms union[task, sequence[task]] config optional[optimizerconfig] device optional[wp_device_type] active_dof_mask optional[wp.array] terms: sequence[task] config: optimizerconfig solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

optimize var in place; returns it with the final cost per batch element.

reset(var: varvalues, num_steps: optional[int] = none) -> none

prepare to iterate from var; num_steps (default max_iter) steps follow and l-bfgs finishes the last.

step(var: varvalues) -> none

one iteration in place; an outer capture records kernels instead of replaying a graph.

is_all_sparse: bool optimizerconfig robokit.opt.optimizer class max_iter int early_stopping_interval int cost_tol float cuda_graph_mode literal['none', 'iter', 'full'] max_iter: int = 100

iterations per solve.

early_stopping_interval: int = 1

check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

cost_tol: float = 1e-09

the solve stops once every batch element's cost is at most this.

cuda_graph_mode: literal['none', 'iter', 'full'] = 'none'

capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

build(terms: sequence[task], device: wp_device_type, active_dof_mask: optional[wp.array] = none) -> optimizer

the optimizer a populationsolver steps with this config.

gdoptimizer robokit.opt.gd_optimizer class optimizer

first-order optimizer supporting gd and adam, with optional decoupled weight decay (adamw).

terms: sequence[task] config: optimizerconfig solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

optimize var in place; returns it with the final cost per batch element.

reset(var: varvalues, num_steps: optional[int] = none) -> none

prepare to iterate from var; num_steps (default max_iter) steps follow and l-bfgs finishes the last.

is_all_sparse: bool step(var: varvalues) -> none gdoptimizerconfig robokit.opt.gd_optimizer class optimizerconfig max_iter int early_stopping_interval int cost_tol float cuda_graph_mode literal['none', 'iter', 'full'] learning_rate float lr_schedule optional[callable[[int, float], float]] gradient_mode literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] optimizer_type literal['gd', 'adam'] gradient_clip float beta1 float beta2 float epsilon float weight_decay float max_iter: int = 100

iterations per solve.

early_stopping_interval: int = 1

check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

cost_tol: float = 1e-09

the solve stops once every batch element's cost is at most this.

cuda_graph_mode: literal['none', 'iter', 'full'] = 'none'

capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

learning_rate: float = 0.01

step size.

lr_schedule: optional[callable[[int, float], float]] = none

learning rate per iteration from (zero-based iteration, learning_rate); none keeps it constant.

gradient_mode: literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'

analytic_jacobian: terms fill a shared sparse/dense j, then one jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

optimizer_type: literal['gd', 'adam'] = 'gd'

update rule: plain gradient descent or adam.

gradient_clip: float = math.inf

clamp each gradient entry to ±this before the update, so a stiff cost cannot overshoot.

beta1: float = 0.9

adam's first-moment decay.

beta2: float = 0.999

adam's second-moment decay.

epsilon: float = 1e-08

adam's denominator stabilizer.

weight_decay: float = 0.0

decoupled decay: each step also moves x by -learning_rate weight_decay x (adamw under adam).

build(terms: sequence[task], device: wp_device_type, active_dof_mask: optional[wp.array] = none) -> gdoptimizer annealedgdoptimizer robokit.opt.gd_optimizer class gdoptimizer

gd with rmsprop proposals and metropolis acceptance, supporting every base-class gradient mode.

acceptance outcomes:

  • accept: keep the proposed point and gradient.
  • reject: restore the previous point and gradient, continuing the chain there.
terms: sequence[task] config: optimizerconfig solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

optimize var in place; returns it with the final cost per batch element.

reset(var: varvalues, num_steps: optional[int] = none) -> none

prepare to iterate from var; num_steps (default max_iter) steps follow and l-bfgs finishes the last.

is_all_sparse: bool step(var: varvalues) -> none annealedgdconfig robokit.opt.gd_optimizer class optimizerconfig

learning_rate and the metropolis temperature both decay by temperature_decay, on their own periods.

max_iter int early_stopping_interval int cost_tol float cuda_graph_mode literal['none', 'iter', 'full'] learning_rate float gradient_mode literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] mu float stepsize_period int starting_temperature float temperature_decay float annealing_period int grad_eps float seed int max_iter: int = 100

iterations per solve.

early_stopping_interval: int = 1

check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

cost_tol: float = 1e-09

the solve stops once every batch element's cost is at most this.

cuda_graph_mode: literal['none', 'iter', 'full'] = 'none'

capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

build(terms: sequence[task], device: wp_device_type, active_dof_mask: optional[wp.array] = none) -> optimizer

the optimizer a populationsolver steps with this config.

learning_rate: float = 0.01

initial rmsprop step size.

gradient_mode: literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'

how the gradient is computed, as in gdoptimizerconfig.

mu: float = 0.98

rmsprop's weight on the newest squared gradient.

stepsize_period: int = 50

iterations between step-size decays.

starting_temperature: float = 18.0

initial metropolis temperature.

temperature_decay: float = 0.95

factor applied to the step size and the temperature at each of their periods.

annealing_period: int = 30

iterations between temperature decays.

grad_eps: float = 1e-06

rmsprop's denominator stabilizer.

seed: int = 0

seed of the metropolis acceptance draws.

lbfgsoptimizer robokit.opt.lbfgs_optimizer class optimizer terms: sequence[task] config: optimizerconfig solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

optimize var in place; returns it with the final cost per batch element.

reset(var: varvalues, num_steps: optional[int] = none) -> none

prepare to iterate from var; num_steps (default max_iter) steps follow and l-bfgs finishes the last.

step(var: varvalues) -> none

one iteration in place; an outer capture records kernels instead of replaying a graph.

is_all_sparse: bool lbfgsoptimizerconfig robokit.opt.lbfgs_optimizer class optimizerconfig max_iter int early_stopping_interval int cost_tol float cuda_graph_mode literal['none', 'iter', 'full'] history_len int h0_scale float line_search_alphas tuple wolfe_c1 float wolfe_c2 float line_search literal['armijo', 'approx_wolfe'] normalize_direction bool gradient_mode literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] fold_line_search_gradient bool max_iter: int = 100

iterations per solve.

cost_tol: float = 1e-09

the solve stops once every batch element's cost is at most this.

cuda_graph_mode: literal['none', 'iter', 'full'] = 'none'

capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

early_stopping_interval: int = 0

off by default: without host checks, a folded line search defers each step into the next direction launch.

history_len: int = 10

curvature pairs kept for the two-loop recursion.

h0_scale: float = 1.0

initial inverse-hessian scale when there is no history or normalize_direction is on (else barzilai-borwein).

line_search_alphas: tuple = (1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0)

trial step sizes, evaluated in parallel.

wolfe_c1: float = 0.0001

sufficient-decrease constant.

wolfe_c2: float = 0.9

curvature constant (approx_wolfe).

line_search: literal['armijo', 'approx_wolfe'] = 'armijo'

armijo: largest passing trial, else no step; approx_wolfe: largest armijo/curvature trial, else smallest, and needs folded gradients.

normalize_direction: bool = false

normalize directions so trial steps are lengths; h0 then uses h0_scale instead of barzilai-borwein.

gradient_mode: literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'

analytic_jacobian: terms fill a shared sparse/dense j, then one jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

fold_line_search_gradient: bool = false

fold trial gradients to skip a recompute; needs analytic_gradient or all-sparse analytic_jacobian terms.

build(terms: sequence[task], device: wp_device_type, active_dof_mask: optional[wp.array] = none) -> lbfgsoptimizer

runs without a per-iteration graph: each step branches on the host iteration count.

lmoptimizer robokit.opt.lm_optimizer class optimizer

levenberg-marquardt with cholesky or conjugate gradients.

solver paths:

  • cholesky/default jacobian terms: fused fast path.
  • cholesky/other terms: accumulate jᵀj, then factor in one tile or 16×16 tiles within the sparse-pattern band.
  • cg: reuse sparse/dense jacobians without forming jᵀj.
terms: sequence[task] config: optimizerconfig solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

optimize var in place; returns it with the final cost per batch element.

reset(var: varvalues, num_steps: optional[int] = none) -> none

prepare to iterate from var; num_steps (default max_iter) steps follow and l-bfgs finishes the last.

step(var: varvalues) -> none

one iteration in place; an outer capture records kernels instead of replaying a graph.

is_all_sparse: bool lmoptimizerconfig robokit.opt.lm_optimizer class optimizerconfig max_iter int early_stopping_interval int cost_tol float cuda_graph_mode literal['none', 'iter', 'full'] lm_lambda float lambda_factor float lambda_min float lambda_max float rho_min float gain_ratio_epsilon float linear_solver literal['cholesky', 'cg', 'torch_cholesky'] cg_max_iter optional[int] cg_tol float cg_check_interval int max_iter: int = 100

iterations per solve.

early_stopping_interval: int = 1

check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

cost_tol: float = 1e-09

the solve stops once every batch element's cost is at most this.

cuda_graph_mode: literal['none', 'iter', 'full'] = 'none'

capture per width: \"iter\" replays one step; \"full\" replays the solve without callbacks or early stopping.

lm_lambda: float = 0.001

initial damping.

lambda_factor: float = 2.0

damping divides by this on accept and multiplies on reject.

lambda_min: float = 1e-05

smallest damping.

lambda_max: float = 10000000000.0

largest damping.

rho_min: float = 0.001

minimum gain ratio rho to accept a step.

gain_ratio_epsilon: float = 1e-08

stabilizer in the rho denominator; 0 uses the exact ratio.

linear_solver: literal['cholesky', 'cg', 'torch_cholesky'] = 'cholesky'

native cholesky, matrix-free cg, or optional torch float64 cholesky for large dense systems.

cg_max_iter: optional[int] = none

cg iterations per step; none: max(4, min(64, tangent_dim // 4)).

cg_tol: float = 1e-06

squared cg residual that stops early; checked on the host, so only without cuda graphs.

cg_check_interval: int = 4

cg iterations between those host checks.

build(terms: sequence[task], device: wp_device_type, active_dof_mask: optional[wp.array] = none) -> lmoptimizer

cg and torch cholesky use eager steps; the native backend retains cuda graph capture.

populationsolver robokit.opt.population_solver class

refine batch * num_candidates[0] varvalues, reusing one var, allocation, and graph per population width.

each scheduled round:

  1. sample: move candidates using prior scores, then draw around them.
  2. optimize: move each candidate toward lower cost.
  3. score: evaluate the terms or score term.
  4. select: keep each problem's best num_candidates[k + 1] candidates.
terms union[list[residualtask], list[list[residualtask]]] config populationsolverconfig device wp_device_type score_terms optional[union[residualtask, list[optional[residualtask]]]] active_dof_mask optional[wp.array] device: wp_device_type terms: list[list[residualtask]] score_terms: list[optional[residualtask]] setup(var: varvalues) winner_indices: wp.array

(batch, 1) row of each instance's winner: the first ranked index.

solve(var: varvalues, iteration_callback: optional[iterationcallback] = none) -> tuple[varvalues, wp.array]

run the schedule on widest var; return each instance's best candidate and cost.

compute_costs(var: varvalues) -> dict[str, wp.array]

sum final-segment term costs by cost_name, including duplicate names such as configurationtask.

populationsolverconfig robokit.opt.population_solver class

what a round does, and when: stages run in order, iterations counted across them.

stages list[stage] samplers sequence[samplerconfig] cuda_graph_mode literal['none', 'full', 'iter'] use_early_stopping bool rank_final bool min_improvement float patience int stages: list[stage] = field(default_factory=lambda: [stage(iters=10)])

the schedule, e.g. [stage(6, 64, lmoptimizerconfig(lm_lambda=10.0)), stage(10, 4), stage(0, 1)]: 64 candidates for 6 iterations, the best 4 for 10 more, then the best one.

samplers: sequence[samplerconfig] = field(default_factory=tuple)

built during setup, then applied in order where the stages sample.

at each sampling iteration:

  1. sample the population before optimizing.
  2. restart the optimizer on that population.
  3. at the last iteration, sample after the final score and end on the moved candidates.
cuda_graph_mode: literal['none', 'full', 'iter'] = 'iter'

\"iter\" replays one optimizer step per width; \"full\" the whole solve (no callbacks or early stopping).

use_early_stopping: bool = true

let a segment end at its optimizer's stop rule (optimizerconfig.early_stopping_interval); not under \"full\".

rank_final: bool = false

score only the final population and return it best first; earlier selects keep the optimization cost.

min_improvement: float = 0.0

if positive, a drawing sampler's solve ends once each instance's cheapest draw beats its first one (the center) by less than this, patience scores in a row; the last sample still moves the candidates. reads scores on the host.

patience: int = 2 num_draws: int

the widest the population gets per candidate: the drawing sampler's draw count, or 1.

num_iters: int

iterations of the whole schedule.

select_at: list[int]

iterations (1-based, after the update) where a stage ends and the next one's width is kept.

num_candidates: list[int]

population width per instance in each stage.

optimizer: optional[list[optional[optimizerconfig]]]

each stage's gradient update, or none if no stage sets one.

sample_at: list[int]

zero-based sampling iterations; empty: the default (see stage.sample_every).

stage robokit.opt.population_solver class

a run of iters iterations at one population width. entering a stage keeps each instance's best num_candidates (the first stage's is the input width); unset fields keep the previous stage's.

iters int num_candidates optional[int] optimizer optional[optimizerconfig] sample_every int iters: int = 0

iterations of this stage.

num_candidates: optional[int] = none

population width per instance; none: the previous stage's, or 1.

optimizer: optional[optimizerconfig] = none

gradient update; none: the previous stage's. with none in any stage: drawing samplers (mppi/es) update by sampling, other solvers by dense lm.

sample_every: int = 0

draw with the samplers every this many iterations from the stage's start; 0 in every stage: a drawing sampler draws before every score and once after the last, others at each select.

samplerconfig robokit.opt.sampler class

sampler settings; owners supply variables, population width, device and masks at build time.

var_key enum var_key: enum = varkey.robot build(var: varvalues, num_candidates: int, active_dof_mask: optional[wp.array] = none) -> sampler

construct an independent runtime sampler for these variables.

robertssamplerconfig robokit.opt.sampler class samplerconfig

low-discrepancy initialization settings; helpers may scale the spread by joint ranges.

example

python
>>> config = robertssamplerconfig(scale=0.5, keep_first=true) >>> config.scale, config.keep_first, config.num_draws (0.5, true, 1)
var_key enum scale union[float, sequence[float]] seed optional[int] keep_first bool var_key: enum = varkey.robot scale: union[float, sequence[float]] = 0.2 seed: optional[int] = none keep_first: bool = false build(var: varvalues, num_candidates: int, active_dof_mask: optional[wp.array] = none) -> sampler gaussiansamplerconfig robokit.opt.sampler class samplerconfig

gaussian draw/update settings, independent of runtime population buffers.

example

python
>>> from robokit.opt.var_values import vectorvar >>> class key(enum): ... x = 0 >>> var = varvalues({key.x: vectorvar(wp.zeros((1, 2), dtype=wp.float32, device=\"cpu\"))}) >>> config = gaussiansamplerconfig(var_key=key.x, num_draws=8) >>> first, second = config.build(var, 1), config.build(var, 1) >>> first is second false >>> first.noise.shape (8, 2)
var_key enum num_draws int weighting weighting init_std float min_std float temperature float gamma float learning_rate float epsilon float seed int sample_mode literal['mean', 'best'] elite_ratio float mean_elites bool noise_decay float wide_ratio float wide_scale float var_key: enum = varkey.robot num_draws: int = 64

candidates drawn around each center, the center itself first.

weighting: weighting = 'softmax'

how scored draws become weights: mppi's softmax, or evolution strategies' fitness shaping.

init_std: float = 0.1

noise standard deviation at the start of a solve.

min_std: float = 0.01

floor the softmax refit keeps the standard deviation above.

temperature: float = 0.1

softmax temperature; lower follows the cheapest draws more closely.

gamma: float = 0.9

share of the weighted spread the softmax refit moves the standard deviation toward.

learning_rate: float = 0.1

fitness-shaping step size.

epsilon: float = 1e-06

guard against division by a zero spread.

seed: int = 0

noise seed; the same seed replays the same draws.

sample_mode: literal['mean', 'best'] = 'mean'

move each center to its draws' weighted mean, or onto its cheapest draw.

elite_ratio: float = 0.0

if positive, the softmax temperature is each center's cost spread over this best share of its draws (at least two) instead of temperature, and best_draws keeps its cheapest draw.

mean_elites: bool = false

with elite_ratio, move each center to the weighted mean of that share alone.

noise_decay: float = 1.0

each scored round scales std by this before the refit, never below min_std.

wide_ratio: float = 0.0

share of a solve's first-round draws (its last ones) drawn at wide_scale times std, to explore.

wide_scale: float = 1.0 build(var: varvalues, num_candidates: int, active_dof_mask: optional[wp.array] = none) -> sampler sampler robokit.opt.sampler class protocol

draws new candidates around each candidate of one named variable.

var_key: enum num_draws: int

candidates drawn around each one; 1 draws in place.

reset() -> none

reopen the distribution at the start of a solve.

sample(var: varvalues, scores: optional[wp.array]) -> varvalues

move candidates by scores; return var or sampler-owned draws for scoring.

robertssampler robokit.opt.sampler class

seed candidates once with a roberts low-discrepancy sequence, covering a box more evenly than random draws.

sampling options:

  • scale: half-width per tangent column; joint columns usually use joint range.
  • sampler.scale.assign(...): change the device-side scale between solves.
  • keep_first: leave candidate zero at the seed by assigning it zero noise.

example

python
>>> sampler = robertssampler(num_candidates=4, scale=[0.5, 0.5], device=\"cpu\") >>> tangent = wp.zeros((8, 2), dtype=wp.float32, device=\"cpu\") >>> sampler.fill(tangent) >>> tangent.numpy().shape (8, 2) >>> bool(np.abs(tangent.numpy()).max() <= 0.25) true
num_candidates int scale sequence[float] seed optional[int] keep_first bool device wp_device_type var_key enum reset() -> none

a roberts spread is fixed.

sample(var: varvalues, scores: optional[wp.array]) -> varvalues

a roberts spread is fixed, so scores tell it nothing: spread var in place.

fill(out_tangent: wp.array, iteration: int = 0) -> none gaussiansampler robokit.opt.sampler class

fit a sampling distribution from costs, as in mppi and evolution strategies.

each round:

  1. move centers using scored draws and refit std.
  2. draw num_draws std-scaled normals per center; draw zero has no noise and preserves the center.

center updates:

  • sample_mode=mean: cost-weighted mean of noise.
  • sample_mode=best: cheapest draw's current position, including any optimizer movement.

cost weighting:

  • softmax: boltzmann weights over negative cost at temperature.
  • fitness_shaping: standardized costs scaled by learning_rate.

capacity/reset controls:

  • instances: maximum center population; narrower solves use prefixes.
  • std_reset and temperatures: caller-adjustable per-instance settings; reset restores std from std_reset.
  • lower and upper: optional (instances, tangent_dim) bounds on a vector variable's drawn values; each draw is clamped to its center's and its noise follows.
num_draws int tangent_dim int instances int weighting weighting init_std float min_std float temperature float gamma float learning_rate float epsilon float seed int sample_mode literal['mean', 'best'] elite_ratio float mean_elites bool noise_decay float wide_ratio float wide_scale float active_dof_mask optional[wp.array] device wp_device_type var_key enum lower: optional[wp.array] upper: optional[wp.array] best_draws: optional[varvalues] draws: optional[varvalues] reset() -> none

reopen the spread to std_reset and replay the same noise sequence.

sample(var: varvalues, scores: optional[wp.array]) -> varvalues fill(out_tangent: wp.array, iteration: int = 0) -> none","robokit/api-terms":"terms terms api task robokit.terms class abc.abc

base of every cost term: names its variable (var_key) and cost row (cost_name).

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residualtask robokit.terms class task

term consumed as a weighted residual and optional jacobian.

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int

dimension of the residual vector.

compute_weighted_residual(var_values: varvalues, *args: any, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
gradienttask robokit.terms class task

per-batch scalar cost and gradient, used by gdoptimizer/lbfgsoptimizer in analytic-gradient mode.

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_cost_and_gradient(var_values: varvalues, *args: any, out_cost: wp.array, out_gradient: optional[wp.array] = none, **kwargs: any)

accumulate this term's weighted cost and optional direct gradient.

sparsetask robokit.terms class residualtask

residual task with an explicitly stored sparse jacobian.

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int

dimension of the residual vector.

compute_weighted_residual(var_values: varvalues, *args: any, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array use_mask: bool = false frame_mask: optional[wp.array] = none compute_sparse_jacobian_pattern(var_values: varvalues, *args: any, offset: int = 0, **kwargs: any) -> sparsitypattern

sparsity pattern of the jacobian matrix.

compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: any, out_jacobian_values: optional[wp.array] = none, offset: int = 0, **kwargs: any) -> wp.array

compute the non-zero values of the weighted jacobian matrix according to the sparsity pattern.

accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

eagertask robokit.terms class residualtask

task with per-iteration work outside a captured cuda graph.

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int

dimension of the residual vector.

compute_weighted_residual(var_values: varvalues, *args: any, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
prepare(var_values: varvalues, proposed: bool, iter_idx: int)

prepare eager state before a warp reduction.

on_step(accept_mask: wp.array, iter_idx: int, costs: wp.array) -> bool

update eager state after accepting or rejecting a step.

robottask robokit.terms class task

serial preparation shared by terms that consume a robot state.

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

name: str = ''

label a config gave this term, so config.task(name) finds it again.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

robot: optional[robot] var_key: enum precompute_collision_geometry: str = '' resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

set_robot(robot: robot) precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

trajectorytask robokit.terms class robottask, sparsetask, gradienttask

apply independent per-pose tasks to trajectory frames, with one dense tangent block per selected frame.

dense_task residualtask

per-pose residual task.

num_frames optional[int]

number of trajectory frames, or omitted so the trajectory optimizer sets it.

frame_indices optional[union[sequence[int], context]]

frames to include. defaults to all frames.

name str

optional planner input name (start, goal, target, path_goal, or path_target).

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

weight: any = 1.0 parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

set_robot(robot: robot) dense_task: residualtask device: optional[wp_device_type] active: bool resolve(var_values: varvalues, context: mapping[context, any])

build for the trajectory in var_values; a built per-pose task keeps its identity and live targets.

init_buffers(device: wp_device_type) residual_dim: int fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

a terminal cost whose dense task writes the trajectory layout itself (fill_terminal) takes one launch.

compute_weighted_residual(var_values: varvalues, *args: any, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: any, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: any) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: any, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: any) -> wp.array frametask robokit.terms class robottask, residualtask

match world-frame link targets; \"distance\" scores translation/angle thresholds, while \"log\" uses log residuals.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"ur10_description\")) >>> target_link_index = robot.spec.link_names.index(\"ee_link\") >>> state = robot.state(q=robot.spec.zero_q) >>> target_link_pose = robot.forward_kinematics(state).get_t_world_link(target_link_index) >>> frame_task = frametask(robot, target_link_index, target_link_pose, position_weight=1.0, orientation_weight=1.0) >>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32, device=\"cpu\") >>> state = robot.state(q=random_q) >>> robot.forward_kinematics(state) >>> robot.compute_motion_subspace(state) >>> weighted_residual = frame_task.compute_weighted_residual(varvalues({varkey.robot: state})) >>> weighted_jacobian = frame_task.compute_weighted_jacobian(varvalues({varkey.robot: state})) >>> assert np.allclose(weighted_residual.numpy()[0, :3], np.array([0.5839, -0.0795, -0.1784], dtype=np.float32), atol=1e-3) >>> assert np.allclose(weighted_jacobian.numpy()[0, :, 0], np.array([-1.1628, 0.1626, -0.167, -0.0765, 0.3698, 0.9521], dtype=np.float32), atol=1e-3)
robot optional[robot] frame_index optional[union[int, sequence[int], context]] t_world_target optional[union[wp.array, np.ndarray, sequence[wp.array], context]] position_weight union[float, sequence[float], np.ndarray, mapping[str, float]] orientation_weight union[float, sequence[float], np.ndarray, mapping[str, float]] residual_mode literal['log', 'distance'] trajectory_frames int name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum weight: any = 1.0 parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' set_robot(robot: robot) residual_mode: literal['log', 'distance'] robot: optional[robot] set_target(target: union[wp.array, np.ndarray, sequence[wp.array]])

update target poses in-place. batch size must match the original.

active: bool resolve(var_values: varvalues, context: mapping[context, any])

complete a stub with the helper's links and target buffer (not copied); named weights pick those links.

weights_for(frame_names: sequence[str]) -> tuple[np.ndarray, np.ndarray]

resolve scalar, ordered, or named template weights for the selected frames.

python
>>> task = frametask(position_weight={\"tool\": 2.0}, orientation_weight=3.0) >>> task.weights_for([\"tool\"])[0].tolist() [2.0]
set_frames(robot: robot, frame_index: union[int, sequence[int]], t_world_target: union[wp.array, np.ndarray, sequence[wp.array]])

give a config-time stub its robot, link indices, and targets, keeping the configured weights.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array fill_terminal(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write terminal pose residuals and optional sparse jacobian values in one launch.

layouts:

  • var_values: flattened poses, trajectory_frames per trajectory.
  • jacobian: trajectorytask's single-frame, row-major values, one per actuated joint.
compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array positiontask robokit.terms class robottask, residualtask

match the world positions of one or more link frames.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"ur10_description\")) >>> target_link_index = robot.link_names.index(\"ee_link\") >>> state = robot.state(q=robot.zero_q) >>> target_link_pose = robot.forward_kinematics(state).get_t_world_link(target_link_index).reshape((1, 1)) >>> position_task = positiontask(robot, target_link_index, target_link_pose, weight=1.0) >>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32) >>> state = robot.state(q=random_q) >>> robot.forward_kinematics(state) >>> robot.compute_motion_subspace(state) >>> weighted_residual = position_task.compute_weighted_residual(varvalues({varkey.robot: state})) >>> weighted_jacobian = position_task.compute_weighted_jacobian(varvalues({varkey.robot: state})) >>> weighted_residual.numpy().shape[1] == 3 true >>> weighted_jacobian.numpy().shape[1] == 3 true
robot optional[robot] frame_index optional[union[int, sequence[int], context]] t_world_target optional[union[wp.array, np.ndarray, context]] weight union[float, sequence[float]] fixed_target bool name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] set_robot(robot: robot) set_weight(weight: union[float, sequence[float]])

update residual weights in-place. accepts scalar or per-frame sequence.

set_frames(robot: robot, frame_index: union[int, sequence[int]], t_world_target: union[wp.array, np.ndarray])

give a config-time stub its robot, link indices, and targets, keeping the configured weights.

set_target(t_world_target: union[wp.array, np.ndarray])

update target poses in-place. batch size must match the original.

resolve(var_values: varvalues, context: mapping[context, any])

complete a stub with the helper's links and target buffer, which it reads directly.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array rotationtask robokit.terms class robottask, residualtask

match the world rotations of one or more link frames.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"ur10_description\")) >>> target_link_index = robot.link_names.index(\"ee_link\") >>> state = robot.state(q=robot.zero_q) >>> target_link_pose = robot.forward_kinematics(state).get_t_world_link(target_link_index).reshape((1, 1)) >>> rotation_task = rotationtask(robot, target_link_index, target_link_pose, weight=1.0) >>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32) >>> state = robot.state(q=random_q) >>> robot.forward_kinematics(state) >>> robot.compute_motion_subspace(state) >>> weighted_residual = rotation_task.compute_weighted_residual(varvalues({varkey.robot: state})) >>> weighted_jacobian = rotation_task.compute_weighted_jacobian(varvalues({varkey.robot: state})) >>> weighted_residual.numpy().shape[1] == 3 true >>> weighted_jacobian.numpy().shape[1] == 3 true
robot optional[robot] frame_index optional[union[int, sequence[int], context]] t_world_target optional[union[wp.array, np.ndarray, context]] weight union[float, sequence[float], np.ndarray, mapping[str, float]] fixed_target bool name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] set_robot(robot: robot) set_weight(weight: union[float, sequence[float]])

update residual weights in-place. accepts scalar or per-frame sequence.

set_frames(robot: robot, frame_index: union[int, sequence[int]], t_world_target: union[wp.array, np.ndarray])

give a config-time stub its robot, link indices, and targets, keeping the configured weights.

set_target(t_world_target: union[wp.array, np.ndarray])

update target poses in-place. batch size must match the original.

resolve(var_values: varvalues, context: mapping[context, any])

complete a stub with the helper's links and target buffer (not copied); named weights zero unlisted links.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array framevectortask robokit.terms class robottask, residualtask

drive point-pair deltas to target vectors; weight_mode \"cost\" takes sqrt, \"normalized\" divides by sqrt(rows).

direction metrics:

  • default: robot-length-scaled vector error.
  • `direction_only=true with direction_metric=\"cosine\": 1 - dot(normalized_robot, normalized_target)`.

named weights pick their rows when the task is built:

  • a target name tracks that target's row of targets, ordered by target_names, from the world origin to its link in target_links.
  • (origin link, task link, origin target, task target) reads the pair row origin * len(target_names) + task of a pair buffer.
robot optional[robot] origin_link_indices optional[union[sequence[int], context]] task_link_indices optional[union[sequence[int], context]] targets optional[union[np.ndarray, wp.array, context]] weight union[float, sequence[float], np.ndarray, mapping[any, float]] target_indices optional[sequence[int]] scale union[float, sequence[float], np.ndarray] huber_delta optional[float] huber_on_norm bool direction_only bool soft_gate_start_distance optional[float] soft_gate_full_distance optional[float] soft_gate_pair_mask optional[list[bool]] direction_metric literal['length_scaled', 'cosine'] name str weight_mode literal['residual', 'cost', 'normalized'] target_names optional[union[sequence[str], context]] target_links optional[union[mapping[str, str], context]] soft_gate_targets optional[union[sequence[int], context]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] device: optional[wp_device_type] targets_wp: optional[wp.array] weights_wp: optional[wp.array] set_robot(robot: robot) active: bool resolve(var_values: varvalues, context: mapping[context, any])

attach the robot and helper links/targets, reading warp buffers in place; named weights pick the rows.

residual_dim: int init_buffers(device: wp_device_type) set_targets(targets: union[np.ndarray, wp.array], weight: optional[np.ndarray] = none)

update targets (and optionally weights) in place; shapes must match the built buffers.

compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0, col_offset: int = 0) -> wp.array compositiontask robokit.terms class robottask, residualtask

penalize world-frame com target error using mass-weighted link com positions and their analytic jacobians.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"g1_description\")) >>> task = compositiontask(robot=robot, target_com_position=np.zeros(3), weight=1.0) >>> task.residual_dim 3
robot optional[robot] target_com_position optional[np.ndarray] weight union[float, sequence[float]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum name: str = ''

label a config gave this term, so config.task(name) finds it again.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] set_target(target: np.ndarray)

update com targets while retaining allocated buffers and captured graphs.

example

python
>>> task = compositiontask(target_com_position=np.zeros(3)) >>> task.set_target(np.array([0.1, 0.0, 0.8])) >>> task.target_com_position.shape (3,)
set_weight(weight: union[float, sequence[float]])

update the three com residual weights in place.

example

python
>>> task = compositiontask(target_com_position=np.zeros(3)) >>> task.set_weight([1.0, 1.0, 0.0]) >>> task.weight [1.0, 1.0, 0.0]
set_robot(robot: robot) residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array positionlimit robokit.terms class robottask, residualtask, gradienttask

penalize joint and optional floating-base translation limit violations.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"ur10_description\")) >>> joint_var = robot.spec.actuated_joint_limits[:, 0] - 0.1 >>> state = robot.state(q=wp.from_numpy(joint_var[none].astype(np.float32), dtype=wp.float32)) >>> position_limit = positionlimit(robot=robot) >>> weighted_residual = position_limit.compute_weighted_residual(varvalues({varkey.robot: state})) >>> np.allclose(weighted_residual.numpy()[0], np.array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1], dtype=np.float32)) true >>> weighted_jacobian = position_limit.compute_weighted_jacobian(varvalues({varkey.robot: state})) >>> np.allclose(np.diag(weighted_jacobian.numpy()[0]), np.array([-1.0, -1.0, -1.0, -1.0, -1.0, -1.0], dtype=np.float32)) true
robot optional[robot] weight optional[union[float, sequence[float]]] residual_mode literal['abs', 'sqrt_abs', 'exp_barrier'] residual_eps float mask optional[union[np.ndarray, mapping[str, float]]] base_axis optional[int] base_bounds tuple[float, float] base_weight float include_joints bool joint_limits optional[union[np.ndarray, context]] warmup_frames int activation float name str frame optional[union[wp.array, context]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] dof_mask: optional[wp.array] resolve(var_values: varvalues, context: mapping[context, any])

build from the robot; a base bound needs a floating base, e.g. ik with enable_t_world_base=true.

set_robot(robot: robot) init_buffers(device: wp_device_type) set_weight(weight: union[float, sequence[float]])

update residual weights in-place. accepts a scalar or per-joint sequence.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: wp.array = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: wp.array = none, row_offset: int = 0) -> wp.array compute_weighted_cost_and_gradient(var_values: varvalues, out_cost: wp.array, out_gradient: optional[wp.array] = none) axislimittask robokit.terms class robottask, residualtask

limit the angle between a frame-local axis and a world-frame axis.

robot optional[robot] frame_index optional[int] local_axis tuple[float, float, float] world_axis tuple[float, float, float] min_angle optional[float] max_angle optional[float] weight float supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum name: str = ''

label a config gave this term, so config.task(name) finds it again.

active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' set_robot(robot: robot) set_weight(weight: float) residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array velocitylimittask robokit.terms class residualtask

penalize joint velocity limit violations relative to a previous state.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state_prev = robot.state(q=robot.spec.zero_q) >>> state_curr = robot.state(q=robot.spec.zero_q + 0.5) >>> vel_task = velocitylimittask(robot=robot, dt=0.1, weight=1.0) >>> # residual should be positive if velocity exceeds limits
robot optional[robot] dt union[float, context] prev_state_var optional[union[robotstate, context]] velocity_limits optional[union[np.ndarray, context]] weight optional[union[float, sequence[float]]] name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
robot: optional[robot] resolve(var_values: varvalues, context: mapping[context, any])

build from the robot; a previous state from the helper is its buffer, read directly.

set_robot(robot: robot) set_weight(weight: union[float, sequence[float]])

update residual weights in-place. accepts a scalar or per-joint sequence.

set_prev_state(prev_state: robotstate) init_buffers(device: wp_device_type) residual_dim: int compute_weighted_residual(var_values: varvalues, prev_state_var: optional[union[robotstate, context]] = none, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, prev_state_var: optional[union[robotstate, context]] = none, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array scenecollisiontask robokit.terms class robottask, residualtask, gradienttask

penalize robot collision spheres that approach scene geometry.

robot optional[robot] scene optional[union[warpscene, context]] geometry optional[basegeom] scene_indices optional[union[wp.array, context]] use_link_bounding_sphere_filter bool weight union[float, sequence[float]] margin optional[float] sphere_indices optional[sequence[int]] residual_mode literal['abs', 'sqrt_abs'] residual_eps float penalty literal['smooth', 'plain', 'surface_distance'] skip_trajectory_endpoints bool movable_only bool name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
active: bool

whether the term adds cost: nonzero weight and a scene with geometry, or a helper's scene to come.

set_robot(robot: robot)

build a config-time stub, with fresh query buffers.

set_scene_indices(scene_indices: wp.array)

copy a per-query device scene mapping into stable query buffers.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_cost_and_gradient(var_values: varvalues, out_cost: wp.array, out_gradient: optional[wp.array] = none, cost_form: literal['squared_sum', 'sum_squared'] = 'squared_sum')

compute collision cost and optional direct gradient.

lifecycle

  1. prepare trajectory-shaped collision buffers and kinematics.
  2. query the scene sdf for every selected sphere.
  3. accumulate the selected cost form and optional gradient.
scenedistancetask robokit.terms class robottask, residualtask, gradienttask

minimize hand contact-point distance to a scene surface.

robot optional[robot] warp_meshes optional[warpscene] num_contact_points int weight optional[union[float, sequence[float]]] residual_mode literal['abs', 'sqrt_abs'] residual_eps float points_var_key optional[enum] local_contact_points optional[wp.array] contact_points_link_indices optional[wp.array] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum name: str = ''

label a config gave this term, so config.task(name) finds it again.

active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' residual_weight: optional[wp.array] last_query: optional[tuple] set_robot(robot: robot) residual_dim: int compute_weighted_residual(var_values: varvalues, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_cost_and_gradient(var_values: varvalues, out_cost: wp.array, out_gradient: optional[wp.array] = none, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none, precomputed_contact_points_world: optional[wp.array] = none, precomputed_signed_dists: optional[wp.array] = none, precomputed_closest_points: optional[wp.array] = none, precomputed_normals: optional[wp.array] = none)

compute cost and optional gradient.

lifecycle

  1. transform local contact points or reuse supplied world points.
  2. query or reuse closest points, signed distances, and normals.
  3. compute residuals and accumulate cost and jᵀr.
compute_weighted_jacobian_analytic(var_values: varvalues, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array selfcollisiontask robokit.terms class robottask, residualtask, gradienttask

penalize the most active robot self-collision pairs.

robot optional[robot] weight float margin float representation literal['sphere', 'capsule', 'link_sphere'] link_sphere_radius union[float, literal['auto']] link_sphere_center literal['bounding', 'origin'] residual_mode literal['abs', 'sqrt_abs'] residual_eps float filter_adjacent_links bool max_active_pairs int name str supports_cuda_graph: bool = true var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
set_robot(robot: robot)

build a config-time stub's collision pairs with the configured settings.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array

compute self-collision residuals.

lifecycle

  1. prepare world collision geometry.
  2. select the most active broad-phase link pairs.
  3. evaluate the closest sphere or capsule pair for each slot.
compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array

compute the analytic self-collision jacobian.

lifecycle

  1. prepare kinematics and motion subspaces.
  2. reuse the residual's active-pair selection when available.
  3. differentiate the selected sphere or capsule distances.
compute_weighted_cost_and_gradient(var_values: varvalues, out_cost: wp.array, out_gradient: optional[wp.array] = none)

compute fused link-sphere cost and optional gradient.

lifecycle

  1. prepare link spheres and motion subspaces.
  2. allocate a scratch gradient for cost-only evaluations.
  3. accumulate every active link-pair contribution.
smoothnesstask robokit.terms class residualtask, gradienttask

penalize change from a previous joint and optional base state.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state_prev = robot.state(q=robot.spec.zero_q) >>> state_curr = robot.state(q=robot.spec.zero_q + 0.1) >>> smooth_task = smoothnesstask(robot=robot, weight=0.5) >>> values = varvalues({varkey.robot: state_curr}) >>> cost = wp.zeros(1, device=state_curr.q.device) >>> gradient = wp.zeros((1, state_curr.tangent_dim), device=state_curr.q.device) >>> smooth_task.compute_weighted_cost_and_gradient(values, state_prev, out_cost=cost, out_gradient=gradient) >>> np.allclose(gradient.numpy(), 0.025) true
robot optional[robot] prev_var optional[union[robotstate, context]] weight union[float, sequence[float]] base_weight optional[union[float, sequence[float]]] name str warmup_frames int frame optional[union[wp.array, context]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
robot: optional[robot] active: bool resolve(var_values: varvalues, context: mapping[context, any])

build from the robot; a previous state from the helper is its buffer, read directly.

set_robot(robot: robot) set_weight(weight: union[float, sequence[float]])

update joint-block residual weights in-place. base-block weights are preserved.

set_prev_state(prev_state: robotstate) init_buffers(device: wp_device_type) residual_dim: int compute_weighted_cost_and_gradient(var_values: varvalues, prev_var: optional[robotstate] = none, *, out_cost: wp.array, out_gradient: optional[wp.array] = none)

accumulate half the squared residual norm and its direct gradient.

compute_weighted_residual(var_values: varvalues, prev_var: optional[robotstate] = none, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, prev_var: optional[robotstate] = none, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array configurationtask robokit.terms class residualtask

bias joints/base toward rest; `rest_q=\"midrange\"` uses joint-limit midpoints as the rest state.

supported variables:

  • robotstate: joints and optional floating base.
  • vectorvar: joint-only block, sized by rest_q with no robot.
  • se3var: pose-only block, including model-offset regularization.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> rest_q = robot.spec.midrange_q >>> configuration_task = configurationtask(robot=robot, rest_q=rest_q, weight=0.1) >>> q_init = wp.from_numpy(rest_q + 0.1, dtype=wp.float32) >>> state = robot.state(q=q_init) >>> residual = configuration_task.compute_weighted_residual(varvalues({varkey.robot: state})) >>> # residual should be ~0.1 * weight
robot optional[robot] rest_q optional[union[np.ndarray, wp.array, literal['midrange'], context]] t_world_base_rest optional[union[wp.array, np.ndarray, context]] weight union[float, sequence[float], np.ndarray] base_weight optional[union[float, sequence[float], np.ndarray]] include_joints bool var_key enum name str mask optional[union[np.ndarray, context]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
rest_q_arg: optional[union[np.ndarray, wp.array, literal['midrange'], context]] t_world_base_rest: optional[wp.array] robot: optional[robot] active: bool resolve(var_values: varvalues, context: mapping[context, any])

build from the robot; warp rest values from the helper are its buffers, read directly.

set_robot(robot: optional[robot] = none) init_buffers(device: wp_device_type) set_weight(weight: union[float, sequence[float]])

update joint-block residual weights in-place. base-block weights are preserved.

set_target(rest_q: optional[union[wp.array, np.ndarray]] = none, t_world_base_rest: optional[union[wp.array, np.ndarray]] = none)

update the rest references; a config-time stub keeps numpy references until its buffers are built.

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array manipulabilitytask robokit.terms class robottask, residualtask

maximize yoshikawa sqrt(det(j @ j.t)) at frame_index, using the end-effector translational jacobian.

analytic derivative columns:

  • fixed-base joints: computed normally.
  • floating base: left zero.

example

python
>>> import numpy as np >>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> from robokit.opt.var_values import varkey, varvalues >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"ur10_description\")) >>> frame_index = robot.spec.link_names.index(\"ee_link\") >>> random_q = wp.from_numpy( ... np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32 ... ) >>> state = robot.state(q=random_q) >>> task = manipulabilitytask(robot, frame_index, weight=0.01) >>> task.compute_weighted_residual(varvalues({varkey.robot: state})).numpy().shape[1] == 1 true >>> task.compute_weighted_jacobian(varvalues({varkey.robot: state})).numpy().shape[1] == 1 true
robot optional[robot] frame_index optional[union[int, context]] weight float epsilon float supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum name: str = ''

label a config gave this term, so config.task(name) finds it again.

active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' set_robot(robot: robot) robot: optional[robot] weight_wp: optional[wp.array] set_weight(weight: float)

update the manipulability weight in-place (live-tunable, cuda-graph safe).

residual_dim: int compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array forceclosuretask robokit.terms class robottask, residualtask, gradienttask

force closure task: contacts from var.contact_point_centers_world, normals from the sdf of warp_meshes.

robot optional[robot] num_contact_points int warp_meshes optional[warpscene] weight optional[union[float, sequence[float]]] contact_force_weights optional[sequence[float]] local_contact_points optional[wp.array] contact_points_link_indices optional[wp.array] points_var_key optional[enum] distance_task optional[scenedistancetask] _device optional[wp_device_type] _cached_batch_size int _residual_weight_np optional[np.ndarray] residual_weight optional[wp.array] contact_force_weights_wp optional[wp.array] _signed_dists optional[wp.array] _sdf_query_normals optional[wp.array] _sdf_normals optional[wp.array] _sdf_closest_points optional[wp.array] _normal_jacobians optional[wp.array] _contact_points_world optional[wp.array] _direct_residual_buf optional[wp.array] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum name: str = ''

label a config gave this term, so config.task(name) finds it again.

active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

resolve(var_values: varvalues, context: mapping[context, any])

swap placeholders, then take the robot of the state this task reads.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] = none num_contact_points: int = 0 warp_meshes: optional[warpscene] = none weight: optional[union[float, sequence[float]]] = none contact_force_weights: optional[sequence[float]] = none local_contact_points: optional[wp.array] = none contact_points_link_indices: optional[wp.array] = none points_var_key: optional[enum] = none

read the contact points from this variable instead of the stored array.

distance_task: optional[scenedistancetask] = none

a scenedistancetask on the same contacts, listed before this term: its scene query serves both.

residual_weight: optional[wp.array] = none contact_force_weights_wp: optional[wp.array] = none parallel_safe: bool set_robot(robot: robot) residual_dim: int compute_weighted_residual(var_values: varvalues, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_cost_and_gradient(var_values: varvalues, out_cost: wp.array, out_gradient: optional[wp.array] = none, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none) compute_weighted_jacobian_analytic(var_values: varvalues, local_contact_points: optional[wp.array] = none, contact_points_link_indices: optional[wp.array] = none, scene_offsets: optional[wp.array] = none, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array interactionmeshtask robokit.terms class robottask, residualtask

preserve interaction-mesh laplacian coordinates from human to robot.

example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description >>> import numpy as np >>> from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame >>> from robokit.robo.robot import robot >>> robot = robot.load(load_robot_description(\"panda_description\")) >>> state = robot.state(q=robot.zero_q) >>> robot.forward_kinematics(state) >>> links = [robot.link_names.index(n) for n in robot.link_names[1:5]] >>> p = state.t_world_link.numpy()[0][links, :3] >>> pts = np.vstack([p, p.mean(0) + np.array([[0.2, 0, 0], [0, 0.2, 0], [0, 0, 0.2]], np.float32)]) >>> task = interactionmeshtask(robot, np.array(links, dtype=np.int32)) >>> t_world_object = np.array([0, 0, 0, 1, 0, 0, 0], np.float32) >>> task.set_frame(*build_interaction_mesh_frame(p, pts[len(p):], t_world_object)) >>> task.residual_dim 21
robot optional[robot]

robot model. may be assigned later by the solver.

robot_link_indices optional[union[np.ndarray, context]]

robot link for each dynamic vertex.

weight float

residual multiplier.

name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
precompute_collision_geometry: str = '' robot: optional[robot] device: optional[wp_device_type] set_robot(robot: robot) resolve(var_values: varvalues, context: mapping[context, any])

build from the robot and the helper's links, the first vertices of every frame.

residual_dim: int set_frame(neighbor_offsets: np.ndarray, neighbor_indices: np.ndarray, neighbor_weights: np.ndarray, reference_vertex_positions: np.ndarray, target_laplacian: np.ndarray)

set adjacency, reference vertices, and target laplacian for one frame.

init_buffers(device: wp_device_type) compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, out_jacobian: optional[wp.array] = none, row_offset: int = 0) -> wp.array compositetask robokit.terms class residualtask

concatenate weighted residuals, with optional threshold-based selection scoring.

modes:

  • without thresholds: ordinary residual concatenation for optimization.
  • with thresholds: bounded children are constraints; children with none thresholds are scores.

selection sequence:

  1. require each constraint's absolute residuals to satisfy scalar, per-row or repeating bounds.
  2. return score norm for valid rows and infinity otherwise, preserving ordinary squared costs on valid rows.
  3. count valid rows per num_candidates group in valid_count; use stable selection to preserve ties.

example

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> task = compositetask([configurationtask()], thresholds=[none]) >>> task.residual_dim 1
tasks sequence[residualtask] thresholds optional[sequence[optional[union[float, sequence[float]]]]] num_candidates union[int, context] supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
valid_count: optional[wp.array] resolve(var_values: varvalues, context: mapping[context, any])

build a copy of each unbuilt child, dropping one the context empties, and take the candidate count.

residual_dim: int precompute(var_values: varvalues, need_gradient: bool = false)

prepare every child task.

compute_weighted_residual(var_values: varvalues, out_residual: optional[wp.array] = none, row_offset: int = 0) -> wp.array trajectorypositiontask robokit.terms class robottask, sparsetask

align robot-link positions to optionally indexed world-frame points.

robot optional[robot] frame_index optional[union[int, sequence[int], context]] target_positions optional[union[np.ndarray, wp.array, context]] weight union[float, sequence[float], np.ndarray, mapping[str, float]] target_point_indices optional[union[sequence[int], context]] name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

precompute_collision_geometry: str = '' set_robot(robot: robot) weights: optional[wp.array] device: optional[wp_device_type] target_positions: optional[wp.array] target_point_indices: optional[wp.array] frame_indices: optional[wp.array] ancestor_dof_indices: optional[wp.array] dof_offsets: optional[wp.array] nnz_starts: optional[wp.array] num_frames: int active: bool resolve(var_values: varvalues, context: mapping[context, any])

fill a template with helper links and targets, reading a warp target directly; unlisted links weigh zero.

init_buffers(device: wp_device_type) residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array trajectorycontacttask robokit.terms class robottask, sparsetask

keep selected link points within a deadband of trajectory contacts: points, or segments along contact_axes.

robot optional[robot]

robot with fk support.

contact_points optional[union[np.ndarray, wp.array, context]]

shared [t, c, 3] or batched [b, t, c, 3] world targets.

contact_link_indices optional[union[np.ndarray, sequence[int], context]]

padded [t, c] robot link indices.

contact_mask optional[union[np.ndarray, wp.array, context]]

shared [t, c] or batched [b, t, c] validity mask.

contact_margin float

deadband margin; no penalty when distance is within this threshold.

weight float

residual weight.

local_contact_points optional[union[np.ndarray, wp.array, context]]

optional link-local points. defaults to each link origin.

name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

precompute_collision_geometry: str = '' set_robot(robot: robot) device: optional[wp_device_type] contact_points_wp: optional[wp.array] local_contact_points_wp: optional[wp.array] contact_axes_wp: optional[wp.array] contact_link_indices_wp: optional[wp.array] contact_mask_wp: optional[wp.array] link_ancestor_dofs_wp: optional[wp.array] link_num_ancestor_dofs_wp: optional[wp.array] max_ancestor_dofs: int active: bool resolve(var_values: varvalues, context: mapping[context, any])

build from the helper's contact links; its warp contact buffers are read directly.

set_contacts(contact_points: wp.array, contact_mask: wp.array, local_contact_points: optional[wp.array] = none, contact_axes: optional[wp.array] = none)

copy batched runtime contact data into graph-stable device buffers; omitted points and axes are zero. a nonzero axis makes its contact the segment from the point along it: the link point may sit anywhere on it, e.g. a straight move at its own pace.

residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array trajectorycollisiontask robokit.terms class robottask, sparsetask, gradienttask

evaluate trajectory-sphere costs against geometry, else every scene geometry; one row block per geometry.

swept-segment evaluation:

  1. linearly interpolate sphere centers at sweep_steps samples between waypoints.
  2. differentiate the largest residual through both endpoints.
  3. include the final segment even if free_goal_frame disables the standalone goal waypoint.
robot optional[robot] scene optional[union[warpscene, context]] num_frames optional[int] weight union[float, sequence[float]] margin union[float, sequence[float], np.ndarray] max_dist float sphere_indices optional[union[sequence[int], np.ndarray, context]] scene_indices optional[union[wp.array, context]] active_actuated_indices optional[union[sequence[int], np.ndarray]] sweep_steps int penalty literal['smooth', 'plain', 'surface_distance'] geometry optional[basegeom] frame_sphere_mask optional[union[np.ndarray, wp.array, context]] speed_dt optional[union[wp.array, context]] free_goal_frame bool name str goal_radius float goal_distance optional[union[wp.array, context]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum robot: optional[robot] weight: any = 1.0 parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

precompute_collision_geometry: str = '' set_robot(robot: robot) device: optional[wp_device_type] frame_sphere_mask: optional[wp.array] active: bool

whether the term adds cost: nonzero weight, a scene, and at least one selected sphere.

resolve(var_values: varvalues, context: mapping[context, any])

build for the robot and horizon in var_values, sharing a warp frame_sphere_mask, unless inactive.

init_buffers(device: wp_device_type)

build stable scene/sparsity parameters; query caches grow on first use.

lifecycle

  1. upload selected sphere and actuated-column indices.
  2. build the actuated-column joint csr mapping.
  3. allocate scene/margin arrays and invalidate lazy query caches.
accumulate_max_penetration(out: wp.array)

max-accumulate penetration from the most recent jacobian query cache, over every geometry.

runs over the batch the cache holds: out may be longer (a score task sized for every draw).

set_frame_sphere_mask(frame_sphere_mask: wp.array)

set the active (batch, frame, selected sphere) collision rows.

residual_dim: int

one block of rows per geometry; an empty scene keeps one block of zeros.

set_scene_indices(scene_indices: wp.array)

set scenes shaped (batch,) or per-frame scenes shaped (batch, frames).

compute_weighted_cost_and_gradient(var_values: varvalues, *args: object, out_cost: wp.array, out_gradient: optional[wp.array] = none, **kwargs: object)

compute sparse cost and optional gradient with one scene query.

lifecycle

  1. use the base cost-only path when no gradient is requested.
  2. compute jacobian values and cache their scene query.
  3. rebuild residuals from the cache and reduce cost and gradient.
fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

fill residuals and sparse values from one shared scene query.

compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array

compute trajectory collision residuals.

lifecycle

  1. prepare forward kinematics and stable runtime buffers.
  2. run each geometry's primitive, mesh, volume, or hybrid query kernel.
  3. evaluate every frame and selected sphere.
compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, query_penetration: bool = true, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array

compute sparse trajectory collision jacobian values.

lifecycle

  1. prepare kinematics, motion subspaces, and runtime-sized caches.
  2. query each geometry and cache its sphere centers and sdf normals.
  3. assemble active joint and optional floating-base columns.
trajectoryselfcollisiontask robokit.terms class robottask, sparsetask, gradienttask

penalize self-collisions between robot collision spheres at all frames.

robot optional[robot] num_frames optional[int] weight float margin float penalty literal['squared', 'max_linear'] name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

set_robot(robot: robot) device: optional[wp_device_type] sphere_mask: optional[wp.array] pair_mask: optional[wp.array] resolve(var_values: varvalues, context: mapping[context, any])

build from the robot and horizon of the trajectory var_values holds.

init_buffers(device: wp_device_type) residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array trajectorysmoothnesstask robokit.terms class sparsetask, gradienttask

penalize joint differences and optional floating-base motion.

configuration options:

  • robot/num_frames omitted: resolve takes them from the trajectory it reads.
  • smooth_boundary=false: disable the first and last finite-difference rows.
  • history: an executed (q_history, history_valid) prefix, e.g. a helper's shared buffers.
robot optional[robot] num_frames optional[int] weight union[float, sequence[float], np.ndarray] order int dt union[float, context] reference_q optional[union[np.ndarray, context]] base_weight optional[union[float, sequence[float], np.ndarray]] smooth_boundary bool virtual_hold_frames union[int, context] history optional[union[tuple[wp.array, wp.array], context]] name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

device: optional[wp_device_type] residual_weight: optional[wp.array] base_residual_weight: optional[wp.array] boundary_weight: optional[wp.array] coefficients: optional[wp.array] q_history: optional[wp.array] history_valid: optional[wp.array] reference_q: optional[wp.array] compute_paths(q: np.ndarray, costs: np.ndarray, times: np.ndarray, weight: float = 0.08, count: int = 1) -> np.ndarray

return [k,t,j] paths, preserving alternative initial pose hypotheses; each initial hypothesis retains a distinct branch, and the output contains at most count paths; periodic joints use angular distances and return continuous equivalent angles within supplied limits; if no continuous lift fits the limits, the original bounded path is retained.

python
>>> q = np.array([[[0.], [3.]], [[3.], [0.1]], [[0.2], [3.]]]) >>> trajectorysmoothnesstask().compute_paths(q, np.array([[0., .1], [.1, 0.], [0., .1]]), np.arange(3.)).ravel().tolist() [0.0, 0.1, 0.2]
compute_offset_candidates(q: np.ndarray, samples: int = 16) -> np.ndarray

sample constant joint shifts that preserve every frame's joint limits; full-turn joints need at most one revolution, and extra cubic samples retain small shifts.

init_buffers(device: wp_device_type)

build finite-difference weights and history buffers.

lifecycle

  1. build joint and optional base weights.
  2. build the requested difference stencil.
  3. allocate history and reference trajectories.
active: bool resolve(var_values: varvalues, context: mapping[context, any])

build from the robot and horizon of the trajectory var_values holds, and the helper's values.

set_history(q_history: optional[wp.array], num_candidates: int, history_valid: bool)

set the fixed executed prefix. no-op at order=1, which never reads it.

residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array trajectorylimittask robokit.terms class sparsetask, gradienttask

penalize bound violations with `weight * max(lower - derivative, derivative - upper, 0)`.

derivative orders:

  • 0: position.
  • 1: velocity.
  • 2: acceleration.
  • 3: jerk.

difference schemes:

  • `central`: retimer's five-point derivatives with held endpoints; multiple orders share one task and launch.
  • `forward`: consecutive finite differences without padded endpoints; one order only.

broadcast layouts:

  • bounds/weights: broadcast over joints, with a leading order axis when `order` is a sequence.
  • scalar dt: shared by all plans.
  • warp-vector dt: one per plan, repeated in instance-major order for candidate batches.

time scaling:

  • default: divide each derivative by dt raised to its order.
  • explicit `dt_power`: override the exponent per order.
  • `timing = (frame_segment, segments, time_weight): a bound row's step is its plan's exp(varkey.segment_step)` for its frame's segment, a jacobian column (zero-width bounds keep `dt); time_weight` > 0 costs each second.

unbuilt templates (resolve):

  • `upper` may hold one entry per order; unset bounds default to the robot's position and velocity limits.
  • `lower defaults to the robot's lower position limit and to -upper` for derivatives.
  • `activation` keeps that fraction of each range away from both bounds, indexed by order.
  • `normalize` divides the weights by the bounds.

example

python
>>> task = trajectorylimittask(robot, 33, order=3, lower=-500.0, upper=500.0) # doctest: +skip
robot optional[robot] num_frames optional[int] order union[int, sequence[int]] lower optional[union[float, np.ndarray]] upper optional[union[float, np.ndarray, tuple[any, ...], context]] weight union[float, sequence[float], np.ndarray] dt union[float, wp.array, context] stencil literal['central', 'forward'] dt_power optional[sequence[float]] activation sequence[float] normalize bool name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

device: optional[wp_device_type] timing: optional[tuple[wp.array, int, float]] resolve(var_values: varvalues, context: mapping[context, any])

build a template's robot, horizon, step and bounds from the trajectory var_values holds.

fuse(tasks: sequence[any], dt: any, keep: sequence[any] = ()) -> list[any]

fuse central bounds at dt and all-frame abs position limits into one launch, skipping tasks in keep.

init_buffers(device: wp_device_type) set_dt(dt: union[float, wp.array])

set a positive scalar time step or a float32 warp vector with one entry per plan.

residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write the residual and, when asked, the jacobian values in one launch.

compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array trajectoryretargetingtask robokit.terms class robottask, sparsetask

pairwise position and direction residuals for trajectory retargeting.

robot optional[robot] target_keypoints optional[union[np.ndarray, wp.array, context]] robot_link_indices optional[union[list[int], context]] target_joint_indices optional[union[list[int], context]] pair_indices optional[union[sequence[sequence[int]], np.ndarray, context]] position_weight float angle_weight float target_scale union[float, wp.array, context] name str supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum weight: any = 1.0 parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare kinematics and geometry required by the task.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); populationsolver calls it on every term that is not a residualtask.

residual_weight: optional[union[float, sequence[float], np.ndarray]] compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate normal equations directly from existing sparse rows.

use_mask: bool = false frame_mask: optional[wp.array] = none fill_residual_and_jacobian(var_values: varvalues, out_residual: wp.array, row_offset: int, out_jacobian: optional[wp.array] = none, nnz_offset: int = 0)

write residuals and optional sparse jacobian values into shared buffers.

set_valid_lengths(lengths: union[np.ndarray, wp.array])

set the valid trajectory length for each batch element.

precompute_collision_geometry: str = '' set_robot(robot: robot) device: optional[wp_device_type] target_keypoints: optional[wp.array] target_scales: optional[wp.array] robot_link_indices: optional[wp.array] target_joint_indices: optional[wp.array] pair_rows: optional[wp.array] pair_cols: optional[wp.array] link_ancestor_masks: optional[wp.array] num_unique_dofs: int all_ancestor_dof_indices: optional[wp.array] num_frames: int active: bool resolve(var_values: varvalues, context: mapping[context, any])

build from the helper's points, links, pairs and scales; warp points and scales are read directly.

init_buffers(device: wp_device_type)

build target, pair, and sparse ancestor buffers.

lifecycle

  1. upload targets and pair indices.
  2. build selected-link ancestor masks.
  3. collect the active actuated columns.
residual_dim: int compute_weighted_residual(var_values: varvalues, *args: object, out_residual: optional[wp.array] = none, row_offset: int = 0, **kwargs: object) -> wp.array compute_sparse_jacobian_pattern(var_values: varvalues, *args: object, offset: int = 0, out_row_indices: optional[wp.array] = none, out_col_indices: optional[wp.array] = none, nnz_offset: int = 0, **kwargs: object) -> sparsitypattern compute_weighted_sparse_jacobian_values(var_values: varvalues, *args: object, out_jacobian_values: optional[wp.array] = none, offset: int = 0, nnz_offset: int = 0, **kwargs: object) -> wp.array","robokit/api-ik":"inverse kinematics inverse kinematics api iksolver robokit.helpers.ik class

ik solver accepting one target link or a sequence, using names or indices.

config iksolverconfig robot robot target_links union[str, int, sequence[union[str, int]]] device optional[wp_device_type] scene optional[warpscene] robot: robot target_link_indices: list[int] num_targets: int num_solutions: int

number of solutions returned per target instance.

set_weight(name: str, value: union[float, sequence[float]])

update a term's weight in-place: scalar for uniform, per-link sequence for terms on the target links.

set_active_joint_mask(joint_mask: sequence[float])

set which actuated joints are active (1.0) or locked (0.0).

set_active_base_mask(base_mask: sequence[float])

set active (1.0)/locked (0.0) base dofs [x,y,z,roll,pitch,yaw]; needs enable_t_world_base=true.

warmup(batch_size: int)

eagerly build the multi-candidate solver for a given batch size.

solve(t_world_target: wp.array, prev_state: optional[robotstate] = none, init_state: optional[robotstate] = none, rest_state: optional[robotstate] = none, out_state: optional[robotstate] = none, init_sample_range: optional[float] = none, base_init_sample_range: optional[sequence[float]] = none, scene_indices: optional[wp.array] = none) -> robotstate

solve ik and return instance-major final-stage solutions shaped (batch * num_solutions, dofs); solver.rank_final=true sorts them best first within each instance.

solve_torch(t_world_target: torch.tensor, prev_state: optional[robotstate] = none, init_q: optional[torch.tensor] = none, init_t_world_base: optional[torch.tensor] = none, rest_q: optional[torch.tensor] = none, rest_t_world_base: optional[torch.tensor] = none, init_sample_range: optional[float] = none, base_init_sample_range: optional[sequence[float]] = none) -> ikresulttorch solve_numpy(t_world_target: np.ndarray, prev_state: optional[robotstate] = none, init_state: optional[robotstate] = none, rest_state: optional[robotstate] = none, out_state: optional[robotstate] = none, init_sample_range: optional[float] = none, base_init_sample_range: optional[sequence[float]] = none) -> robotstate compute_costs(state: robotstate, t_world_target: wp.array, prev_state: optional[robotstate] = none, scene_indices: optional[wp.array] = none) -> dict[str, wp.array] compute_metrics(state: robotstate, t_world_target: wp.array, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, out: optional[ikmetrics] = none) -> ikmetrics

task-space accuracy of state against t_world_target, independent of term weights.

compute_metrics_numpy(state: robotstate, t_world_target: np.ndarray, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05) -> ikmetrics

compute_metrics for numpy targets shaped (7,), (batch, 7) or (batch, num_targets, 7).

iksolverconfig robokit.helpers.ik class

robot-free ik configuration; build it with iksolver(config, robot, target_links).

terms list[residualtask] score_terms list[residualtask] solver populationsolverconfig sampler robertssamplerconfig base_init_sample_range tuple[float, float, float] enable_t_world_base bool base_active_mask sequence[float] terms: list[residualtask] = field(default_factory=list)

optimization task templates; ikcontext lists their inputs.

score_terms: list[residualtask] = field(default_factory=list)

task templates that rank candidates at each select without changing optimization; empty ranks by cost.

solver: populationsolverconfig = field(default_factory=_default_ik_solver_config)

candidate schedule and lm settings; the last segment's width is the solutions returned per target.

sampler: robertssamplerconfig = field(default_factory=lambda: robertssamplerconfig(keep_first=true))

joint noise of the initial candidates; scale is a fraction of each joint's range around init_state.

base_init_sample_range: tuple[float, float, float] = (0.1, 0.1, 0.0)

per-axis base translation noise (m) around init_state, for a floating base.

enable_t_world_base: bool = false

optimize the six floating-base dofs along with the joints.

base_active_mask: sequence[float] = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0)

active (1.0) or locked (0.0) base dofs [x, y, z, roll, pitch, yaw]; locking needs enable_t_world_base.

add(term: residualtask, *, name: optional[str] = none) -> iksolverconfig add_score(term: residualtask, *, name: optional[str] = none) -> iksolverconfig task(name: str) -> residualtask

return the term added under name, so a caller can complete a preset stub.

ikresulttorch robokit.helpers.ik class namedtuple q: torch.tensor t_world_base: optional[torch.tensor] = none","robokit/api-motion-plan":"motion planning motion planning api objective configuration gradienttrajectoryoptimizerconfig and mppitrajectoryoptimizerconfig accept terms , a list of residualtask templates. objective weights and cost options are task constructor parameters. use config.task(name) to retrieve a named task; for trajectorytask , configure its dense_task . deepcopy(config) creates an independent preset whose task attributes can be assigned directly. config-level cost-weight arguments have been removed. ik objectives are supplied through motionplannerconfig.goal_ik . motionplanner robokit.helpers.motion_plan class

batched motion planning with goal ik, trajectory optimization stages, and retry.

lifecycle

  1. __init__ copies configuration and constructs goal ik, the optimizer stages, and their retiming.
  2. warmup(batch_size) fixes the batch size and allocates all batch-shaped state.
  3. solve_offline(...), which solve_offline_numpy and solve_offline_torch wrap, places the waypoints, builds candidates, solves and retries trajectories, then retimes them with the last stage's retime and computes motion_time.
  4. solve_online(...) runs a fresh gradient solve with executed-history smoothing, or updates the retained mppi action distribution.
config motionplannerconfig

planner configuration.

robot robot

robot model.

target_links union[str, int, sequence[union[str, int]]]

one target link or a sequence, using names or indices.

scene optional[warpscene]

optional collision scene.

device optional[wp_device_type]

warp device.

warmup(batch_size: int)

fix the planner batch size and allocate its batch-shaped buffers.

set_active_joint_mask(joint_mask: sequence[float])

set which actuated joints ik and trajectory optimization may change; before the first solve it also limits the trajectory collision jacobians to the active joints, which later masks must stay within.

solve_offline(waypoints: sequence[union[wp.array, dict[str, wp.array]]], *, start_t_world_base: optional[wp.array] = none, seed_q: optional[wp.array] = none, scene_indices: optional[wp.array] = none, segment_check_collision: optional[sequence[bool]] = none, segment_fixed_duration: optional[sequence[optional[float]]] = none, segment_locked: optional[sequence[bool]] = none, attached_objects: optional[sequence[attachedobject]] = none, fixed_relative_poses: optional[sequence[fixedrelativepose]] = none) -> motionplanresult[wp.array]

plan batched warp trajectories through waypoints, start first and goal last; the numpy and torch apis wrap it.

lifecycle

  1. parse segments: each segment's world collision flag, fixed duration and lock.
  2. solve waypoint ik: each pose but a final goal by goal ik (scene collision, no self collision), resting at its neighbors' blend.
  3. create split: each segment's frames by its duration, else evenly, then the locked frames and collision.
  4. solve: _solve_offline_attempt with retries, one cuda graph under cuda_graph=\"solve\" but for durations; it builds each guess's goal by goal ik, its later poses' answers nearest its neighbors' blend, and straight lines through its waypoints, on frames resplit by the time each line needs; after the first stage, several segments resplit their frames again.
  5. retime: every plan under the last stage's retime, its fixed segments held still, and its motion time.
solve_offline_numpy(waypoints: sequence[union[np.ndarray, dict[str, np.ndarray]]], *, start_t_world_base: optional[np.ndarray] = none, seed_q: optional[np.ndarray] = none, scene_indices: optional[np.ndarray] = none, segment_check_collision: optional[sequence[bool]] = none, segment_fixed_duration: optional[sequence[optional[float]]] = none, segment_locked: optional[sequence[bool]] = none, attached_objects: optional[sequence[attachedobject]] = none, fixed_relative_poses: optional[sequence[fixedrelativepose]] = none) -> motionplanresult[np.ndarray]

numpy wrapper for solve_offline: a pose waypoint is a dict of target links to 4x4 or [x, y, z, qw, qx, qy, qz] poses, unbatched values broadcast across queries, and the result holds owned copies.

solve_offline_torch(waypoints: sequence[union[torch.tensor, dict[str, torch.tensor]]], *, start_t_world_base: optional[torch.tensor] = none, seed_q: optional[torch.tensor] = none, scene_indices: optional[torch.tensor] = none, segment_check_collision: optional[sequence[bool]] = none, segment_fixed_duration: optional[sequence[optional[float]]] = none, segment_locked: optional[sequence[bool]] = none, attached_objects: optional[sequence[attachedobject]] = none, fixed_relative_poses: optional[sequence[fixedrelativepose]] = none) -> motionplanresult[torch.tensor]

torch wrapper for solve_offline, as solve_offline_numpy with 4x4 pose matrices; plans without waypoint ik stay on device.

solve_online(start_state: robotstate, *, t_world_target: optional[wp.array] = none, target_q: optional[wp.array] = none, online_state: optional[onlinestate] = none, scene_indices: optional[wp.array] = none) -> tuple[robotstate, onlinestate]

solve one online planning update.

solve_online_numpy(start_q: np.ndarray, *, start_t_world_base: optional[np.ndarray] = none, t_world_target: optional[np.ndarray] = none, target_q: optional[np.ndarray] = none, online_state: optional[onlinestate] = none, scene_indices: optional[np.ndarray] = none) -> motionplanresult[np.ndarray]

numpy wrapper for solve_online.

compute_metrics(state: robotstate, *, t_world_target: optional[wp.array] = none, target_q: optional[wp.array] = none, scene_indices: optional[wp.array] = none, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, q_threshold: float = 0.05, penetration_threshold_mm: float = 5.0, out: optional[motionplanmetrics[wp.array]] = none) -> motionplanmetrics[wp.array]

endpoint accuracy of state against exactly one pose or joint goal, independent of term weights.

compute_metrics_numpy(q_traj: np.ndarray, *, t_world_base_traj: optional[np.ndarray] = none, t_world_target: optional[np.ndarray] = none, target_q: optional[np.ndarray] = none, scene_indices: optional[np.ndarray] = none, position_threshold_m: float = 0.005, orientation_threshold_rad: float = 0.05, q_threshold: float = 0.05, penetration_threshold_mm: float = 5.0) -> motionplanmetrics[np.ndarray]

compute_metrics for numpy inputs, returning numpy arrays.

motionplannerconfig robokit.helpers.motion_plan class

configuration for offline or online motion planning.

num_timesteps int dt float max_attached_spheres int max_fixed_relative_poses int fixed_relative_pose_weight tuple[float, float] acceleration_limit float jerk_limit float duration_weight float goal_ik iksolverconfig init_sample_range float init_detour_samples tuple[int, int] stages tuple[union[gradienttrajectoryoptimizerconfig, mppitrajectoryoptimizerconfig], ...] stage_dt_scale float stage_retime optional[retimeconfig] stage_retries int stage_retry_iters int stage_retry_dt_growth float max_retries int retime optional[retimeconfig] resplit_waypoints bool cuda_graph literal['none', 'stages', 'solve'] num_timesteps: int = 32

steps per plan; a plan has one more frame.

dt: float = 0.25

planning step (s).

max_attached_spheres: int = 0

collision spheres reserved on each target link for attached_objects, which every solve places there.

max_fixed_relative_poses: int = 0

link pairs reserved for fixed_relative_poses, which every solve sets.

fixed_relative_pose_weight: tuple[float, float] = (3000.0, 1000.0)

position and rotation weights of fixed_relative_poses, per m and per rad of drift.

acceleration_limit: float = 15.0

joint acceleration limit (rad/s²): the stages' bounds and ranking, mppi rollouts, retimes and resplits.

jerk_limit: float = 500.0

joint jerk limit (rad/s³): the stages' bounds and ranking, retimes and resplits.

duration_weight: float = 0.0

0: the last stage also optimizes each free segment's duration, from the query's step, at this cost per second

of plan time; its derivative bounds use the optimized durations, which the returned retime only lengthens.

goal_ik: iksolverconfig = field(default_factory=build_default_motion_plan_ik_config)

goal ik, which turns pose goals into joint goals; fewer goals than trajectory candidates repeat across them.

init_sample_range: float = 0.2

spread of the sampled seed candidates, as a fraction of each joint range; mppi stages sample their own.

init_detour_samples: tuple[int, int] = (16, 64)

random-midpoint detours per detour candidate (first round, retries); the shortest collision-free one seeds it.

stages: tuple[union[gradienttrajectoryoptimizerconfig, mppitrajectoryoptimizerconfig], ...] = field(default_factory=lambda: (build_default_gradient_trajectory_optimizer_config(),))

optimizer stages, run in order on the candidate population every planning round.

stage_dt_scale: float = 0.0

0: each later stage optimizes at this multiple of the previous stage's fastest feasible retimed step.

stage_retime: optional[retimeconfig] = none

retime between stages (stage_dt_scale); its minimum_dt floors the later stages' steps.

stage_retries: int = 0

reruns of a failed last stage whose predecessor passed, at a growing step; each query keeps its better plan.

stage_retry_iters: int = 0

iterations of each stage retry.

stage_retry_dt_growth: float = 1.025

factor each stage retry grows the step by.

max_retries: int = 1

rounds retrying failed plans with new goals and seeds; needs a gradient first stage with several candidates.

retime: optional[retimeconfig] = none

retime of the returned plan; none keeps the planning step.

resplit_waypoints: bool = true

resplit a waypoint plan's frames by the time each part needs, so a short segment takes fewer: its straight lines' before the solve, and its paths' after the first stage, which the later gradient stages smooth; false keeps the even split.

cuda_graph: literal['none', 'stages', 'solve'] = 'stages'

cuda graphs: none, each stage's and goal ik's solve, or the whole numpy solve with its device-side retries; a capture makes a planner's first solve take seconds longer.

motionplanresult robokit.helpers.motion_plan class generic[arrayt]

planner output with offline timing or online state.

offline: q_traj (batch, frames, dofs) with frames = num_timesteps + 1, motion_time (batch,) (s) and waypoint_indices each waypoint's frame in q_traj (one per waypoint, 0 first, the same for every row).

q_traj arrayt t_world_base_traj optional[arrayt] motion_time optional[arrayt] online_state optional[onlinestate] waypoint_indices optional[tuple[int, ...]] segment_fixed_duration optional[tuple[optional[float], ...]] segment_duration optional[arrayt] q_traj: arrayt t_world_base_traj: optional[arrayt] = none motion_time: optional[arrayt] = none online_state: optional[onlinestate] = none waypoint_indices: optional[tuple[int, ...]] = none segment_fixed_duration: optional[tuple[optional[float], ...]] = none segment_duration: optional[arrayt] = none interpolate(dt: float, speed_scale: float = 1.0) -> arrayt

joint trajectories sampled every dt (s) or slightly less across motion_time.

each segment between waypoints spreads ceil(its time / dt) steps evenly over its frames, so every waypoint is a sample; a plan then holds its last frame, so a batch shares one length. a segment with a fixed segment_fixed_duration takes that time; the others run at the plan's retimed step or segment_duration.

example

python
>>> import numpy as np >>> q_traj = np.array([[[0.0], [1.0], [2.0]]], np.float32) >>> motionplanresult(q_traj, motion_time=np.array([1.0], np.float32)).interpolate(0.25)[0, :, 0] array([0. , 0.5, 1. , 1.5, 2. ], dtype=float32)
","robokit/api-sim-mpc":"sim mpc sim mpc api simmpc robokit.helpers.sim_mpc class task

receding-horizon mppi over simulated rollouts, for config.batch_size instances.

lifecycle

  1. __init__ resizes sim into the rollout and validation worlds and captures their graphs on the first plan.
  2. plan(data, t0) refines every instance's plan from its state and returns the next ctrl_steps commands.
  3. the caller executes them on its own simulator (or execute does on one), then plans again at t0 + ctrl_steps.

example

python
>>> import mujoco >>> from robokit.helpers.sim_mpc import simmpcconfig >>> from robokit.sim import mjwarpsim >>> from robokit.terms import sensortask >>> xml = ( ... '<mujoco><option timestep=\"0.01\"/><worldbody><body><joint name=\"x\" type=\"slide\" damping=\"5\"/>' ... '<geom size=\"0.05\" mass=\"1\"/></body></worldbody><actuator><position joint=\"x\" kp=\"50\"/></actuator>' ... '<sensor><jointpos name=\"x\" joint=\"x\"/></sensor></mujoco>' ... ) >>> model = mujoco.mjmodel.from_xml_string(xml) >>> config = simmpcconfig(num_samples=32, horizon_steps=20, node_steps=10, ctrl_steps=10, max_iterations=2) >>> config = config.add(sensortask(np.full((60, 1), 0.3), {\"x\": 100.0})) >>> mpc = simmpc(config, mjwarpsim(model, 1), np.zeros((60, 1))) >>> commands, infos = mpc.plan(mujoco.mjdata(model), 0) # execute these, then plan again at step 10 >>> commands.shape, mpc.sims[\"rollout\"].nworld ((10, 1, 1), 31) >>> (rollout,), (plans,) = mpc.execute(mjwarpsim(model, 1), 40) # or run the loop on a simulator >>> rollout[\"qpos\"].shape, len(plans) ((40, 1), 4) >>> # \"auto\" picked 4x on the cpu (2x on an rtx 3090): every rollout's first quarter steps at 10 ms, the rest at 40 ms >>> mpc.stages # xdoctest: +ignore_want [simmpcstage(iters=2, dt=[(0.25, none), (1.0, 0.04)])]
config simmpcconfig

the settings, with the cost terms (config.add), the node noise (ctrl_std) and command bounds.

sim sim

the planning simulator, e.g. mjwarpsim(model, 1); for scenes that differ, one scene per instance.

ctrl_ref np.ndarray

the reference commands the plans offset, (t, nu) or (batch_size, t, nu).

supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

resolve(var_values: varvalues, context: mapping[context, any])

swap each context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> task = step(dt=(inputs.step, 2.0)) >>> task.resolve(none, {inputs.step: 0.5}) # the base swaps placeholders only >>> task.dt (0.5, 2.0)
initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each node row's rollout cost: draws in the rollout worlds, moved plans in the validation worlds.

plan(data: any, t0: int) -> tuple[wp.array, list[dict]]

refine every instance's plan from its state at sim step t0; return its next ctrl_steps commands.

execute(sim: sim, num_steps: int, callback: optional[callable[[list[dict]], none]] = none) -> tuple[list[dict[str, np.ndarray]], list[list[dict]]]

run the planner in closed loop on sim, one world per instance, for num_steps sim steps: each control period plans from sim's state, then steps sim through the commands, mapped by the config's control_map and clipped to the controls mujoco applies, and calls callback with every instance's plan info.

simmpcconfig robokit.helpers.sim_mpc class

simmpc's per-task settings; times are in sim steps.

example

python
>>> config = simmpcconfig(num_samples=64, horizon_steps=30) >>> config.num_samples, config.node_steps (64, 50) >>> simmpcconfig(stages=[simmpcstage(3, dt=0.04), simmpcstage(1)]).max_iterations # 3 coarse iterations, 1 fine 4
terms list[tuple[task, float, optional[float]]] ctrl_std any ctrl_range optional[np.ndarray] qpos_std any qvel_std any control_map optional[callable[[sim, wp.array], none]] batch_size int num_samples int num_replicas int horizon_steps int node_steps int ctrl_steps int max_iterations int init_iterations int stages optional[list[simmpcstage]] min_improvement float patience int std_growth float noise_decay float interpolation union[literal['linear', 'cubic', 'zero'], np.ndarray] draw_first_node bool wide_ratio float wide_scale float std_range optional[tuple[float, float]] min_std float std_gamma float elite_ratio float best_draw_margin float settle_steps int terminal_scale float seed int cuda_graph_mode literal['none', 'step'] planner literal['mppi', 'ilqr'] ilqr optional[any] terms: list[tuple[task, float, optional[float]]] = field(default_factory=list)

the cost terms with their running and terminal scales, added with add.

ctrl_std: any = 0.1

node noise per command at the first free node, one value or one per command.

ctrl_range: optional[np.ndarray] = none

(nu, 2) bounds of the commands; none: the actuator ranges mujoco clamps to.

qpos_std: any = 0.0

each replica's start noise on qpos, one value or one per coordinate.

qvel_std: any = 0.0

each replica's start noise on qvel, one value or one per dof.

control_map: optional[callable[[sim, wp.array], none]] = none

control_map(sim, clock) turns the commands in sim.data.ctrl into actuator controls before every step.

batch_size: int = 1

instances planned at once; they share the model and the config.

num_samples: int = 512

draws per iteration, one of them reserved to score the moved plan. a sim step costs about the same up to some hundreds of worlds (about 512 on an rtx 3090) and grows past them, so fill that many before adding iterations.

num_replicas: int = 1

worlds per draw, which average their costs (e.g. over qpos_std noise).

horizon_steps: int = 300

steps each rollout simulates and scores.

node_steps: int = 50

steps between nodes, the points the control offsets are interpolated through.

ctrl_steps: int = 100

steps executed per plan; a multiple of node_steps keeps shifted nodes exact.

max_iterations: int = 12

sampling iterations per plan, at most; with stages, the sum of their iters.

init_iterations: int = 0

if positive, the first plan's iterations instead of max_iterations: the stages' last ones, the first stage run longer or cut.

stages: optional[list[simmpcstage]] = none

coarse to fine: the stages each plan's iterations run in order; the moved plans are scored at the simulator's timestep. none: the first rollouts pick [simmpcstage(max_iterations, [(0.25, none), (1.0, k * timestep)])] for the largest k of 4 and 2 whose draws end within 11% of their spread of the fine ones, else one fine stage.

min_improvement: float = 0.005

stop once the best draw beats the plan by under this, patience times running.

patience: int = 2

iterations under min_improvement in a row that stop the plan.

std_growth: float = 4.0

node noise grows from ctrl_std at the first free node to this multiple at the last.

noise_decay: float = 1.0

iteration i scales the node noise by noise_decay**i.

interpolation: union[literal['linear', 'cubic', 'zero'], np.ndarray] = 'linear'

node interpolation, or a (steps, num_nodes) basis of each step's node weights; \"zero\" also draws the first node.

draw_first_node: bool = false

draw the first node for any interpolation, so a plan can change the command it executes now (predictive sampling, cem).

wide_ratio: float = 0.0

share of each plan's first-round draws taken at wide_scale times the noise, as predictive sampling explores.

wide_scale: float = 6.0 std_range: optional[tuple[float, float]] = none

if set, a plan of one iteration starts from the last plan's refit noise, as cem carries its spread: one scale of the configured noise (root mean square over the drawn nodes), clipped to this range.

min_std: float = 0.001

floor of the node noise.

std_gamma: float = 0.5

share of the draws' weighted spread each iteration moves the node noise toward.

elite_ratio: float = 0.2

share of the cheapest draws whose cost spread is the temperature and whose weighted mean is the moved plan.

best_draw_margin: float = 4.0

execute the best draw instead of the moved plan when the moved plan costs this many temperatures more.

settle_steps: int = 0

unscored zero-control steps before each rollout.

terminal_scale: float = 10.0

cost scale at the horizon's last step, unless add sets a term's own.

seed: int = 0

seed of the node draws and the replicas' initial-state noise.

cuda_graph_mode: literal['none', 'step'] = 'step'

\"step\" replays one captured graph per sim step; \"none\" launches every kernel.

planner: literal['mppi', 'ilqr'] = 'mppi'

\"ilqr\": ilqroptimizer refines commands held for node_steps, max_iterations times a plan, instead of nodes.

ilqr: optional[any] = none

\"ilqr\"'s ilqroptimizerconfig, but max_iter; none: damped (robot costs seldom penalize controls) and cautious.

add(term: task, running_scale: float = 1.0, terminal_scale: optional[float] = none) -> simmpcconfig

add a cost term, scaled by running_scale per step and by terminal_scale (default: the config's) at the horizon's last step; running_scale=0 makes a terminal-only cost.

cartesiancontrol robokit.helpers.sim_mpc class

a simmpc control map: world-frame body twists (the first six commands) to joint velocities by damped least squares, with feedback toward position_ref and q_wxyz_ref; needs scalar joint actuators.

example

python
>>> import mujoco >>> model = mujoco.mjmodel.from_xml_string('<mujoco><worldbody><body name=\"b\"><joint name=\"j\" type=\"slide\"/>' ... '<geom size=\"0.1\"/></body></worldbody><actuator><velocity joint=\"j\"/></actuator></mujoco>') >>> control = cartesiancontrol(model, \"b\", position_gain=[0, 0, 1]) >>> control.dofs.shape (1,)
model mujoco.mjmodel body str position_ref sequence[float] q_wxyz_ref sequence[float] position_gain sequence[float] rotation_gain sequence[float] damping float sim_context robokit.helpers.sim_mpc function

the simcontext values of a simulator's worlds, with its mjm's layout, except clock, num_instances and worlds_per_instance.

sim sim sim robokit.sim class protocol

what mjwarpsim and newton.newtonsim offer: device work only, also in a capture on warp's current stream.

mjm: any

the mujoco.mjmodel whose layout data follows: bodies, joints, sensors (for several scenes, their merge).

nworld: int substeps: int stream: optional[wp.stream]

the cuda stream it launches on (none on the cpu); other gpu work on it stays ordered without host syncs.

data: any

warp arrays named and laid out as in mujoco.mjdata, with a leading world axis (nworld, ...).

model: any

mujoco.mjmodel's fields (newtonsim: none), a row per world copied from the shared row on first access.

step()

advance substeps physics steps; data.substep_sensordata[k]: sensordata after substep k.

forward()

recompute the derived quantities (xpos, sensordata, ...) from the current state.

reset(mask: wp.array)

return the worlds where mask is set to the initial state.

resized(nworld: int) -> sim

a new simulator of the same scenes and settings with nworld worlds.

mjwarpsim robokit.sim class

step nworld worlds of model, or nworld[i] of each scene model[i], substeps physics steps per step().

example

python
>>> import mujoco, numpy as np, warp as wp >>> from robokit.sim import mjwarpsim >>> xml = '<mujoco><worldbody><geom type=\"plane\" size=\"1 1 .1\"/>' >>> xml += '<body pos=\"0 0 .5\"><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>' >>> sim = mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=8, substeps=4) >>> sim.model.geom_friction.shape # one row per world, ready to randomize (8, 2) >>> sim.opt.iterations = 5 # from the next step on >>> sim.step() >>> bool((sim.data.qpos.numpy()[:, 2] < 0.5).all()), sim.data.substep_sensordata.shape (true, (4, 8, 0)) >>> sim.reset(wp.array(np.arange(8) < 4)) # the first four worlds back to the start >>> z = sim.data.qpos.numpy()[:, 2] >>> float(z[0]), bool(z[7] < 0.5) (0.5, true) >>> big = mujoco.mjspec.from_string(xml.replace('size=\".1\"', 'size=\".2\"')) >>> mixed = mjwarpsim([mujoco.mjspec.from_string(xml), big], nworld=[3, 5]) # worlds 3 to 7: the big ball >>> (mixed.model.geom_size.numpy()[:, 1, 0] > 0.15).tolist() [false, false, false, true, true, true, true, true] >>> pos = mixed.model.geom_pos.numpy() >>> pos[0, 0, 2] = -1.0 # world 0's floor, a static geom, a meter lower ... >>> mixed.model.geom_pos.assign(pos) >>> mixed.reset(wp.array(np.arange(8) == 0)) # ... from its next reset >>> mixed.data.geom_xpos.numpy()[:2, 0, 2].tolist() [-1.0, 0.0]
model union[mujoco.mjmodel, sequence[mujoco.mjspec]]

a mujoco.mjmodel, or mujoco.mjspec scenes that may differ in geoms, meshes, inertias, sites, pairs.

nworld union[int, sequence[int]]

the worlds, or each scene's; each world gets its scene's values.

data optional[mujoco.mjdata]

the state reset() restores, else keyframe key's, else the defaults; several scenes: their defaults.

substeps int njmax optional[int] nconmax optional[int] key optional[str] device

the warp device; on a gpu each call runs as one cached cuda graph.

resized(nworld: int) -> mjwarpsim

a new simulator of this one's scenes and settings with nworld worlds, split evenly over several scenes.

build_coarse_spec(spec: mujoco.mjspec, config: coarseconfig) -> mujoco.mjspec

a copy of spec with config's cheaper geometry and physics, e.g. for planning or early rl training.

example

python
>>> spec = mujoco.mjspec.from_string( ... '<mujoco><worldbody><body name=\"d\"><freejoint/><geom name=\"a\" size=\"0.1\"/><geom size=\"0.1\"/></body>' ... '<geom name=\"b\" size=\"0.1\" pos=\"1 0 0\"/><geom name=\"c\" size=\"0.1\" pos=\"0 0 -0.21\"/></worldbody>' ... '<contact><pair geom1=\"a\" geom2=\"b\"/><pair geom1=\"a\" geom2=\"c\"/></contact></mujoco>' ... ) >>> coarse = mjwarpsim.build_coarse_spec(spec, coarseconfig(qpos_ref=np.array([[0, 0, 0, 1, 0, 0, 0]]))) >>> coarse.compile().npair # only a-c comes near 1 >>> config = coarseconfig(collide=\"a|c|d\", condim=1, condim_geoms=\"d\", timestep=0.01, pyramidal=true) >>> model = mjwarpsim.build_coarse_spec(spec, config).compile() >>> model.geom_contype.tolist(), model.geom_condim.tolist() # b, c, a, d's unnamed: b no longer collides ([0, 1, 1, 1], [3, 3, 3, 1]) >>> model.opt.timestep, model.opt.cone (0.01, 0) >>> config = coarseconfig(min_timeconst=0.01, min_impedance_width=0.002) >>> model = mjwarpsim.build_coarse_spec(spec, config).compile() >>> model.geom_solref[:, 0].tolist(), model.geom_solimp[:, 2].tolist() # from 0.02 and 0.001 by default ([0.02, 0.02, 0.02, 0.02], [0.002, 0.002, 0.002, 0.002]) >>> config = coarseconfig(iterations=2, ls_iterations=4, integrator=\"implicitfast\") >>> opt = mjwarpsim.build_coarse_spec(spec, config).option >>> opt.iterations, opt.ls_iterations, opt.integrator == mujoco.mjtintegrator.mjint_implicitfast (2, 4, true)
set_const()

recompute constants derived from masses and inertias, per world, after randomizing them or body_ipos.

build_entity(prefix: str, soft_joint_pos_limit_factor: float = 1.0) -> entity

the robokit.sim.mjentity.entity named prefix*, its default pose the initial qpos.

example

python
>>> xml = '<mujoco><worldbody><body name=\"r/base\" pos=\"0 0 .5\"><freejoint name=\"r/root\"/><geom size=\".1\"/>' >>> xml += '<body><joint name=\"r/a\"/><geom size=\".1\"/></body></body></worldbody></mujoco>' >>> robot = mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=2).build_entity(\"r/\") >>> robot.joint_names, robot.data.default_root_state[:3].tolist() (['a'], [0.0, 0.0, 0.5])
build_contact_sensor(name: str, track_air_time: bool = false) -> contactsensor

a robokit.sim.mjsensor.contactsensor of the contact sensors named {name}_{primary}_{found or force}.

example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom name=\"ball\" size=\".1\"/></body></worldbody><sensor>' >>> xml += '<contact name=\"touch_ball_found\" geom1=\"ball\" data=\"found\"/></sensor></mujoco>' >>> mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=2).build_contact_sensor(\"touch\").primary_names ['ball']
get_sensor(name: str) -> any

(nworld, dim): sensor name's readings, a zero-copy torch view of data.sensordata.

example

python
>>> xml = '<mujoco><worldbody><body name=\"b\" pos=\"0 0 .5\"><freejoint/><geom size=\".1\"/></body></worldbody>' >>> xml += '<sensor><framepos name=\"p\" objtype=\"body\" objname=\"b\"/></sensor></mujoco>' >>> mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=2).get_sensor(\"p\").tolist() [[0.0, 0.0, 0.5], [0.0, 0.0, 0.5]]
compute_rays(render_context: any, **rays: any)

refit render_context's bvh to the current poses, then cast rays (mjw.rays arguments) in every world.

example

python
>>> mjm = mujoco.mjmodel.from_xml_string('<mujoco><worldbody><geom type=\"box\" pos=\"0 0 -.5\" size=\"1 1 .5\"/>' ... '</worldbody></mujoco>') >>> rc = mjw.create_render_context(mjm, 2, cam_res=[], render_rgb=[], render_depth=[], render_seg=[]) >>> dist, down = wp.zeros((2, 1), dtype=float), wp.array([[[0, 0, -1]]] * 2, dtype=wp.vec3) # from z = 1 m >>> mjwarpsim(mjm, nworld=2).compute_rays(rc, pnt=wp.array([[[0, 0, 1]]] * 2, dtype=wp.vec3), vec=down, ... geomgroup=wp.types.vector(6, wp.float32)(-1, -1, -1, -1, -1, -1), flg_static=true, ... bodyexclude=wp.array([-1], dtype=int), dist=dist, geomid=wp.zeros((2, 1), dtype=int), ... normal=wp.zeros((2, 1), dtype=wp.vec3)) >>> dist.numpy().tolist() [[1.0], [1.0]]
set_torch_stream()

run torch on warp's stream, so torch and the simulator stay ordered without host syncs.

example

python
>>> import torch >>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>' >>> (sim := mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=2)).set_torch_stream() >>> torch.cuda.current_stream().cuda_stream == sim.stream.cuda_stream true
set_random(field: str, index: tuple[any, ...], low: union[float, sequence[float]], high: union[float, sequence[float]], log: bool = false, add: bool = false, rng: optional[np.random.generator] = none)

set (add: offset) model.<field>[:, *index] to one uniform draw per world from low to high.

example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>' >>> sim = mjwarpsim(mujoco.mjmodel.from_xml_string(xml), nworld=8) >>> sim.set_random(\"geom_friction\", (0, 0), 0.5, 1.0) # sliding friction >>> friction = sim.model.geom_friction.numpy()[:, 0, 0] >>> bool(((friction >= 0.5) & (friction <= 1.0)).all()), len(set(friction.tolist())) (true, 8) >>> sim.set_random(\"body_ipos\", (1,), (-0.01, -0.01, 0.0), (0.01, 0.01, 0.0), add=true) # center of mass >>> float(abs(sim.model.body_ipos.numpy()[:, 1, 2]).max()) 0.0
step()

advance substeps physics steps into substep_sensordata; derived fields then lag qpos by a substep.

kinematics()

recompute xpos, xmat, site_xpos, ... from qpos, e.g. after writing it, as mj_kinematics.

com_pos()

recompute subtree_com (subtree centers of mass), cinert and cdof from the positions, as mj_compos.

forward()

recompute every derived quantity, accelerations and sensordata included, as mj_forward.

reset(mask: wp.array)

return the worlds where mask is set to their initial state, static geoms to their current rows.

set_scene(mask: wp.array, scene: wp.array)

give the worlds where mask is set scene scene[w]'s model rows; their static geoms move at reset().

example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=\".1\"/></body></worldbody></mujoco>' >>> scenes = [mujoco.mjspec.from_string(xml), mujoco.mjspec.from_string(xml.replace(\".1\", \".2\"))] >>> sim = mjwarpsim(scenes, nworld=[2, 2]) >>> sim.set_scene(wp.array([true, false, false, false]), wp.array([1, 0, 0, 0], dtype=int)) >>> (sim.model.geom_size.numpy()[:, 0, 0] > 0.15).tolist() # world 0: the big ball [true, false, true, true]
simcontext robokit.terms class context

values a planner gives its terms for one world set (sim_context); arrays are refilled every step.

statetask robokit.terms class simresidualtask

per step, the weighted qpos error norm plus vel_weight times the qvel error norm, and optional contact terms; its residuals cover the errors, while the contact terms (penetration, missing contacts) are cost-only, so simmpc sees them and ilqroptimizer does not.

example

python
>>> import copy, mujoco >>> from robokit.helpers.sim_mpc import sim_context >>> from robokit.sim import mjwarpsim >>> model = mujoco.mjmodel.from_xml_string( ... '<mujoco><worldbody><body><freejoint/><geom size=\"0.1\"/></body></worldbody></mujoco>' ... ) >>> data = mujoco.mjdata(model) >>> data.qpos[0] = 0.05 # 5 cm off the reference in x >>> context = sim_context(mjwarpsim(model, 1, data)) | { ... simcontext.clock: wp.array([0, 0, 1], dtype=int), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... } >>> qpos_ref, qvel_ref, out = np.tile(model.qpos0, (2, 1)), np.zeros((2, model.nv)), wp.zeros(2, dtype=float) >>> for i, tolerance in enumerate([0.0, 0.01]): ... term = copy.copy(statetask(qpos_ref, qvel_ref, np.ones(model.nv), pose_tolerance=tolerance)) ... term.resolve(none, context) ... term.compute_weighted_cost(none, out_cost=out[i : i + 1]) >>> assert np.allclose(out.numpy(), [0.05, 0.04])
qpos_ref np.ndarray qvel_ref np.ndarray dof_weight np.ndarray vel_weight float penetration_groups optional[tuple[np.ndarray, np.ndarray]] penetration_scale float margin float contacts sequence[tuple[np.ndarray, np.ndarray, np.ndarray, float]] squared bool freeze_reference bool pose_tolerance float supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int compute_weighted_residual(var_values: optional[varvalues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
resolve(var_values: optional[varvalues], context: mapping[context, any])

build the device references, contact groups and buffers for the context's worlds.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array) sensortask robokit.terms class simresidualtask

per step, sum_s w_s * ||sensordata_s - sensor_ref[k]_s||^2 over the sensors in weight (norm: unsquared).

example

python
>>> context = { # what simmpc gives one world at sim step 0 ... simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... simcontext.sensordata: wp.array([[0.5, 0.5, 0.0, 0.0]], dtype=float, device=\"cpu\"), ... simcontext.sensors: [(\"x\", 0, 1), (\"p\", 1, 3)], ... } >>> ref, weight = np.zeros((10, 4)), {\"x\": 2.0, \"p\": [1.0, 0.0, 0.0]} >>> out = wp.zeros(2, dtype=float, device=\"cpu\") >>> for i, norm in enumerate([false, true]): ... term = sensortask(ref, weight, norm=norm) ... term.resolve(none, context) ... term.compute_weighted_cost(none, out_cost=out[i : i + 1]) >>> assert np.allclose(out.numpy(), [2 * 0.5**2 + 1 * 0.5**2, 2 * 0.5 + 1 * 0.5])
sensor_ref np.ndarray weight union[dict[str, union[float, sequence[float]]], np.ndarray] norm bool residual literal['linear', 'angle', 'quaternion', 'yaw', 'yaw_unwrapped', 'heading'] hinge optional[float] freeze_reference bool relative optional[str] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each world's 0.5 |r|^2.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int compute_weighted_residual(var_values: optional[varvalues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
resolve(var_values: optional[varvalues], context: mapping[context, any])

look up the weighted sensors and build the device weights and reference.

controltask robokit.terms class simresidualtask

per step, sum(weight * (ctrl - ctrl_ref[k])**2), or with norm its unsquared norm; ctrl_ref defaults to 0.

example

python
>>> context = { ... simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... simcontext.ctrl: wp.array([[1.0, 2.0]], dtype=float, device=\"cpu\"), ... } >>> out = wp.zeros(2, dtype=float, device=\"cpu\") >>> for i, term in enumerate([controltask([0.5, 1.0]), controltask(2.0, np.ones((10, 2)), norm=true)]): ... term.resolve(none, context) ... term.compute_weighted_cost(none, out_cost=out[i : i + 1]) >>> out.numpy().tolist() [4.5, 2.0]
weight union[float, sequence[float]] ctrl_ref optional[np.ndarray] norm bool supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each world's 0.5 |r|^2.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int compute_weighted_residual(var_values: optional[varvalues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
resolve(var_values: optional[varvalues], context: mapping[context, any])

broadcast the weight to every control and build the device reference.

aligntask robokit.terms class simresidualtask

per step, weight * (1 + u.v / (|u||v|)) with u = sensor - origin and v = target_ref[k] - origin.

example

python
>>> context = { ... simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... simcontext.sensordata: wp.array([[0.0, 0.0, 0.0, 1.0, 0.0, 0.0]], dtype=float, device=\"cpu\"), ... simcontext.sensors: [(\"o\", 0, 3), (\"s\", 3, 3)], ... } >>> term, out = aligntask(\"o\", \"s\", np.tile([0.0, 1.0, 0.0], (10, 1)), weight=2.0), wp.zeros(1, device=\"cpu\") >>> term.resolve(none, context) >>> term.compute_weighted_cost(none, out_cost=out) >>> assert np.isclose(out.numpy()[0], 2.0) # u = (1, 0) is perpendicular to v = (0, 1)
origin str sensor str target_ref np.ndarray weight float components sequence[int] freeze_reference bool supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each world's 0.5 |r|^2.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int compute_weighted_residual(var_values: optional[varvalues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
resolve(var_values: optional[varvalues], context: mapping[context, any])

look up both sensors and build the device target.

contacttask robokit.terms class task

reward geoms' contacts inside their target discs; penalize touches outside every allowed disc.

box, half widths (x, y), replaces each target disc with that axis-aligned box around the target; height, (low, high), rewards only contacts at those heights.

example

python
>>> context = { # one contact of geom 1 at (0, 0), 0.25 apart, at sim step 1 ... simcontext.clock: wp.array([1, 0, 1], dtype=int, device=\"cpu\"), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... simcontext.geoms: [\"floor\", \"foot\"], ... simcontext.contacts: tuple( ... wp.array(x, dtype=t, device=\"cpu\") ... for x, t in [([1], int), ([0], int), ([[0, 1]], wp.vec2i), ([0.25], float), ([[0, 0, 0]], wp.vec3)] ... ), ... } >>> far, allowed = np.ones((1, 1, 2)), np.array([[[[0.0, 0.0, 0.1]]]]) # a disc (x, y, r) around the foot >>> terms = [ ... contacttask([\"foot\"], np.zeros((1, 1, 2)), np.full((1, 2, 1), 0.1), weight=2.0), # radius over time ... contacttask([\"foot\"], far, np.zeros((1, 1)), penalty=0.5, margin=0.3), ... contacttask([\"foot\"], far, np.zeros((1, 1)), allowed, penalty=0.5, margin=0.3), ... contacttask([\"foot\"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0)), # (0, 0) is in the box ... contacttask([\"foot\"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0), height=(0.1, 1.0)), # too low ... ] >>> out = wp.zeros(5, dtype=float, device=\"cpu\") >>> for i, term in enumerate(terms): ... term.resolve(none, context) ... term.compute_weighted_cost(none, out_cost=out[i : i + 1]) >>> assert np.allclose(out.numpy(), [-2.0 * 0.75, 0.5, 0.0, -2.0 * 0.75, 0.0])
geoms sequence[str] target np.ndarray radius np.ndarray allowed optional[np.ndarray] weight float penalty float margin float box optional[sequence[float]] height optional[sequence[float]] supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

resolve(var_values: optional[varvalues], context: mapping[context, any])

look up the geoms and build the device targets and discs.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array) grasptask robokit.terms class simresidualtask

per step, weight[k] times the gripper's distance to body obj plus offset[k], less tolerance, at least 0.

example

python
>>> context = { # the hand at (0.1, 0, 0.2), a box at the origin turned 90 degrees about z ... simcontext.clock: wp.array([0, 0, 1], dtype=int, device=\"cpu\"), ... simcontext.num_instances: 1, ... simcontext.worlds_per_instance: 1, ... simcontext.bodies: [\"world\", \"hand\", \"box\"], ... simcontext.body_position: wp.array([[[0, 0, 0], [0.1, 0, 0.2], [0, 0, 0]]], dtype=wp.vec3, device=\"cpu\"), ... simcontext.body_rotation: wp.array( ... [[np.eye(3), np.eye(3), [[0, -1, 0], [1, 0, 0], [0, 0, 1]]]], dtype=wp.mat33, device=\"cpu\" ... ), ... } >>> offset, out = np.tile([0.0, -0.1, 0.2], (2, 1)), wp.zeros(2, dtype=float, device=\"cpu\") >>> terms = [grasptask(\"hand\", \"box\", offset, np.ones(2)), grasptask(1, 2, offset, np.ones(2), 0.01, false)] >>> for i, term in enumerate(terms): # in the box's frame the hand is on target ... term.resolve(none, context) ... term.compute_weighted_cost(none, out_cost=out[i : i + 1]) >>> assert np.allclose(out.numpy(), [0.0, np.hypot(0.1, 0.1) - 0.01], atol=1e-6)
gripper union[str, int] obj union[str, int] offset np.ndarray weight np.ndarray tolerance union[float, np.ndarray] object_frame bool supports_cuda_graph: bool = true supports_autodiff: bool = true

false when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic jᵀr.

var_key: enum = varkey.robot name: str = ''

label a config gave this term, so config.task(name) finds it again.

robot: any = none

the robot a built task reads; none on a template.

weight: any = 1.0 active: bool

whether the term adds cost; helpers skip templates whose weights are all zero (none weighs 1).

parallel_safe: bool

whether the term may run on its own cuda stream; one that reads another term's results runs all in order.

initial_vars(num_candidates: int, device: any) -> dict[enum, var]

variables this task adds beside the helper's, at their nominal values; usually none.

needs() -> set

return the context members a template reads, including those of the tasks it wraps.

example

python
>>> class inputs(context): ... step = 0 >>> class step(task): ... def __init__(self, dt): ... self.dt = dt >>> step(dt=(inputs.step, 2.0)).needs() == {inputs.step} true
cost_name: str

return the snake-case task name used in cost reports.

dense_task: task

return the per-pose task this term applies, which is the term itself unless it wraps one.

precompute(var_values: varvalues, need_gradient: bool = false)

prepare shared state before this term is evaluated.

compute_weighted_cost(var_values: optional[varvalues], *, out_cost: wp.array)

add each world's 0.5 |r|^2.

residual_weight: optional[union[float, sequence[float], np.ndarray]] device: any = none

device of the task's warp buffers; none before init_buffers.

init_buffers(device: wp_device_type)

allocate warp buffers on device; a task without any keeps none.

residual_dim: int compute_weighted_residual(var_values: optional[varvalues], *, out_residual: wp.array, row_offset: int = 0) -> wp.array compute_weighted_jacobian_analytic(var_values: varvalues, *args: any, out_jacobian: optional[wp.array] = none, row_offset: int = 0, **kwargs: any) -> wp.array compute_weighted_jacobian(var_values: varvalues, *args: any, **kwargs: any) -> wp.array accumulate_normal_equations(var_values: varvalues, *, costs: wp.array, jtj: optional[wp.array] = none, jtr: optional[wp.array] = none)

accumulate this term into shared normal-equation buffers.

lifecycle

  1. prepare term state and reusable buffers.
  2. evaluate residuals and, for a build step, the jacobian.
  3. reduce into cost, jᵀj, and jᵀr.
resolve(var_values: optional[varvalues], context: mapping[context, any])

look up both bodies and build the device schedule.

","robokit/api-humanoid-retargeting":"humanoid retargeting humanoid retargeting api humanoidretargeteronline robokit.helpers.humanoid_retargeting class

online humanoid retargeting with input joints ordered by human_joint_names.

lifecycle

  1. __init__ stores the robot, configuration, and caller-owned scene.
  2. warmup(batch_size) builds batch-shaped buffers and solvers.
  3. solve(t_world_human) advances one batched frame from warp inputs.
config humanoidretargeteronlineconfig robot optional[robot] scene optional[warpscene] device optional[wp_device_type] seed int interaction_task: interactionmeshtask

return the interaction task; set its first frame before warmup and update it before each solve.

warmup(batch_size: int)

fix the online batch size and build its reusable solver state.

solve(t_world_human: wp.array, human_heights: optional[wp.array] = none, *, out: optional[wp.array] = none) -> wp.array

retarget one batched human frame from warp inputs.

lifecycle

  1. validate the shape fixed by warmup(...).
  2. update temporal terms from the previous robot state.
  3. compute targets and candidate states.
  4. solve once, retain the state, and write the requested output buffer.
solve_numpy(t_world_human: np.ndarray, human_heights: optional[np.ndarray] = none) -> np.ndarray

convert numpy inputs, call solve(...), and return a numpy copy.

reset(t_world_base: optional[wp.array] = none)

reset temporal state, optionally from an initial floating-base transform.

humanoidretargeteronlineconfig robokit.helpers.humanoid_retargeting class

a robot's human-to-robot mapping, task templates and per-frame solver; offline retargeting reuses the mapping.

terms list[residualtask] urdf_path optional[str] human_root_name str human_height_assumption float ground_height float collision_spheres_path optional[union[str, path]] scale_table dict[str, float] link_mapping dict[str, linkmapping] correspondence_edges optional[list[correspondenceedge]] interaction_terms list[residualtask] velocity_limit_dt float velocity_clamp_scale float velocity_limit_override optional[sequence[union[int, float]]] solver populationsolverconfig terms: list[residualtask] = field(default_factory=_default_online_terms)

task templates; each names its inputs with humanoidcontext members.

urdf_path: optional[str] = none

robot urdf, loaded when the retargeter gets no robot.

human_root_name: str = 'pelvis'

human joint that places the robot base.

human_height_assumption: float = 1.8

human height in meters when a solve gets no human_heights.

ground_height: float = 0.0

ground height of the human motion, subtracted from every target height.

collision_spheres_path: optional[union[str, path]] = none

robot collision spheres, needed by a weighted self-collision task.

scale_table: dict[str, float] = field(default_factory=dict)

target scale per human joint; absent joints use 1.0.

link_mapping: dict[str, linkmapping] = field(default_factory=dict)

robot link to the human joint it tracks, in target order.

correspondence_edges: optional[list[correspondenceedge]] = none

link vectors the correspondence task drives toward human joint vectors; none is off (online only).

interaction_terms: list[residualtask] = field(default_factory=list)

interaction-mesh task templates, built at construction so the first frame is set before warmup; empty is off.

velocity_limit_dt: float = 1.0 / 30.0

time between frames, for the velocity limits and the output clamp.

velocity_clamp_scale: float = 0.6

clamp each output step at this fraction of the velocity limits; 0 is off.

velocity_limit_override: optional[sequence[union[int, float]]] = none

joint velocity limits in rad/s, replacing the urdf's; none uses the urdf's.

solver: populationsolverconfig = field(default_factory=_default_retargeting_solver)

candidate schedule and optimizers of each frame's solve.

add(term: residualtask, *, name: optional[str] = none) -> humanoidretargeteronlineconfig

append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = humanoidretargeteronlineconfig(terms=[]).add(configurationtask(weight=0.1), name=\"rest\") >>> config.task(\"rest\").weight 0.1
task(name: str) -> residualtask

return a named task; raise keyerror when absent.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = humanoidretargeteronlineconfig(terms=[]).add(configurationtask(weight=0.2), name=\"rest\") >>> config.task(\"rest\").weight 0.2
human_joint_names: tuple[str, ...]

return the ordered human joints expected by the solve apis.

example

python
>>> import numpy as np >>> config = humanoidretargeteronlineconfig( ... link_mapping={\"torso\": linkmapping(\"spine\", np.zeros(3), np.zeros(4))}, ... ) >>> config.human_joint_names # mapped joints first, then the root ('spine', 'pelvis')
target_arrays(human_joint_names: sequence[str]) -> targetarrays

resolve link_mapping in input human_joint_names order for both solvers' compute_targets_kernel arrays.

example

python
>>> import numpy as np >>> config = humanoidretargeteronlineconfig( ... link_mapping={ ... \"torso\": linkmapping(\"spine\", np.zeros(3), np.zeros(4)), ... \"hip\": linkmapping(\"pelvis\", np.zeros(3), np.zeros(4)), ... }, ... scale_table={\"spine\": 0.9}, ... ) >>> arrays = config.target_arrays(config.human_joint_names) >>> arrays.joint_indices.tolist(), arrays.scales.tolist() ([0, 1], [0.8999999761581421, 1.0]) >>> arrays.root_joint_index, arrays.root_target_index (1, 1) >>> arrays.rotation_offsets[0].tolist() # zero offset normalizes to identity [1.0, 0.0, 0.0, 0.0]
from_yaml(yaml_path: union[str, path]) -> humanoidretargeteronlineconfig to_dict() -> dict to_yaml(yaml_path: union[str, path]) load_robot(load_meshes: bool = false) -> robot

load the config's robot, with its collision spheres when the config names them.

humanoidretargeteroffline robokit.helpers.humanoid_retargeting class

whole-clip retargeting with input joints ordered by human_joint_names.

lifecycle

  1. __init__ stores the robot and configuration.
  2. warmup(batch_size, num_frames) builds shape-specific buffers and optimizers.
  3. solve(t_world_human) retargets one fixed-shape warp trajectory batch.
config humanoidretargeteronlineconfig offline_config humanoidretargeterofflineconfig robot optional[robot] device optional[wp_device_type] warmup(batch_size: int, num_frames: int)

build and cache all state for (batch_size, num_frames).

solve(t_world_human: wp.array, valid_lengths: optional[wp.array] = none, human_heights: optional[wp.array] = none, *, out: optional[wp.array] = none, target_overrides: optional[dict[str, np.ndarray]] = none) -> wp.array

retarget one padded [b, t, j] warp trajectory batch.

lifecycle

  1. validate the shape fixed by warmup(...).
  2. compute all frame targets and independent ik warm starts.
  3. reset the cached trajectory state and valid-frame masks.
  4. solve once and write the requested padded output buffer.
solve_numpy(t_world_human: np.ndarray, valid_lengths: optional[np.ndarray] = none, human_heights: optional[np.ndarray] = none, *, target_overrides: optional[dict[str, np.ndarray]] = none) -> np.ndarray

convert padded [b, t, j, 7] numpy inputs, warm up for their shape, solve, and return a numpy copy.

humanoidretargeterofflineconfig robokit.helpers.humanoid_retargeting class

whole-clip optimizer settings; the paired online config supplies the mapping and velocity limits.

terms list[residualtask] warm_start iksolverconfig solver lmoptimizerconfig terms: list[residualtask] = field(default_factory=_default_offline_terms)

trajectory task templates; tracking weights are per link, and self-collision costs o(pairs) per frame.

warm_start: iksolverconfig = field(default_factory=lambda: iksolverconfig(enable_t_world_base=true, solver=populationsolverconfig(stages=[stage(6, 4, lmoptimizerconfig(lm_lambda=1.5)), stage(3, 1)])).add(positiontask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=10.0)).add(rotationtask(frame_index=ikcontext.target_links, t_world_target=ikcontext.target, weight=5.0)).add(positionlimit(weight=30.0)))

per-frame ik that seeds the trajectory.

solver: lmoptimizerconfig = field(default_factory=lambda: lmoptimizerconfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))

trajectory solver.

add(term: residualtask, *, name: optional[str] = none) -> humanoidretargeterofflineconfig

append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = humanoidretargeterofflineconfig(terms=[]).add(configurationtask(weight=0.1), name=\"rest\") >>> config.task(\"rest\").weight 0.1
task(name: str) -> residualtask

return a named task; raise keyerror when absent.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = humanoidretargeterofflineconfig(terms=[]).add(configurationtask(weight=0.2), name=\"rest\") >>> config.task(\"rest\").weight 0.2
from_yaml(yaml_path: union[str, path]) -> humanoidretargeterofflineconfig to_yaml(yaml_path: union[str, path])","robokit/api-hand-retargeting":"hand retargeting hand retargeting api handretargeteronline robokit.helpers.hand_retargeting class

retarget point streams; reference_origin=\"wrist\" centers floating hands internally, but i/o stays world-frame.

temporal cost:

  • first frame after warmup/reset: none.
  • later frames: smooth against the previous solution, independently of the initial guess.

example

python
>>> from robokit.robo.robot_spec import robotspec >>> from robokit.utils.ee_coord_utils import manopth_hand_coord_spec as coords >>> from robokit.opt.population_solver import populationsolverconfig, stage >>> from robokit.opt.lm_optimizer import lmoptimizerconfig >>> from robokit.utils.warp_utils import wp_vec7 >>> urdf = '''<robot name=\"finger\"><link name=\"palm\"/><link name=\"tip\"/> ... <joint name=\"finger\" type=\"revolute\"><parent link=\"palm\"/><child link=\"tip\"/> ... <origin xyz=\"0 0.03 0\"/><axis xyz=\"0 0 1\"/> ... <limit lower=\"0\" upper=\"1\" effort=\"1\" velocity=\"1\"/></joint></robot>''' >>> robot = robot(robotspec.parse(urdf, load_meshes=false, mesh_dir=none)) >>> spec = handspec(true, (\"tip\", \"wrist\"), {\"tip\": \"tip\", \"wrist\": \"palm\"}, ... ((\"tip\",),), \"wrist\", (\"tip\",), coords) >>> config = handretargeteronlineconfig(reference_origin=\"wrist\", ... solver=populationsolverconfig(stages=[stage(2, optimizer=lmoptimizerconfig())], ... cuda_graph_mode=\"none\")) >>> config.task(\"positions\").weight = {\"tip\": 24.0, \"wrist\": 0.1} >>> solver = handretargeteronline(config, robot, spec, device=\"cpu\") >>> solver.warmup(1) >>> points = np.array([[[1, 2.03, 3], [1, 2, 3]]], dtype=np.float32) >>> packed = solver.solve_numpy(points) >>> packed.shape (1, 8) >>> output = wp.empty((1, 8), dtype=wp.float32, device=\"cpu\") >>> solver.solve(wp.from_numpy(points, dtype=wp.float32, device=\"cpu\"), out=output) is output true >>> state = robot.state(q=wp.from_numpy(packed[:, 7:].copy(), dtype=wp.float32, device=\"cpu\"), ... t_world_base=wp.from_numpy(packed[:, :7].copy(), dtype=wp_vec7, device=\"cpu\")) >>> all(np.isfinite(cost.numpy()).all() for cost in solver.compute_costs(state).values()) true >>> solver.reset()
config handretargeteronlineconfig

online solver, objective, filtering, and sampling settings.

robot robot

loaded robot model; self-collision skip pairs come from its spec (robot.load(self_collision_ignore_path=...)).

spec handspec

ordered semantic point topology.

device optional[wp_device_type]

warp device. the first cuda device is used when available.

warmup(batch_size: int) -> none

build all batch-shaped terms, buffers, and solver state.

solve(target_points: wp.array, init_state: optional[robotstate] = none, out: optional[wp.array] = none) -> wp.array

retarget one batched frame.

solve_numpy(target_points: np.ndarray, init_state: optional[robotstate] = none) -> np.ndarray

numpy wrapper for solve().

reset() -> none

clear all streaming history and disable smoothness until a previous frame exists.

compute_costs(state: robotstate) -> dict[str, wp.array]

evaluate the current targets for a caller-provided robot state.

handretargeteronlineconfig robokit.helpers.hand_retargeting class

frame-level hand-retargeting configuration.

terms list[residualtask] pinch_correspondences tuple[_correspondence, ...] target_scale float target_ema_alpha float output_ema_alpha float sampler robertssamplerconfig base_init_sample_range tuple[float, float, float] solver populationsolverconfig pinch_threshold float pinch_release_threshold float reference_origin literal['world', 'wrist'] terms: list[residualtask] = field(default_factory=_default_online_terms)

task templates built at warmup; handcontext lists their inputs.

pinch_correspondences: tuple[_correspondence, ...] = ()

vector rows whose target shrinks to near zero while their two targets pinch.

target_scale: float = 1.0

scale from human to robot hand size applied to vector targets; pinched rows keep their own length.

target_ema_alpha: float = 1.0

ema weight of the newest vector and direction targets, in (0, 1]; 1 disables smoothing.

output_ema_alpha: float = 1.0

ema weight of the newest output joints, in (0, 1]; 1 disables smoothing.

sampler: robertssamplerconfig = field(default_factory=lambda: robertssamplerconfig(keep_first=true))

joint noise around the previous solution; scale is a fraction of each joint's range.

base_init_sample_range: tuple[float, float, float] = (0.1, 0.1, 0.0)

per-axis base translation noise (m) around the previous solution of a floating hand.

solver: populationsolverconfig = field(default_factory=_online_solver)

candidate schedule and lm settings of each frame's solve.

pinch_threshold: float = 0.03

target distance (m) below which a pinch pair latches.

pinch_release_threshold: float = 0.05

target distance (m) above which a latched pinch pair releases.

reference_origin: literal['world', 'wrist'] = 'world'

solve floating hands relative to the target wrist position (\"wrist\") or in world; i/o frames are unchanged.

add(term: residualtask, *, name: optional[str] = none) -> handretargeteronlineconfig

append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = handretargeteronlineconfig(terms=[]).add(configurationtask(weight=0.1), name=\"rest\") >>> config.task(\"rest\").weight 0.1
task(name: str) -> residualtask

return a named task; raise keyerror when absent.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = handretargeteronlineconfig(terms=[]).add(configurationtask(weight=0.2), name=\"rest\") >>> config.task(\"rest\").weight 0.2
handretargeteroffline robokit.helpers.hand_retargeting class

retarget trajectory batches in handspec.target_names order by solving config.terms over handcontext inputs.

config handretargeterofflineconfig

trajectory, contact, and solver settings.

robot robot

loaded robot model.

spec handspec

ordered semantic point topology.

scene optional[warpscene]

optional caller-owned collision scene.

device optional[wp_device_type]

warp device. the first cuda device is used when available.

scene_indices optional[wp.array]

optional static (batch,) or per-frame (batch, frames) scene mapping.

warmup(batch_size: int, num_frames: int) -> none

build buffers and the config's tasks, and capture the solver for one trajectory shape.

set_valid_lengths(lengths: np.ndarray) -> none

mask padded frames and temporal edges in every task.

set_target_scales(scales: np.ndarray) -> none

set one positive pairwise target scale per warmed trajectory without rebuilding the solver.

example

python
>>> from robokit.helpers.full_body_retargeting import fullbodyretargeter >>> from robokit.helpers.hand_retargeting.presets.inspire import offline, spec >>> solver = handretargeteroffline(offline, fullbodyretargeter().hand_robot(\"right\"), spec) >>> solver.warmup(2, 3) >>> solver.set_target_scales(np.array([0.9, 1.2]))
solve(target_points: wp.array, root_quat_wxyz: optional[wp.array] = none, init_state: optional[robotstate] = none, out: optional[wp.array] = none) -> wp.array

retarget one warp trajectory batch.

solve_numpy(target_points: np.ndarray, root_quat_wxyz: optional[np.ndarray] = none, init_state: optional[robotstate] = none) -> np.ndarray

numpy wrapper for solve().

solve_with_contact(target_points: wp.array, contact_points: wp.array, contact_mask: wp.array, init_state: optional[robotstate] = none, local_contact_points: optional[wp.array] = none, out: optional[wp.array] = none, surface_contact_mask: optional[wp.array] = none) -> wp.array

retarget with world-frame contacts; an init_state anchors the solution and its motion to that trajectory.

solve_with_contact_numpy(target_points: np.ndarray, contact_points: np.ndarray, contact_mask: np.ndarray, init_state: optional[robotstate] = none, local_contact_points: optional[np.ndarray] = none, surface_contact_mask: optional[np.ndarray] = none) -> np.ndarray

numpy wrapper for solve_with_contact().

handretargeterofflineconfig robokit.helpers.hand_retargeting class

one whole-trajectory problem; contact_config and refine_config derive the contact ones from tracking.

terms list[residualtask] target_scale float optimize_base bool active_joint_names optional[tuple[str, ...]] locked_prefix_frames int solver lmoptimizerconfig terms: list[residualtask] = field(default_factory=_default_offline_terms)

task templates of the tracking solve; handcontext lists their inputs.

target_scale: float = 1.0

scale from human to robot hand size of each trajectory's pairwise targets until set_target_scales.

optimize_base: bool = true

optimize a floating hand's base trajectory; false keeps the initial one.

active_joint_names: optional[tuple[str, ...]] = none

joints the solve moves; none moves every joint.

locked_prefix_frames: int = 0

leading frames whose joints keep their initial values; base activity follows optimize_base.

solver: lmoptimizerconfig = field(default_factory=_offline_solver)

lm settings of the whole-trajectory solve.

add(term: residualtask, *, name: optional[str] = none) -> handretargeterofflineconfig

append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = handretargeterofflineconfig(terms=[]).add(configurationtask(weight=0.1), name=\"rest\") >>> config.task(\"rest\").weight 0.1
task(name: str) -> residualtask

return a named task; raise keyerror when absent.

python
>>> from robokit.terms.dense.configuration_task import configurationtask >>> config = handretargeterofflineconfig(terms=[]).add(configurationtask(weight=0.2), name=\"rest\") >>> config.task(\"rest\").weight 0.2
","robokit/api-hand_eye_calibration":"hand-eye calibration hand-eye calibration api handeyecalibrator robokit.helpers.hand_eye_calibration class

solve the camera extrinsic from robot silhouette masks and/or depth maps.

config handeyecalibratorconfig robot robot camera_intrinsic float[torch.tensor, '*obs 3 3'] height int width int render_link_names optional[list[str]] target_link_names optional[union[list[str], list[list[str]]]] last_q: optional[torch.tensor] solve(initial_extrinsic: float[torch.tensor, '4 4'], target_masks: optional[float[torch.tensor, 'n_obs height width']] = none, target_depths: optional[float[torch.tensor, 'n_obs height width']] = none, observation_weights: optional[float[torch.tensor, n_obs]] = none, q: optional[float[torch.tensor, '*batch num_dofs']] = none, t_mount_base: optional[float[torch.tensor, 'n_obs 4 4']] = none, keypoint_links: optional[list[str]] = none, target_keypoints: optional[torch.tensor] = none, keypoint_weights: optional[torch.tensor] = none) -> float[torch.tensor, '4 4']

solve camera extrinsics from initial_extrinsic.

lifecycle

  1. build the solver for new observations, or reuse stored data.
  2. reset variables and sample camera or joint candidates.
  3. optionally initialize q from keypoints, then run native population lm.
  4. retain the best result and restart if mask mismatch remains high.

data:

  • any target supplied: replace data and rebuild the solver.
  • no targets supplied: reuse stored data.
handeyecalibratorconfig robokit.helpers.hand_eye_calibration class

eager fitting with pyramid levels, cost terms and candidate sampling.

example

python
>>> config = handeyecalibratorconfig(optimize_q=true, optimize_camera=false) >>> config.optimize_q, config.optimize_camera, config.candidate_noise_q (true, false, none)
levels sequence[pyramidlevel] terms sequence[residualtask] solver populationsolverconfig candidate_noise_t float candidate_noise_r float restart_mismatch float max_restarts int seed int optimize_q bool optimize_camera bool candidate_noise_q optional[float] keypoint_weight float keypoint_sigma float keypoint_huber_delta float keypoint_warmup_iters int candidate_metric literal['objective', 'iou'] levels: sequence[pyramidlevel] = field(default_factory=_default_levels)

coarse-to-fine levels, one per solver segment.

terms: sequence[residualtask] = field(default_factory=lambda: [maskalignmentnormaleqtask()])

cost terms; each walks levels itself. maskalignmentoffsettask also calibrates the kinematic model.

solver: populationsolverconfig = field(default_factory=_default_solver)

one segment per level; native final ranking returns the best candidate.

candidate_noise_t: float = 0.35

largest translation (m) of the initial candidates from the initial guess; each draws 0.5-1x of it.

candidate_noise_r: float = 0.7

largest rotation (rad) of the initial candidates from the initial guess; each draws 0.5-1x of it.

restart_mismatch: float = 0.5

re-solve with fresh candidates while the final mask mismatch (2 * cost / target mask area) exceeds this.

max_restarts: int = 4

re-solves allowed after the first; 0 turns restarts off.

seed: int = 0

seed of the candidate noise.

optimize_q: bool = false

fit one unknown q vector shared across views; solve(q=...) takes an initial [num_dofs] guess.

optimize_camera: bool = true

optimize the camera extrinsic; false keeps the supplied extrinsic fixed.

candidate_noise_q: optional[float] = none

joint sampling radius in radians/meters; none samples the full finite joint limits. candidate 0 keeps initial q.

keypoint_weight: float = 0.03

relative weight of optional 2d link-origin observations.

keypoint_sigma: float = 8.0

keypoint residual scale in input-image pixels.

keypoint_huber_delta: float = 12.0

robust-loss transition in input-image pixels.

keypoint_warmup_iters: int = 24

keypoint-only initialization steps; half the broad samples remain unmodified.

candidate_metric: literal['objective', 'iou'] = 'objective'

select by cost or soft iou; iou mode uses union-normalized coarse fitting.

qpostrajectorycalibrator robokit.helpers.hand_eye_calibration class

fit unknown q[t,j], optionally refining static cameras[v,4,4] shared over time; temporal penalties apply only to q.

example (cuda, robot meshes and observations required):

python
>>> from robokit.helpers.hand_eye_calibration import presets >>> config = presets.rgb_qpos_trajectory >>> config.optimize_camera false >>> # helper = qpostrajectorycalibrator(config, robot, k, h, w) >>> # cameras = helper.solve(cameras, masks, timestamps) >>> # helper.last_q.shape # (timestamps, joints)
config qpostrajectorycalibratorconfig robot robot camera_intrinsic torch.tensor height int width int render_link_names optional[list[str]] solve(initial_extrinsics: torch.tensor, target_masks: torch.tensor, timestamps: torch.tensor, observation_weights: optional[torch.tensor] = none, q: optional[torch.tensor] = none, keypoint_links: optional[list[str]] = none, target_keypoints: optional[torch.tensor] = none, keypoint_weights: optional[torch.tensor] = none) -> torch.tensor

fit synchronized silhouettes and optional keypoints to a joint trajectory; an empty mask with positive weight constrains absence.

lifecycle

  1. validate calibration, timestamps and observations; normalize mask costs by area.
  2. initialize a coherent trajectory, or use supplied q without frame sampling.
  3. fit the coupled image, temporal and optional camera system.
  4. resolve shared joint offsets against source frames and retain joints and cameras.

outputs

last_frame_q: independent frame fits, or the supplied q. last_initial_q: coherent path before coupled refinement, or the supplied q. last_q: final joint result [t,j] on the input device.

qpostrajectorycalibratorconfig robokit.helpers.hand_eye_calibration class

eager frame fitting followed by coupled mask and temporal refinement.

python
>>> config = qpostrajectorycalibratorconfig(velocity_weight=0.01) >>> config.optimize_camera, config.velocity_weight (false, 0.01)
frame handeyecalibratorconfig initialization_frames optional[int] initialization_paths int initialization_repairs int initialization_seconds optional[float] levels sequence[pyramidlevel] solver populationsolverconfig path_weight float velocity_weight float acceleration_weight float optimize_camera bool camera_prior_weight float camera_prior_t float camera_prior_r float frame: handeyecalibratorconfig = field(default_factory=lambda: handeyecalibratorconfig(optimize_q=true, optimize_camera=false))

unknown-qpos frame initialization; cameras stay fixed during initialization.

initialization_frames: optional[int] = none

limit broad frame searches to this many visible frames; interpolate before fitting every frame. none searches all.

initialization_paths: int = 1

alternative initial pose branches to rank against every source mask before refinement.

initialization_repairs: int = 0

additional frame searches at the worst fitted source times; 0 disables repair.

initialization_seconds: optional[float] = none

stop starting repairs after this initialization time; the initial searches and ranking still complete.

levels: sequence[pyramidlevel] = field(default_factory=lambda: [pyramidlevel(4, 1.0, 5), pyramidlevel(1, 0.0, 5)]) solver: populationsolverconfig = field(default_factory=lambda: populationsolverconfig(stages=[stage(20, 1, lmoptimizerconfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), stage(20)])) path_weight: float = 0.08 velocity_weight: float = 0.015 acceleration_weight: float = 0.02 optimize_camera: bool = false

refine one static extrinsic per view, shared across all frames.

camera_prior_weight: float = 0.0

prior cost relative to the supplied calibration; 0 disables it.

camera_prior_t: float = 0.03 camera_prior_r: float = 0.06

translation (m) and rotation (rad) scales of shared camera corrections.

","robokit/dev":"development guide development guide setup clone the repository and install the development environment with uv : shell git clone https://github.com/openrobokit/robokit cd robokit uv sync pytorch is optional. for examples that need it, pick the extra for your cuda toolkit: shell uv sync --extra pt-cu126 # cuda 12.6 uv sync --extra pt-cu118 # cuda 11.8 uv sync --extra pt-cu128 # cuda 12.8 uv sync --extra pt-cpu # cpu only see installation for other extras. git workflow work on your own branch. merge to main through a pull request with squash merge , then delete the branch. run make ci before committing; it formats, lints, type-checks and runs all tests. it defaults to pt-cu126 ; use make ci pt=pt-cpu for cpu-only pytorch. formatting, linting, and type checking use ruff for formatting and linting: shell uvx ruff check uvx ruff format use pyright for type checking: shell uv run pyright warp's stubs cannot type every kernel expression. put a needed pyright ignore on that expression only; keep host code checked. in autograd wrappers, narrow optional gradient buffers only where they are always allocated. function naming start function names with one of these verbs: solve : run an iterative optimization; may fail. compute : direct evaluation; always succeeds. build : construct objects, buffers, or kernels. get : cached lookup (build on miss). set / clear : mutate or drop state. warp kernels and functions additionally: suffix by type: *_kernel for @wp.kernel , *_func for @wp.func . verbs also include transform / integrate / accept . variant tags before the suffix, fixed order: representation ( matrix ), algorithm ( sequential / local / accum ), then backward . variable naming use the public notation : t_dst_src , t_dst_src , q_wxyz_dst_src , and q for joint positions. keep wxyz in quaternion parameter names to indicate ordering. avoid pose , tf , or similar terms, except in robokit.xform , whose conversions take tf_mat and pose7 . use t_dst_src for batched transformations, not ts_dst_src . comments and docstrings use the full-width separator for sections. use the short form for class sections and long phases inside a function. python # --- kernels ---------------------------------------------------------------- # --- build solver --- use lowercase fragments for section labels and short code comments: python # skip the normal/closest math (~2x faster) write full-sentence comments with normal capitalization and punctuation. keep proper names, acronyms and identifiers as they are. spell out words in section labels. use google-style docstrings ( args: / returns: / raises: sections) with single-backtick inline code. testing run pytest and documentation tests: shell uv run pytest uv run xdoctest robokit uv run scripts/test_docs.py markdown examples each python fence runs on its own. include imports, small sample inputs and assertions. wrap setup and checks in # docs: hide / # docs: endhide to hide them from the short view: text # docs: hide values = [1, 2, 3] # docs: endhide total = sum(values) # docs: hide assert total == 6 # docs: endhide the website shows the short view; full and copy use the complete code. scripts/test_docs.py runs every fence with xdoctest. hide # xdoctest: +skip in examples that download assets, and # xdoctest: +requires(...) in optional ones: robokit_cuda_docs=1 for cuda, robokit_body_models for body models, robokit_parahome_docs=1 for parahome. to test the website's copies, run uv run scripts/test_docs.py /_page/docs/robokit . doctest give every public function a doctest: python full def quaternion_multiply( q_wxyz_1: float[torch.tensor, \"... 4\"], q_wxyz_2: float[torch.tensor, \"... 4\"] ) -> float[torch.tensor, \"... 4\"]: \"\"\" multiply two quaternions. example: >>> q1 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834]) >>> q2 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834]) >>> expected = torch.tensor([0.7071068, 0.0, 0.0, 0.7071068]) >>> torch.allclose(quaternion_multiply(q1, q2), expected, atol=1e-6) true \"\"\" return _quaternion_multiply(q_wxyz_1, q_wxyz_2) import torch from jaxtyping import float from robokit.xform.warp.torch_wrappers import quaternion_multiply as _quaternion_multiply def quaternion_multiply( q_wxyz_1: float[torch.tensor, \"... 4\"], q_wxyz_2: float[torch.tensor, \"... 4\"] ) -> float[torch.tensor, \"... 4\"]: \"\"\" multiply two quaternions. example: >>> q1 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834]) >>> q2 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834]) >>> expected = torch.tensor([0.7071068, 0.0, 0.0, 0.7071068]) >>> torch.allclose(quaternion_multiply(q1, q2), expected, atol=1e-6) true \"\"\" return _quaternion_multiply(q_wxyz_1, q_wxyz_2) q = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834]) torch.testing.assert_close(quaternion_multiply(q, q), torch.tensor([0.7071068, 0, 0, 0.7071068])) pytest tests use local fixtures. hugging face calls are blocked. to test mano pkl conversion and cpu engine parity with local body models : shell robokit_body_models=\"$home/.robokit/body_models\" cuda_visible_devices='' \\ uv run pytest tests/assets/test_body_models.py tests/smplx/test_mano_engine.py -q --no-cov group test cases into one class. compare results across implementations: python full class testquaterniontomatrix: @pytest.fixture(autouse=true) def setup(self): \"\"\"initialize warp before each test.\"\"\" wp.init() def _test_consistency(self, quat_torch: torch.tensor): \"\"\"helper function to test consistency between implementations.\"\"\" quat_np = quat_torch.numpy(force=true) result_warp = quaternion_to_matrix_warp(quat_torch) result_numpy = torch.as_tensor( quaternion_to_matrix_numpy(quat_np), device=result_warp.device, dtype=result_warp.dtype ) torch.testing.assert_close(result_warp, result_numpy, atol=1e-6, rtol=1e-6) return result_warp def test_identity_quaternion(self): \"\"\"test identity quaternion conversion.\"\"\" quat = torch.tensor([1.0, 0.0, 0.0, 0.0]) result = self._test_consistency(quat) expected = torch.eye(3) assert result.shape == (3, 3) torch.testing.assert_close(result, expected, atol=1e-6, rtol=1e-6) import pytest import torch import warp as wp from robokit.xform.warp.torch_wrappers import quaternion_to_matrix as quaternion_to_matrix_warp from robokit.xform.numpy.rotation_conversions import quaternion_to_matrix as quaternion_to_matrix_numpy class testquaterniontomatrix: @pytest.fixture(autouse=true) def setup(self): \"\"\"initialize warp before each test.\"\"\" wp.init() def _test_consistency(self, quat_torch: torch.tensor): \"\"\"helper function to test consistency between implementations.\"\"\" quat_np = quat_torch.numpy(force=true) result_warp = quaternion_to_matrix_warp(quat_torch) result_numpy = torch.as_tensor( quaternion_to_matrix_numpy(quat_np), device=result_warp.device, dtype=result_warp.dtype ) torch.testing.assert_close(result_warp, result_numpy, atol=1e-6, rtol=1e-6) return result_warp def test_identity_quaternion(self): \"\"\"test identity quaternion conversion.\"\"\" quat = torch.tensor([1.0, 0.0, 0.0, 0.0]) result = self._test_consistency(quat) expected = torch.eye(3) assert result.shape == (3, 3) torch.testing.assert_close(result, expected, atol=1e-6, rtol=1e-6) wp.init() testquaterniontomatrix().test_identity_quaternion() documentation assets readme and docs images load from https://openrobokit.com/assets/docs/robokit/assets/ , so the repository stays light; the task previews are under built-in-tasks/ . pages link them by relative path. gallery recordings stay in the website repository. update assets here, then run make import project=robokit src=/path/to/robokit in the website checkout, with src pointing at this branch or worktree. do not keep copies in the website source. asset authoring robot descriptions, datasets and collision configs live at openrobokit/robokit . import an asset module to use its path symbols. see built-in robots & datasets for loading assets and fetch() . layout text ~/.robokit/ ├── assets/ # extension-preserving runtime paths │ └── / │ ├── robots/ │ │ ├── robot_description/ # urdfs and meshes │ │ │ ├── arms/ │ │ │ ├── end_effectors/ │ │ │ ├── humanoids/ │ │ │ └── assembly/ │ │ ├── robot_mj_description/ # mjcfs and mujoco assets │ │ ├── collision_spheres/ │ │ ├── contact_points/ │ │ ├── contact_avoid_points/ │ │ └── self_collision/ │ ├── datasets/ # one folder per source │ │ └── / # clips, metadata, objects/ when provided │ ├── policies/ │ └── calibration/ ├── body_models/ # user-provided, never fetched from hf │ ├── mano/ │ └── smplx/ ├── hf_cache/ # hugging face blobs and snapshots │ └── datasets--openrobokit--robokit/ │ ├── blobs/ │ └── snapshots/ └── hf_repo/ # writable authoring checkout robot files are type-major. one robot's urdf, collision spheres and contact points sit in different robots/ subdirs under the same robot name. each dataset source gets a lowercase datasets// folder for its clips and object meshes. its access module lives in robokit.assets.datasets . robot asset naming robokit-generated files use _[_...] ; directories use _ . common modifiers, in order: glb , floating_base , no_mimic . python modules stay side-neutral. side-specific symbols end in _right or _left . add no unsuffixed aliases. variant-specific symbols use a prefix, such as arm_urdf_path and arm_rest_q . rest_q maps every actuated joint name to its rest position. arms, humanoids and end effectors expose mount_link_name and mount_coord_spec , with _right and _left on bilateral models. the link's frame is the mounting frame. the spec gives its outward and right axes and an optional mount_point_xyz , all in that frame. end effectors also expose ee_coord_spec , a handcoordinatespec or grippercoordinatespec . their mount_coord_spec , including mount_point_xyz , is derived from it. display names use right or left ; side-neutral assets omit the side. self-collision ignore sets scripts/geom/self_collision/generate_ignore.py writes ignore..{yml,srdf} for one robot. run it per model and backend, into the writable checkout. capsule needs only the urdf/mjcf; sphere also needs collision spheres that cover the whole model: shell uv run scripts/geom/self_collision/generate_ignore.py --backend capsule \\ --out-dir ~/.robokit/hf_repo/robots/self_collision/ --out-stem ignore uv run scripts/geom/self_collision/generate_ignore.py --backend sphere --spheres \\ --out-dir ~/.robokit/hf_repo/robots/self_collision/ --out-stem ignore expose each file as sphere_ / capsule_self_collision_ignore_path , with an mj_ prefix for mjcf variants. the fcl backend is not shipped. publishing assets keep upstream license files and copyright notices beside copied assets, including those of each assembly component. create the writable checkout, edit robokit_assets/ , then commit and push: shell uv run python -c \"from robokit.assets import checkout; checkout()\" cd robokit_assets git add -a && git commit -m \"add \" && git push git rev-parse head keep the type-major layout above. in the same robokit change, expose the path in src/robokit/assets//.py . set the pinned commit in src/robokit/assets/__init__.py to the printed hash. note checkout() clones the writable checkout to ~/.robokit/hf_repo and links it as ./robokit_assets . binary assets use git lfs. before adding a new binary extension, run git lfs track \"*.\" .","retargetingkit/overview":"overview overview retargetingkit maps human motion to robot hands, arms, and humanoids. it combines robokit optimization with neural hand models for recorded motion and real-time teleoperation. key features one pipeline. sources produce canonical motion frames; retargeters produce robot commands; targets preview or execute them. hands and bodies. solve finger motion, wrist poses, humanoid motion, and combined body-and-hand interactions. optimization + neural. choose geometry-aware optimization or trained hand inference for the task. recorded or live. retarget clips in parallel or drive robots from vr, gloves, and motion capture. how it works flowchart lr source[\"`source *vr · gloves · mocap · recordings*`\"] retargeter[\"`retargeter *optimization + neural*`\"] target[\"`target *viser · robot hardware*`\"] source -- \"frame: hand · arm · body\" --> retargeter retargeter -- \"command: joints · base pose\" --> target classdef endpoint fill:#dbeafe,stroke:#2563eb,color:#111827 classdef solver fill:#dbc8ea,stroke:#8163a1,stroke-width:2px,color:#111827 class source,target endpoint class retargeter solver component role read more source read a device or recording. sources frame represent human hand, arm, or body motion. frames retargeter map motion to a robot through optimization or neural inference. interfaces command carry robot joints and an optional base pose. commands target preview motion or command hardware. targets features hand retargeting map tracked hand motion to robot joints. geometry-aware hand retargeting refine hands against object geometry. real-time hand teleoperation drive a robot hand from live tracking. humanoid retargeting map captured body motion to humanoids. geometry-aware humanoid retargeting account for terrain and contact. real-time humanoid teleoperation drive a humanoid from live motion. full-body retargeting combine body and hand motion. geometry-aware full-body retargeting preserve scene and object interactions. real-time full-body teleoperation drive body and hands together. quick links quickstart installation framework concepts asset setup","retargetingkit/quickstart":"quickstart quickstart try it without installing choose a free gpu and set cuda_visible_devices . then run the interactive hand gallery without installing retargetingkit: shell uvx --from 'retargetingkit[vis]' \\ python -m retargetingkit.gallery.hand_retargeting open the viser url printed in the terminal. select a robot and motion, then play or scrub the result. replace hand_retargeting with any gallery below. each preview records that gallery's viser scene. hand_retargeting retarget tracked hands. hand_neural compare neural hand models. hand_contact refine hand-object contact. hand_object_dexmachina explore dexmachina interactions. hand_object_gigahands explore gigahands interactions. hand_object_oakink2 explore oakink2 interactions. humanoid browse motions and robot presets. humanoid_contact retarget object interactions. humanoid_terrain adapt motion to terrain. full_body_hoi retarget body and hand interactions. full_body_hsi retarget body motion in furnished scenes. to list gallery module names from an installed checkout, run uv run python -m retargetingkit.gallery . gallery data, robot models, and checkpoints download on first use; complete asset setup first. solve one humanoid retargeting problem after installing , this program maps one frame of the included bvh recording to a unitree g1 pose on cpu: python from retargetingkit.assets.sample_bvh import example_bvh from retargetingkit.retargeting.humanoid.online import humanoidretargeterconfig from retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned from retargetingkit.sources.misc.human_frame_file import bodyfilesourceconfig source = bodyfilesourceconfig(example_bvh, use_ankle_as_foot_target=true).build() retargeter = humanoidretargeterconfig(g1_aligned).build(\"cpu\") command = retargeter.solve(source.get_frame()) print(command.qpos.shape, command.base_pose.shape) # (29,) (7,) source.close() the source produces a bodyframe ; the retargeter returns g1 joint positions and a floating-base pose. more examples galleries are interactive demos. for code to copy, open a runnable script below. paths are relative to src/retargetingkit/examples . directory scripts hand_optimization 01_online.py , 02_offline.py , 03_batch.py , 04_arm.py , 05_online_batch.py , 06_dexycb_online.py hand_neural 02_batch.py humanoid 01_online.py , 02_collision.py , 03_self_collision.py , 04_offline.py , 05_batch.py , 06_online_batch.py , 07_contact.py full_body 01_hoi.py , 02_hsi.py example usage: shell uv run --extra vis src/retargetingkit/examples/humanoid/01_online.py","retargetingkit/install":"installation installation retargetingkit needs python 3.10 or newer. uv pip shell uv add retargetingkit shell pip install retargetingkit from source uv pip shell uv add git+https://github.com/openrobokit/retargetingkit.git shell pip install git+https://github.com/openrobokit/retargetingkit.git to work on retargetingkit itself, clone the repository and run uv sync . see the development guide . extras extra what it adds vis browser galleries and viser previews. contact hand-object contact examples. vision-pro , pico , manus , axis live motion sources; see sources . xarm , inspire , ability physical arm and hand targets; see targets . realsense realsense camera source. rby1 , dexmate humanoid hardware connections. the pico , manus , and axis extras use wheels from a separate index: uv pip shell uv add \"retargetingkit[manus]\" --index https://jianglongye.github.io/torch_packages_builder shell pip install \"retargetingkit[manus]\" --extra-index-url https://jianglongye.github.io/torch_packages_builder see assets , then start with the quickstart .","retargetingkit/hand-optimization":"hand retargeting hand retargeting hand motion on a robot assembly. hand-object contact refinement. map human hand motion to robot joint positions with robokit's online or offline optimization. start with a recorded example, then connect a manus glove or apple vision pro . how retargeting works a source supplies hand keypoints. the optimization retargeter matches them to a robot hand while respecting its joints and, when configured, object contact. online solving handles one frame at a time; offline solving optimizes a trajectory. both produce joint positions in the robot's urdf order. try a recording from the retargetingkit checkout, run: shell uv run --extra vis python -m retargetingkit.examples.hand_optimization.01_online open the viser address printed in the terminal. the example replays hand motion and shows the retargeted robot without connecting hardware. required assets download on first use. press ctrl+c to stop. use the python api build a rig's retargeter and pass it one handframe per update: python full from retargetingkit.configs.teleop.hand.manus_sharpa import right_manus_sharpa_config retargeter = right_manus_sharpa_config.retargeter.build(device) for frame in stream: # handframe: right-hand mano-21 keypoints command = retargeter.solve(frame) qpos = command.qpos # (22,), sharpa joints in urdf order import pickle import numpy as np import warp as wp from retargetingkit.assets.example_data import manus_data_right_pkl from retargetingkit.sources.frames import handframe, handpose device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" # three recorded wrist-local mano-21 frames from a right manus glove. keypoints = pickle.load(open(manus_data_right_pkl, \"rb\"))[\"keypoints\"][:3] stream = [handframe({\"right\": handpose(points)}) for points in keypoints] from retargetingkit.configs.teleop.hand.manus_sharpa import right_manus_sharpa_config retargeter = right_manus_sharpa_config.retargeter.build(device) for frame in stream: # handframe: right-hand mano-21 keypoints command = retargeter.solve(frame) qpos = command.qpos # (22,), sharpa joints in urdf order assert qpos.shape == (22,) assert np.isfinite(qpos).all() preview live motion complete the source setup first. for a right manus glove and xhand: shell uv run --extra manus --extra vis scripts/teleop/hand.py \\ manus_xhand --mode viser the live runtime defaults to cuda:0 . select an available gpu with cuda_visible_devices before launching, or pass --device cpu for optimization on cpu. optimization rig source robot hand manus_xhand manus xhand manus_sharpa manus sharpa wave visionpro_xhand vision pro xhand visionpro_sharpa vision pro sharpa wave inspect a preset's device settings with uv run scripts/teleop/hand.py manus_xhand --help . vision pro requires the vision-pro extra. connect the robot after checking motion in the viewer, configure the matching xhand or sharpa target. mode behavior viser preview only; the robot target is not opened. this is the default. real connect and command the physical hand. both command the physical hand and show viser. for example, manus_xhand --mode both --target.serial-port /dev/ttyusb0 enables xhand hardware alongside the preview. work with trajectories use the packaged examples to inspect solver construction and array shapes: module under retargetingkit.examples.hand_optimization task 01_online retarget one stream frame by frame 02_offline optimize one recorded trajectory 03_batch optimize several trajectories together 04_arm retarget an arm and hand together 05_online_batch retarget several arm-hand streams online run any module with uv run --extra vis python -m . robot outputs use urdf joint order. online inputs have shape (k, 3) or (b, k, 3) , with points ordered by spec.target_names ; offline inputs add a time axis. inspect object contact browse dexycb recordings with an xarm7–xhand or xarm7–ability assembly and compare contact refinement in the viewer: shell uv run --extra vis python -m retargetingkit.gallery.hand_contact for learned inference, including the supported live manus_sharpa_neural rig, continue with neural hand retargeting .","retargetingkit/neural-hand":"neural hand retargeting neural hand retargeting train a model for one robot hand, then map wrist-local mano-21 keypoints to joint positions in urdf order. curated checkpoints support allegro, sharpa wave, and xhand. how inference works the source returns a handframe ; the selected checkpoint maps its wrist-local keypoints to a qposcommand . a checkpoint belongs to one robot hand, so choose the matching hand and model before connecting a target. try a trained model run the gallery from the retargetingkit checkout: shell uv run --extra vis python -m retargetingkit.gallery.hand_neural open the printed viser address to choose a hand and checkpoint. the selected model downloads on first use and is cached. these commands default to cuda; select an available gpu with cuda_visible_devices , or use --device cpu . use the python api load a named checkpoint for its hand and pass it one handframe per update: python full from retargetingkit.retargeting.hand.neural import neuralhandassetretargeterconfig from retargetingkit.retargeting.hand.presets import hands config = neuralhandassetretargeterconfig(\"sharpa_motion_alignment\", hands[\"sharpa\"]) retargeter = config.build(device) for frame in stream: # handframe: right-hand mano-21 keypoints command = retargeter.solve(frame) qpos = command.qpos # (22,), sharpa joint angles import pickle import numpy as np import warp as wp from retargetingkit.assets.example_data import manus_data_right_pkl from retargetingkit.sources.frames import handframe, handpose device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" # three recorded wrist-local mano-21 frames from a right manus glove. keypoints = pickle.load(open(manus_data_right_pkl, \"rb\"))[\"keypoints\"][:3] stream = [handframe({\"right\": handpose(points)}) for points in keypoints] from retargetingkit.retargeting.hand.neural import neuralhandassetretargeterconfig from retargetingkit.retargeting.hand.presets import hands config = neuralhandassetretargeterconfig(\"sharpa_motion_alignment\", hands[\"sharpa\"]) retargeter = config.build(device) for frame in stream: # handframe: right-hand mano-21 keypoints command = retargeter.solve(frame) qpos = command.qpos # (22,), sharpa joint angles assert qpos.shape == (22,) assert np.isfinite(qpos).all() with a configured manus glove , preview live sharpa inference: shell uv run --extra manus --extra vis scripts/teleop/hand.py \\ manus_sharpa_neural --mode viser this preset loads sharpa_motion_alignment_contact_inhand . set --mode real or --mode both to connect and command a physical sharpa hand . train a recipe five training recipes live in scripts/teleop/neural_hand/configs/training/ : hand recipe filename allegro allegro_motion_alignment.yaml xhand xhand_motion_alignment.yaml sharpa sharpa_motion_alignment.yaml sharpa with contact data sharpa_motion_alignment_contact.yaml sharpa with in-hand contact data sharpa_motion_alignment_contact_inhand.yaml for example: shell uv run scripts/teleop/neural_hand/train.py \\ scripts/teleop/neural_hand/configs/training/xhand_motion_alignment.yaml the yaml selects named motion and calibration assets, loss weights, and an output directory. training writes train.yaml with data provenance and weights.pt to ik_model/xhand_motion_alignment/ for this recipe. the output directory must not already exist; choose a new output path for another run. record your own motion record the right manus glove at 30 hz: shell uv run --extra manus --extra vis scripts/teleop/neural_hand/record_motion.py \\ --output motion.npz press enter to start, then enter again to stop and save. add --no-viz to record without a viewer. to use this recording for training, register it as a named asset in retargetingkit.assets.calib and reference that name under data.unsupervised in your yaml. replay the recording through your trained model: shell uv run --extra vis scripts/teleop/neural_hand/visualize.py xhand \\ --checkpoints ik_model/xhand_motion_alignment --data motion.npz add contact supervision the sharpa contact workflow generates candidate ycb grasps, then captures matching human poses: shell uv run --extra contact scripts/teleop/neural_hand/contact_generate.py \\ scripts/teleop/neural_hand/configs/contact/sharpa_ycb_contact.yaml uv run --extra contact --extra manus --extra vis \\ scripts/teleop/neural_hand/contact_capture.py \\ --specs sharpa_grasp.npz --output training_data.npz use the capture viewer to record, skip, and save samples. register the result as a calibration asset and reference it under data.contact in a training yaml. for paired human/robot measurements, record_pairs.py supports manus and sharpa. it starts in neural control mode and commands the physical hand; t toggles teaching mode, c captures a pair, and q saves and exits.","retargetingkit/arm-retargeting":"arm retargeting arm retargeting map a tracked wrist to an xarm6 or xarm7 end effector. the arm solver uses robokit inverse kinematics with position, orientation, joint-limit, and smoothness terms. how retargeting works the source reports wrist poses in an armframe . calibration establishes the robot's home pose; inverse kinematics then maps relative wrist motion to a joint-position command for each arm. preview one arm complete vision pro setup , then run: shell uv run --extra vision-pro scripts/teleop/arm.py \\ visionpro_xarm7 --mode viser --device cpu \\ --source.ip open the viser url printed in the terminal. visionpro_xarm6 selects xarm6; visionpro_dual_xarm7 controls two independent arms. use the python api build the rig's right-arm retargeter and pass it one armframe per update: python full from retargetingkit.configs.teleop.arm.visionpro_xarm7 import right_visionpro_xarm7_config retargeter = right_visionpro_xarm7_config.retargeters[\"right\"].build(device) for frame in stream: # armframe: world-frame wrist [x, y, z, qw, qx, qy, qz] command = retargeter.solve(frame) qpos = command.qpos # (7,), xarm7 joint positions import numpy as np import warp as wp from retargetingkit.sources.frames import armframe device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" # a right wrist moving 10 cm forward. stream = [armframe({\"right\": np.array([x, -0.2, 1.1, 1, 0, 0, 0], dtype=np.float32)}) for x in (0.0, 0.05, 0.1)] from retargetingkit.configs.teleop.arm.visionpro_xarm7 import right_visionpro_xarm7_config retargeter = right_visionpro_xarm7_config.retargeters[\"right\"].build(device) for frame in stream: # armframe: world-frame wrist [x, y, z, qw, qx, qy, qz] command = retargeter.solve(frame) qpos = command.qpos # (7,), xarm7 joint positions assert qpos.shape == (7,) assert np.isfinite(qpos).all() the first frame is the calibration origin, so it returns the home pose. retarget an arm and hand optimize the arm and fingers from each synchronized armhandframe . the wrist pose is in world coordinates; hand keypoints are wrist-local. this example builds only the solvers and needs no tracking device or robot connection. python full from retargetingkit.configs.teleop.arm_hand.visionpro_xarm7_xhand import right_visionpro_xarm7_xhand_config config = right_visionpro_xarm7_xhand_config arm = config.arm_retargeters[\"right\"].build(device) hand = config.hand_retargeters[\"right\"].build(device) for frame in stream: # armhandframe: synchronized wrist and finger poses arm_qpos = arm.solve(frame.arm).qpos # (7,), xarm7 joints hand_qpos = hand.solve(frame.hand).qpos # (12,), xhand joints import pickle import numpy as np import warp as wp from retargetingkit.assets.example_data import manus_data_right_pkl from retargetingkit.sources.frames import armframe, armhandframe, handframe, handpose device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" keypoints = pickle.load(open(manus_data_right_pkl, \"rb\"))[\"keypoints\"][:3] # recorded finger poses paired with a wrist moving 10 cm forward. stream = [ armhandframe( armframe({\"right\": np.array([0.05 * i, -0.2, 1.1, 1, 0, 0, 0], dtype=np.float32)}), handframe({\"right\": handpose(points)}), ) for i, points in enumerate(keypoints) ] from retargetingkit.configs.teleop.arm_hand.visionpro_xarm7_xhand import right_visionpro_xarm7_xhand_config config = right_visionpro_xarm7_xhand_config arm = config.arm_retargeters[\"right\"].build(device) hand = config.hand_retargeters[\"right\"].build(device) for frame in stream: # armhandframe: synchronized wrist and finger poses arm_qpos = arm.solve(frame.arm).qpos # (7,), xarm7 joints hand_qpos = hand.solve(frame.hand).qpos # (12,), xhand joints assert arm_qpos.shape == (7,) assert hand_qpos.shape == (12,) assert np.isfinite(arm_qpos).all() assert np.isfinite(hand_qpos).all() calibration and motion the first tracked wrist pose becomes the calibration origin and maps to the robot's configured home pose. wrist movement is then applied relative to that origin. override for the right arm effect default --retargeters.right.translation-scale scale wrist translation 1.5 --retargeters.right.ee-gain blend each new end-effector pose with the previous pose 1.0 a smaller gain smooths movement more. use visionpro_xarm7 --help for all settings. arm-hand rigs use the prefix --arm-retargeters.right instead. connect a robot use the xarm guide for sdk installation, network setup, and hardware mode. at startup, hardware mode moves each arm to its model-specific home pose. to move fingers along with the wrist, choose a supported assembly on the vision pro page . quest controller teleoperation has its own standalone workflow and button calibration.","retargetingkit/humanoid-retargeting":"humanoid retargeting humanoid retargeting human motion mapped to a humanoid. humanoid motion on terrain. map recorded or live body motion to g1 at 50 hz. the runtime sends robot root pose and joint positions to its configured targets; the sonic target derives joint velocities for whole-body control. how retargeting works a body source returns named joint poses in a bodyframe . the humanoid retargeter maps them to g1 links and solves a base pose plus joint positions. a viser target displays the command; a sonic target publishes it for whole-body control. preview recorded motion start with the packaged example, which opens a viser preview without a sonic publisher: shell uv run --extra vis python -m retargetingkit.examples.humanoid.01_online open the printed viewer address. required assets download on first use; press ctrl+c to stop. use the python api build the g1 retargeter and pass it one bodyframe per update: python full from retargetingkit.retargeting.humanoid.online import humanoidretargeterconfig from retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned retargeter = humanoidretargeterconfig(g1_aligned).build(device) command = retargeter.solve(frame) # bodyframe: named world-frame joint poses base_pose = command.base_pose # (7,), [x, y, z, qw, qx, qy, qz] qpos = command.qpos # (29,), g1 joints in urdf order import numpy as np import warp as wp from retargetingkit.assets.sample_bvh import example_bvh from retargetingkit.sources.misc.human_frame_file import bodyfilesourceconfig device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" source = bodyfilesourceconfig(example_bvh, use_ankle_as_foot_target=true).build() frame = source.get_frame() from retargetingkit.retargeting.humanoid.online import humanoidretargeterconfig from retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned retargeter = humanoidretargeterconfig(g1_aligned).build(device) command = retargeter.solve(frame) # bodyframe: named world-frame joint poses base_pose = command.base_pose # (7,), [x, y, z, qw, qx, qy, qz] qpos = command.qpos # (29,), g1 joints in urdf order assert base_pose.shape == (7,) assert qpos.shape == (29,) assert np.isfinite(qpos).all() source.close() publish to sonic the bundled bvh preset needs no tracking device: shell uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser every named humanoid preset publishes to sonic on port 5556 . the _viser suffix adds visualization of the same motion; it does not disable sonic. run a single publisher on that port. the live runtime defaults to cuda:0 ; select an available gpu with cuda_visible_devices , or set --device cpu . override a recording and performer height: shell uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser \\ --source.path /path/to/motion.bvh --source.human-height 1.80 choose a live source complete axis studio or pico setup before starting its rig. shell uv run --extra axis --extra vis scripts/teleop/humanoid.py \\ axisstudio_g1_sonic_viser --source.port 7012 --source.human-height 1.75 uv run --extra pico --extra vis scripts/teleop/humanoid.py \\ pico_g1_sonic_viser --source.no-use-ankle-as-foot-target the pico override uses tracked foot poses instead of substituting ankle poses. for a pico recording, use picofile_g1_sonic_viser --source.path /path/to/recording.npz . remove _viser from these preset names to publish without a viewer. use uv run scripts/teleop/humanoid.py --help to inspect all overrides. control both inspire hands this combined rig opens one pico connection, publishes g1 motion to sonic, and connects both physical inspire hands. it has no preview mode. shell uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \\ pico_g1_inspire --source.no-use-ankle-as-foot-target \\ --left-hand.serial-port /dev/ttyusb0 \\ --right-hand.serial-port /dev/ttyusb1 b toggles the right hand between open and closed; y toggles the left. these are preset poses, not continuous finger tracking. see inspire hand for the serial connection. run g1 in simulation configure the deployment checkout described in g1 and sonic , then start a sonic rig and launch: shell bash scripts/tools/launch_sonic_sim.sh the launcher opens mujoco and deployment in a tmux session. in the deployment pane, press ] , then enter , to start the policy. the g1 target guide also covers connection to a real robot.","retargetingkit/full-body":"full-body retargeting full-body retargeting body, hand, and object interaction. body and hand motion in a furnished scene. retarget body motion, articulated fingers, and object interaction together to a g1 with inspire hands. retargetingkit loads saga or parahome clips; robokit solves the robot motion and object poses. how retargeting works each clip supplies body motion, finger motion, and interaction geometry. the body solver tracks human poses on g1; hand solvers track the fingers; grasp and scene terms keep the combined motion aligned with objects. retarget one object interaction run the saga example from the retargetingkit checkout: shell uv run --extra vis python -m retargetingkit.examples.full_body.01_hoi the default clip contains a body, captured right-hand motion, and one object. after solving, open the printed viser address to play or scrub the result. press ctrl+c to stop. the example chooses cuda when available and otherwise uses cpu. pass --npz /path/to/clip.npz for a local saga fullgrasppose recording. the example still fetches its saga asset bundle, including object meshes. retarget an indoor interaction parahome adds bimanual interaction and a furnished scene. list the available intervals in a sequence: shell uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \\ --sequence s1 --list select an interval from that list: shell uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \\ --sequence s1 --index 7 --scene_clearance --scene_clearance adjusts body placement to reduce penetration into furniture. use --no_scene to omit the room, or --data_root /path/to/parahome/data to provide local parahome data. browse more clips shell uv run --extra vis python -m retargetingkit.gallery.full_body_hoi uv run --extra vis python -m retargetingkit.gallery.full_body_hsi choose a subject or sequence, then a clip in the viewer. by default, both galleries use captured finger poses and contact refinement. add --grasp to optimize and hold grasps over contact intervals. the parahome gallery also exposes scene clearance in its viewer. both galleries accept --max_frames 60 --headless to solve a shorter selection and exit without opening a viewer. dataset and model assets download on first use; gallery startup can fetch more than the selected clip. these workflows produce motion for inspection. for live g1 control, follow humanoid teleoperation .","retargetingkit/teleoperation":"teleoperation teleoperation dexterous hand control. humanoid motion control. a named rig connects a source, retargeter, and target in one command. choose the flow that matches the motion you want to control, then complete the linked device setup. choose a flow flow motion source robot output hand.py manus or vision pro one robot hand arm.py vision pro one or two xarms arm_hand.py vision pro synchronized arms and hands humanoid.py bvh, axis studio , pico , or a pico recording g1 motion through sonic, with optional viser humanoid_hand.py pico body motion and buttons g1 plus two physical inspire hands quest 3 , realsense , and zed have standalone device scripts. they are not inputs to these named rigs. select a rig list the available rigs, then inspect a selected rig's settings: shell uv run scripts/teleop/hand.py --help uv run scripts/teleop/hand.py manus_xhand --help the first command lists rigs; the second shows the selected rig's fields and defaults. install the source's dependencies before running it; each device page provides a complete command. override settings configuration fields become dotted options. for example, replay a vision pro recording at its original rate and scale wrist movement: shell uv run --extra vision-pro scripts/teleop/arm.py \\ visionpro_xarm7 --mode viser --device cpu \\ --source.recording-path data/vision_pro.pkl \\ --source.recording-fps 50 \\ --retargeters.right.translation-scale 0.5 create the recording with the vision pro recorder first. recording files do not store frame rate, so pass the rate used when capturing. field family example source --source.ip , --source.recording-path arm connection --arms.right.ip arm solver in arm.py --retargeters.right.translation-scale arm solver in arm_hand.py --arm-retargeters.right.translation-scale humanoid target tuple --targets.0.port the fields available depend on the selected rig. boolean switches may use a --no- form; pico's foot mapping uses --source.no-use-ankle-as-foot-target . choose the output hand , arm , and arm_hand default to viser : mode output --mode viser browser preview --mode real physical robot --mode both physical robot and browser preview humanoid flows choose targets through the rig. a *_sonic_viser rig publishes sonic commands and displays the same motion in viser. the viewer works without a sonic receiver. humanoid_hand opens physical inspire hands and has no preview mode. sonic runs as a separate receiver. see g1 / sonic for sender and receiver settings, simulation, and deployment. start with humanoid teleoperation for body motion, or quickstart for a recording that needs no hardware. use the python api a rig is a source, a retargeter, and targets. this loop runs the bvh rig without a tracking device or robot: sonic publishes commands whether or not a receiver is running. python full from retargetingkit.configs.teleop.humanoid.bvh_g1_sonic import bvh_g1_sonic_config config = bvh_g1_sonic_config source = config.source.build() retargeter = config.retargeter.build(device) targets = [target_config.build() for target_config in config.targets] while true: frame = source.get_frame() if frame is not none: command = retargeter.solve(frame) for target in targets: target.set_command(command) import numpy as np import warp as wp device = \"cuda:0\" if wp.is_cuda_available() else \"cpu\" from retargetingkit.configs.teleop.humanoid.bvh_g1_sonic import bvh_g1_sonic_config config = bvh_g1_sonic_config source = config.source.build() retargeter = config.retargeter.build(device) targets = [target_config.build() for target_config in config.targets] while true: frame = source.get_frame() if frame is not none: command = retargeter.solve(frame) for target in targets: target.set_command(command) break assert command.qpos.shape == (29,) assert np.isfinite(command.qpos).all() for target in targets: target.close() source.close()","retargetingkit/ref-assets":"assets assets recordings, checkpoints, and robot models download on first use. importing retargetingkit alone downloads nothing. cache asset source cache recordings, calibration, training data openrobokit/retargetingkit ~/.retargetingkit/assets// neural checkpoints same dataset, models/ik_model/ inside the same revision cache robot urdfs, meshes, collision and contact data robokit assets ~/.robokit/assets// mano / smpl-x body models local model files robokit_body_models or ~/.robokit/body_models/ ycb meshes ycb benchmark s3 ~/.retargetingkit/ycb/ resolve an asset use named accessors so examples and applications share the same data: python from retargetingkit.assets import calib, neural_hand, sample_bvh calibration = calib.get(\"manus_calib\") checkpoint = neural_hand.get(\"sharpa_motion_alignment_contact_inhand\") motion = sample_bvh.example_bvh robot models come from robokit: python from robokit.assets.robots.end_effectors import sharpa_hand urdf = sharpa_hand.urdf_path_right pinned revision retargetingkit.assets.revision pins the dataset commit; accessors call robokit.assets.fetch with it, the dataset id, and ~/.retargetingkit . bump the pin after publishing new data. to download again, delete the matching ~/.retargetingkit/assets//.done/ marker.","retargetingkit/pipeline":"pipeline pipeline retargetingkit connects a motion source, a retargeter, and one or more targets. robokit provides the robot models and optimization tools used by the solvers. flowchart td acctitle: retargetingkit framework accdescr: sources provide hand, arm, or body frames. hand optimization, neural hand inference, and arm ik produce joint commands. humanoid retargeting produces a base pose and joint command. targets display the motion or send it to robot hardware and sonic. source[\"sources
vr · gloves · mocap · recordings\"] hand[\"handframe
mano-21 keypoints\"] arm[\"armframe
world wrist poses\"] body[\"bodyframe
named joint poses\"] opt[\"hand
optimization\"] neural[\"neural hand
inference\"] ik[\"arm ik\"] humanoid[\"humanoid
retargeting\"] joints[\"qposcommand
joint positions\"] base[\"baseposeqposcommand
base pose + joints\"] robot[\"hand / arm targets
hardware · viser\"] body_target[\"humanoid targets
viser · sonic transport\"] source --> hand source --> arm source --> body hand --> opt hand --> neural arm --> ik body --> humanoid opt --> joints neural --> joints ik --> joints humanoid --> base joints --> robot base --> body_target class source framework-source on narrow screens, scroll horizontally to read the full diagram. armhandframe synchronizes wrist and finger observations from one source; the runtime sends its arm and hand frames through their respective solvers. sonic forwards humanoid commands to a separate control process for simulation or g1 hardware. three stages stage responsibility examples source convert device data or a recording into a canonical frame vision pro, manus, pico, bvh retargeter map human motion to robot joints arm ik, hand optimization, neural hand, humanoid target display or send the result viser, robot hardware, sonic transport a named rig supplies the matching source, solver, robot, and connection settings. the runtime builds them and runs the control loop. start with a named rig for a complete workflow. the diagram covers the canonical retargeting paths. quest 3 has a standalone controller workflow. the pico body-and-hands rig adds b/y button commands for inspire hand opening and closing alongside the body retargeter. shared data frames describe human motion. commands describe a single solved robot pose. the source handles device axes and joint ordering before a retargeter receives the frame. hands use wrist-local mano-21 keypoints; arms use world-frame wrist poses; bodies use named joint poses in a z-up world frame. see canonical frames for shapes and units. one loop for an initialized hand source, matching retargeter, and joint-position target: python frame = source.get_frame() if frame is not none: command = retargeter.solve(frame) target.set_qpos(command.qpos) humanoid runtimes call target.set_command(command) so the target receives the base pose together with the joints. the runtime also owns startup and cleanup; the snippet shows only one update. see interfaces to build a custom pipeline, or robokit's robot model for the underlying kinematics.","retargetingkit/frames":"canonical frames canonical frames source adapters convert native device data into a shared format. solvers receive positions in meters, scalar-first quaternions, and explicit joint names. units and poses value convention position meters robot joint position radians, in actuated urdf order quaternion (qw, qx, qy, qz) pose (x, y, z, qw, qx, qy, qz) body coordinates right-handed z-up world frame canonical poses have shape (7,) . native device matrices and quaternion orders are converted inside each source adapter. human motion frame content handframe hands : side → wrist-local handpose armframe wrists : side → world-frame (7,) pose armhandframe synchronized arm and hand frames bodyframe joint_names , (j, 7) world poses, human_height sides are \"left\" and \"right\" . a frame can contain one available hand or both; check the requested side before consuming it. body joint names travel with the data so the solver can select the joints it needs. hand keypoints handpose.positions contains 21 wrist-local mano-21 points. it also carries joint orientations, a valid-point mask, and joint names. python import numpy as np from retargetingkit.sources.frames import handframe, handpose, mano21 positions = np.zeros((21, 3), dtype=np.float32) # shape example frame = handframe({\"right\": handpose(positions)}) frame.hands[\"right\"].positions.shape # (21, 3) mano21.wrist, mano21.index_tip # 0, 8 mano21.thumb_tip, mano21.pinky_tip # 4, 20 replace the zero array with tracked keypoints before solving. see the frame api for all fields and defaults. robot output qposcommand carries (q,) joint positions. baseposeqposcommand adds a (7,) floating-base world pose. neither type includes a time or batch dimension; those belong to recordings and lower-level solver apis.","retargetingkit/protocols":"interfaces interfaces each pipeline stage has a runtime interface and a configuration object that builds it. named rigs compose those configurations for a supported source and robot. contracts configuration builds runtime method sourceconfig source get_frame() returns a frame, or none before data arrives retargeterconfig retargeter solve(frame) returns a robot command targetconfig target set_qpos(qpos) or set_command(command) , depending on the target call source_config.build() and target_config.build() to start those components. retargeter_config.build(device) constructs and warms up the solver on the selected device. match the frame and command retargeter input output optimizationhandretargeter handframe qposcommand neuralhandretargeter handframe qposcommand armretargeter armframe qposcommand humanoidretargeter bodyframe baseposeqposcommand target declares both update methods, but concrete targets implement the methods they support. use the method expected by the selected runtime; passing only joints to a humanoid target would lose its base pose. lifecycle a runtime builds the components, reads frames, solves, and updates its targets. it calls close() on sources and targets when stopping. see teleoperation for entrypoints and overrides, and commands and targets for the api contracts.","retargetingkit/quest3":"quest 3 quest 3 sources use quest 3 controllers to move one or two xarm6 or xarm7 end effectors. tracking comes through nvidia isaac teleop and cloudxr. the standalone playground supports a viser preview, controller calibration, and hardware control. connect cloudxr from the retargetingkit repository, install the playground dependencies and isaac teleop: shell uv sync --extra vis --extra xarm uv pip install \"isaacteleop[cloudxr,retargeters]~=1.0.0\" \\ --extra-index-url https://pypi.nvidia.com start cloudxr, then load its environment in the terminal used for teleoperation: shell uv run --no-sync python -m isaacteleop.cloudxr --accept-eula . ~/.cloudxr/run/cloudxr.env the commands on this page use --no-sync to keep the installed isaac teleop environment. if a firewall is active, allow the cloudxr ports: shell sudo ufw allow 47998/udp sudo ufw allow 49100,48322/tcp open the isaac teleop webxr client in the headset browser. enter the workstation ip, accept its generated certificate, and select connect , then play . check tracking shell uv run --no-sync python scripts/sources/quest3/stream.py --side both move each controller and check that its position and orientation change. output includes xyz position and a quaternion in wxyz order; invalid means that controller is not tracked. use --side right or --side left to inspect one controller. preview an arm shell uv run --no-sync python scripts/sources/quest3/teleop.py \\ --mode single --single-side right --visualize open http://localhost:8080 . align the controller with the displayed end effector, then press b to calibrate and start following your motion. the default translation scale is 0.50 . controller action right left calibrate; then pause or resume b y return to the calibrated pose a x connect xarm hardware run a single xarm7: shell uv run --no-sync python scripts/sources/quest3/teleop.py \\ --mode single --single-side right \\ --arm-ip --translation-scale 0.50 for two arms, set both xarm ips: shell uv run --no-sync python scripts/sources/quest3/teleop.py \\ --mode bimanual \\ --right-xarm-ip --left-xarm-ip \\ --translation-scale 0.50 use --arm xarm6 to select xarm6. each arm moves to its home pose during startup; calibrate its controller afterward. press ctrl-c to stop. quest uses this standalone script rather than a named rig under scripts/teleop/ . keep the headset awake for long sessions, enable developer mode, connect sidequest over usb, and disable the proximity sensor in device settings & tools .","retargetingkit/vision-pro":"apple vision pro apple vision pro sources stream head, wrist, and finger tracking from apple vision pro with avp_stream . retargetingkit can drive robot hands, robot arms, or synchronized arm-and-hand assemblies, and replay the same tracking from a recording. motion runtime example rig fingers scripts/teleop/hand.py visionpro_sharpa wrists scripts/teleop/arm.py visionpro_xarm7 wrists and fingers scripts/teleop/arm_hand.py visionpro_xarm7_xhand connect the headset connect the workstation and vision pro to the same wi-fi network. open tracking streamer on vision pro. note its ip address and select start . use that address as below. install the source dependencies from the retargetingkit repository: shell uv sync --extra vision-pro check the live stream: shell uv run --extra vision-pro scripts/sources/vision_pro/stream.py \\ --ip the terminal prints head position and left/right pinch distances. move your head and pinch each hand to check the values. preview retargeting run a right xarm7 with xhand in viser: shell cuda_visible_devices= uv run --extra vision-pro \\ scripts/teleop/arm_hand.py visionpro_xarm7_xhand \\ --source.ip --mode viser open http://localhost:8080 . the first tracked wrist frame becomes the calibration origin and maps to the arm's home pose. finger motion drives the robot hand. for arm-only or hand-only retargeting: shell cuda_visible_devices= uv run --extra vision-pro \\ scripts/teleop/arm.py visionpro_xarm7 --source.ip cuda_visible_devices= uv run --extra vision-pro \\ scripts/teleop/hand.py visionpro_sharpa --source.ip the arm runtime also offers visionpro_xarm6 and visionpro_dual_xarm7 . the hand runtime offers visionpro_xhand and visionpro_sharpa . all default to viser. connect hardware use --mode both to send the same targets to hardware and viser: shell cuda_visible_devices= uv run --extra vision-pro --extra xarm \\ scripts/teleop/arm_hand.py visionpro_xarm7_xhand \\ --source.ip --mode both \\ --arms.right.ip \\ --hands.right.serial-port /dev/ttyusbx each arm moves to its model-specific home pose at startup. hold the wrist at the desired tracking origin when the first frame is read. use --mode real for hardware only; press ctrl-c to stop. assembly named rig hand connection xarm7 + xhand visionpro_xarm7_xhand , visionpro_dual_xarm7_xhand --hands.right.serial-port xarm7 + ability hand visionpro_xarm7_ability --hands.right.port ; add --extra ability xarm7 + inspire hand visionpro_xarm7_inspire --hands.right.serial-port ; add --extra inspire xarm7 + sharpa wave visionpro_xarm7_sharpa --hands.right.device-sn xarm6 + sharpa wave visionpro_xarm6_sharpa --hands.right.device-sn single-arm presets use the right side. for the dual xhand rig, also set --arms.left.ip and --hands.left.serial-port . sharpa uses the first discovered hand when its device serial number is unset. to tune arm-and-hand motion, use --arm-retargeters.right.translation-scale for wrist translation and --arm-retargeters.right.ee-gain for pose smoothing. the arm-only runtime uses --retargeters.right.translation-scale and --retargeters.right.ee-gain . record and replay record 15 seconds at a requested 50 hz: shell uv run --extra vision-pro scripts/sources/vision_pro/record.py \\ --ip --duration 15 --rate 50 \\ --output data/vision_pro.pkl replay with the original rate: shell cuda_visible_devices= uv run --extra vision-pro \\ scripts/teleop/arm.py visionpro_xarm7 \\ --source.recording-path data/vision_pro.pkl \\ --source.recording-fps 50 the pickle contains tracking dictionaries without timestamps or frame-rate metadata. always set --source.recording-fps to the recording rate. playback holds the final frame when it reaches the end. to inspect the recorded skeleton directly: shell uv run --extra vision-pro scripts/sources/vision_pro/visualize.py \\ --recording data/vision_pro.pkl this viewer and stream.py --recording use the device api's fixed default of 20 hz, so a 50 hz recording plays more slowly. tracking format the validated avp_stream 2.51 format uses finite float64 values. translations are in meters and wrist roll is in radians. field shape coordinate frame head (1, 4, 4) world left_wrist , right_wrist (1, 4, 4) world left_fingers , right_fingers (25, 4, 4) wrist-local left_arm , right_arm (25, 4, 4) or (27, 4, 4) wrist-local; optional two forearm joints left_pinch_distance , right_pinch_distance scalar thumb-tip to index-tip distance left_wrist_roll , right_wrist_roll scalar wrist roll the streamer converts world poses from y-up to right-handed z-up: x'=x , y'=-z , z'=y . finger and arm matrices stay wrist-local. the 25-joint order is wrist, four thumb joints, then five joints each for index, middle, ring, and little fingers. the optional final two arm joints are forearmwrist and forearmarm .","retargetingkit/pico":"pico pico sources use pico full-body tracking through xrobotoolkit to retarget a 24-joint body to unitree g1. record sessions for offline replay, or use controller buttons to open and close two inspire hands alongside body motion. picosource converts the sdk's y-up poses to a canonical z-up bodyframe . the combined body-and-hands runtime uses b and y buttons for the hands. connect xrobotoolkit install xrobotoolkit pc service , then install the pinned python sdk from the retargetingkit repository: shell uv sync --extra pico start one foreground service and leave its terminal open. for the standard /opt/apps/roboticsservice installation: shell cd /opt/apps/roboticsservice env \\ ld_library_path=/opt/apps/roboticsservice:/opt/apps/roboticsservice/lib:/opt/apps/roboticsservice/sdk/x64 \\ qt_plugin_path=/opt/apps/roboticsservice/plugins \\ qt_qml_path=/opt/apps/roboticsservice/qml \\ ./roboticsserviceprocess connect the workstation and pico to the same wi-fi. in the headset's xrobotoolkit app, enter the workstation's wi-fi ipv4 address under pc service , select reconnect once, and apply these settings: setting value head, controller, hand checked mode fullbody high-acc unchecked num 2 send checked switch w/ a button unchecked data collection: tracking, vision unchecked network status should show working . any ip shown in a reference image is an example; enter your workstation's address. check body tracking in a second terminal, return to the retargetingkit repository and run: shell uv run --extra pico scripts/sources/pico/smoke_test.py --duration 5 move your body during the test. it prints pelvis motion and a final 24-joint snapshot. if all poses remain frozen, fully close xrobotoolkit, recalibrate both trackers in the pico motion tracker app, check that its avatar moves, and reopen xrobotoolkit. preview g1 shell cuda_visible_devices= uv run --extra pico --extra vis \\ scripts/teleop/humanoid.py pico_g1_sonic_viser \\ --source.no-use-ankle-as-foot-target --device cuda:0 open http://localhost:8080 to see g1 follow your motion. this rig also publishes to sonic, but the preview runs without a sonic process or physical robot hands. keep --source.no-use-ankle-as-foot-target : the pico g1 profile is calibrated for pico's separate foot joints, while the named presets still default to ankle targets. set --source.human-height to the user's height in meters; the default is 1.75 . record and replay record a 15-second body session: shell uv run --extra pico scripts/sources/pico/record.py \\ --duration 15 --rate 50 --out pico_recording.npz replay it without a headset: shell cuda_visible_devices= uv run --extra vis \\ scripts/teleop/humanoid.py picofile_g1_sonic_viser \\ --source.path pico_recording.npz \\ --source.no-use-ankle-as-foot-target the npz stores raw poses as (n, 24, 7) float32 , timestamps_s as seconds since recording start, and json metadata with measured frame rate and joint names. control body and hands for g1 with two connected inspire hands: shell cuda_visible_devices= uv run --extra pico --extra inspire \\ scripts/teleop/humanoid_hand.py pico_g1_inspire \\ --source.no-use-ankle-as-foot-target \\ --left-hand.serial-port \\ --right-hand.serial-port press b to toggle the right hand or y to toggle the left hand between open and closed. this runtime uses button commands, not the pico hand skeleton. it publishes body commands to sonic; see humanoid teleoperation for simulation and g1 deployment. press ctrl-c to stop. tracking format the validated setup is pico 4 ultra with xrobotoolkit app 1.1.1, pc service 1.0.0, and python sdk 1.0.2. the wrapper converts arrays to finite float32 values. data shape format headset or controller pose (7,) [x, y, z, qx, qy, qz, qw] ; y-up world, meters body poses (24, 7) 24 smpl joints; same pose format body velocity or acceleration (24, 6) linear xyz followed by angular xyz active hand poses (27, 7) 27 joints per hand joystick (2,) x/y values motion tracker pose (7,) per tracker available in object-tracking mode fullbody mode sends the inferred body skeleton rather than raw motion tracker poses. the sdk device timestamp is an integer count of nanoseconds.","retargetingkit/manus":"manus manus sources use manus gloves for hand tracking and optimization-based retargeting to xhand or sharpa wave. manussource converts each 25-node glove skeleton to a wrist-local mano-21 handframe . connect the gloves connect the gloves through the manus host software, then install the sdk runtime and viewer from the retargetingkit repository: shell uv sync --extra manus --extra vis preview both raw skeletons: shell uv run --extra manus --extra vis \\ scripts/sources/manus/visualize_keypoints.py --side both open http://localhost:8080 and flex each hand to check its 25-node skeleton. the utility detects sides from glove metadata. if detection is ambiguous, pass --manus-left-id or --manus-right-id with a decimal or 0x glove id. preview retargeting shell cuda_visible_devices= uv run --extra manus --extra vis \\ scripts/teleop/hand.py manus_xhand --mode viser use manus_sharpa for sharpa wave. these named rigs use online optimization and default to the right hand. select --mode both for hardware plus viser or --mode real for hardware only. set --target.serial-port for xhand or --target.device-sn for sharpa. manus currently supplies hand motion only and is not a source for humanoid_hand.py . record poses capture one frame per enter press; type q and press enter to save and finish: shell uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \\ --hand right --output recording.npz for a finite continuous recording, set the frame count and rate: shell uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \\ --hand right --no-viz --frames 300 --rate 30 \\ --output manus_recording.npz use --hand left or --hand both to change the recorded sides. the preview applies glove calibration; the npz preserves raw sdk positions and rotations. recording format every field begins with left_ or right_ for its saved side. positions are meters in the sdk's requested right-handed, z-up coordinate system viewed along x ( unitscale=1.0 ). field suffix shape dtype meaning positions (n, 25, 3) float32 raw node positions rotations (n, 25, 4) float32 raw quaternions in xyzw order publish_time (n,) uint64 compressed sdk timestamp recv_ns (n,) int64 host monotonic time at callback receipt timestamps (n,) float64 seconds since recording start glove_id (n,) uint32 hardware glove id side_code (n,) int32 side enum: 1 left, 2 right node ranges are wrist 0 , thumb 1–4 , index 5–9 , middle 10–14 , ring 15–19 , and little finger 20–24 . each non-thumb finger runs from metacarpal through knuckle and two intermediate joints to the tip. treat publish_time as the opaque manustimestamp , not unix time. use recv_ns for timing intervals within one process run.","retargetingkit/axis-studio":"axis studio axis studio sources stream noitom body motion from axis studio in calc broadcast mode. axisstudiosource converts the incoming avatar to a canonical z-up bodyframe for g1 retargeting. connect axis studio the bundled sdk runtime supports linux x86-64. from the retargetingkit repository: shell uv sync --extra axis --extra vis in axis studio, enable calc data broadcasting , set the destination to the retargetingkit workstation, and use udp port 7012 . if a firewall is active: shell sudo ufw allow 7012/udp preview g1 shell cuda_visible_devices= uv run --extra axis --extra vis \\ scripts/teleop/humanoid.py axisstudio_g1_sonic_viser \\ --source.port 7012 --source.human-height 1.75 set --source.human-height to the user's height in meters. open http://localhost:8080 and check that g1 follows the streamed body motion. change --source.port if axis studio uses a different port. this rig also publishes commands to sonic. use axisstudio_g1_sonic to publish without viser. see humanoid teleoperation for simulation and g1 deployment.","retargetingkit/realsense":"realsense realsense sources capture aligned rgb-d frames with realsense . the driver runs in a background process and exposes bgr color, raw depth, and camera intrinsics. l515 is the tested model; this camera driver is separate from the canonical teleoperation sources. check the camera from the retargetingkit repository: shell uv sync --extra realsense uv run --extra realsense python scripts/sources/realsense/print_intrinsics.py uv run --extra realsense --with opencv-python \\ python scripts/sources/realsense/stream_rgbd.py the intrinsics script prints image resolution, focal lengths, principal point, and depth scale. the viewer shows color beside a depth visualization; press escape to close it. the driver uses the first connected camera by default. run rs-enumerate-devices to find a serial number, then pass --serial-number to either script. the realsense extra pins pyrealsense2<2.55 for l515 depth-stream compatibility. read frames in python python from retargetingkit.sources.cameras.realsense import realsense, realsenseconfig camera = realsense(realsenseconfig()) camera.start() color = camera.get_color() # (h, w, 3), uint8 bgr depth = camera.get_depth() # (h, w), uint16 sensor units intrinsics = camera.get_intrinsics() depth_meters = depth * intrinsics[6] camera.stop() intrinsics is [fx, fy, ppx, ppy, height, width, depth_scale] . frames align to the color stream by default; set realsenseconfig(align_to=\"depth\") to align to depth. start() waits for the first captured frames.","retargetingkit/zed":"zed zed sources capture bgr color and metric depth with a stereolabs zed camera. zed runs capture in a background process and exposes frames and intrinsics. it is a standalone camera driver and requires a cuda-capable nvidia gpu. install the sdk install the zed sdk for the workstation's ubuntu and cuda versions. stereolabs publishes one python binding wheel per python version (3.10–3.14) for zed sdk 5.2, linux x86-64 ; select the one matching the project's interpreter: shell py=$(uv run python -c 'import sys; print(f\"cp{sys.version_info.major}{sys.version_info.minor}\")') pyzed=\"https://download.stereolabs.com/zedsdk/5.2/whl/linux_x86_64/pyzed-5.2-$py-$py-linux_x86_64.whl\" check the camera shell uv run --with \"$pyzed\" --with opencv-python \\ python scripts/sources/zed/stream_rgbd.py the viewer shows color beside a depth visualization; press escape to close it. it defaults to hd1080 , 30 fps, and ultra depth mode. set --serial-number to select a camera, or use --resolution , --fps , and --depth-mode to change capture settings. read frames in python python from retargetingkit.sources.cameras.zed import zed, zedconfig camera = zed(zedconfig(resolution=\"hd1080\", depth_mode=\"ultra\")) camera.start() color = camera.get_color() # (h, w, 3), uint8 bgr depth = camera.get_depth() # (h, w), float32 meters intrinsics = camera.get_intrinsics() camera.stop() intrinsics is [fx, fy, cx, cy, height, width] for the left camera. depth is already in meters and needs no scale conversion.","retargetingkit/xarm":"xarm6 and xarm7 xarm6 and xarm7 targets control a six- or seven-joint xarm through the ufactory sdk. both drivers accept joint positions in radians and provide end-effector ik and teaching modes. connect find the controller ip on the power box and open http://:18333 for ufactory studio. from the retargetingkit checkout, install the driver: shell uv sync --extra xarm for xarm7, read five samples without enabling motion or sending position commands: shell uv run --extra xarm scripts/targets/xarm7/read_qpos.py \\ --ip --samples 5 the xarm6 read_qpos.py script starts the active velocity controller, including motion enable and error clearing. treat it as a controller session. preview teleoperation with vision pro configured: shell uv run --extra vision-pro --extra vis scripts/teleop/arm.py \\ visionpro_xarm7 --mode viser --source.ip use visionpro_xarm6 for xarm6. the preview does not connect the arm. the vision pro guide covers ip overrides and arm-hand rigs; quest 3 provides a separate controller workflow. use the driver this snippet starts a hardware controller and holds the measured pose. replace target_qpos with your desired joint vector to move the arm. python from retargetingkit.targets.arms.xarm7 import xarm7config, xarmmode arm = xarm7config(\"\", mode=xarmmode.velocity).build() target_qpos = arm.get_qpos() # (7,), urdf radians arm.set_qpos(target_qpos) arm.close() for six joints, import xarm6config from retargetingkit.targets.arms.xarm6 . mode behavior velocity default; smooths position tracking through velocity control servo streams joint position targets teaching enables gravity-compensated teaching both drivers run a background control loop at 250 hz by default. starting a driver enables motion, clears warnings and errors, and selects the configured control mode.","retargetingkit/xhand":"xhand xhand targets control 12 xhand joints through rs485 or ethercat. the driver accepts urdf radians and sends commands through a background loop at approximately 83 hz. connect install the xhand_controller wheel from the xhand vendor. there is no xhand package extra. for rs485, connect the adapter and confirm its serial port. the default baud rate is 3,000,000. read five state samples without starting the servo controller: shell uv run scripts/targets/xhand/read_qpos.py \\ --serial-port /dev/ttyusb0 --samples 5 the output includes joint names, positions in radians, and shape checks. preview retargeting with a configured manus glove : shell uv run --extra manus --extra vis scripts/teleop/hand.py \\ manus_xhand --mode viser after checking the preview, --mode both --target.serial-port /dev/ttyusb0 connects and commands the hand. the vision pro guide also covers visionpro_xhand and xarm7–xhand rigs. use the driver this starts the physical hand's servo process and holds its measured pose: python from retargetingkit.targets.hands.xhand import xhandconfig hand = xhandconfig(serial_port=\"/dev/ttyusb0\").build() target_qpos = hand.get_qpos() # (12,), urdf radians hand.set_qpos(target_qpos) hand.close() use protocol=\"ethercat\" in the config for ethercat. commands must contain 12 finite values in the driver's documented urdf order. check a small motion the following moves joint 4 by 0.05 radians and returns it to its starting position: shell uv run scripts/targets/xhand/open_close.py \\ --serial-port /dev/ttyusb0 --joint 4 --delta 0.05 --reps 1 despite its filename, this diagnostic nudges one joint; it does not open and close all fingers.","retargetingkit/sharpa-hand":"sharpa wave sharpa wave targets control 22 finger joints and read tactile measurements from five fingers per hand. the driver accepts joint positions in urdf radians and exposes position, velocity, and torque feedback. connect get the sharpa sdk from sharpa and extract it so ~/.retargetingkit/sharpa-sdk/ holds its lib/ and python/ folders. the sdk's native extension must match your python environment. if the native loader reports a missing libpython , add your python environment's library directory and ~/.retargetingkit/sharpa-sdk/lib to ld_library_path before launching. device_sn=none selects the first discovered hand. set a device serial number when several hands are connected. read five samples in floating mode: shell uv run scripts/targets/sharpa_hand/read_qpos.py --samples 5 this changes the hand to floating mode for backdriving and prints angles in degrees. the python api returns radians. preview retargeting with manus configured, preview optimization: shell uv run --extra manus --extra vis scripts/teleop/hand.py \\ manus_sharpa --mode viser use manus_sharpa_neural for the curated neural model. --mode real or --mode both commands the physical hand; add --target.device-sn to select it. vision pro also supports hand-only and xarm–sharpa rigs. use the driver construction connects the hand, selects position mode, and starts sdk control: python from retargetingkit.targets.hands.sharpa_hand import sharpahand hand = sharpahand(speed_coeff=0.3, current_coeff=0.3) qpos, qvel, torque = hand.get_state() # each has 22 values hand.set_qpos(qpos) hand.close() use set_control_mode(\"floating\") for backdriving and set_control_mode(\"position\") to resume position control. read touch data fetch five samples from the right thumb: shell uv run scripts/targets/sharpa_hand/tactile_fetch.py \\ --channel 0 --samples 5 --calibrate this connects the sdk in position mode and calibrates before reading. frames may contain raw , deform , and f6 data. the driver api uses channels 0–4 for right thumb through pinky and 5–9 for the left; the current diagnostic labels right-hand channels only. scripts/targets/sharpa_hand/wave_example.py --cycles 3 moves joint 7 by 3 degrees and returns it, three times.","retargetingkit/ability-hand":"ability hand ability hand targets control the psyonic ability hand's six joints through a usb serial adapter. the driver accepts radians and runs a background servo process, with position commands ramped at 60 degrees per second by default. connect power and connect the hand according to its hardware manual. use a stable linux device path when available: shell ls /dev/serial/by-id/ uv sync --extra ability your user needs access to the serial device, commonly through the dialout group. the driver uses 460800 baud. preview teleoperation the named vision pro rig combines ability hand with xarm7: shell uv run --extra vision-pro --extra vis scripts/teleop/arm_hand.py \\ visionpro_xarm7_ability --mode viser --source.ip this previews motion without opening either robot target. follow the vision pro guide to configure the arm ip and hand port before selecting real or both . use the driver starting the driver sends serial position commands, including zero-position commands during initial synchronization. the following is a hardware controller session: python from retargetingkit.targets.hands.ability_hand import abilityhandconfig hand = abilityhandconfig(\"/dev/serial/by-id/\").build() target_qpos = hand.get_qpos() # (6,), radians hand.set_qpos(target_qpos) hand.close() replace target_qpos with the desired hand pose for your control loop. check motion the diagnostic below opens and closes the physical hand once: shell uv run --extra ability scripts/targets/ability_hand/open_close.py \\ --port /dev/serial/by-id/ --reps 1 scripts/targets/ability_hand/read_qpos.py also starts the active servo process and sends startup commands. it is not a passive serial reader.","retargetingkit/inspire":"inspire hand inspire hand targets control six actuated finger joints over usb serial. the driver converts urdf radians to inspire's serial joint order and normalized position range. connect connect the serial adapter and give your user access to its device port. on linux this commonly requires membership in dialout ; log out and back in after changing groups. shell uv sync --extra inspire the combined g1 preset uses /dev/ttyusb0 for the left hand and /dev/ttyusb1 for the right, both at 115200 baud with hand id 1 . confirm the actual ports before connecting. use the driver python from retargetingkit.targets.hands.inspire import inspirehandconfig hand = inspirehandconfig(\"/dev/ttyusb0\", 1, 115200).build() qpos = hand.get_qpos() # (6,), urdf radians hand.close() construction opens the serial connection and starts a background reader. commands begin after the first hand.set_qpos(target_qpos) call; feedback updates asynchronously. joint order is thumb rotation, thumb bend, index, middle, ring, and little finger. use hand.joint_names when aligning a robot model. teleoperate with pico after completing pico setup , run: shell uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \\ pico_g1_inspire --source.no-use-ankle-as-foot-target \\ --left-hand.serial-port /dev/ttyusb0 \\ --right-hand.serial-port /dev/ttyusb1 this connects both physical hands and publishes body motion to sonic. b toggles the right hand open/closed; y toggles the left. the rig has no preview mode and uses preset hand poses rather than tracked fingers. for continuous vision pro arm-hand control, use the visionpro_xarm7_inspire rig described in vision pro . for g1 deployment, follow humanoid teleoperation .","retargetingkit/g1":"g1 and sonic g1 and sonic targets send retargeted g1 motion to gr00t whole-body control through a sonic zmq publisher. the deployment stack executes the policy in mujoco or on a real g1. prepare the deployment stack install and configure gr00t-wholebodycontrol on the deployment machine. for the bundled simulation launcher, place the checkout at: text thirdparty/gr00t-wholebodycontrol/ the launcher expects its .venv_sim environment and gear_sonic_deploy/deploy.sh to be ready, and requires tmux . robot descriptions and collision assets come from robokit. start a recorded stream from the retargetingkit checkout: shell uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser this publishes a sample bvh clip on port 5556 and opens viser. _viser adds a viewer while keeping the sonic stream active. for a viewer without a publisher, use the first example in humanoid teleoperation . in a second terminal, launch simulation: shell bash scripts/tools/launch_sonic_sim.sh in the deployment pane, press ] , then enter , to start the policy. the script creates a sonic_sim tmux session and replaces an existing session with that name. connect a real g1 after validating the retargeted motion and preparing the robot deployment stack, run this from its gear_sonic_deploy directory on the robot: shell bash deploy.sh real --input-type zmq \\ --zmq-host --zmq-port 5556 --zmq-topic pose this selects real robot deployment. use the deployment controls and physical emergency stop described by your g1 setup. the workstation must run a sonic preset and be reachable on port 5556 . what the stream contains sonictarget receives a baseposeqposcommand , estimates and smooths joint velocities, and converts 29 joint positions and velocities from g1 urdf order to sonic order. it sends the root quaternion and joint data on topic pose ; root translation is omitted. the default publisher binds tcp://*:5556 . live axis studio, pico, and dual inspire hand workflows are covered in humanoid teleoperation .","retargetingkit/rby1":"rby1-a rby1-a targets control the rby1-a's seven-joint right arm through the rainbow robotics sdk, with separate commands for the two-joint head. this is a standalone driver; no named teleoperation rig is currently registered. connect find the robot's grpc address in its control panel, then install: shell uv sync --extra rby1 use the complete address, including the port, such as :50051 . use the driver building the driver powers on the robot, enables servos and the control manager, and starts a command stream. this snippet holds the measured right-arm pose: python from retargetingkit.targets.humanoids.rby1 import rby1aconfig, rby1amode arm = rby1aconfig(\":50051\", mode=rby1amode.velocity).build() target_qpos = arm.get_qpos() # (7,), radians arm.set_qpos(target_qpos) arm.close() replace target_qpos with the desired right-arm joint positions. get_head_qpos() and set_head_qpos() expose the head separately. close the driver with close() . mode behavior velocity default; converts position error to a smoothed command servo streams position targets with a velocity limit teaching enables right-arm gravity compensation the background loop runs at 100 hz by default. head position commands remain active in all three modes. inspect feedback shell uv run --extra rby1 scripts/targets/rby1/read_qpos.py \\ --ip :50051 this script starts the same active controller, including power and servo enable. it prints feedback while holding the initial pose; it is not a passive state reader.","retargetingkit/dexmate":"dexmate vega-1 dexmate vega-1 targets control vega-1's torso, head, and both arms through the dexmate sdk. the driver exposes 20 joints and is available as a standalone target; no named teleoperation rig is currently registered. connect configure robot discovery and zenoh communication for your dexmate setup, then install: shell uv sync --extra dexmate retargetingkit pins dexcontrol==0.4.4 and dexcomm==0.4.2 for the supported discovery stack. read current joint positions without sending a motion target: shell uv run --extra dexmate scripts/targets/dexmate/read_qpos.py press ctrl+c to close the connection. use the driver python from retargetingkit.targets.humanoids.dexmate import dexmateconfig robot = dexmateconfig().build() qpos = robot.get_qpos() # (20,), radians print(dict(zip(robot.joint_names, qpos))) robot.close() use robot.joint_names to align commands with the model: group joints torso torso_j1 through torso_j3 head head_j1 through head_j3 left arm l_arm_j1 through l_arm_j7 right arm r_arm_j1 through r_arm_j7 this is also the order of get_qpos() and set_qpos() . send motion with an open connection and a desired 20-joint target_qpos , choose one command style: python robot.set_qpos(target_qpos) # publish repeatedly in your control loop the default wait_time=0 publishes a setpoint and returns immediately. for one interpolated move that blocks until completion: python robot.set_qpos(target_qpos, wait_time=3.0, max_vel=0.2) max_vel is in radians per second. both forms command the physical robot; call robot.close() when finished.","retargetingkit/ref-frames":"frames frame api api canonical frames describe one observation. see canonical frames for units, axes, and joint ordering. handpose retargetingkit.sources.frames class

one hand pose: 21 mano keypoints, wrist-local, meters; orientations default to identity (vector ik ignores them).

python
>>> import numpy as np >>> f = handpose(np.zeros((21, 3), dtype=np.float32)) >>> bool(f.valid.all()) and f.joint_names[mano21.index_tip] == \"index_tip\" true
positions float[np.ndarray, '21 3'] orientations float[np.ndarray, '21 4'] valid bool[np.ndarray, 21] joint_names tuple[str, ...] positions: float[np.ndarray, '21 3'] orientations: float[np.ndarray, '21 4'] = field(default_factory=lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32)) valid: bool[np.ndarray, 21] = field(default_factory=lambda: np.ones(21, dtype=bool)) joint_names: tuple[str, ...] = field(default_factory=lambda: mano21_joints) handframe retargetingkit.sources.frames class frame

latest left/right hand poses from one physical source.

python
>>> frame = handframe({\"right\": handpose(np.zeros((21, 3), dtype=np.float32))}) >>> frame.hands[\"right\"].positions.shape (21, 3)
hands dict[side, handpose] hands: dict[side, handpose] armframe retargetingkit.sources.frames class frame

world-frame wrist poses used for arm retargeting.

python
>>> frame = armframe({\"right\": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)}) >>> frame.wrists[\"right\"].shape (7,)
wrists dict[side, float[np.ndarray, 7]] wrists: dict[side, float[np.ndarray, 7]] armhandframe retargetingkit.sources.frames class frame

synchronized arm and hand observations from one physical source.

python
>>> arm = armframe({\"right\": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)}) >>> hand = handframe({\"right\": handpose(np.zeros((21, 3), dtype=np.float32))}) >>> armhandframe(arm, hand).arm.wrists[\"right\"].shape (7,)
arm armframe hand handframe arm: armframe hand: handframe bodyframe retargetingkit.sources.frames class frame

named world-frame body transforms and performer height.

python
>>> frame = bodyframe((\"pelvis\",), np.zeros((1, 7), dtype=np.float32), 1.75) >>> frame.transforms.shape (1, 7)
joint_names tuple[str, ...] transforms float[np.ndarray, 'j 7'] human_height float joint_names: tuple[str, ...] transforms: float[np.ndarray, 'j 7'] human_height: float","retargetingkit/ref-sources":"sources source api api sources read a device or recording and return canonical frames; each config's build() creates its source. see interfaces for the lifecycle. source retargetingkit.sources.source class abc, generic[framet]

a device, recording, or stream producing canonical motion frames.

built in implementations include

  • visionprosource: apple vision pro hands, wrists, or both.
  • picosource: pico headset body tracking.
  • manussource: manus glove hand keypoints.
  • axisstudiosource: axis studio mocap body transforms.
  • bodyfilesource: recorded body frames replayed from disk.
get_frame() -> framet | none

return the latest canonical frame, or none before the first sample.

close() -> none

release the device.

sourceconfig retargetingkit.sources.source class abc, generic[framet]

config for source.

build() -> source[framet]

construct and start the source device.

bodyfilesourceconfig retargetingkit.sources.misc.human_frame_file class sourceconfig[bodyframe]

bvh or pico recording playback settings.

python
>>> bodyfilesourceconfig(path(\"motion.bvh\")).path.name 'motion.bvh'
path path joint_names tuple[str, ...] loop bool target_fps float use_ankle_as_foot_target bool human_height float path: path joint_names: tuple[str, ...] = body_joints loop: bool = true target_fps: float = 0.0 use_ankle_as_foot_target: bool = false human_height: float = 1.75 build() -> source[bodyframe] visionprohandconfig retargetingkit.sources.vr.vision_pro class sourceconfig[handframe]

vision pro connection projected as hand keypoints.

python
>>> visionprohandconfig() visionprohandconfig(ip=none, recording_path=none, recording_fps=20)
ip str | none recording_path str | none recording_fps int ip: str | none = none recording_path: str | none = none recording_fps: int = 20 build() -> visionprosource[handframe]

construct one canonical hand source.

visionproarmconfig retargetingkit.sources.vr.vision_pro class sourceconfig[armframe]

vision pro connection projected as world-frame wrists.

python
>>> visionproarmconfig() visionproarmconfig(ip=none, recording_path=none, recording_fps=20)
ip str | none recording_path str | none recording_fps int ip: str | none = none recording_path: str | none = none recording_fps: int = 20 build() -> visionprosource[armframe]

construct one canonical arm source.

visionproarmhandconfig retargetingkit.sources.vr.vision_pro class sourceconfig[armhandframe]

vision pro connection projected as synchronized arm and hand frames.

python
>>> visionproarmhandconfig() visionproarmhandconfig(ip=none, recording_path=none, recording_fps=20)
ip str | none recording_path str | none recording_fps int ip: str | none = none recording_path: str | none = none recording_fps: int = 20 build() -> visionprosource[armhandframe]

construct one synchronized canonical arm-and-hand source.

picosourceconfig retargetingkit.sources.vr.pico class sourceconfig[bodyframe]

live pico body-tracking settings.

python
>>> picosourceconfig().joint_names[0] 'pelvis'
human_height float use_ankle_as_foot_target bool joint_names tuple[str, ...] human_height: float = 1.75 use_ankle_as_foot_target: bool = false joint_names: tuple[str, ...] = canonical_body_joints build() -> picosource manussourceconfig retargetingkit.sources.glove.manus_glove class sourceconfig[handframe]

manus glove connection settings.

python
>>> # manussourceconfig().build() # doctest: +skip
left_id str | none right_id str | none use_calibration bool calibration_path path | none left_id: str | none = none

override the left glove id (decimal or 0x hex).

right_id: str | none = none

override the right glove id (decimal or 0x hex).

use_calibration: bool = true

apply the manus thumb transform and per-finger scales.

calibration_path: path | none = none

calibration npz path; none fetches the manus_calib hugging face asset.

build() -> source[handframe] axisstudiosourceconfig retargetingkit.sources.mocap.axis_studio.source class sourceconfig[bodyframe]

axis studio calc connection settings.

python
>>> axisstudiosourceconfig().port 7012
port int human_height float use_ankle_as_foot_target bool joint_names tuple[str, ...] port: int = 7012 human_height: float = 1.75 use_ankle_as_foot_target: bool = false joint_names: tuple[str, ...] = body_joints build() -> source[bodyframe] quest3config retargetingkit.sources.vr.quest3 class sourceconfig['quest3frame']

quest3 isaac teleop stream configuration.

app_name str sides tuple[str, ...] verbose bool cloudxr_env_path str app_name: str = 'retargetingkitquest3' sides: tuple[str, ...] = (right,) verbose: bool = true cloudxr_env_path: str = '~/.cloudxr/run/cloudxr.env' build() -> quest3

start the isaac teleop session.

python
>>> quest3config().build() # doctest: +skip
","retargetingkit/ref-hand":"hand retargeters hand retargeter api api hand retargeters consume a canonical handframe and return joint positions in the target urdf's order. choose optimization for per-frame solving or a neural model for a trained mapping. optimizationhandretargeterconfig retargetingkit.retargeting.hand.optimization class retargeterconfig[handframe, qposcommand]

online-optimization hand retargeting; spec/online come from robokit.helpers.hand_retargeting.presets.

python
>>> optimizationhandretargeterconfig(path(\"hand.urdf\"), spec, online, \"right\").side # doctest: +skip 'right'
urdf path spec annotated[handspec, tyro.conf.suppress] online annotated[handretargeteronlineconfig, opaque, tyro.conf.suppress] side side collision_spheres path | none collision_ignore path | none urdf: path spec: annotated[handspec, tyro.conf.suppress] online: annotated[handretargeteronlineconfig, opaque, tyro.conf.suppress] side: side collision_spheres: path | none = none collision_ignore: path | none = none build(device: str) -> optimizationhandretargeter

build and warm up the optimization retargeter.

python
>>> config.build(\"cpu\") # doctest: +skip
neuralhandretargeterconfig retargetingkit.retargeting.hand.neural class retargeterconfig[handframe, qposcommand]

one human hand mapped onto one robot hand by a trained checkpoint.

python
>>> from pathlib import path >>> from retargetingkit.retargeting.hand.presets import hands >>> neuralhandretargeterconfig(path(\"run\"), hands[\"xhand\"]).side 'right'
checkpoint_dir path hand handpreset side side checkpoint_dir: path hand: handpreset side: side = 'right' build(device: str) -> neuralhandretargeter

load the checkpoint onto device.

python
>>> neuralhandretargeterconfig(path(\"run\"), hands[\"xhand\"]).build(\"cpu\") # doctest: +skip
neuralhandassetretargeterconfig retargetingkit.retargeting.hand.neural class retargeterconfig[handframe, qposcommand]

a named hugging face checkpoint resolved when the retargeter is built.

checkpoint str hand handpreset side side checkpoint: str hand: handpreset side: side = 'right' build(device: str) -> neuralhandretargeter

download the checkpoint if needed, then load it on device.

python
>>> config.build(\"cpu\") # doctest: +skip
","retargetingkit/ref-arm":"arm retargeter arm retargeter api api the arm retargeter maps world-frame wrist poses in an armframe to arm joint positions. see arm retargeting for usage. retargeterconfig retargetingkit.retargeting.retargeter class abc, generic[framet, commandt]

retargeter blueprint; configs live next to their solver and feed retargetingkit.configs.teleop rig presets.

build(device: str) -> retargeter[framet, commandt]

construct and warm up the retargeter.

armretargeterconfig retargetingkit.retargeting.arm.online class retargeterconfig[armframe, qposcommand]

one human wrist mapped onto one robot arm.

python
>>> armretargeterconfig(path(\"arm.urdf\"), \"link_eef\", (0.0,), \"right\").translation_scale 1.5
urdf path ee_link str home_qpos tuple[float, ...] side side translation_scale float ee_gain float urdf: path ee_link: str home_qpos: tuple[float, ...] side: side translation_scale: float = 1.5 ee_gain: float = 1.0 build(device: str) -> armretargeter

build the online arm retargeter.

python
>>> armretargeterconfig(path(\"arm.urdf\"), \"link_eef\", (0.0,), \"right\").build(\"cpu\") # doctest: +skip
armretargeter retargetingkit.retargeting.arm.online class retargeter[armframe, qposcommand]

one human wrist to one robot arm; the first wrist sample is the calibration origin and maps to the home pose.

python
>>> armretargeter(config, \"cpu\") # doctest: +skip
config armretargeterconfig device str side: side wrist_to_ee_pose(initial_ee_pose: np.ndarray, initial_wrist: np.ndarray, wrist: np.ndarray, translation_scale: float) -> np.ndarray

replay the wrist delta since calibration from the home ee pose, scaling translation to robot reach.

python
>>> ee = np.array([1, 2, 3, 1, 0, 0, 0], dtype=np.float32) >>> identity = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32) >>> armretargeter.wrist_to_ee_pose(ee, identity, identity, 1.5) array([1., 2., 3., 1., 0., 0., 0.], dtype=float32)
smooth_pose7(previous: np.ndarray, current: np.ndarray, gain: float) -> np.ndarray

ema-blend two pose7s while keeping quaternions in one hemisphere.

python
>>> previous = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32) >>> current = np.array([1, 0, 0, 1, 0, 0, 0], dtype=np.float32) >>> armretargeter.smooth_pose7(previous, current, 0.5) array([0.5, 0. , 0. , 1. , 0. , 0. , 0. ], dtype=float32)
solve(frame: armframe) -> qposcommand","retargetingkit/ref-humanoid":"humanoid retargeter humanoid retargeter api api the humanoid retargeter maps a bodyframe to a floating-base humanoid pose. see humanoid retargeting for usage. humanoidretargeterconfig retargetingkit.retargeting.humanoid.online class retargeterconfig[bodyframe, baseposeqposcommand]

one robokit humanoid preset plus output adjustment.

python
>>> humanoidretargeterconfig(humanoidretargeteronlineconfig()).z_offset 0.0
preset annotated[humanoidretargeteronlineconfig, opaque, tyro.conf.suppress] z_offset float preset: annotated[humanoidretargeteronlineconfig, opaque, tyro.conf.suppress] z_offset: float = 0.0 build(device: str) -> humanoidretargeter

build and warm up the online retargeter.

python
>>> humanoidretargeterconfig(g1_aligned).build(\"cpu\") # doctest: +skip
humanoidretargeter retargetingkit.retargeting.humanoid.online class retargeter[bodyframe, baseposeqposcommand]

named human body transforms to a floating-base robot command.

python
>>> humanoidretargeter(config, \"cpu\") # doctest: +skip
config humanoidretargeterconfig device str solve(frame: bodyframe) -> baseposeqposcommand reset() -> none

reset the solver.

python
>>> retargeter.reset() # doctest: +skip
","retargetingkit/ref-targets":"commands and targets commands and targets api commands carry one solved robot pose. concrete targets consume joint positions or a complete command; see interfaces for how runtimes choose the update method. qposcommand retargetingkit.targets.commands class command

actuated joint positions in urdf order.

python
>>> qposcommand(np.zeros(7)).qpos.shape (7,)
qpos np.ndarray qpos: np.ndarray baseposeqposcommand retargetingkit.targets.commands class qposcommand

joint positions plus the floating-base world pose as [xyz, wxyz].

python
>>> baseposeqposcommand(np.zeros(29), np.array([0, 0, 0, 1, 0, 0, 0])).base_pose.shape (7,)
qpos np.ndarray base_pose np.ndarray qpos: np.ndarray base_pose: np.ndarray target retargetingkit.targets.target class abc

a hardware, transport, or viewer consuming robot commands.

built in implementations include

  • xarm6, xarm7: xarm hardware over the xarm sdk.
  • xhand, abilityhand, inspirehand, sharpahand: robot-hand hardware.
  • sonictarget: sonic v1 humanoid commands over zmq.
  • viser: one or more urdfs in a browser.
set_qpos(qpos: np.ndarray) -> none

command actuated joint positions in radians.

set_command(command: command) -> none

command one canonical robot command as one atomic update.

close() -> none

release hardware or transport.

targetconfig retargetingkit.targets.target class abc

robot target blueprint; subclasses live beside their device and make up retargetingkit.configs.teleop rigs.

build() -> target

construct and start the target.

","retargetingkit/ref-target-configs":"target configs target configs api each config builds one robot or viewer target. see the targets pages for hardware setup. xarm6config retargetingkit.targets.arms.xarm6 class targetconfig

xarm6 controller configuration.

ip str mode xarmmode dt float ee_link str kp np.ndarray kd np.ndarray max_velocity np.ndarray ip: str

ip address of the xarm controller.

mode: xarmmode = xarmmode.velocity

control mode.

dt: float = 1.0 / 250

servo loop timestep in seconds.

ee_link: str = xarm6_ee_link

end effector link name for ik.

kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))

proportional gains for velocity mode.

kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))

derivative gains for velocity mode.

max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))

maximum joint velocities (rad/s), used by both servo and velocity modes.

build() -> xarm6 xarm7config retargetingkit.targets.arms.xarm7 class targetconfig

xarm7 controller configuration.

ip str mode xarmmode dt float ee_link str kp np.ndarray kd np.ndarray max_velocity np.ndarray ip: str

ip address of the xarm controller.

mode: xarmmode = xarmmode.velocity

control mode.

dt: float = 1.0 / 250

servo loop timestep in seconds.

ee_link: str = xarm7_ee_link

end effector link name for ik.

kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))

proportional gains for velocity mode.

kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))

derivative gains for velocity mode.

max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))

maximum joint velocities (rad/s), used by both servo and velocity modes.

build() -> xarm7 xhandconfig retargetingkit.targets.hands.xhand class targetconfig

xhand controller configuration.

serial_port str protocol str baud_rate int dt float kp float ki float kd float tor_max float serial_port: str

serial port for rs485 communication.

protocol: str = 'rs485'

communication protocol ('rs485' or 'ethercat').

baud_rate: int = 3000000

baud rate for rs485 serial.

dt: float = 1.0 / 83

servo loop timestep (matches 83 hz firmware rate).

kp: float = 90.0

default position-loop proportional gain.

ki: float = 0.0

default position-loop integral gain.

kd: float = 0.0

default position-loop derivative gain.

tor_max: float = 80.0

default maximum torque.

build() -> xhand sharpahandconfig retargetingkit.targets.hands.sharpa_hand class targetconfig

sharpa wave connection settings.

speed_coeff float current_coeff float device_sn str | none speed_coeff: float = 0.3

joint speed coefficient (0-1).

current_coeff: float = 0.3

joint current coefficient (0-1).

device_sn: str | none = none

serial number; the first discovered hand is used when unset.

build() -> sharpahand abilityhandconfig retargetingkit.targets.hands.ability_hand class targetconfig

ability hand controller configuration.

port str dt float mode controlmode ramp_deg_per_s float port: str

serial port path (e.g. /dev/serial/by-id/...).

dt: float = 1.0 / 160

servo loop timestep in seconds.

mode: controlmode = controlmode.pos_ramp

control mode.

ramp_deg_per_s: float = 60.0

position ramp rate to avoid firmware current-limiting stalls.

build() -> abilityhand inspirehandconfig retargetingkit.targets.hands.inspire class targetconfig

inspire hand serial settings.

python
>>> inspirehandconfig(\"/dev/ttyusb0\", 1, 115200).serial_port '/dev/ttyusb0'
serial_port str hand_id int baudrate int serial_port: str hand_id: int baudrate: int build() -> inspirehand

connect and return an inspire hand target.

python
>>> inspirehandconfig(\"/dev/ttyusb0\", 1, 115200).build() # doctest: +skip
sonictargetconfig retargetingkit.targets.humanoids.sonic class targetconfig

sonic v1 publisher settings.

python
>>> sonictargetconfig().port 5556
host str port int lookahead int host: str = '*' port: int = 5556 lookahead: int = 50 build() -> sonictarget

bind and return a sonic target.

python
>>> sonictargetconfig(port=15556).build() # doctest: +skip
rby1aconfig retargetingkit.targets.humanoids.rby1 class targetconfig

rby1-a right-arm controller configuration.

ip str mode rby1amode dt float ee_link str cutoff_frequency float kp np.ndarray kd np.ndarray max_velocity np.ndarray home_qpos np.ndarray head_max_velocity np.ndarray head_home_qpos np.ndarray ip: str

ip address with port (e.g. 192.168.30.1:50051).

mode: rby1amode = rby1amode.velocity

control mode.

dt: float = 1.0 / 100

servo loop timestep in seconds.

ee_link: str = 'link_right_arm_6'

end effector link name for ik.

cutoff_frequency: float = 5.0

sdk-side position command smoothing frequency (hz).

kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))

proportional gains for velocity mode.

kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))

derivative gains for velocity mode.

max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))

maximum joint velocities (rad/s), used by both servo and velocity modes.

home_qpos: np.ndarray = field(default_factory=lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))

target joint positions for the home configuration (rad).

head_max_velocity: np.ndarray = field(default_factory=lambda: np.array([1.0, 1.0]))

maximum head joint velocities (rad/s).

head_home_qpos: np.ndarray = field(default_factory=lambda: np.zeros(num_head_joints))

target head joint positions for the home configuration (rad).

build() -> rby1a

connect to the robot and start its servo loop.

python
>>> rby1aconfig(\"192.168.30.1:50051\").build() # doctest: +skip
dexmateconfig retargetingkit.targets.humanoids.dexmate class targetconfig

dexmate vega-1 whole-body controller configuration.

auto_shutdown bool auto_shutdown: bool = true

register the sdk's atexit shutdown hook. disable when the caller owns shutdown via close.

build() -> dexmate

connect to the robot.

python
>>> dexmateconfig().build() # doctest: +skip
viserconfig retargetingkit.targets.viser class targetconfig

urdfs to display, in the order callers index them.

python
>>> viserconfig((path(\"robot.urdf\"),)).urdfs[0].name 'robot.urdf'
urdfs tuple[path, ...] keypoint_edges tuple[tuple[int, int], ...] urdfs: tuple[path, ...] keypoint_edges: tuple[tuple[int, int], ...] = () build() -> viser

start the viser server.

python
>>> viserconfig((path(\"robot.urdf\"),)).build() # doctest: +skip
","retargetingkit/ref-teleop":"teleop configs teleop configs api each named rig run by scripts/teleop/ is an instance of one of these configs. see teleoperation for rig names and overrides. handteleopconfig retargetingkit.configs.teleop.config class

one hand source retargeted to one robot hand.

source sourceconfig[handframe] target targetconfig retargeter retargeterconfig[handframe, qposcommand] side side rate float mode literal['viser', 'real', 'both'] device str source: sourceconfig[handframe]

hand motion source blueprint.

target: targetconfig

robot hand blueprint.

retargeter: retargeterconfig[handframe, qposcommand]

optimization or neural hand retargeting blueprint.

side: side = 'right'

hand side shared by the source and retargeter.

rate: float = 30.0

control-loop frequency in hz.

mode: literal['viser', 'real', 'both'] = 'viser'

viser only, hardware only, or both.

device: str = 'cuda:0'

warp device used by robokit.

armteleopconfig retargetingkit.configs.teleop.config class

one arm source controlling one robot arm per side.

source sourceconfig[armframe] arms dict[side, targetconfig] retargeters dict[side, armretargeterconfig] mode literal['viser', 'real', 'both'] device str source: sourceconfig[armframe]

wrist motion source blueprint.

arms: dict[side, targetconfig]

robot arm blueprint per side.

retargeters: dict[side, armretargeterconfig]

wrist-to-arm retargeting blueprint per side.

mode: literal['viser', 'real', 'both'] = 'viser'

viser only, hardware only, or both.

device: str = 'cuda:0'

warp device used by robokit.

armhandteleopconfig retargetingkit.configs.teleop.config class

one arm-and-hand source controlling one robot arm and one robot hand per side.

source sourceconfig[armhandframe] arms dict[side, targetconfig] hands dict[side, targetconfig] arm_retargeters dict[side, armretargeterconfig] hand_retargeters dict[side, retargeterconfig[handframe, qposcommand]] assembly_urdf path mode literal['viser', 'real', 'both'] device str source: sourceconfig[armhandframe]

wrist and hand motion source blueprint.

arms: dict[side, targetconfig]

robot arm blueprint per side.

hands: dict[side, targetconfig]

robot hand blueprint per side.

arm_retargeters: dict[side, armretargeterconfig]

wrist-to-arm retargeting blueprint per side.

hand_retargeters: dict[side, retargeterconfig[handframe, qposcommand]]

hand retargeting blueprint per side.

assembly_urdf: path

combined arm-and-hand urdf used only for visualization.

mode: literal['viser', 'real', 'both'] = 'viser'

viser only, hardware only, or both.

device: str = 'cuda:0'

warp device used by robokit.

humanoidteleopconfig retargetingkit.configs.teleop.config class

one body source retargeted to one or more humanoid targets.

source sourceconfig[bodyframe] retargeter humanoidretargeterconfig targets tuple[targetconfig, ...] device str source: sourceconfig[bodyframe]

body motion source blueprint.

retargeter: humanoidretargeterconfig

body-to-humanoid retargeting blueprint.

targets: tuple[targetconfig, ...]

humanoid target blueprints fed the same command.

device: str = 'cuda:0'

warp device used by robokit.

humanoidhandteleopconfig retargetingkit.configs.teleop.config class

one pico connection controlling a humanoid and two robot hands.

source picosourceconfig retargeter humanoidretargeterconfig targets tuple[targetconfig, ...] left_hand targetconfig right_hand targetconfig open_qpos tuple[float, ...] closed_qpos tuple[float, ...] device str source: picosourceconfig

pico body and controller source blueprint.

retargeter: humanoidretargeterconfig

body-to-humanoid retargeting blueprint.

targets: tuple[targetconfig, ...]

humanoid target blueprints fed the same command.

left_hand: targetconfig

left robot hand blueprint.

right_hand: targetconfig

right robot hand blueprint.

open_qpos: tuple[float, ...]

hand joint positions commanded when the trigger is released.

closed_qpos: tuple[float, ...]

hand joint positions commanded when the trigger is pressed.

device: str = 'cuda:0'

warp device used by robokit.

","retargetingkit/development":"development development keep device conversion, retargeting, and robot transport in their respective layers. named rig presets connect supported components without putting device-specific dispatch in a runtime. repository map layer location responsibility sources src/retargetingkit/sources/ native data to canonical frames retargeters src/retargetingkit/retargeting/ frames to robot commands targets src/retargetingkit/targets/ hardware, transport, or visualization presets src/retargetingkit/configs/teleop/ source, solver, target, and connection settings runtimes scripts/teleop/ component lifecycle and control loop validate changes shell uv sync --extra vis --group dev make ci add the hardware extras required by your work. during development, run make format , make lint , make check , or make test for the relevant check. every python example in these docs runs in tests/test_docs.py ; device pages run against autospecced devices. public functions should have doctests. group pytest cases by feature and use torch.testing.assert_close for numerical comparisons. add a component give a source an isolated stream check, a target a connection check with its hardware behavior stated, and a retargeter a runnable example. add a named rig once the complete composition is supported. keep device guides focused on setup, a stream or connection check, and a working entrypoint. validate example paths and command flags against the implementation.","graspkit/overview":"overview overview graspkit is an end-to-end toolkit for manipulation across various robot embodiments, including grippers and dexterous hands. it synthesizes grasps, plans trajectories, trains policies, and deploys them in simulation or on real robots; it is built on top of robokit . real-world grasping with dexterous robot hands in san diego. key features fast grasp optimization. gpu optimizers refine thousands of grasp seeds per batch against cached scene geometry. see grasp optimization . performant policy training. train grasp policies on processed point clouds and successful trajectories, with multi-gpu support. see training . across embodiments. use grippers and dexterous hands in arm, hand, and humanoid configurations. see the robot catalog . simulation validation. filter and motion-plan grasps, then test them in physics simulation. see simulation deployment . real-world validation. run trained policies on xarm and vega robots with calibrated cameras and collision-checked motions. see real deployment . fast grasp optimization performant policy training all arms, all hands real-world robustness how it works stage role read more scene descriptions objects, scales and poses on a table, as msgpack. scene descriptions grasp optimization energy minimization to grasp poses, then filters, motion planning and sim validation. grasp optimization rendering point-cloud observations of the same scenes, from calibrated cameras. pipeline training a cvae policy that maps an object point cloud to pre-grasp, grasp and post-grasp poses. training deployment policy inference plus trajectory building, in sim or on hardware. sim , real for the graph of stages and the artifacts between them, see core overview . quick links quickstart installation github website","graspkit/quickstart":"quickstart quickstart try it without installing run this to start the interactive grasp gallery: shell uvx --from graspkit python -m graspkit.gallery.grasp_optim pick a hand, arm, and object. press optimize to generate grasps, then browse them with the grasp slider. the gallery caches results for the next visit. optimize one grasp after installing , run the smallest grasp optimization example: shell uv run src/graspkit/examples/grasp_optim/01_basic.py it optimizes xhand grasps for one ycb object and opens a viser page to browse the results. grasp optimization needs a cuda gpu. more examples the scripts below are runnable. paths are relative to the repository root. directory scripts src/graspkit/examples/grasp_optim 01_basic.py , 02_table.py , 03_arm.py , 04_sim_valid.py , 05_table_sim_valid.py , 06_arm_sim_valid.py , 07_mj_sim_valid.py scripts/launch.py run an experiment from grasp optimization through policy training. see the full pipeline . example usage: shell uv run src/graspkit/examples/grasp_optim/02_table.py","graspkit/install":"installation installation graspkit needs python 3.10–3.14; the maniskill extra needs 3.10–3.12 and spconv 3.10–3.13. grasp optimization, rendering, and training need a cuda gpu. uv pip shell uv add graspkit shell pip install graspkit from source uv pip shell uv add git+https://github.com/openrobokit/graspkit.git shell pip install git+https://github.com/openrobokit/graspkit.git to work on graspkit itself, follow the development guide . pytorch builds uv sync installs the dev and pt-cu126 groups by default. the pytorch groups conflict with each other, so select another one explicitly: shell uv sync --no-default-groups --group pt-cu128 group what it adds pt-cu126 pytorch + torchvision for cuda 12.6 (default). pt-cu118 , pt-cu128 the same for cuda 11.8 / 12.8. pt-cpu cpu-only pytorch. dev ipython, pytest, robot_descriptions (default). extras extra what it adds maniskill maniskill, for simulation, rendering and grasp evaluation (python 3.10–3.12). spconv spconv, for the default spconv vision encoder (python 3.10–3.13). torchvision torchvision, for the rgb_resnet vision encoders. sam2 sam 2, for the segmentation step of deployment . xarm retargetingkit[realsense,xarm,ability] + open3d, for the xarm rigs (python 3.10). vega retargetingkit[xarm,ability,dexmate] + pyzmq + open3d, for the vega humanoid. data-process coacd, fast-simplification, for asset processing. the sam2 extra uses a wheel from a separate index: uv pip shell uv add \"graspkit[sam2]\" --index https://jianglongye.github.io/torch_packages_builder shell pip install \"graspkit[sam2]\" --extra-index-url https://jianglongye.github.io/torch_packages_builder shell uv run --extra sam2 --extra vega scripts/deploy/deploy.py --help assets and credentials import graspkit downloads nothing. assets are fetched when the module that needs them is imported: graspkit's scenes, objects and calibration files come from the huggingface dataset openrobokit/graspkit into ~/.graspkit/assets/ , and robot urdfs, meshes and collision spheres come from openrobokit/robokit into ~/.robokit/assets/ . data and logs live in ~/.graspkit/data and ~/.graspkit/logs , created on import. graspkit.link() symlinks both into the repo for browsing. a .env file with graspkit_s3_root , fsspec_s3_endpoint_url , fsspec_s3_key and fsspec_s3_secret is needed only for the _s3 experiments; it is loaded on import. graspkit_excluded_gpus lists gpu ids that scripts/launch.py must never use, such as 4,5 . graspkit.assets.revision pins the asset revision; delete ~/.graspkit/assets//.done/ to re-download. verify shell cuda_visible_devices=0 uv run pytest tests/ uv run src/graspkit/examples/grasp_optim/01_basic.py the example opens a viser page with optimized xhand grasps. next: the quickstart .","graspkit/grasp-optim":"grasp optimization grasp optimization (grasp_optim) a floating hand optimizing a grasp. an arm and hand optimized together on a fixed base. graspkit.stages.grasp_optim synthesizes grasps on a floating or fixed base. it optimizes them on the gpu (warp) with a gradient-descent or levenberg-marquardt backend, then plans grasp trajectories and keeps only the grasps that pass simulation validation. this tutorial covers the main grasp optimization workflows. the logic lives in [src/graspkit/stages/grasp_optim](../../src/graspkit/stages/grasp_optim/) ; runnable clis for optimization, validation, and visualization are in [scripts/stages/grasp_optim](../../scripts/stages/grasp_optim/) . how grasp optimization works sample initial hand poses around the target object. run the grasp optimizer ( warp_gd or warp_lm backend) to get 3-frame grasps (pre-grasp, grasp, post-grasp), with a floating or fixed base. if filters are enabled (hand-axis cone, contact-avoid, penetration), mark the grasps that fail them. filters run first inside the traj builder. the traj builder motion-plans the 3 frames into grasp trajectories. simulation validation keeps the grasps that pass filters, planning and sim. flowchart td input[input

scene description
robot config] subgraph optim[grasp optimization] direction tb sample[1. sampler
→ initial hand poses] opt[\"2. graspoptimizer (warp_gd / warp_lm)
→ 3-frame grasps\"] filter[\"3. filters (optional)\"] plan[\"4. trajbuilder
→ grasp traj\"] sim[\"5. simulation validation\"] sample --> opt --> filter --> plan --> sim end output[return grasps] input --> sample sim --> output quick start prerequisites: uv sync --extra maniskill --extra spconv , a cuda gpu. assets (scenes, object meshes, robot urdfs) download automatically on first use. run grasp optimization for a registered experiment config (here xhand on the dex1b v0.5 tabletop mini set) with scripts/launch.py . shell uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \\ --steps optimize_grasps \\ --grasp_optim.max_scenes 32 \\ --grasp_output_dir data/optim_data/xhand_grasps/quickstart --grasp_optim.max_scenes 32 keeps it to about two minutes on one gpu; drop it to run all 5500 scenes. the sections below build the same stage step by step in python. sampling initial poses init samples drawn with the palm-down cone below: red is the hand axis ( palm_forward ), gray is the target (world -z). both start at the wrist; the label is their angle, always within the 60 deg cone. optimize() starts from the optimizer's sampler; call it directly to inspect the initial poses: python from dataclasses import replace import torch from graspkit.configs.robot.xhand import xhand_right from graspkit.gallery.grasp_optim import gallery_scene from graspkit.stages.grasp_optim import graspoptimconfig, scenegeom, warpgraspoptimizer scene = gallery_scene(\"ycb/mustard_bottle\") # scenedescription: the bottle on a table whose top is z=0 device = torch.device(\"cuda:0\") # customize the approach config = graspoptimconfig( distance_lower=0.05, # wrist 5-15 cm from the closest object point distance_upper=0.15, hand_axis=\"palm_forward\", # hand_coord_spec axis to constrain hand_axis_target=(0.0, 0.0, -1.0), # toward world -z filter_hand_axis_max_angle_deg=60.0, # cone half-angle ) optimizer = warpgraspoptimizer(config, xhand_right, device) init_qpos = optimizer.sampler.sample(scenegeom([scene], device=device), num_samples_per_scene=8) grasp optimization optimize() samples init poses with the same sampler, then minimizes the grasp energy on the gpu. reusing scene and the palm-down config from above: python config = replace(config, optimizer_backend=\"warp_gd\") # or \"warp_lm\" (levenberg-marquardt) optimizer = warpgraspoptimizer(config, xhand_right, device) grasp_qpos = optimizer.optimize([scene], num_samples_per_scene=8) # (1, 8, 18) filtering grasps grasp filters live in grasptrajbuilderconfig and run first inside grasptrajbuilder.build() . they only mark grasps, they don't drop them. call filter_grasps to run them alone, without motion planning: python from graspkit.configs.experiment_config import grasptrajbuilderconfig from graspkit.datasets.graspkit_data import graspkitdata from graspkit.stages.grasp_traj_build import grasptrajbuilder traj_builder = grasptrajbuilder( grasptrajbuilderconfig( floating_base_robot_config=xhand_right, contact_avoid_filter=true, # contact links closer to the object than their paired avoid links pen_filter=true, # hand spheres overlap the object by at most pen_filter_threshold pen_filter_threshold=0.005, hand_axis=\"palm_forward\", # palm normal within 60 deg of world -z (top-down grasps) hand_axis_target=(0.0, 0.0, -1.0), filter_hand_axis_max_angle_deg=60.0, ), device, ) batch = graspkitdata(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos) success, metrics = traj_builder.filter_grasps(batch, torch.ones(grasp_qpos.shape[:2], dtype=torch.bool, device=device)) kept = grasp_qpos[success] # (n_kept, dofs) building grasp trajectories build() runs the filters above, then motion-plans a pre-grasp -> grasp -> lift trajectory for every grasp. rejected grasps are still planned; drop them with filter_success : python traj_builder = grasptrajbuilder( grasptrajbuilderconfig(floating_base_robot_config=xhand_right, contact_avoid_filter=true), device ) batch = graspkitdata(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos) batch, filter_success = traj_builder.build(batch) simulation validation the sim evaluator rolls out each planned trajectory in maniskill, pokes the object with external forces, and reports which grasps still lift it: python from graspkit.configs.env_config import msenvconfig from graspkit.configs.experiment_config import envconfig from graspkit.envs import build_env evaluator = build_env( envconfig( ms_env_config=msenvconfig(robot_uid=\"xhand_right_floating_base\"), load_scenes=true, control_freq=50, object_mass=1.0, target_lift_dist=0.08, num_envs=8, num_perturbations=4, perturbation_magnitude=5.0, perturbation_step_range=(-25, -5), ), xhand_right, device, ) eval_success = evaluator.evaluate(batch)[\"success\"].to(device) # (1, 8) bool kept = grasp_qpos[filter_success & eval_success] # (n_kept, dofs) evaluator.close() outputs one {scene_id}.h5 per scene with grasp_qpos , pre_grasp_qpos , post_grasp_qpos of shape (n, d) : d = hand joints (fixed base) or xyz + euler rxyz + hand joints (floating). .optim_complete marks the stage done. see data_format.md . code map code role src/graspkit/stages/grasp_optim/sampler.py init pose sampler src/graspkit/stages/grasp_optim/warp_optimizer.py warpgraspoptimizer src/graspkit/stages/grasp_filters.py grasp filters ( ori , pen , contactavoid ) src/graspkit/stages/grasp_traj_build/builder.py grasptrajbuilder : filters + motion planning src/graspkit/envs/ build_env sim evaluator scripts/launch.py runs an experiment config end to end","graspkit/training":"policy training policy training (train) %%{init: {\"flowchart\": {\"wrappingwidth\": 300}}}%% flowchart lr pc[scene point cloud
n × 3] enc[vision encoder
pointnet / spconv] eps([\"noise ε ~ n(0, i)\"]) gt[gt grasps] gen[\"generator
cvae: encoder + decoder
flow: velocity network\"] out[generated grasps] pc --> enc -->|scene feature| gen eps --> gen gt -.->|train only| gen gen --> out grasppolicy maps a scene point cloud to pre-grasp, grasp, and post-grasp configurations, trained on successful grasp trajectories. code: scripts/stages/train/train.py (cli), stages/trainer.py (loop), datasets/grasp_dataset.py (data), models/grasp_policy.py (model). for every training, dataset, and policy parameter, see the training and policy api. quick start prerequisites: uv sync --extra maniskill --extra spconv , a cuda gpu, and an experiment whose processed_data_path exists. normally render_data , optimize_grasps , and process_sim_data produce that file. shell # run only training from a registered experiment. uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train # multi-gpu training (this experiment defaults to train_single_gpu=true). uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3 --steps train \\ --no_train_single_gpu # override nested dataclass fields through tyro. uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train \\ --trainer.total_iters 20000 \\ --trainer.eval_freq 5000 \\ --trainer.save_freq 5000 training writes tensorboard logs and checkpoints under logs/train// . a completed run writes .train_complete ; a later launch skips the stage while that marker exists. minimal training loop the experiment config holds the three pieces: dataset ( datasetconfig ), agent ( grasppolicyconfig ), and trainer ( trainerconfig ). python import torch from torch.utils.data import dataloader from graspkit.configs.experiment import build_experiment_config from graspkit.datasets.grasp_dataset import graspdataset from graspkit.models.grasp_policy import build_grasp_policy cfg = build_experiment_config(\"xhand_right_dex1b_v0_5_mini_tabletop\") dataset = graspdataset(cfg.dataset, cfg.processed_data_path, cfg.scene_description_path, split=\"train\") loader = dataloader(dataset, batch_size=cfg.trainer.batch_size, shuffle=true, num_workers=4, drop_last=true) policy = build_grasp_policy(cfg.agent, cfg.robot_config, \"cuda\") optimizer = torch.optim.adamw(policy.parameters(), lr=cfg.trainer.lr) for batch in loader: obs = {k: v.cuda() for k, v in batch[\"observations\"].items()} loss = policy(obs, batch[\"actions\"].cuda())[\"loss\"] optimizer.zero_grad() loss.backward() optimizer.step() policy.eval() with torch.no_grad(): grasps = policy.get_action(obs, num_samples_per_scene=8) # (b, 8, 3, d): pre / grasp / post the real trainer ( src/graspkit/stages/trainer.py ) adds lr scheduling, ddp, checkpoints, tensorboard, and simulation evaluation through trainer.evaluator . evaluate a checkpoint evaluation samples one trajectory per scene, runs grasp filtering and motion planning, then rolls the trajectory out in the configured simulator: shell uv run scripts/stages/train/train.py xhand_right_dex1b_v0_5_mini_tabletop \\ --trainer.eval_only \\ --ckpt_path logs/train/xhand_right_dex1b_v0_5_mini_tabletop/checkpoints/best_eval_success_rate.pt the command reports simulation success, penetration pass rate, and their joint rate. per-scene results are saved to logs/eval/.json .","graspkit/pipeline":"pipeline the full pipeline (launch.py) scripts/launch.py turns a set of scene descriptions into a trained grasp policy. one experiment name selects an experimentconfig whose steps run in order: render point-cloud observations, synthesize and validate grasps, join both into a training dataset, and train an open-loop policy. this tutorial explains what each stage does and how data flows between them. for stage deep-dives see the grasp_optim tutorial and the training tutorial ; for every parameter see the config reference . overview the default steps are (\"render_data\", \"optimize_grasps\", \"process_sim_data\", \"train\") . observations and actions are produced independently from the same scene descriptions, then joined per scene. robot_config decides what the optimizer outputs: a floating hand yields floating grasps, an arm+hand robot yields fixed-base grasps. the grasptrajbuilder filters them, optionally ik-converts floating grasps onto the fixed robot ( convert_to_fixed=true ), and plans the grasp trajectory; the evaluator keeps only grasps that survive a sim rollout. every stage writes a completion marker next to its output ( .render_complete , .optim_complete , ...). a later launch skips any stage whose marker exists, so an interrupted pipeline resumes where it stopped. quick start prerequisites: uv sync --extra maniskill --extra spconv , cuda gpus. assets (scenes, object meshes, robot urdfs) download automatically on first use. experiments live in src/graspkit/configs/experiment/ and are registered by name in its __init__.py . shell # full pipeline on 4 gpus uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3 # run a subset of steps; any nested config field is a cli flag through tyro uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --steps optimize_grasps \\ --grasp_optim.num_attempts 2 # rerun from a step: deletes that step's marker + output and everything downstream uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --restart-from process_sim_data # append mode: keep the restart step's output, delete only its marker (top up grasps) uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \\ --restart-from optimize_grasps --append renderer -> point-cloud observations renders every scene through the calibrated real camera so training observations match deployment. flowchart td sd[(scene descriptions)] calib[(camera calibration
extrinsic + intrinsic .json)] cam[per-scene camera poses
fixed: calibrated view
sampled: jittered views + look-at] ren[renderer] seg[segmented object points] vis[object-visibility view filter
sampled mode only] out[(rendered_data_path/scene_id.h5)] sd --> cam calib --> cam cam --> ren --> seg seg -->|fixed| out seg -->|sampled| vis --> out the calibrated extrinsic is anchored to the fixed-base robot's base pose ( camera_frame=\"robot\" ) or used as-is ( \"world\" ). camera_mode=\"fixed\" saves one view per scene; \"sampled\" renders camera_sample_num_views jittered views and keeps every view where the target object projects into the image (multi-view augmentation). key config: renderer ( rendererconfig ). an optional sample_point_cloud step exists for experiments that want full object point clouds sampled directly from the meshes instead of rendered ones; no registered experiment currently uses it. graspoptimizer -> grasp synthesis and validation synthesizes grasps per scene and keeps only those that survive filtering, motion planning, and a physics stress test. see the grasp_optim tutorial for the components and the algorithm concepts for the two optimizer backends. %%{init: {\"flowchart\": {\"curve\": \"linear\"}}}%% flowchart lr sd([scene description]) --> opt[grasp optimizer] opt --> gp[\"3 frame grasp poses
(floating/fixed base)\"] gp --> tb[traj builder] tb --> gt([grasp traj]) gt --> ev[simulation evaluator] ev --> gp gp -- successful grasps --> og([optimized grasps]) style opt fill:#ffe680,stroke:#b38f00 style tb fill:#ffe680,stroke:#b38f00 style ev fill:#ffe680,stroke:#b38f00 linkstyle 6 stroke:#2e9e44,color:#2e9e44 the stage loops num_attempts passes with work stealing: a scene stays to-do while its file holds fewer than min_grasps_threshold grasps, so later passes top up hard scenes. each batch runs optimize -> filter + plan -> sim eval, then appends the surviving pre/grasp/post configurations. key config: grasp_optim ( graspoptimconfig , evaluator nested inside) and traj_builder ( grasptrajbuilderconfig ). process_sim_data —> join observations and actions joins the two upstream outputs per scene id into one training hdf5. scenes missing either side are dropped. flowchart td pc[(rendered pts)] gr[(succ grasp poses)] ce[\"contactextractor (optional)\"] gw[graspness weight] out[(processed sim data
processed_data_path .h5)] pc --> out gr --> out gr --> ce --> gw --> out actions stack the three saved configurations per grasp; meta/action_mean and meta/action_std normalize them during training. with enable_contact_extraction=true each scene also gets per-point graspness weights. see data_format.md . trainer — policy learning learns an open-loop policy mapping one scene point cloud to pre-grasp, grasp, and post-grasp configurations. see the training tutorial . flowchart td ds[(dex1b dataset
processed_data_path .h5)] pol[grasppolicy
point-cloud encoder + cvae] tb[grasptrajbuilder] ev[evaluator] ckpt[(ckpt
logs/train/name)] ds --> pol --> tb --> ev --> ckpt every eval_freq iterations, predicted grasps go through the same grasptrajbuilder path as data optimization (filters + motion planning) before rolling out in the evaluator env. the policy can also be trained on floating grasps and evaluated on the fixed-base robot: with traj_builder.convert_to_fixed=true the builder ik-converts the predicted floating grasps onto the arm and the evaluator rolls out the fixed-base trajectories (see xhand_right_dex1b_v0_5_mini_tabletop_fixed_eval ). key config: dataset ( datasetconfig ), agent ( grasppolicyconfig ), trainer ( trainerconfig ). outputs config field contents marker rendered_data_path per-scene {scene_id}.h5 segmented point clouds .render_complete grasp_output_dir per-scene {scene_id}.h5 pre/grasp/post qpos /.optim_complete processed_data_path one .h5 : data//{obs,actions} + meta stats .process_sim_data_complete logs/train// tensorboard logs, checkpoints, eval results /.train_complete","graspkit/sim-deploy":"sim deployment sim deployment three ways to run a trained policy in simulation: inside training, as a reproducible benchmark, or interactively in the deploy ui. during training set trainerconfig.evaluator to an envconfig and the trainer evaluates every eval_freq iterations on rank 0: it samples actions, builds trajectories with grasptrajbuilder , rolls them out, and reports a success rate plus a report-only penetration pass rate ( penetration <= eval_pen_threshold , 5 mm by default). shell # evaluate an existing checkpoint, no training uv run scripts/stages/train/train.py --trainer.eval-only --ckpt-path results land in logs/train//eval_success.jsonl , tensorboard ( eval/success_rate , eval/pen_pass_rate ) and checkpoints/best_eval_success_rate.pt . eval-only runs also write per-scene results to logs/eval/.json . knobs on envconfig : num_envs (2048), num_seeds (a grasp must survive every seed), enable_perturbation with perturbation_magnitude / perturbation_step_range / num_perturbations , the task ( control_freq , object_mass , target_lift_dist , ...), and mj_env_config / isaac_env_config to pick a backend other than maniskill. trainerconfig adds eval_num_envs , max_eval_batches and eval_pen_threshold . maniskill counts a tabletop grasp as a success when the hand is strictly grasping and the object has risen by target_lift_dist ; with floating_object it is grasp-only. as a benchmark the default checkpoint mode of scripts/benchmark/grasp_policy/evaluate_policy.py makes every prediction before any physics, asserts the eval scenes are disjoint from the training and validation ids, and records actions, trajectories, and per-scene results. shell pythonhashseed=0 cuda_visible_devices= uv run scripts/benchmark/grasp_policy/evaluate_policy.py \\ --checkpoint --output \\ --evaluation-experiment --observations-path \\ --require-native --require-object-disjoint the checkpoint must carry experiment , policy_config , agent and training keys; plain trainer checkpoints hold only agent , so use the packaging scripts under scripts/stages/train/ . the report gives raw (sim success), penetration (deepest hand-sphere overlap into the object at the grasp pose, in metres) and joint = raw & penetration <= 0.005 . that 5 mm threshold is fixed in the script, independent of eval_pen_threshold . the same runner supports tabletop observations with --mode pc_open_loop , pc_closed_loop , or rgb_closed_loop . choose --robot from arx_x5 , panda_allegro , or agilex_aloha , and --arm-mode from floating_ik or arm_aware . each scene gets one selected grasp execution; tabletop results are written to a .jsonl output. interactively shell uv run --extra sam2 scripts/deploy/deploy.py --env sim \\ --exp-config-name --ckpt-path the sim path runs one environment, takes scenes from the experiment's msgpack split, and drives the same staged viser ui the real robot uses — capture, segment, check grasp, deploy. --auto (sim only) takes the segmentation prompt from the simulator's ground-truth mask and prints the sam2-vs-gt mask iou; --scene-id and --num-scenes choose scenes, --deploy-batch-size replays several grasps at once. mujoco instead of maniskill setting envconfig.mj_env_config selects mujoco, which is the only backend for hands with no maniskill agent ( shadow_right_mj , xarm7_xhand_right_mj , vega_sharpa_*_mj ). it runs on cpu in a spawned pool of up to 48 workers and evaluates a grasp pose rather than a trajectory: setting=\"fc\" — free-space force closure: grip, then hold against six axis-aligned forces; fails if the object translates past trans_thre or rotates past angle_thre . setting=\"tabletop\" — grip, apply a downward wrench (gravity is disabled), lift 20 cm, and require slip below lift_slip_thre , rotation below angle_thre , and contact after the lift. use timestep=0.001 for actuated arm+hand models; the 0.004 default flings the object. pitfalls msenv warns when num_envs and the sample count are not multiples of each other: the mismatch forces a reconfiguration per batch, which dominates the runtime. evaluating far fewer grasps than num_envs is wasteful; the env warns about that too. reconfiguration only happens when the batch's scene set changes, so sort work by scene. seeding is explicit: evaluate_policy.py asserts pythonhashseed=0 ; seed_everything does not enable deterministic kernels unless asked.","graspkit/real-deploy":"real deployment real deployment running a trained policy on hardware: capture a point cloud, predict a grasp, build a trajectory, execute it, release, and park. these scripts move a real robot. run them yourself, with the e-stop in reach — never from an automated agent. prerequisites the rig's xarm extra, plus sam2 for segmentation. a checkpoint whose robot matches the rig: deploy asserts that the actuated joint names of the policy's robot and the hardware robot are identical. hardware presets configs/real_env.py holds one realenvconfig per rig; --real-env-config-name selects it, and an experiment can name a default through real_env_config_name . preset arm hand camera xarm7_xhand_right xarm7 xhand realsense xarm6_sharpa_right xarm6 sharpa realsense xarm7_ability_right xarm7 ability (channel reindex) realsense each preset also carries the planning table ( table_size , table_xy , table_z ), the point-cloud crop centre ( workspace_center ), the streaming rate ( control_hz ) and how many depth frames to median-combine. experiments need --real-env-config-name , a fixed-base trajectory and camera_frame=\"robot\" . run it shell uv run --extra sam2 --extra xarm scripts/deploy/deploy.py --env real \\ --exp-config-name xhand_right_dex1b_v0_5_mini_tabletop_fixed_eval \\ --ckpt-path --real-env-config-name xarm7_xhand_right every stage waits for a button in the viser page: capture — reset to the init pose, grab rgb (median of depth_frames depth frames). segment — click the object; sam 2 turns the clicks into a mask, which becomes the cropped, subsampled point cloud in the robot base frame. check grasp — the policy samples --num-samples grasps; the trajectory builder converts and plans them, and the top eight valid candidates are shown. for a floating-base policy the cloud is mean-centred and the centroid added back; --pc-offset nudges it. --post-grasp-hand-close-scale rescales the closing motion. deploy — the trajectory is streamed phase by phase at the rig's control_hz . the deploy until step slider stops mid-trajectory so you can compare commanded and measured joint positions against the live cloud, then resume. release and park — the hand opens in place, then a collision-checked plan returns the arm to the init pose against a table raised by 5 cm. there is no reset afterwards. --loop keeps cycling; without it, a capture with no valid grasp is an error. calibration the deploy path reads a base-frame camera extrinsic and a camera intrinsic from the shipped calibration files ( assets/calib.py , wired into the experiment's renderer.camera_poses_path and camera_intrinsic_path ). inspect the result with uv run scripts/tools/visualize_camera_extrinsic.py --experiment-name ... (offline) or uv run --extra xarm scripts/deploy/visualize_calib.py (live). the park plan raises the table by 5 cm because the optimizer otherwise rides the collision margin.","graspkit/concepts-overview":"core overview core overview how the stages fit together, what flows between them, and where robokit ends and graspkit begins. the graph text scene descriptions (msgpack) scripts/stages/scene_desc/* | +---------------------------+ | | [render_data] [optimize_grasps] (sharded: scenes[rank::world_size]) renderer / maniskill warpgraspoptimizer kinematic replay, -> grasptrajbuilder: filters -> (ik convert) -> motion plan point-cloud obs -> optional in-loop sim eval | | rendered_data_path grasp_output_dir (h5 per scene) (h5 per scene: pre / grasp / post qpos) +------------+--------------+ | [process_sim_data] -> processed_data_path (obs + actions per scene) | [train] graspdataset -> trainer (ddp through torchrun) | logs/train//checkpoints/*.pt scripts/launch.py dispatches these by name; the order is whatever experimentconfig.steps lists, by default render_data , optimize_grasps , process_sim_data , train . a fifth step, sample_point_cloud , exists for object-only clouds but no shipped experiment uses it. stages stage in out config optimize_grasps scene descriptions grasp h5 (pre/grasp/post qpos) graspoptimconfig , grasptrajbuilderconfig render_data scene descriptions rendered h5 (point clouds, segmentation, camera poses) rendererconfig process_sim_data rendered h5 + grasp h5 processed h5 (obs joined to actions) experimentconfig train processed h5 checkpoints trainerconfig , datasetconfig , grasppolicyconfig grasp optimization is the compound stage: it optimizes, then filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally ik-converts floating grasps onto an arm, plans a trajectory, and keeps only what a physics evaluator accepts. resuming and sharding each stage writes a completion marker ( .optim_complete , .render_complete , .process_sim_data_complete , .train_complete ) and skips itself when the marker exists. with multiple ranks the marker is written per rank and promoted once every rank is done; s3:// outputs get no marker. --restart-from deletes the marker and outputs for that step and everything downstream, --append keeps the output and deletes only the marker. grasp optimization additionally resumes per scene: it re-runs scenes whose output is smaller than min_grasps_threshold . only grasp optimization uses every gpu, one process per card with scenes striped across ranks; non-zero ranks sleep 20 s so rank 0 compiles the warp kernels first. rendering and processing pin to the first gpu, and training goes through torchrun . artifacts graspkitdata is the tensor payload that crosses stages, in a padded (b, k, ...) or packed (n, ...) layout, saved as hdf5. scene descriptions are msgpack with a train/test split. the processed file holds data//obs , data//actions and meta/action_{mean,std} ; the trainer consumes it through graspdataset . floating base versus fixed base robotconfig.base_type decides the action layout: a floating hand prepends six base dofs, baked as [xyz, euler_rxyz, hand joints] . a floating hand is always optimized with the floating-base sampler, and the levenberg-marquardt backend is floating-only. setting grasptrajbuilderconfig.convert_to_fixed filters those grasps and ik-converts them onto an arm before planning; inside grasp optimization the conversion is always off, so the planner plans for the robot being optimized. robokit versus graspkit robokit supplies the cost terms, optimizers, contact sampling, warp scenes, sdf baking, the robot model and the motion planner. graspkit owns the energy assembly, the init samplers, the grasp filters, the scene-description adapter, the renderer, the datasets, the policy and the trainer. code graduates to robokit only when a second consumer exists.","graspkit/grasp-optim-backends":"grasp optimization backends grasp optimization algorithms: warp_gd and warp_lm how the two grasp-optimizer backends work and when to use which. for running the stage see the grasp_optim tutorial ; for every parameter see the grasp optimization api . the problem grasp synthesis is energy minimization over a batch of grasps. each grasp optimizes the robot configuration q : hand joints, plus arm joints (fixed base) or a free se(3) base pose (floating hand), and a discrete contact assignment: which num_contact_points of the robot's predefined contact candidates are active. the energy is a weighted sum of residual terms (robokit terms.dense.* ): term pulls toward distancetask active contact points on the object surface forceclosuretask contact normals that balance external wrenches (stability) scenecollisiontask hand collision spheres out of the scene (object + table) selfcollisiontask links out of each other positionlimit joints inside their limits fingertipdistancetask (optional) fingertip spheres onto the surface handupangletask (optional) hand-up axis at least angle_z_min from world +z both backends share this formulation, the init samplers, and the warp scene geometry (sdf volumes / mesh bvhs). the energy is highly non-convex and the contact assignment is discrete, so plain gradient descent gets stuck; each backend has its own escape mechanism. warp_gd: simulated-annealing gradient descent warpgraspoptimizer ( warp_optimizer.py , backend warp_gd ) runs each grasp as an independent annealing chain for num_iters (~10k) iterations, dexgraspnet-style. one iteration: rmsprop step on the continuous variables; step size decays over time, joints are clamped to limits. with probability switch_possibility , propose a re-drawn contact set. evaluate the proposal's energy and gradient. metropolis accept: lower energy always wins; worse by d is accepted with probability exp(-d / t) , where the temperature t cools over time. rejected grasps roll back. high t early lets grasps explore pose and contact assignment jointly; as t cools the chain settles into a low-energy basin. the whole iteration is captured as one cuda graph, so the long loop has almost no launch overhead. works for floating and fixed-base robots alike, which makes it the default backend. warp_lm: multi-seed levenberg-marquardt warpgraspoptimizer (backend warp_lm ) treats the same energy as nonlinear least squares and applies robokit's lmoptimizer : curvature-aware steps converge in tens of iterations instead of thousands. a single lm run is purely local, so exploration comes from: multi-seed : every init grasp spawns 24 jittered copies solved in parallel; the lowest-energy seed wins. contact resampling : lm cannot differentiate the discrete contacts, so every 8 iterations each candidate is joined by a copy with a fresh random contact set; both take the next lm steps, and the one with the lower energy stays. warp_lm supports floating bases only. to target an arm+hand robot, set enable_ik_scoring=true : inits are pre-filtered by arm-ik reachability against the fixed-base robot and final seeds are ranked by energy + reachability penalty , so the grasps grasptrajbuilder later ik-converts onto the arm are actually reachable. choosing a backend warp_gd warp_lm method rmsprop + simulated annealing multi-seed levenberg-marquardt exploration metropolis accept over pose + contacts 24 seeds + periodic contact resampling iterations ~10000 first-order steps 64 curvature-aware steps speed baseline typically 2-3x faster robots floating and fixed base floating base only ( enable_ik_scoring bridges to arms) rule of thumb: warp_gd for fixed-base robots or when maximum exploration matters; warp_lm for floating-hand throughput, with enable_ik_scoring if the grasps will be converted to an arm. both are compared in scripts/benchmark/grasp_opt/bench_grasp_optim.py .","graspkit/concepts-sim":"simulation simulation graspkit uses two physics backends behind one interface: maniskill (gpu, batched, full rollouts) and mujoco (cpu, grasp-pose scoring). a third path, the renderer, uses the maniskill scene without stepping physics at all. one interface baseenv fixes the contract: reset , get_qpos , step_qpos , get_info , get_rgb , get_pointcloud , evaluate , close , with evaluate returning per-grasp success and, when asked, rollout records ( qpos , obj_pose , scene_id , success , grasp_index ). build_env picks the implementation: mjenv when envconfig.mj_env_config is set, otherwise msenv ; realenv is imported lazily so the sim path never needs the hardware extras. mjenv implements only evaluate — it scores grasps offline and raises on the interactive methods. realenv is the mirror image: it drives hardware but has no ground truth, so evaluate raises. maniskill the env is registered as dexgrasp . a scene description becomes actors grouped by mesh and scale, built in sorted order because physx contact outcomes depend on insertion order, with mass forced to object_mass and a merged target actor per scene. a table is added unless floating_object is set, which also disables gravity on the object. success is \"strictly grasped and lifted past target_lift_dist \", or grasp-only for a floating object; grasping itself means at least two contact links pushing with more than half a newton. floating hands can be driven two ways: virtual joints — the agent's first six joints are pd-driven by the floating_base controller. this is the default for *_floating_base agent uids. static base — when the maniskill agent is hand-only but the pipeline robot is floating, the six base dofs are stripped from the qpos and applied as per-environment root poses instead. the base is pinned at the final grasp pose, which tests the grasp without an approach sweep or base pd shake. joint order differs between maniskill's observation order ( robot.active_joints ) and its action order ( controller.joints ); reindex_utils converts in both directions, and picking the wrong one silently scrambles a bimanual robot. agent uids follow the robot config name, with _floating_base appended for floating hands. the env lists the 21 supported uids. mujoco mjdexgraspenv builds a model with mjspec: the hand's mjcf, a table box that collides with the object but never the hand, and the object as convex pieces added in a fixed order because mujoco sums geom inertia in that order. gravity is disabled; a downward wrench stands in for it. density is rescaled so the object weighs obj_mass . two protocols: fc — force closure in free space: pregrasp, grasp, squeeze, then hold against six axis-aligned forces scaled by fc_force_scale ; failure is translation past trans_thre or rotation past angle_thre . tabletop — grip, apply the wrench, lift 20 cm (mocap root for floating hands, damped least-squares arm ik for fixed-base rigs), then require slip below lift_slip_thre , rotation below angle_thre , and live contact after the lift. both bail out immediately when the initial pose is already penetrating past max_pene . beyond success, the evaluator reports hand-object and self penetration, contact count, contact distance and consistency. a handspec adapts a hand: its mjcf path, whether it is mocap-driven, finger prefixes, the bodies that count as contact and fingertips, and — for fixed-base rigs — which body to lift and which joints the ik may move. mujoco is cpu-only and not thread-safe, so mjenv runs a spawned pool of up to 48 workers, one evaluator each. spawn, not fork: forking a cuda-initialized parent deadlocks. the renderer mani_skill/renderer.py ( build_renderer ) makes its own dexgrasp env with num_envs environments and a point-cloud observation mode, then never steps physics: it writes qpos and object poses, flushes the gpu kinematics, and reads observations. batching is over (scene, view) pairs. segmentation ids select what survives ( extract_segments wins over remove_segments ), and points are cropped either in the camera frame or in the world frame offset by each scene's table position. msenv.get_pointcloud replicates that crop exactly, so deployment clouds match the training distribution. choosing a backend maniskill mujoco hardware gpu, batched cpu, process pool scores full approach → grasp → lift rollouts, with perturbation forces a grasp pose: force closure or a lift gives success, observations, rgb and point clouds success plus penetration and contact metrics robots the 21 agents with maniskill uids any hand with an mjcf handspec hands with no maniskill agent (menagerie shadow, the _mj xarm+xhand and vega+sharpa rigs) can only be validated in mujoco, which is why several experiments use it as their in-loop grasp filter.","graspkit/concepts-policies":"models and policies models and policies grasppolicy in src/graspkit/models/grasp_policy.py maps an observation to a grasp: three hand poses (pre-grasp, grasp, post-grasp) that the trajectory builder turns into an executable motion. open and closed loop use the same policy. the execution controller decides when to observe and predict again; the benchmark's closed-loop mode refreshes the observation and replans at step 75. the policy selects cvae from models/cvae.py or flowmatching from models/flow_matching.py using generative_model ( cvae , flow , flow_transformer ). both generators expose forward , decode and sample ; access the selected component as policy.generator . no shared base class is needed. saved configuration field names and the checkpoint's cvae.* parameter keys are unchanged. the policy registers its generator under that historical checkpoint name, while callers use generator . existing state dictionaries load strictly without migration. imports use grasppolicy , grasppolicyconfig and build_grasp_policy ; the training cli subcommand is agent:grasp_policy_config . the cvae text point cloud (b, n, 3) -> [yaw canonicalization / augmentation] -> [centering] -> vision encoder (spunet or pointnet) | | | global feature | per-point features | +-> objectness head (target vs background) | +-> graspness head (where to grasp) v cvae encoder (training: ground-truth actions) -> z -> decoder -> (b, n, 3, d) actions d is the hand's joint count for a fixed base; a floating base prepends a translation and a rotation, [xyz, rotation, hand joints] , where the rotation is either euler rxyz or a 6d representation. the three queries are pre-grasp, grasp and post-grasp, in that order. at inference the encoder is skipped: the graspness head picks the top- k points, and the cvae decodes a latent per point — the mean latent when use_mean , otherwise a sample scaled by cvae_temperature . with use_mean the diversity comes from the distinct query points, not the latent. grasp_evaluator_guidance_steps instead refines the latent by ascending a frozen grasp evaluator inside a ball of radius grasp_evaluator_guidance_radius . the vision encoders include a sparse-convolution u-net ( vision_encoder=\"spconv\" , the default, voxel size 5 mm), a bn-free pointnet and rgb cnn/resnet variants. rgb construction and shared training/inference preprocessing live in models/vision_encoder/rgb.py ; the policy keeps state/camera conditioning and generator selection. the cvae is an mlp encoder/decoder over the flattened action vector, conditioned on the vision feature, optionally with a learned prior. flow matching uses the same visual conditioning and action representation. its velocity network is an mlp ( flow ) or transformer ( flow_transformer ), trained along a linear noise-to-action path. sampling integrates eight euler steps and restores physical joint units using the bank's action mean/std. flow returns zero latent moments through the shared training interface, so its kl contribution is zero; joint reconstruction uses mse. losses loss weight field penalizes qpos qpos_weight l1 on the reconstructed hand joints tl , rot tl_weight , rot_weight l1 on floating-base translation and rotation kl kl_weight posterior against the standard or learned prior objectness objectness_weight per-point target-vs-background bce, positives upweighted graspness graspness_weight kl between predicted and labelled graspness distributions kinematic kinematic_weight mse between the fk link positions of predicted and ground-truth actions penetration penetration_weight collision-sphere overlap into the object beyond penetration_threshold , on prior samples prior_fingertip prior_fingertip_weight distance of fingertip spheres to the object surface the last two need scene geometry at training time; the trainer builds it only every penetration_every steps and after penetration_warmup_iters . representation flags convert_rxyz_to_rot6d — 6d rotation inside the cvae, decoded back to euler. analytic_euler picks the closed-form decode over the iterative one. coupled_floating_base — all three queries share the grasp rotation, and grasp and post-grasp share its translation. center_pointcloud — predict translations relative to the cloud centroid. canonical_yaw — rotate into a deterministic yaw frame derived from the cloud's second moment. train_yaw_augmentation — random training-time yaw applied to points and targets together. data graspdataset reads the processed hdf5: per scene, one rendered view is drawn uniformly per access, points are sampled (object-only or whole scene), and actions are sampled per grasp. with graspness enabled, the per-action best points are placed first and the rest sampled around them. graspness labels come from the contact extractor's palm-cone weighting during process_sim_data . fresh flow models use meta/action_mean and meta/action_std to normalize their action space. cvae training uses raw poses. training adamw at lr=1e-4 , weight decay 1e-4 , a 10x step decay two thirds of the way through, ddp when distributed. every step scans the gradients and skips the update if any rank saw a nan or inf. checkpoints hold {\"agent\": state_dict} ; the provenance keys the benchmark expects ( experiment , policy_config , training ) are added by the packaging scripts. evaluation is described in sim deployment . from prediction to motion a predicted grasp is not executable on its own. grasptrajbuilder applies the filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally ik-converts a floating grasp onto an arm with an orientation gate and an arm-range band, and plans the approach, closing, holding and lift segments. the benchmark runs the filters; deployment skips them and relies on the ik gate, since a real capture has no ground-truth object pose.","graspkit/ref-robot-hands":"robot and hand catalog robot and hand catalog every robot is a robotconfig instance in configs/robot/ , registered by name in that package's __init__.py . build_robot_config(name) imports only that module, so only its assets download. hands and rigs name base rig format dof ability_right floating hand urdf 6 allegro_right floating hand urdf 16 barrett_right floating hand urdf 8 dclaw_right floating 3-finger gripper urdf 9 inspire_right floating hand urdf 12 leap_right floating hand urdf 16 mano_right floating hand urdf 16 orca_right floating hand urdf 17 paxini_right floating hand urdf 16 schunk_right floating hand urdf 9 shadow_right , shadow_right_mj floating hand mjcf 22 sharpa_right , sharpa_left floating hand urdf 22 xhand_right , xhand_right_mj floating hand urdf / mjcf 12 robotiq_2f85 , yam_gripper floating gripper urdf 1–2 driven franka_gripper fixed arm + gripper urdf 8 xarm6_sharpa_right fixed arm + hand urdf 6 + 22 xarm7_ability_right fixed arm + hand urdf 7 + 6 xarm7_mano_right fixed arm + hand urdf 7 + 16 xarm7_sharpa_right fixed arm + hand urdf 7 + 22 xarm7_shadow_right fixed arm + hand mjcf 7 + 22 xarm7_xhand_right , xarm7_xhand_right_mj fixed arm + hand urdf / mjcf 7 + 12 g1_inspire_right , g1_inspire_right_wbc fixed humanoid + hand urdf 41 / 33 g1_mano_right fixed humanoid + hand urdf 45 vega_sharpa_right , vega_sharpa_left fixed humanoid + hand urdf full body vega_sharpa_right_mj , vega_sharpa_left_mj fixed humanoid + hand mjcf 63 variants suffixed _side_init and _centered differ only in initial pose or camera framing; _mj variants are the mjcf models used by the mujoco evaluator. not every registered robot has a pipeline: experiments exist for ability, inspire, mano, paxini, sharpa, xhand, the xarm rigs, the g1 rigs, vega and the mujoco shadow. what a config carries paths to the urdf or mjcf, collision spheres, self-collision ignore list, contact points and contact-avoid points; the base type and initial pose; the link names that name the palm, fingertips, thumb and middle finger; and robokit's ee_coord_spec as ee_coord_spec , with the link it is expressed in as ee_coord_link_name . grasp_robot.hand_coord_spec turns it into palm-forward and fingers-up axes in the hand frame (a gripper's jaws are its palm). those axes drive the hand-axis cone filter and the init sampler, so a wrong spec shows up as grasps approaching from the wrong side; tests/test_robot_coord_specs.py checks every config's axes against its fingertips and its sampled inits. contacts come either from a contact-points file or from a contact_candidates_config that samples per link; scripts/tools/create_contact_points.py authors the former. maniskill agents simulation needs a maniskill agent per robot, in mani_skill/agents/ . the uid is the robot config name, with _floating_base appended for floating hands — xhand_right_floating_base , vega_sharpa_right . agents load sim-specific urdfs (floating-base, mimic-free variants) rather than the config's own path, and compose a controller: the six virtual base joints plus a position controller for the fingers. a robot with no hand-written agent (dclaw, orca, paxini, the grippers, every assembled rig) gets one from mani_skill/agents/config_agent.py : register_config_agent builds it from the robot config, writing a mimic-free sim urdf (plus the six virtual base joints for a floating hand) under ~/.graspkit/data/sim_urdf/ . the _mj rigs are mujoco-only. adding a hand write configs/robot/.py : one robotconfig pointing at the robokit asset symbols. register it in configs/robot/__init__.py . add a maniskill agent in mani_skill/agents/.py and import it in mani_skill/__init__.py . author contact points if the hand needs them. optionally add it to ees in robokit's assets/robots/assembly/composed.py so it can be mounted on any arm, and to the gallery's hand list. add an experiment config when you want a pipeline for it. configs/robot/schunk.py plus mani_skill/agents/schunk.py is the smallest complete example. assembled rigs robokit's assets/robots/assembly/composed.py assembles any of seven bases (yam, xarm7, xarm6, franka, ur5e, g1, vega) with any of fourteen end effectors, merging collision spheres and computing the mount transform from the two mount specs, on demand under ~/.robokit/assembly/ . utils/assembly_utils.py adds each base's scene placement and rest pose; its configs are what the gallery's arm dropdown offers. a base+ee name is always assembled, even where a hand-written config shares it. uv run python -m graspkit.gallery.grasp_optim --all --gpus ... optimizes every gallery hand floating and jointly on every base, sim-evaluates all of them, and prints the success table.","graspkit/ref-config-system":"config system config system all configuration is plain dataclasses in src/graspkit/configs/ , parsed with tyro at the cli. there are no yaml files: experiments are hand-written python instances, variants are derived with dataclasses.replace , and every field is overridable from the command line. field docstrings in the source are authoritative; this page covers the structure and entry points. layout class definitions live in *_config.py ; instances live apart from them. path ( src/graspkit/configs/ ) contents experiment_config.py experimentconfig (top level) and all stage sub-configs experiment/ per-robot experiment instances + name registry ( build_experiment_config , cli_experiment ) robot_config.py robotconfig robot/ per-robot robotconfig instances + name registry ( build_robot_config ) grasp_policy_config.py grasppolicyconfig grasp_policy.py named grasppolicyconfig presets ( grasp_policy_configs ) env_config.py backend configs: msenvconfig (maniskill), mjevalconfig + handspec (mujoco), isaacenvconfig ; the task is envconfig mj_hand.py mujoco handspec instances ( shadow_hand , xhand , ...) real_env_config.py realenvconfig real_env.py realenvconfig hardware presets for realenv ( real_env_configs ; needs the xarm extra) experimentconfig experimentconfig ( experiment_config.py ) is the single config for the whole pipeline ( launch.py and every stage script). sub-configs hold hand-independent algorithm/runtime params; all paths, robot configs, and pipeline control live at the top level. field type role name str experiment name (required) robot_config robotconfig robot that grasp optimization and training target (the floating hand in the standard pipeline) traj_builder grasptrajbuilderconfig floating/fixed robot pair, convert_to_fixed decision, grasp filters, and the builder's motionplannerconfig grasp_optim graspoptimconfig optimizer backend, energy weights, init sampler, in-loop evaluator : see grasp_optim tutorial renderer rendererconfig point-cloud rendering: env, cameras (calibrated extrinsic/intrinsic paths), crop/downsample trainer trainerconfig training loop: batch size, iters, eval envconfig , wandb dataset datasetconfig dataset loading (num actions/points, graspness) agent grasppolicyconfig model architecture/loss preset: see training tutorial scene_description_path , grasp_output_dir , rendered_data_path , processed_data_path , ... str all experiment-specific paths (usually under data_root ) steps , restart_from , append , gpus , num_gpus , seed - pipeline control for launch.py","graspkit/ref-data-format":"data format specification data format specification data grasp poses per-scene files one hdf5 file per scene: file name: {scene_id}.h5 datasets (float arrays): grasp_qpos : shape (n, d) pre_grasp_qpos : shape (n, d) post_grasp_qpos : shape (n, d) where: n = number of stored grasps for this scene (varies per scene; may include appended results from multiple runs) d = dimension of the configuration. for floating base robots, this includes 3d position, 3d euler angles (rxyz), and hand joint positions. merged file file name: {output_dir}.h5 structure: one group per scene /{scene_id}/ containing the same datasets as per-scene files","graspkit/ref-assets":"graspkit assets graspkit assets data graspkit's own assets (scene descriptions, object-mesh datasets) live in the hf dataset openrobokit/graspkit . robot assets (urdfs, spheres, contact points, self-collision ignores) live in robokit's dataset and are consumed via modules such as robokit.assets.robots.end_effectors.sharpa_hand . import graspkit downloads nothing. a robot module fetches its subtree into ~/.robokit/assets// ; graspkit assets use ~/.graspkit/assets// , fetched by the same robokit.assets.fetch . robotconfig.self_collision_ignore_path points to one robot's ignore yaml. files named *.sphere.yml and *.capsule.yml select the sibling matching the term's representation. grasp optimization defaults to spheres; select spen_representation=\"capsule\" for capsule terms. motion planning and sphere filters always select sphere ignores. an enabled term warns at construction if its matching file is unavailable; an invalid supplied path still raises. runtime assemblies have no ignore path unless one is supplied on their resulting config. layout text calib/ # per-rig camera extrinsics/intrinsics + joint offsets data/scene_description/ # per-task scene msgpacks (dex1b/, ...) data/object_data/ # mesh archives (dex_diffuser*, dexgraspnet, objaverse_dex1b_v2), # extracted at import; dexgraspnet_official_splits/ = train/test lists ~/.graspkit/ : assets/ = fetched hf files (what code reads), hf_cache/ = hf blobs; data/ + logs/ = pipeline output (s3-backed, not assets). data/logs live under home (not the repo), so graspkit works as a library too; graspkit.link() symlinks them into your checkout for browsing. consuming python from graspkit.assets import calib from graspkit.assets.scene_descriptions import dex1b_v0_4 from graspkit.assets.objects import dex_diffuser dex1b_v0_4.floating_mini_path # importing fetches only v0.4 dex_diffuser.data_dir / \"processed/ycb\" # importing fetches + extracts the archive calib.calib_file(\"xarm/26-06-21-camera_pose.json\") # fetches calib/, returns a path objects are archives: objects. fetches + extracts into data_root/object_data/ (marker-guarded) as data_dir ; dexgraspnet_official_splits is archive-free ( dir ). scenes : one module per dex1b version ( _dir = fetch([...], revision, hf_repo_id, graspkit_home) + *_path ). add a scene = add a *_path + its fetch pattern. ad-hoc: robokit.assets.fetch([\"data/scene_description/**\"], revision, hf_repo_id, graspkit_home) / \"...\" . bump graspkit.assets.revision after uploading new data. configs/experiments resolve by name, importing only what's needed (so only its assets download): python from graspkit.configs.robot import build_robot_config from graspkit.configs.experiment import build_experiment_config build_robot_config(\"sharpa_right\") # downloads only sharpa_right's robot assets build_experiment_config(\"sharpa_right_dex1b_v0_4_mini_floating\") authoring the dataset is too large to clone, so there's no local git checkout. upload directly through the hf api (uploads only new xet chunks; no git or git-xet plugin needed): shell uv run scripts/tools/upload_to_hf.py data/scene_description/dex1b/v0.4/x.msgpack it pushes the file/dir to the same repo-relative path ( upload_file / upload_folder ). then expose it: add a module/symbol under src/graspkit/assets/scene_descriptions/ or objects/ (eager _dir = fetch([...], revision, hf_repo_id, graspkit_home) + typed path symbols), keeping the data/ layout above, and bump graspkit.assets.revision to the new dataset commit. to pull only a subset back, fetch with a pattern (or snapshot_download(allow_patterns=[...]) ): never the whole repo. robot assets are authored in robokit's (small) dataset via its own git-xet checkout: see robokit.","graspkit/ref-scene-descriptions":"dex1b scene descriptions dex1b scene descriptions data dex1b scene descriptions under scene_description/dex1b// , hosted on huggingface ( openrobokit/graspkit ) and generated by the scripts in scripts/stages/scene_desc/ . v0.5 tabletop (normal): table (0.5, 0.5, 0.2) , object region (xy ±0.2), and ±5cm table-height jitter ( enable_table_pose_randomization with table xy fixed); height-balanced across 4 bins. wbc_tabletop (whole-body control): thick table (0.35, 0.35, 0.2) with a per-scene pose pulled close to the robot ( table_x_range=(0.35, 0.5) : near edge ~0.175 clears the g1 torso front ~0.143) and uniform table-top height [0.3, 1.1] . same height rebalancing as normal (mini/small balanced across 4 bins; dev off, since the tiny ycb set can't fill every bin). dexmate_tabletop (mini only, vega + sharpa): tabletop with table (0.6, 0.6, 0.2) , object region xy ±0.25, and ±15cm table-height jitter. all families read the same canonicals. train is dexgraspnet (in-distribution); test mixes in dexdiffuser (egad, kit, contactdb, ycb) as a held-out object family, with per-source counts pinned via merge_scene_description.py 's subsample . tier train test sources dev 100 30 ycb only (train & test) mini 5k 500 train dexgraspnet 684×5; test 300 dexgraspnet test-split + 200 dexdiffuser small 50k 2k train dexgraspnet 4302×5; test dexgraspnet test-split + dexdiffuser families have identical counts/sources (same canonicals, different table). scales: dexgraspnet [0.06, 0.08, 0.1, 0.12, 0.15] , dexdiffuser 1.0 . pipeline: meshes → canonical drop → tabletop randomization , merged with merge_scene_description.py . canonical drop: each (object, scale) is dropped by physics onto a (0.3, 0.3, 0.1) table in 3 orientations ( none , x90 , y90 ). kept if xy within ±0.15m, height ≥ 0.02m, volume ≤ 0.003m³, xy area ≤ 0.025m². tabletop randomization: xy translation and z rotation per canonical scene, plus the family's table pose. height bins: 0.02–0.05, 0.05–0.09, 0.09–0.15, 0.15–0.25m. at most 10 scenes per object (mini), 6 (small), 5 (dev). meshes: collision.glb keeps the coacd convex parts; visual.glb is a separate simplified mesh. importing graspkit.assets.objects.dex_diffuser_v2 fetches the dexdiffuser meshes.","graspkit/api-grasp-optim":"grasp optimization grasp optimization api warpgraspoptimizer graspkit.stages.grasp_optim class

batched warp grasp optimizer: samples init grasps per scene, then runs graspoptimconfig.optimizer_backend.

cfg graspoptimconfig robot_config robotconfig device device fixed_base_robot_config optional[robotconfig] ik_oversample_ratio int last_snapshots: optional[torch.tensor] optimize(scene_descriptions: list[scenedescription], num_samples_per_scene: int, record: bool = false) -> torch.tensor

optimize grasps for each scene; returns (n_scene, num_samples_per_scene, dof) grasp variables.

compute_costs(scene_descriptions: list[scenedescription], grasps: torch.tensor) -> dict[str, torch.tensor]

per-term 0.5·σr² cost of (n_scene, n, dof) grasps, with contacts re-picked nearest the object.

graspoptimconfig graspkit.stages.grasp_optim class

grasp optimizer algorithm and runtime parameters, with hand-independent defaults.

the config of the optimize_grasps stage (experimentconfig.grasp_optim); every field is a cli flag, e.g. --grasp_optim.num_iters 2000. the annealing fields drive warp_gd only and the lm_* fields warp_lm only. the init-sampler fields feed stages/grasp_optim/sampler.py; the runtime fields feed optimize_pipeline.py, not a bare optimize() call.

num_iters int num_contact_points int switch_possibility float mu float step_size float stepsize_period int starting_temperature float annealing_period int temperature_decay float spen_threshold float spen_representation literal['capsule', 'sphere'] w_fc float w_dis float w_fingertip_dis float w_pen float w_spen float w_joints float w_angle_z float angle_z_min float hand_axis optional[handaxis] hand_axis_target tuple[float, float, float] filter_hand_axis_max_angle_deg float optimizer_backend literal['warp_gd', 'warp_lm'] scene_geom_backend literal['mesh', 'sdf_volume'] sdf_bake_padding float sdf_resolution int sdf_voxel_size optional[float] use_link_bounding_sphere_filter bool lm_w_pen float lm_w_joints float lm_w_fingertip_dis float lm_collision_margin float lm_residual_eps float lm_base_step_scale float lm_init_sample_range_q float lm_init_sample_range_base float enable_ik_scoring bool evaluator optional[envconfig] sampler_type literal['fixed_base', 'wbc', 'floating_base'] distance_lower float distance_upper float front_theta_lower float front_theta_upper float side_theta_lower float side_theta_upper float hand_qpos_jitter_strength float hand_qpos_mu optional[tuple[float, ...]] init_ik_position_tolerance float init_ik_orientation_tolerance float init_ik_prefer_rest bool init_rest_pose_max_dist float init_num_ik_candidates_per_sample int init_num_points_per_sample int init_ik_batch_size int num_samples_per_scene int num_scenes_per_batch int min_grasps_threshold int num_attempts int max_scenes optional[int] save_labels bool num_iters: int = 6000

annealing iterations (warp_gd). each replays one cuda graph; fewer trade grasp quality for speed, and 2000 suits smoke tests.

num_contact_points: int = 4

active contact points per grasp, drawn from the robot's contact candidates; they parameterize the distance and force-closure terms. 4-5 fits most five-finger hands.

switch_possibility: float = 0.5

per-grasp probability, each iteration, of re-drawing the whole contact set; the metropolis test accepts or rejects it together with the pose step.

mu: float = 0.98

rmsprop weight on the current squared gradient, ema = mu * g^2 + (1 - mu) * ema. near 1 the step approaches the gradient's sign times step_size.

step_size: float = 0.005

base rmsprop step; the effective step is step_size * temperature_decay^(t // stepsize_period).

stepsize_period: int = 50

iterations between step-size decays.

starting_temperature: float = 18.0

initial metropolis temperature t: a proposal that worsens the energy by d is still accepted with probability exp(-d / t).

annealing_period: int = 30

iterations per temperature decay, t = starting_temperature * temperature_decay^(t // annealing_period).

temperature_decay: float = 0.95

decay factor shared by the temperature and step-size schedules; closer to 1 cools slower and explores more.

spen_threshold: float = 0.01

self-collision margin (m) between sphere/capsule pairs; 2 cm pinned the middle finger of most hands off the object.

spen_representation: literal['capsule', 'sphere'] = 'sphere'

self-collision geometry for warp_gd: per-link capsules or the collision spheres. warp_lm always uses capsules.

w_fc: float = 1.0

force-closure weight: the active contact normals must balance external wrenches. a zero weight disables any term.

w_dis: float = 100.0

weight pulling each active contact point onto the target surface.

w_fingertip_dis: float = 0.0

weight of the fingertip term (warp_gd only; requires fingertip links set): each fingertip link's closest collision sphere is drawn onto the object. 0 disables; a hand should touch without it, this is a last resort.

w_pen: float = 100.0

warp_gd scene-penetration weight: hand collision spheres against the target and table, with a fixed 5 mm margin. warp_lm uses lm_w_pen.

w_spen: float = 10.0

self-penetration weight between robot links; zero skips building the term.

w_joints: float = 1.0

warp_gd joint-limit weight; q is also clamped to its limits every iteration. warp_lm uses lm_w_joints.

w_angle_z: float = 0.0

weight of the hand-orientation prior (handupangletask, both backends).

angle_z_min: float = math.pi / 2

minimum angle between the hand-up axis and world +z; tabletop configs use it to forbid underhand grasps.

hand_axis: optional[handaxis] = none

hand-axis cone filter on init samples: which hand_coord_spec axis to check, after ik for fixed-base samplers. none disables it. the cone on optimized grasps lives on grasptrajbuilderconfig.

hand_axis_target: tuple[float, float, float] = (0.0, 0.0, 1.0)

direction hand_axis should point, in the robot base frame (world for floating hands).

filter_hand_axis_max_angle_deg: float = 30.0

hand-axis cone half-angle in degrees.

optimizer_backend: literal['warp_gd', 'warp_lm'] = 'warp_gd'

warp_gd: simulated-annealing gradient descent for floating or fixed-base robots. warp_lm: multi-seed levenberg-marquardt, floating base only, typically 2-3x faster and needs fingertip links; to target an arm, set enable_ik_scoring and let grasptrajbuilder ik-convert.

scene_geom_backend: literal['mesh', 'sdf_volume'] = 'sdf_volume'

sdf_volume: a cached sdf of the target mesh plus analytic table boxes; fast, accuracy bounded by voxel size, and the target must be the scene's only mesh. mesh: per-scene bvhs, exact but slower.

sdf_bake_padding: float = 0.25

sdf bake padding, in mesh units (robokit bakes the unscaled mesh and applies scales at query time).

sdf_resolution: int = 64

voxel grid resolution along the longest axis when sdf_voxel_size is none.

sdf_voxel_size: optional[float] = none

voxel size in mesh units (before scales). none = derive voxel size from sdf_resolution.

use_link_bounding_sphere_filter: bool = false

sphere-level broad-phase skip on the warp scene-collision task. only for scene_geom_backend=\"sdf_volume\".

lm_w_pen: float = 150.0

warp_lm counterpart of w_pen: scene-collision term weight (lm raw-residual scale).

lm_w_joints: float = 10.0

warp_lm counterpart of w_joints: position-limit term weight (lm raw-residual scale).

lm_w_fingertip_dis: float = 10.0

warp_lm counterpart of w_fingertip_dis: fingertip-distance term weight (lm raw-residual scale).

lm_collision_margin: float = 0.005

warp_lm scene-collision margin (meters).

lm_residual_eps: float = 1e-06

warp_lm residual epsilon for distance / position-limit / self-penetration terms.

lm_base_step_scale: float = 0.001

warp_lm floating-base step relative to the joint step; keeps base updates from overshooting.

lm_init_sample_range_q: float = 0.2

warp_lm per-seed joint half-range: the 24 seeds are the init qpos plus roberts offsets in [-range, range], clamped to limits.

lm_init_sample_range_base: float = 0.05

warp_lm per-seed base-translation sampling half-range (floating base only).

enable_ik_scoring: bool = false

warp_lm floating base only: oversample inits 16x, keep those an arm ik can reach, and rank solutions by energy plus reachability. use when grasptrajbuilder will ik-convert onto an arm.

evaluator: optional[envconfig] = none

in-loop simulation filter: each optimized batch is rolled out (e.g. with perturbation or a heavy object) and only survivors are saved. none gates on motion-plan success only.

sampler_type: literal['fixed_base', 'wbc', 'floating_base'] = 'fixed_base'

fixed_base: look-at poses solved to collision-free arm ik. wbc: world-rooted arms, any azimuth, never from below the table. floating_base: no ik, emits [xyz, euler_rxyz, hand_qpos]; floating optimizers force it.

distance_lower: float = 0.02

lower bound (m) of the hand-to-surface standoff, sampled uniformly. tight bounds are the usual cause of starved init sampling.

distance_upper: float = 0.2

upper bound (m) of the hand-to-surface standoff.

front_theta_lower: float = -math.pi / 2

lower bound of the roll jitter about the look-at approach axis.

front_theta_upper: float = 0.0

upper bound of the roll jitter about the look-at approach axis.

side_theta_lower: float = -math.pi / 18

lower bound of the tilt jitter about the two axes perpendicular to the approach.

side_theta_upper: float = math.pi / 18

upper bound of the tilt jitter about the two axes perpendicular to the approach.

hand_qpos_jitter_strength: float = 0.05

std of the per-joint gaussian jitter added to hand_qpos_mu.

hand_qpos_mu: optional[tuple[float, ...]] = none

mean hand qpos for init sampling, typically half-open; none uses the robot config's init qpos.

init_ik_position_tolerance: float = 0.05

position tolerance (m) for the init-time arm ik solve (fixedbasesampler / wbcsampler).

init_ik_orientation_tolerance: float = 0.3

orientation tolerance (rad) for that solve.

init_ik_prefer_rest: bool = true

that solve keeps the solution nearest the rest pose; false keeps its best-scoring random seed.

init_rest_pose_max_dist: float = 3.0

reject init ik solutions whose arm-qpos l2 distance from the rest pose exceeds this.

init_num_ik_candidates_per_sample: int = 50

ik candidates per requested sample before collision/rest filtering (this × num_samples_per_scene).

init_num_points_per_sample: int = 1000

empty-space points sampled per requested sample when seeding approach directions.

init_ik_batch_size: int = 512

chunk size of the ik + collision sweep over candidates (memory only).

num_samples_per_scene: int = 64

grasps optimized per scene per attempt.

num_scenes_per_batch: int = 16

scenes batched into one solve: num_scenes_per_batch * num_samples_per_scene grasps on the gpu.

min_grasps_threshold: int = 16

a scene is done once its output holds this many grasps; scenes below it are re-attempted.

num_attempts: int = 1

top-up passes over unfinished scenes; attempt i runs with seed + i.

max_scenes: optional[int] = none

if set, caps scenes processed per attempt (after sort/shuffle/rank slicing). useful for quick testing.

save_labels: bool = false

save all candidates and their filter/plan/simulation verdicts to <grasp_output_dir>.labels/.

grasprobot graspkit.stages.grasp_optim class robot

robot equipped with the grasp-pipeline torch facade and contact-point candidates.

spec robotspec config optional[robotconfig] device device actuated_joint_names: list[str] from_config(config: robotconfig, base_link_name: optional[str] = none, ee_link_names: optional[union[tuple[str, ...], str]] = none, load_meshes: bool = false, load_collision_spheres: bool = false, device: device = 'cpu', prune: bool = true, self_collision_representation: literal['sphere', 'capsule'] = 'sphere') -> grasprobot

build (and cache) a grasprobot from robotconfig; pruned to ee_link_names, prune=false for the full robot.

self_collision_ignored_pairs(representation: literal['sphere', 'capsule']) -> int[np.ndarray, 'pairs 2']

load representation-specific pairs against this robot's pruned link names.

root_pose_7d: float[torch.tensor, 7] root_pose_mat: float[torch.tensor, '4 4'] actuated_joint_limits_torch: float[torch.tensor, 'num_dofs 2'] init_qpos: float[torch.tensor, num_dofs] forward_kinematics_torch(variables: float[torch.tensor, '... num_dofs'], root_poses: optional[float[torch.tensor, '... 4 4']] = none) -> float[torch.tensor, '... num_links 4 4']

torch fk. two cases:

  1. floating base: variables packs free qpos (xyz + rxyz or xyz + 6d) then actuated qpos (root_poses must not be provided).
  2. fixed base: variables is just qpos (root_poses optional).
inverse_kinematics(target_poses: float[torch.tensor, '... 4 4'], init_qpos: optional[float[torch.tensor, '... num_arm_dofs']] = none, position_tolerance: float = 0.05, orientation_tolerance: float = 0.3, init_sample_range: float = 0.5, use_score_rest: bool = false, locked_joint_indices: optional[tuple[int, ...]] = none) -> tuple[float[torch.tensor, '... num_arm_dofs'], bool[torch.tensor, ...]] arm_joint_indices: torch.tensor hand_joint_indices: torch.tensor ignore_joint_indices: torch.tensor

actuated joints that are neither arm nor hand (complement of arm ∪ hand indices).

canonical_collision_spheres: tuple[torch.tensor, torch.tensor]

link-local collision spheres from collision_spheres_path: (num_spheres,4) centers+radius, link indices.

get_collision_spheres(link_poses: float[torch.tensor, '... num_links 4 4']) -> float[torch.tensor, '... num_spheres 4'] get_contact_points(link_poses: float[torch.tensor, '... num_links 4 4'], contact_point_indices: int[torch.tensor, '... num_contact_points']) -> float[torch.tensor, '... num_contact_points 3'] get_contact_candidates(config: robotconfig, device: device = 'cpu') -> tuple[torch.tensor, torch.tensor]

canonical contact candidates: (n,3) link-local centers, (n,) link indices in the chain robot's link order.

","graspkit/api-scene":"scene scene api scenedescription graspkit.scene.scene_description class

per-scene geometry with a scene id and a manipulation-target actor id.

scene_id str target_actor_id str boxes dict[str, boxdescription] meshes dict[str, meshdescription] floating_scene_id optional[str] canonical_tabletop_scene_id optional[str] scene_id: str = '' target_actor_id: str = '' boxes: dict[str, boxdescription] = field(default_factory=dict) meshes: dict[str, meshdescription] = field(default_factory=dict) floating_scene_id: optional[str] = none canonical_tabletop_scene_id: optional[str] = none load_scene_descriptions_msgpack(msgpack_path: str, return_splits: bool = false) -> union[dict[str, scenedescription], dict[literal['train', 'test'], dict[str, scenedescription]]] save_scene_descriptions_msgpack(scene_descriptions: union[dict[str, scenedescription], dict[literal['train', 'test'], dict[str, scenedescription]]], msgpack_path: str) -> none meshdescription graspkit.scene.scene_description class

triangle mesh with actor id, optional visual-mesh path, and cached bounds.

actor_id str collision_mesh_path str scales tuple[float, float, float] position tuple[float, float, float] quaternion tuple[float, float, float, float] visual_mesh_path optional[str] bounds optional[tuple[tuple[float, float], tuple[float, float], tuple[float, float]]] actor_id: str collision_mesh_path: str scales: tuple[float, float, float] position: tuple[float, float, float] = (0.0, 0.0, 0.0) quaternion: tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0) visual_mesh_path: optional[str] = none bounds: optional[tuple[tuple[float, float], tuple[float, float], tuple[float, float]]] = none get_visual_mesh_path() -> str

return the visual mesh path, falling back to the collision mesh.

python
>>> meshdescription(\"o\", \"c.obj\", (1.0, 1.0, 1.0)).get_visual_mesh_path() 'c.obj' >>> meshdescription(\"o\", \"c.obj\", (1.0, 1.0, 1.0), visual_mesh_path=\"v.obj\").get_visual_mesh_path() 'v.obj'
get_bounds() -> tuple[tuple[float, float], tuple[float, float], tuple[float, float]] boxdescription graspkit.scene.scene_description class

box primitive, usually for static elements like tables.

actor_id str size tuple[float, float, float] position tuple[float, float, float] quaternion tuple[float, float, float, float] actor_id: str size: tuple[float, float, float] position: tuple[float, float, float] = (0.0, 0.0, 0.0) quaternion: tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0) scenegeom graspkit.scene.scene_geom class

per-scene mesh-backed warpscenes for grasp / motion optimizers.

scene_descriptions list[scenedescription] device device target_scene: warpscene

the target mesh of each scene (none for a table-only scene); built lazily on first access.

update(scene_descriptions: list[scenedescription]) -> none

update geometry in place for a scene batch with the same layout; captured pointers stay valid.

build_collision_scene_in_base(t_world_robot: np.ndarray) -> warpscene

one `warpscene (mesh+box) for motionplanner.plan()`, in robot base frame (fk is base-relative).

query_target_object_signed_distances(query_points: torch.tensor) -> tuple[torch.tensor, torch.tensor, torch.tensor]

differentiable per-scene target-object sdf (single mesh -> diff path).

query_scene_signed_distances(query_points: torch.tensor) -> tuple[torch.tensor, torch.tensor, torch.tensor]

full-scene sdf (meshes+primitives), differentiable; drives penetration gradient in motion/grasp-gd.

solver_scenes(backend: literal['mesh', 'sdf_volume'], sdf_bake_padding: float = 0.25, sdf_resolution: int = 64, sdf_voxel_size: optional[float] = none) -> tuple[warpscene, warpscene]

(target_scene, collision_scene); sdf_volume swaps the target mesh for an sdf (params in mesh units).

","graspkit/api-motion-plan":"motion planning motion planning api grasptrajbuilder filters grasps, optionally ik-converts them onto an arm, then plans with build_motion_planner : a warpplanner by default, or its base torchplanner when motionplannerconfig.backend is \"torch\" . grasptrajbuilder graspkit.stages.grasp_traj_build class

convert floating-base grasps into deployable trajectories: filter, optional ik-convert to fixed, then plan.

cfg grasptrajbuilderconfig device device filters: list[filter] build(batch: graspkitdata, start_qpos: optional[float[torch.tensor, ...]] = none, skip_filter: bool = false, target_xy: optional[torch.tensor] = none) -> tuple[graspkitdata, bool[torch.tensor, 'b k']]

target_xy (s, 2) overrides the ori-gate target when scenes lack a target mesh (e.g. deploy perception).

filter_grasps(batch: graspkitdata, success: bool[torch.tensor, 'b k']) -> tuple[bool[torch.tensor, 'b k'], list[str]] grasptrajbuilderconfig graspkit.configs.experiment_config class

grasp traj builder: floating-base grasps -> deployable trajectories (stages/traj_builder).

fixed_base_robot_config optional[robotconfig] floating_base_robot_config optional[robotconfig] convert_to_fixed bool motion_planner motionplannerconfig hand_axis optional[handaxis] hand_axis_target tuple[float, float, float] filter_hand_axis_max_angle_deg float contact_avoid_filter bool pen_filter bool pen_filter_threshold float rest_pose_filter_max_dist optional[float] arm_range_fraction float ori_threshold_deg float plan_table_only bool fixed_base_robot_config: optional[robotconfig] = none

fixed-base arm+hand robot trajectories are planned for; also the camera-mount robot. none if floating-only.

floating_base_robot_config: optional[robotconfig] = none

floating-base hand-only robot the input grasps come from.

convert_to_fixed: bool = false

true: filter + ik-convert floating grasps, build trajectories for the fixed robot. false: plan grasps as-is.

motion_planner: motionplannerconfig = field(default_factory=motionplannerconfig)

motion planner config for the trajectory from the init pose to the grasp pose.

hand_axis: optional[handaxis] = none

hand-axis cone filter on optimized grasps: which hand_coord_spec axis to check. none disables it.

hand_axis_target: tuple[float, float, float] = (0.0, 0.0, 1.0)

direction hand_axis should point, in the robot base frame (world for floating hands).

filter_hand_axis_max_angle_deg: float = 30.0

hand-axis cone half-angle in degrees.

contact_avoid_filter: bool = false

reject grasps where the contact-avoid point is closer to the target than the contact point on that link.

pen_filter: bool = false

reject grasps whose hand spheres overlap the target by more than pen_filter_threshold (m); fingertip ok.

pen_filter_threshold: float = 0.005 rest_pose_filter_max_dist: optional[float] = none

reject grasps whose arm qpos (l2 over arm joints) is further than this from robot rest pose; none disables.

arm_range_fraction: float = 0.3

half-width (fraction of each arm joint's range around its midpoint) the ik solution must lie in; 1.0 disables.

ori_threshold_deg: float = 45.0

ori-gate half-angle (deg) for the floating->fixed ik conversion; 45 = default, 90 effectively disables.

plan_table_only: bool = false

plan against a table-only scene (object removed), mirroring deployment. pre/post qpos use the real scene.

warpplanner graspkit.stages.motion_plan class torchplanner

torchplanner on robokit's motionplanner: joint-goal plans, or one plan from start through the lift.

cfg motionplannerconfig robot_config robotconfig device device plan(batch: graspkitdata, start_qpos: optional[float[torch.tensor, num_dofs]] = none, return_pre_post_only: bool = false) -> graspkitdata

plan a padded batch: needs grasp_qpos, returns pre/post-grasp qpos + full_traj_qpos unless pre-post-only.

get_pre_post_grasp_qpos(scene_geom: scenegeom, grasp_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs']) -> tuple[float[torch.tensor, 'n_scenes n_grasps num_dofs'], float[torch.tensor, 'n_scenes n_grasps num_dofs']] interpolate_qpos(init_qpos: float[torch.tensor, '... num_dofs'], end_qpos: float[torch.tensor, '... num_dofs'], num_steps: int) -> float[torch.tensor, '... num_steps num_dofs'] compute_pose_penetration(qpos: float[torch.tensor, '... num_dofs'], scene_geom: scenegeom) -> float[torch.tensor, ...] interpolate_trajs(orig_trajs: float[torch.tensor, 'n_scenes n_trajs n_steps num_dofs'], num_steps: int) -> float[torch.tensor, 'n_scenes n_trajs num_steps num_dofs'] compute_energy(full_traj_qpos: float[torch.tensor, 'n_scenes n_trajs n_steps num_dofs'], scene_geom: scenegeom) -> dict[str, torch.tensor]

compute e_pen + e_smooth for a trajectory; mirrors optimize_trajs loss, a benchmark reference metric.

get_lifting_target_qpos(post_grasp_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs']) -> float[torch.tensor, 'n_scenes n_grasps num_dofs'] plan_full(start_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs'], pre_grasp_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs'], grasp_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs'], post_grasp_qpos: float[torch.tensor, 'n_scenes n_grasps num_dofs'], lift_qpos: optional[float[torch.tensor, 'n_scenes n_grasps num_dofs']], scene_geom: scenegeom) -> tuple[float[torch.tensor, 'n_scenes n_grasps num_steps num_dofs'], float[torch.tensor, 'n_scenes n_grasps']]

one robokit plan: start → pre-grasp against the scene, then grasp, the locked hold and the lift without it.

robokit times every segment but the hold, which keeps num_steps_holding; the plan is sampled every control_dt and padded with its last frame to num_steps when shorter. returns it and the start → pre-grasp penetration.

optimize_trajs(init_trajs: float[torch.tensor, '... num_steps num_dofs'], scene_geom: scenegeom) -> tuple[float[torch.tensor, '... num_steps num_dofs'], float[torch.tensor, ...]] motionplannerconfig graspkit.configs.experiment_config class

trajectory optimization params — hand-independent defaults.

backend literal['torch', 'warp'] pre_grasp_arm_grad_move float pre_grasp_hand_grad_move float post_grasp_hand_grad_move float lifting_dist float padding_dist float opt_steps int pen_weight float arm_smooth_weight float hand_smooth_weight float vel_smooth_weight float num_steps_pre_grasp int num_steps_pre_to_grasp int num_steps_holding int close_during_holding bool num_steps_post_grasp int control_dt float enable_joint_optimization bool traj_opt_max_iter int traj_opt_smoothness_weight float traj_opt_accel_smoothness_weight float traj_opt_self_collision_weight float traj_opt_self_collision_margin float start_from_grasp_dof_indices optional[tuple[int, ...]] num_samples_per_batch int num_grasps_per_scene int backend: literal['torch', 'warp'] = 'warp'

motion planner backend. 'warp' (default; robokit motionplanner, fixed-base only) is faster than 'torch'.

pre_grasp_arm_grad_move: float = 0.001

pre-grasp arm gradient move

pre_grasp_hand_grad_move: float = 0.0

pre-grasp hand gradient move

post_grasp_hand_grad_move: float = 1.0

post-grasp hand gradient move

lifting_dist: float = 0.3

lifting distance

padding_dist: float = 0.025

padding distance

opt_steps: int = 300

optimization steps

pen_weight: float = 1.0

penetration weight

arm_smooth_weight: float = 100.0

arm smooth weight

hand_smooth_weight: float = 10.0

hand smooth weight

vel_smooth_weight: float = 0.1

velocity smooth weight

num_steps_pre_grasp: int = 150

number of steps in pre-grasp

num_steps_pre_to_grasp: int = 25

number of steps in pre-to-grasp

num_steps_holding: int = 75

number of steps in holding

close_during_holding: bool = false

close gradually during holding instead of settling at the closed pose.

num_steps_post_grasp: int = 50

number of steps in post-grasp

control_dt: float = 0.02

seconds per trajectory step, the simulator's control period.

enable_joint_optimization: bool = false

fixed base, warp: one robokit plan through start, pre-grasp, grasp, hold and lift, timed by robokit except the hold (num_steps_holding); at least num_steps long. false optimizes start → pre-grasp alone and fills the other phases at their step counts.

traj_opt_max_iter: int = 100 traj_opt_smoothness_weight: float = 200.0 traj_opt_accel_smoothness_weight: float = 30.0 traj_opt_self_collision_weight: float = 0.0

self-collision weight (warp only). 0 disables the term; the robokit q_goal preset ships it off.

traj_opt_self_collision_margin: float = 0.02

self-collision margin in metres; only read when the weight is > 0.

start_from_grasp_dof_indices: optional[tuple[int, ...]] = none

dof indices whose start values come from grasp_qpos, not init pose; also locked during post-grasp lift ik.

num_samples_per_batch: int = 2048

number of samples per batch

num_grasps_per_scene: int = 32

number of grasps to plan per scene (pad/truncate to this)

num_steps: int","graspkit/api-policy":"policy policy api create a policy with build_grasp_policy(cfg, robot_config, device) . grasppolicy graspkit.models.grasp_policy class nn.module

predicts pre-grasp, grasp and post-grasp configurations from an observation; see build_grasp_policy.

cfg grasppolicyconfig action_dim int robot_config robotconfig robot_helper: grasprobot | none generator: cvae | flowmatching forward(obs: dict, actions: float[torch.tensor, 'b n t d']) -> dict[str, torch.tensor] preprocess(initial: dict, current: dict, calibrated: bool) -> dict[str, torch.tensor]

one scene's input from env.observe() slices plus \"qpos\" (1, 1, d); calibrated views skip the initial.

get_action(obs: dict, num_samples_per_scene: int = 1, noise: torch.tensor | none = none) -> float[torch.tensor, 'b n t d']

sample actions; guided sampling accepts raw noise shaped (batch * samples, latent_dim).

select(obs: dict, actions: float[torch.tensor, 'b n t d']) -> torch.tensor

each scene's best proposal index by the grasp evaluator, on the features get_action left in obs.

grasppolicyconfig graspkit.configs.grasp_policy_config class

grasp policy architecture, losses and sampling.

reusable presets live in graspkit/configs/grasp_policy.py.

num_queries int convert_rxyz_to_rot6d bool analytic_euler bool coupled_floating_base bool rot_begin_idx int enable_kinematic_loss bool vision_encoder literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views'] vision_encoder_feature_dim int vision_encoder_normalization literal['layernorm', 'groupnorm'] | none vision_encoder_global_feature bool center_pointcloud bool pointcloud_scale float train_yaw_augmentation bool canonical_yaw bool enable_objectness_prediction bool num_points int object_points_only bool generative_model literal['cvae', 'flow', 'flow_transformer'] cvae_latent_dim int cvae_hidden_dim int cvae_learned_prior bool normalize_cvae_actions bool reconstruction_loss literal['native', 'phase_std_mse'] qpos_weight float rot_weight float tl_weight float kinematic_weight float kl_weight float objectness_weight float graspness_weight float enable_penetration_loss bool penetration_weight float penetration_threshold float penetration_every int penetration_warmup_iters int prior_fingertip_weight float use_mean bool cvae_temperature float grasp_evaluator_guidance_steps int grasp_evaluator_guidance_radius float grasp_evaluator_local_features bool grasp_evaluator_anchor_state bool grasp_evaluator_hand_joint_features bool grasp_evaluator_mask_constant_features bool num_queries: int = 3

configurations decoded per trajectory; the trainer and evaluator assume three: pre-grasp, grasp and post-grasp.

convert_rxyz_to_rot6d: bool = false

floating base: predict a continuous 6d rotation instead of euler rxyz, converted back on output.

analytic_euler: bool = false

use exact, non-iterative euler conversion after decoding rotations.

coupled_floating_base: bool = false

share wrist rotation across all three poses and wrist translation during closing.

rot_begin_idx: int = 3

start index of the floating-base rotation in each action.

enable_kinematic_loss: bool = false

add the mse between predicted and target link positions from forward kinematics.

vision_encoder: literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views'] = 'spconv'

observation backbone.

vision_encoder_feature_dim: int = 512

condition feature size passed to the generator.

vision_encoder_normalization: literal['layernorm', 'groupnorm'] | none = none

normalization for the spconv encoder.

vision_encoder_global_feature: bool = true

return one scene feature; false keeps per-point features for local grasp-point conditioning.

center_pointcloud: bool = false

predict floating-base translations relative to the observed point-cloud centroid.

pointcloud_scale: float = 1.0

fixed coordinate scale applied only to vision-encoder inputs.

train_yaw_augmentation: bool = false

rotate training observations and target poses together around the vertical axis.

canonical_yaw: bool = false

use a deterministic observed-point-cloud yaw frame for training and inference.

enable_objectness_prediction: bool = true

with local features, train a target-segmentation head and mask graspness at inference.

num_points: int = 2048

points grasppolicy.preprocess samples from an observed point cloud.

object_points_only: bool = true

grasppolicy.preprocess keeps only the target's points, initial and current frames together (hands occlude).

generative_model: literal['cvae', 'flow', 'flow_transformer'] = 'cvae'

cvae (models/cvae.py) or flow matching (models/flow_matching.py).

cvae_latent_dim: int = 256

latent dimension of the cvae.

cvae_hidden_dim: int = 256

width of the generator networks and optional cvae learned prior.

cvae_learned_prior: bool = false

jointly learn a diagonal-gaussian latent prior conditioned on the observation.

normalize_cvae_actions: bool = false

encode standardized actions and decode physical actions using saved mean/std buffers.

reconstruction_loss: literal['native', 'phase_std_mse'] = 'native'

native reconstruction loss or mse scaled by each phase's training action standard deviation.

qpos_weight: float = 1.0

joint-position reconstruction weight: l1 for cvae, mse for flow.

rot_weight: float = 1.0

floating-base rotation l1 weight.

tl_weight: float = 1.0

floating-base translation l1 weight.

kinematic_weight: float = 100.0

weight of the kinematic loss.

kl_weight: float = 0.01

weight of the kl term to the unit gaussian.

objectness_weight: float = 0.02

weight of the local-feature objectness bce.

graspness_weight: float = 0.02

weight of the local-feature per-point graspness kl.

enable_penetration_loss: bool = false

if true, penalize hand collision-sphere penetration into the target object (needs scene geom at train time)

penetration_weight: float = 0.1

the weight of the penetration loss

penetration_threshold: float = 0.005

only penetration deeper than this (meters) is penalized (avoids punishing legitimate contact)

penetration_every: int = 1

compute the (expensive) penetration loss every n steps to amortize per-batch scene-geometry build

penetration_warmup_iters: int = 0

delay the penetration loss until this iteration so the policy learns to grasp first (replaces fine-tuning)

prior_fingertip_weight: float = 0.0

attract prior-sampled fingertip collision spheres to the target surface during training.

use_mean: bool = true

decode the prior mean for cvae or integrate from zero noise for flow.

cvae_temperature: float = 1.0

scale of the sampled generator noise; ignored when use_mean is true.

grasp_evaluator_guidance_steps: int = 0

latent refinement steps using a trained grasp evaluator; zero disables guidance.

grasp_evaluator_guidance_radius: float = 2.0

maximum l2 displacement from each initial latent draw.

grasp_evaluator_local_features: bool = false

let the grasp evaluator attend to frozen local visual tokens; the actor stays unchanged.

grasp_evaluator_anchor_state: bool = false

condition the local success critic on the current fixed-base robot configuration.

grasp_evaluator_hand_joint_features: bool = false

encode hand joints instead of all actuated joints in the grasp evaluator.

grasp_evaluator_mask_constant_features: bool = true

zero constant replay features after scorer normalization.

","graspkit/api-training":"training training api trainer graspkit.stages.trainer class

trains a grasppolicy on graspdataset batches, with ddp, checkpoints and periodic simulation evaluation.

exp_cfg experimentconfig policy_cls callable[..., grasppolicy] traj_builder: grasptrajbuilder | none evaluator: baseenv | none train(train_dataloader: dataloader, test_dataloader: dataloader | none = none, checkpoint_dir: path | none = none, metadata: dict | none = none, resume: dict | none = none, publish: callable[[path], none] | none = none)

train normally, or save resumable single-device milestones and publish them.

train_graph(dataset: graspdataset, index_loader: dataloader)

train for trainerconfig.cuda_graph: the same updates, with the step captured once as a cuda graph.

evaluate(test_dataloader: dataloader, num_samples_per_scene: int = 1) trainerconfig graspkit.configs.experiment_config class

training-loop parameters for trainer.

adamw's learning rate drops 10x at two thirds of total_iters; that schedule has no field.

seed int evaluator optional[envconfig] eval_only bool eval_on_train bool track bool wandb_project_name str batch_size int eval_num_envs int max_eval_batches int eval_pen_threshold float total_iters int num_dataloader_workers int lr float weight_decay float log_freq int eval_freq int save_freq int cuda_graph bool fast_step bool grad_clip_norm float seed: int = 0

seeds model initialization, dataset workers and sampling.

evaluator: optional[envconfig] = none

simulation for periodic evaluation, built with build_env; none disables evaluation.

eval_only: bool = false

skip training, load experimentconfig.ckpt_path and evaluate one trajectory per scene.

eval_on_train: bool = false

evaluate on the train split instead of test, for small scene sets without test scenes.

track: bool = false

log to weights & biases, which also syncs the tensorboard scalars.

wandb_project_name: str = 'graspkit'

w&b project used when track is set.

batch_size: int = 32

global batch size in scenes; each ddp rank gets batch_size // world_size.

eval_num_envs: int = 32

evaluator parallelism; capped at batch_size during training.

max_eval_batches: int = 100

stop evaluation after this many data-loader batches.

eval_pen_threshold: float = 0.005

penetration depth (m) below which an eval grasp counts toward pass-rate (report-only).

total_iters: int = 100000

final training iteration; the loop runs iterations 0 through this value.

num_dataloader_workers: int = 12

worker processes for the training and evaluation data loaders.

lr: float = 0.0001

adamw learning rate.

weight_decay: float = 0.0001

adamw weight decay.

log_freq: int = 100

iterations between loss logs, and tensorboard scalars when tracking.

eval_freq: int = 10000

iterations between simulation evaluations; iteration 0 is skipped.

save_freq: int = 10000

iterations between iter_<n>.pt checkpoints, iteration 0 included.

cuda_graph: bool = false

capture training on prepared hdf5 views as a cuda graph; single gpu without evaluation.

fast_step: bool = false

use tf32 and fused adamw for ordinary training steps.

grad_clip_norm: float = 0.0

clip the gradient norm before an optimizer step; zero disables clipping.

graspdataset graspkit.datasets.grasp_dataset class dataset

per-scene point-cloud observations and successful grasp trajectories from a processed hdf5.

cfg datasetconfig h5_path str scene_description_path str split literal['train', 'test'] | none indices_only bool to_device(device: str | torch.device) -> dict[str, torch.tensor]

load prepared observations and actions once for cuda batch gathering.

datasetconfig graspkit.configs.experiment_config class

dataset loading parameters for graspdataset.

one index is one scene, not one grasp; raw views resample points and actions on every access.

num_actions int num_points int return_actions bool return_graspness bool return_object_pointcloud_only bool cache_in_memory bool return_rgb bool fuse_views int view_noise float point_noise float aug_prob float aug_keep_min float aug_voxel_max float aug_drop_wrist_prob float aug_rgb_prob float num_actions: int = 64

successful action trajectories sampled per scene, with replacement when a scene has fewer.

num_points: int = 2048

point-cloud points per scene, with replacement when the cloud is smaller.

return_actions: bool = true

return the (num_actions, 3, d) supervision tensor; training needs it and evaluation turns it off.

return_graspness: bool = false

return per-point graspness and the best conditioning-point indices, for local-feature spconv policies; needs data processed with enable_contact_extraction.

return_object_pointcloud_only: bool = false

sample only target-object points instead of the full cropped scene cloud.

cache_in_memory: bool = false

cache observations and actions in ram; sampling stays unchanged.

return_rgb: bool = true

include rgb and camera poses when available.

fuse_views: int = 0

object-only multi-view data: fuse view 0 (the head) with up to this many other views, a random count per sample, into one cloud. 0: one random view.

view_noise: float = 0.0

with fuse_views: std of each view's rigid misalignment, meters (translation) and x10 radians (rotation).

point_noise: float = 0.0

with fuse_views: std of per-point gaussian noise (m).

aug_prob: float = 0.0

with fuse_views: probability of the perception augmentation (datasets/perception_aug.py) per sample; needs renders that keep the neighbours (extract_segments=[]) and camera poses in the processed h5.

aug_keep_min: float = 0.1

perception aug: fused-cloud keep fraction, log-uniform in [aug_keep_min, 1].

aug_voxel_max: float = 0.0

perception aug: voxel dedup size (m), applied with p 0.5 (the old gate pipeline's 3 mm thinning).

aug_drop_wrist_prob: float = 0.0

perception aug: probability of the head view alone (no wrist view).

aug_rgb_prob: float = 0.0

perception aug: probability of the rgb / moge depth-error model (per sample).

","graspkit/api-envs":"environments environments api create an environment with build_env(cfg, robot_config, device) ; envconfig selects the backend. baseenv graspkit.envs class abc

unified grasp env: msenv (maniskill), mjenv (mujoco), isaacenv (isaac), realenv (hardware).

  • evaluate is the batched-rollout, reported-sr path shared by all eval call sites.
  • reset/get_qpos/step_qpos/get_rgb/get_pointcloud are the deploy primitives shared by sim and real.
  • get_object_pose/set_object_pose/observe drive simulated closed-loop policy evaluation.
last_rollouts: list[rollout] reset(scene: scenedescription | list[scenedescription] | none = none, init_qpos: torch.tensor | none = none, root_pose: torch.tensor | none = none, camera_pose: torch.tensor | none = none)

initialize the scene (simulators accept a list, one env each), robot, and calibrated camera pose.

get_qpos() -> torch.tensor

current joint positions, ours order, shape (b, d).

step_qpos(q: torch.tensor)

command target q (ours order) and advance one control step.

get_info() -> dict[str, torch.tensor]

return backend metrics for the current state.

set_qpos_traj(traj_qpos: torch.tensor, qpos_callback: callable[[int, torch.tensor], none] | none = none) -> dict[str, torch.tensor]

stream one (t, d) qpos trajectory through the backend; the callback sees measured qpos.

get_rgb() -> np.ndarray

latest rgb camera image, shape (h, w, 3), uint8.

get_pointcloud(mask: np.ndarray) -> torch.tensor

object cloud selected by an aligned image mask, in world frame, shape (b, n, 3).

get_object_pose() -> torch.tensor

target object world poses, shape (b, 7) [xyz, quat_wxyz]; simulators only.

set_object_pose(pose: torch.tensor)

teleport the target objects to world poses (b, 7); simulators only.

observe() -> dict[str, torch.tensor]

sim-only, robot-free: rgb (b, v, h, w, 3), world xyz/seg (b, n, 3/1), seg_id, camera_poses.

evaluate(batch: graspkitdata, record: bool = false) -> dict[str, torch.tensor]

rollout of batch.full_traj_qpos; infos keyed by metric; record=true fills self.last_rollouts.

close()

release the backend (sim envs / worker pool / hardware).

envconfig graspkit.configs.experiment_config class

the tabletop grasp task; select isaac or mujoco with their optional configuration, otherwise maniskill.

ms_env_config msenvconfig mj_env_config optional[mjevalconfig] isaac_env_config optional[isaacenvconfig] mj_native_env_config optional[mjnativeenvconfig] load_scenes bool control_freq int target_lift_dist float object_mass float floating_object bool camera_width int camera_height int camera_intrinsic tuple[tuple[float, float, float], ...] camera_near float cameras tuple[cameraspec, ...] contact_offset float num_envs int num_seeds int enable_perturbation bool perturbation_step_range tuple[int, int] perturbation_magnitude float num_perturbations int perturbation_duration int ms_env_config: msenvconfig = field(default_factory=msenvconfig)

maniskill-only settings

mj_env_config: optional[mjevalconfig] = none

mujoco evaluator config; set this to select the mujoco backend.

isaac_env_config: optional[isaacenvconfig] = none

isaac backend config; mutually exclusive with mj_env_config.

mj_native_env_config: optional[mjnativeenvconfig] = none

closed-loop mujoco backend config; at most one of the backend configs may be set.

load_scenes: bool = true

whether to load scenes (actors and tables).

control_freq: int = 50

control frequency.

target_lift_dist: float = 0.2

target lift distance.

object_mass: float = 0.01

mass of the object.

floating_object: bool = false

whether to use a floating object.

camera_width: int = 960

width of the camera.

camera_height: int = 540

height of the camera.

camera_intrinsic: tuple[tuple[float, float, float], ...] = field(default_factory=lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))

intrinsic matrix of the camera.

camera_near: float = 0.01

near clipping plane of the camera.

cameras: tuple[cameraspec, ...] = ()

cameras rendered instead of maniskill's base_camera (with ms_env_config.robot_uid none); isaac and mujoco render only these.

contact_offset: float = 0.001

physx contact_offset (m). larger = compliant/sticky-feeling fingertip pads.

num_envs: int = 2048

number of environments to evaluate on

num_seeds: int = 1

number of seeds

enable_perturbation: bool = true

whether to enable perturbation

perturbation_step_range: tuple[int, int] = (35, 80)

perturbation step range

perturbation_magnitude: float = 150.0

perturbation magnitude

num_perturbations: int = 8

number of perturbations

perturbation_duration: int = 1

number of consecutive steps to apply each perturbation force (1 = single impulse)

msenvconfig graspkit.configs.env_config class

maniskill-only settings; the task itself is envconfig's.

robot_uid optional[str] reconfiguration_freq optional[int] robot_uid: optional[str] = none

maniskill agent uid; none registers one from the robot config. a hand-only uid on a floating-base robot means a static base.

reconfiguration_freq: optional[int] = 1

reconfiguration frequency.

mjevalconfig graspkit.configs.env_config class

mujoco grasp-evaluation settings.

num_workers int obj_mass float miu_coef tuple setting str max_pene float trans_thre float lift_slip_thre float min_lift_dist float grasp_interp_steps int lift_interp_steps int angle_thre float contact_margin float contact_threshold float fc_force_scale float timestep float solref_timeconst float obj_root str hand handspec num_workers: int = 48 obj_mass: float = 0.1

object mass (kg).

miu_coef: tuple = (0.6, 0.02)

[tangential, torsional] friction.

setting: str = 'fc'

evaluation setting; only \"fc\" is ported.

max_pene: float = 0.01 trans_thre: float = 0.05 lift_slip_thre: float = 0.02

tabletop: max object-vs-palm slip during the lift (tight; trans_thre is too loose).

min_lift_dist: float = 0.0

tabletop: minimum actual object rise; zero preserves existing evaluator behavior.

grasp_interp_steps: int = 25

interp frames for pregrasp->grasp and grasp->squeeze.

lift_interp_steps: int = 50

interp frames for the squeeze->lift raise.

angle_thre: float = 15.0 contact_margin: float = 0.01 contact_threshold: float = 0.002 fc_force_scale: float = 10.0

multiplies obj_mass for the fc/tabletop external force (lower = gentler test).

timestep: float = 0.004

mujoco step; lower (e.g. 0.001) stabilizes an actuated arm+hand grip.

solref_timeconst: float = 0.005

rigid-contact solref[0]; smaller = more rigid (less penetration).

obj_root: str = str(mujoco_eval_root / 'example_object') hand: handspec = none

none -> build_env picks the default (floating shadow_hand, or fixed-base vega_sharpa).

","graspkit/api-data":"data data api graspkitdata graspkit.datasets.graspkit_data class

batched per-stage tensor payload; supports padded and packed layouts.

scene_ids list[str] scene_descriptions list[scenedescription] | none first_indices int[tensor, bp1] | none pre_grasp_qpos float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none grasp_qpos float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none post_grasp_qpos float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none full_traj_qpos float[tensor, 'b k t dof'] | float[tensor, 'n t dof'] | none pre_traj_penetration float[tensor, 'b k'] | float[tensor, n] | none pointcloud float[tensor, 'b t npts 3'] | none pointcloud_rgb float[tensor, 'b t npts 3'] | none pointcloud_segmentation int[tensor, 'b t npts 1'] | none target_actor_segmentation_id int[tensor, b] | none camera_poses float[tensor, 'b t 7'] | none scene_ids: list[str] scene_descriptions: list[scenedescription] | none = none first_indices: int[tensor, bp1] | none = none pre_grasp_qpos: float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none = none grasp_qpos: float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none = none post_grasp_qpos: float[tensor, 'b k dof'] | float[tensor, 'n dof'] | none = none full_traj_qpos: float[tensor, 'b k t dof'] | float[tensor, 'n t dof'] | none = none pre_traj_penetration: float[tensor, 'b k'] | float[tensor, n] | none = none pointcloud: float[tensor, 'b t npts 3'] | none = none pointcloud_rgb: float[tensor, 'b t npts 3'] | none = none pointcloud_segmentation: int[tensor, 'b t npts 1'] | none = none target_actor_segmentation_id: int[tensor, b] | none = none camera_poses: float[tensor, 'b t 7'] | none = none num_scenes: int is_packed: bool is_padded: bool num_grasps_per_scene: tensor to_padded() -> graspkitdata to_packed() -> graspkitdata filter(mask: tensor) -> graspkitdata

filter packed grasps or scenes by a boolean mask and drop empty scenes.

save(path: str, append: bool = false) -> none

save scenes to individual h5 files or groups in a merged h5 file.

load(path: str, scene_ids: list[str] | none = none, packed: bool = true) -> graspkitdata

load scenes in packed form or padded form with uniform grasp counts.

replaydata graspkit.datasets.replay_data class

one recorded trajectory for the replay viewer: robot qpos, object pose and the assets to draw them.

qpos float[np.ndarray, 't dof'] obj_pose float[np.ndarray, 't 7'] robot_path str mesh_dir str base_type str obj_mesh_path str obj_scale float stage str label str root_pos float[np.ndarray, 3] root_quat float[np.ndarray, 4] table_size float[np.ndarray, 3] table_pos float[np.ndarray, 3] table_quat float[np.ndarray, 4] qpos: float[np.ndarray, 't dof']

fk variables: floating [xyz, euler_rxyz, joints] or fixed joints.

obj_pose: float[np.ndarray, 't 7']

object world pose [xyz, quat_wxyz].

robot_path: str

urdf or mjcf the viewer loads into viserurdf / visermjcf.

mesh_dir: str

urdf mesh directory; empty if none.

base_type: str

\"floating\" or \"fixed\".

obj_mesh_path: str

object collision mesh (loaded via trimesh).

obj_scale: float stage: str = 'sim-valid'

viewer partition, e.g. optimize_grasps.py --verbose's \"sample (unfiltered)\" ... \"sim\".

label: str = 'success'

free filter within a stage, e.g. \"success\" or \"failure\".

root_pos: float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32)) root_quat: float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32)) table_size: float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32)) table_pos: float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32)) table_quat: float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32)) from_traj(qpos: float[np.ndarray, 't dof'], obj_pose: float[np.ndarray, 't 7'], robot_config: robotconfig, scene_desc: scenedescription, stage: str = 'sim-valid', label: str = 'success') -> replaydata save(replays: list[replaydata], path: str) -> none load(path: str) -> list[replaydata]","graspkit/dev":"development guide development guide setup graspkit needs python 3.10–3.14. shell git clone https://github.com/openrobokit/graspkit.git cd graspkit uv sync --extra maniskill --extra spconv uv sync installs the dev and pt-cu126 groups by default; the full pipeline also needs the maniskill and spconv extras (python 3.10–3.12). for another pytorch build, see installation . git workflow create your own branch for development. use pull requests with squash merge to merge to main . delete your branch after merging. github ci runs ruff and the tests on a cpu runner without hugging face access, where tests marked cuda or hf_assets skip, so run the full suite locally on a gpu before opening a pull request. formatting, linting, and tests shell make ci # format + lint + test make format # uvx ruff@0.15.22 format make lint # uvx ruff@0.15.22 check --fix cuda_visible_devices=0 make test # uv run pytest tests tests/ mirrors src/graspkit/ and scripts/ ( tests/scripts/ ), one test class per feature; shared fixtures live in tests/conftest.py . mark tests that need a gpu with @pytest.mark.cuda and tests that need hugging face assets (robokit robots, graspkit scenes) with @pytest.mark.hf_assets ; import such assets inside the test, since robokit downloads a robot when its module is imported. pre-commit hooks run ruff. pin the same ruff version the makefile does; a newer default rule set reports findings ci does not. running things use uv run , never a bare python or pip . gpu scripts: pick a free gpu first and set cuda_visible_devices . viser scripts serve until interrupted; give them a timeout when scripting them. configs all config classes live in src/graspkit/configs/*_config.py ; their instances live apart, in configs/experiment/ , configs/robot/ , configs/grasp_policy.py , configs/mj_hand.py and configs/real_env.py . a new robot or experiment is a module plus one line in the registry of its package's __init__.py . see the config system . code style type hints on function arguments and return types, except none , any and object . no from __future__ import annotations . prefer fewer, larger functions; add a helper only when it removes real duplication. no try/except, no hasattr , no fallback paths: assume the environment is correct and let the program crash on errors. the robokit boundary robokit holds robot-generic math (terms, solvers, lie, geom, robo); graspkit holds the research pipelines and anything tuned per experiment. code moves to robokit only when a second consumer exists, and it is moved, never copied. robokit is pinned by git rev in pyproject.toml ( [tool.uv.sources] ): to pick up robokit changes, merge there, bump the rev, then uv sync ."} \ No newline at end of file diff --git a/docs/graspkit/api-data/index.html b/docs/graspkit/api-data/index.html deleted file mode 100644 index 3bb76e3..0000000 --- a/docs/graspkit/api-data/index.html +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - Data · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Data

-
-
- -
graspkit.datasets.graspkit_data.GraspKitData(
-
scene_ids: list[str],
scene_descriptions: list[SceneDescription] | None = None,
first_indices: Int[Tensor, Bp1] | None = None,
pre_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None,
grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None,
post_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None,
full_traj_qpos: Float[Tensor, 'B K T dof'] | Float[Tensor, 'N T dof'] | None = None,
pre_traj_penetration: Float[Tensor, 'B K'] | Float[Tensor, N] | None = None,
pointcloud: Float[Tensor, 'B T Npts 3'] | None = None,
pointcloud_rgb: Float[Tensor, 'B T Npts 3'] | None = None,
pointcloud_segmentation: Int[Tensor, 'B T Npts 1'] | None = None,
target_actor_segmentation_id: Int[Tensor, B] | None = None,
camera_poses: Float[Tensor, 'B T 7'] | None = None
)
-
-

Batched per-stage tensor payload; supports padded and packed layouts.

Parameters
-
scene_idslist[str]required
-
-
-
scene_descriptionslist[SceneDescription] | None= None
-
-
-
first_indicesInt[Tensor, Bp1] | None= None
-
-
-
pre_grasp_qposFloat[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None= None
-
-
-
grasp_qposFloat[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None= None
-
-
-
post_grasp_qposFloat[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None= None
-
-
-
full_traj_qposFloat[Tensor, 'B K T dof'] | Float[Tensor, 'N T dof'] | None= None
-
-
-
pre_traj_penetrationFloat[Tensor, 'B K'] | Float[Tensor, N] | None= None
-
-
-
pointcloudFloat[Tensor, 'B T Npts 3'] | None= None
-
-
-
pointcloud_rgbFloat[Tensor, 'B T Npts 3'] | None= None
-
-
-
pointcloud_segmentationInt[Tensor, 'B T Npts 1'] | None= None
-
-
-
target_actor_segmentation_idInt[Tensor, B] | None= None
-
-
-
camera_posesFloat[Tensor, 'B T 7'] | None= None
-
-
Members
-
-
attribute[source]
-
GraspKitData.scene_ids: list[str]
- -
- -
-
-
attribute[source]
-
GraspKitData.scene_descriptions: list[SceneDescription] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.first_indices: Int[Tensor, Bp1] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.pre_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.post_grasp_qpos: Float[Tensor, 'B K dof'] | Float[Tensor, 'N dof'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.full_traj_qpos: Float[Tensor, 'B K T dof'] | Float[Tensor, 'N T dof'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.pre_traj_penetration: Float[Tensor, 'B K'] | Float[Tensor, N] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.pointcloud: Float[Tensor, 'B T Npts 3'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.pointcloud_rgb: Float[Tensor, 'B T Npts 3'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.pointcloud_segmentation: Int[Tensor, 'B T Npts 1'] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.target_actor_segmentation_id: Int[Tensor, B] | None = None
- -
- -
-
-
attribute[source]
-
GraspKitData.camera_poses: Float[Tensor, 'B T 7'] | None = None
- -
- -
-
-
property[source]
-
GraspKitData.num_scenes: int
- -
- -
-
-
property[source]
-
GraspKitData.is_packed: bool
- -
- -
-
-
property[source]
-
GraspKitData.is_padded: bool
- -
- -
-
-
property[source]
-
GraspKitData.num_grasps_per_scene: Tensor
- -
- -
-
-
method[source]
-
GraspKitData.to_padded() -> GraspKitData
- -
-
Returns
GraspKitData
-
-
-
method[source]
-
GraspKitData.to_packed() -> GraspKitData
- -
-
Returns
GraspKitData
-
-
-
method[source]
-
GraspKitData.filter(
-
mask: Tensor
) -> GraspKitData
-
-

Filter packed grasps or scenes by a boolean mask and drop empty scenes.

Parameters
-
maskTensorrequired
-
-
Returns
GraspKitData
-
-
-
method[source]
-
GraspKitData.save(
-
path: str,
append: bool = False
) -> None
-
-

Save scenes to individual H5 files or groups in a merged H5 file.

Parameters
-
pathstrrequired
-
-
-
appendbool= False
-
-
Returns
None
-
-
-
method[source]
-
GraspKitData.load(
-
path: str,
scene_ids: list[str] | None = None,
packed: bool = True
) -> GraspKitData
-
-

Load scenes in packed form or padded form with uniform grasp counts.

Parameters
-
pathstrrequired
-
-
-
scene_idslist[str] | None= None
-
-
-
packedbool= True
-
-
Returns
GraspKitData
-
-
-
- -
graspkit.datasets.replay_data.ReplayData(
-
qpos: Float[np.ndarray, 'T dof'],
obj_pose: Float[np.ndarray, 'T 7'],
robot_path: str,
mesh_dir: str,
base_type: str,
obj_mesh_path: str,
obj_scale: float,
stage: str = 'sim-valid',
label: str = 'success',
root_pos: Float[np.ndarray, 3] = (lambda: np.zeros(3, np.float32))(),
root_quat: Float[np.ndarray, 4] = (lambda: np.array([1, 0, 0, 0], np.float32))(),
table_size: Float[np.ndarray, 3] = (lambda: np.zeros(3, np.float32))(),
table_pos: Float[np.ndarray, 3] = (lambda: np.zeros(3, np.float32))(),
table_quat: Float[np.ndarray, 4] = (lambda: np.array([1, 0, 0, 0], np.float32))()
)
-
-

One recorded trajectory for the replay viewer: robot qpos, object pose and the assets to draw them.

Parameters
-
qposFloat[np.ndarray, 'T dof']required
-
-
-
obj_poseFloat[np.ndarray, 'T 7']required
-
-
-
robot_pathstrrequired
-
-
-
mesh_dirstrrequired
-
-
-
base_typestrrequired
-
-
-
obj_mesh_pathstrrequired
-
-
-
obj_scalefloatrequired
-
-
-
stagestr= 'sim-valid'
-
-
-
labelstr= 'success'
-
-
-
root_posFloat[np.ndarray, 3]= (lambda: np.zeros(3, np.float32))()
-
-
-
root_quatFloat[np.ndarray, 4]= (lambda: np.array([1, 0, 0, 0], np.float32))()
-
-
-
table_sizeFloat[np.ndarray, 3]= (lambda: np.zeros(3, np.float32))()
-
-
-
table_posFloat[np.ndarray, 3]= (lambda: np.zeros(3, np.float32))()
-
-
-
table_quatFloat[np.ndarray, 4]= (lambda: np.array([1, 0, 0, 0], np.float32))()
-
-
Members
-
-
attribute[source]
-
ReplayData.qpos: Float[np.ndarray, 'T dof']
- -
-

FK variables: floating [xyz, euler_rxyz, joints] or fixed joints.

-
-
-
attribute[source]
-
ReplayData.obj_pose: Float[np.ndarray, 'T 7']
- -
-

Object world pose [xyz, quat_wxyz].

-
-
-
attribute[source]
-
ReplayData.robot_path: str
- -
-

URDF or MJCF the viewer loads into ViserUrdf / ViserMjcf.

-
-
-
attribute[source]
-
ReplayData.mesh_dir: str
- -
-

URDF mesh directory; empty if none.

-
-
-
attribute[source]
-
ReplayData.base_type: str
- -
-

"floating" or "fixed".

-
-
-
attribute[source]
-
ReplayData.obj_mesh_path: str
- -
-

Object collision mesh (loaded via trimesh).

-
-
-
attribute[source]
-
ReplayData.obj_scale: float
- -
- -
-
-
attribute[source]
-
ReplayData.stage: str = 'sim-valid'
- -
-

Viewer partition, e.g. optimize_grasps.py --verbose's "sample (unfiltered)" ... "sim".

-
-
-
attribute[source]
-
ReplayData.label: str = 'success'
- -
-

Free filter within a stage, e.g. "success" or "failure".

-
-
-
attribute[source]
-
ReplayData.root_pos: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))
- -
- -
-
-
attribute[source]
-
ReplayData.root_quat: Float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32))
- -
- -
-
-
attribute[source]
-
ReplayData.table_size: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))
- -
- -
-
-
attribute[source]
-
ReplayData.table_pos: Float[np.ndarray, 3] = field(default_factory=lambda: np.zeros(3, np.float32))
- -
- -
-
-
attribute[source]
-
ReplayData.table_quat: Float[np.ndarray, 4] = field(default_factory=lambda: np.array([1, 0, 0, 0], np.float32))
- -
- -
-
-
method[source]
-
ReplayData.from_traj(
-
qpos: Float[np.ndarray, 'T dof'],
obj_pose: Float[np.ndarray, 'T 7'],
robot_config: RobotConfig,
scene_desc: SceneDescription,
stage: str = 'sim-valid',
label: str = 'success'
) -> ReplayData
-
-
Parameters
-
qposFloat[np.ndarray, 'T dof']required
-
-
-
obj_poseFloat[np.ndarray, 'T 7']required
-
-
-
robot_configRobotConfigrequired
-
-
-
scene_descSceneDescriptionrequired
-
-
-
stagestr= 'sim-valid'
-
-
-
labelstr= 'success'
-
-
Returns
ReplayData
-
-
-
method[source]
-
ReplayData.save(
-
replays: list[ReplayData],
path: str
) -> None
-
-
Parameters
-
replayslist[ReplayData]required
-
-
-
pathstrrequired
-
-
Returns
None
-
-
-
method[source]
-
ReplayData.load(
-
path: str
) -> list[ReplayData]
-
-
Parameters
-
pathstrrequired
-
-
Returns
list[ReplayData]
-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-envs/index.html b/docs/graspkit/api-envs/index.html deleted file mode 100644 index 98d869b..0000000 --- a/docs/graspkit/api-envs/index.html +++ /dev/null @@ -1,650 +0,0 @@ - - - - - - Environments · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Environments

-

Create an environment with build_env(cfg, robot_config, device); EnvConfig selects the backend.

-
- -
graspkit.envs.BaseEnv()
-
Bases: ABC
-
-

Unified grasp env: MsEnv (ManiSkill), MjEnv (MuJoCo), IsaacEnv (Isaac), RealEnv (hardware).

  • evaluate is the batched-rollout, reported-SR path shared by all eval call sites.
  • reset/get_qpos/step_qpos/get_rgb/get_pointcloud are the deploy primitives shared by sim and real.
  • get_object_pose/set_object_pose/observe drive simulated closed-loop policy evaluation.
Members
-
-
attribute[source]
-
BaseEnv.last_rollouts: list[Rollout]
- -
- -
-
-
method[source]
-
BaseEnv.reset(
-
scene: SceneDescription | list[SceneDescription] | None = None,
init_qpos: torch.Tensor | None = None,
root_pose: torch.Tensor | None = None,
camera_pose: torch.Tensor | None = None
)
-
-

Initialize the scene (simulators accept a list, one env each), robot, and calibrated camera pose.

Parameters
-
sceneSceneDescription | list[SceneDescription] | None= None
-
-
-
init_qpostorch.Tensor | None= None
-
-
-
root_posetorch.Tensor | None= None
-
-
-
camera_posetorch.Tensor | None= None
-
-
-
-
-
method[source]
-
BaseEnv.get_qpos() -> torch.Tensor
- -
-

Current joint positions, ours order, shape (B, D).

Returns
torch.Tensor
-
-
-
method[source]
-
BaseEnv.step_qpos(
-
q: torch.Tensor
)
-
-

Command target q (ours order) and advance one control step.

Parameters
-
qtorch.Tensorrequired
-
-
-
-
-
method[source]
-
BaseEnv.get_info() -> dict[str, torch.Tensor]
- -
-

Return backend metrics for the current state.

Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
BaseEnv.set_qpos_traj(
-
traj_qpos: torch.Tensor,
qpos_callback: Callable[[int, torch.Tensor], None] | None = None
) -> dict[str, torch.Tensor]
-
-

Stream one (T, D) qpos trajectory through the backend; the callback sees measured qpos.

Parameters
-
traj_qpostorch.Tensorrequired
-
-
-
qpos_callbackCallable[[int, torch.Tensor], None] | None= None
-
-
Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
BaseEnv.get_rgb() -> np.ndarray
- -
-

Latest RGB camera image, shape (H, W, 3), uint8.

Returns
np.ndarray
-
-
-
method[source]
-
BaseEnv.get_pointcloud(
-
mask: np.ndarray
) -> torch.Tensor
-
-

Object cloud selected by an aligned image mask, in world frame, shape (B, N, 3).

Parameters
-
masknp.ndarrayrequired
-
-
Returns
torch.Tensor
-
-
-
method[source]
-
BaseEnv.get_object_pose() -> torch.Tensor
- -
-

Target object world poses, shape (B, 7) [xyz, quat_wxyz]; simulators only.

Returns
torch.Tensor
-
-
-
method[source]
-
BaseEnv.set_object_pose(
-
pose: torch.Tensor
)
-
-

Teleport the target objects to world poses (B, 7); simulators only.

Parameters
-
posetorch.Tensorrequired
-
-
-
-
-
method[source]
-
BaseEnv.observe() -> dict[str, torch.Tensor]
- -
-

Sim-only, robot-free: rgb (B, V, H, W, 3), world xyz/seg (B, N, 3/1), seg_id, camera_poses.

Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
BaseEnv.evaluate(
-
batch: GraspKitData,
record: bool = False
) -> dict[str, torch.Tensor]
-
-

Rollout of batch.full_traj_qpos; infos keyed by metric; record=True fills self.last_rollouts.

Parameters
-
batchGraspKitDatarequired
-
-
-
recordbool= False
-
-
Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
BaseEnv.close()
- -
-

Release the backend (sim envs / worker pool / hardware).

-
-
-
- -
graspkit.configs.experiment_config.EnvConfig(
-
ms_env_config: MsEnvConfig = MsEnvConfig(),
mj_env_config: Optional[MjEvalConfig] = None,
isaac_env_config: Optional[IsaacEnvConfig] = None,
mj_native_env_config: Optional[MjNativeEnvConfig] = None,
load_scenes: bool = True,
control_freq: int = 50,
target_lift_dist: float = 0.2,
object_mass: float = 0.01,
floating_object: bool = False,
camera_width: int = 960,
camera_height: int = 540,
camera_intrinsic: Tuple[Tuple[float, float, float], ...] = (lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))(),
camera_near: float = 0.01,
cameras: Tuple[CameraSpec, ...] = (),
contact_offset: float = 0.001,
num_envs: int = 2048,
num_seeds: int = 1,
enable_perturbation: bool = True,
perturbation_step_range: Tuple[int, int] = (35, 80),
perturbation_magnitude: float = 150.0,
num_perturbations: int = 8,
perturbation_duration: int = 1
)
-
-

The tabletop grasp task; select Isaac or MuJoCo with their optional configuration, otherwise ManiSkill.

Parameters
-
ms_env_configMsEnvConfig= MsEnvConfig()
-
-
-
mj_env_configOptional[MjEvalConfig]= None
-
-
-
isaac_env_configOptional[IsaacEnvConfig]= None
-
-
-
mj_native_env_configOptional[MjNativeEnvConfig]= None
-
-
-
load_scenesbool= True
-
-
-
control_freqint= 50
-
-
-
target_lift_distfloat= 0.2
-
-
-
object_massfloat= 0.01
-
-
-
floating_objectbool= False
-
-
-
camera_widthint= 960
-
-
-
camera_heightint= 540
-
-
-
camera_intrinsicTuple[Tuple[float, float, float], ...]= (lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))()
-
-
-
camera_nearfloat= 0.01
-
-
-
camerasTuple[CameraSpec, ...]= ()
-
-
-
contact_offsetfloat= 0.001
-
-
-
num_envsint= 2048
-
-
-
num_seedsint= 1
-
-
-
enable_perturbationbool= True
-
-
-
perturbation_step_rangeTuple[int, int]= (35, 80)
-
-
-
perturbation_magnitudefloat= 150.0
-
-
-
num_perturbationsint= 8
-
-
-
perturbation_durationint= 1
-
-
Members
-
-
attribute[source]
-
EnvConfig.ms_env_config: MsEnvConfig = field(default_factory=MsEnvConfig)
- -
-

ManiSkill-only settings

-
-
-
attribute[source]
-
EnvConfig.mj_env_config: Optional[MjEvalConfig] = None
- -
-

MuJoCo evaluator config; set this to select the MuJoCo backend.

-
-
-
attribute[source]
-
EnvConfig.isaac_env_config: Optional[IsaacEnvConfig] = None
- -
-

Isaac backend config; mutually exclusive with mj_env_config.

-
-
-
attribute[source]
-
EnvConfig.mj_native_env_config: Optional[MjNativeEnvConfig] = None
- -
-

Closed-loop MuJoCo backend config; at most one of the backend configs may be set.

-
-
-
attribute[source]
-
EnvConfig.load_scenes: bool = True
- -
-

Whether to load scenes (actors and tables).

-
-
-
attribute[source]
-
EnvConfig.control_freq: int = 50
- -
-

Control frequency.

-
-
-
attribute[source]
-
EnvConfig.target_lift_dist: float = 0.2
- -
-

Target lift distance.

-
-
-
attribute[source]
-
EnvConfig.object_mass: float = 0.01
- -
-

Mass of the object.

-
-
-
attribute[source]
-
EnvConfig.floating_object: bool = False
- -
-

Whether to use a floating object.

-
-
-
attribute[source]
-
EnvConfig.camera_width: int = 960
- -
-

Width of the camera.

-
-
-
attribute[source]
-
EnvConfig.camera_height: int = 540
- -
-

Height of the camera.

-
-
-
attribute[source]
-
EnvConfig.camera_intrinsic: Tuple[Tuple[float, float, float], ...] = field(default_factory=lambda: ((677, 0, 492), (0, 677, 268), (0, 0, 1)))
- -
-

Intrinsic matrix of the camera.

-
-
-
attribute[source]
-
EnvConfig.camera_near: float = 0.01
- -
-

Near clipping plane of the camera.

-
-
-
attribute[source]
-
EnvConfig.cameras: Tuple[CameraSpec, ...] = ()
- -
-

Cameras rendered instead of ManiSkill's base_camera (with ms_env_config.robot_uid None); Isaac and MuJoCo render only these.

-
-
-
attribute[source]
-
EnvConfig.contact_offset: float = 0.001
- -
-

PhysX contact_offset (m). Larger = compliant/sticky-feeling fingertip pads.

-
-
-
attribute[source]
-
EnvConfig.num_envs: int = 2048
- -
-

Number of environments to evaluate on

-
-
-
attribute[source]
-
EnvConfig.num_seeds: int = 1
- -
-

Number of seeds

-
-
-
attribute[source]
-
EnvConfig.enable_perturbation: bool = True
- -
-

Whether to enable perturbation

-
-
-
attribute[source]
-
EnvConfig.perturbation_step_range: Tuple[int, int] = (35, 80)
- -
-

Perturbation step range

-
-
-
attribute[source]
-
EnvConfig.perturbation_magnitude: float = 150.0
- -
-

Perturbation magnitude

-
-
-
attribute[source]
-
EnvConfig.num_perturbations: int = 8
- -
-

Number of perturbations

-
-
-
attribute[source]
-
EnvConfig.perturbation_duration: int = 1
- -
-

Number of consecutive steps to apply each perturbation force (1 = single impulse)

-
-
-
- -
graspkit.configs.env_config.MsEnvConfig(
-
robot_uid: Optional[str] = None,
reconfiguration_freq: Optional[int] = 1
)
-
-

ManiSkill-only settings; the task itself is EnvConfig's.

Parameters
-
robot_uidOptional[str]= None
-
-
-
reconfiguration_freqOptional[int]= 1
-
-
Members
-
-
attribute[source]
-
MsEnvConfig.robot_uid: Optional[str] = None
- -
-

ManiSkill agent uid; None registers one from the robot config. A hand-only uid on a floating-base robot means a static base.

-
-
-
attribute[source]
-
MsEnvConfig.reconfiguration_freq: Optional[int] = 1
- -
-

Reconfiguration frequency.

-
-
-
- -
graspkit.configs.env_config.MjEvalConfig(
-
num_workers: int = 48,
obj_mass: float = 0.1,
miu_coef: tuple = (0.6, 0.02),
setting: str = 'fc',
max_pene: float = 0.01,
trans_thre: float = 0.05,
lift_slip_thre: float = 0.02,
min_lift_dist: float = 0.0,
grasp_interp_steps: int = 25,
lift_interp_steps: int = 50,
angle_thre: float = 15.0,
contact_margin: float = 0.01,
contact_threshold: float = 0.002,
fc_force_scale: float = 10.0,
timestep: float = 0.004,
solref_timeconst: float = 0.005,
obj_root: str = str(MUJOCO_EVAL_ROOT / 'example_object'),
hand: HandSpec = None
)
-
-

MuJoCo grasp-evaluation settings.

Parameters
-
num_workersint= 48
-
-
-
obj_massfloat= 0.1
-
-
-
miu_coeftuple= (0.6, 0.02)
-
-
-
settingstr= 'fc'
-
-
-
max_penefloat= 0.01
-
-
-
trans_threfloat= 0.05
-
-
-
lift_slip_threfloat= 0.02
-
-
-
min_lift_distfloat= 0.0
-
-
-
grasp_interp_stepsint= 25
-
-
-
lift_interp_stepsint= 50
-
-
-
angle_threfloat= 15.0
-
-
-
contact_marginfloat= 0.01
-
-
-
contact_thresholdfloat= 0.002
-
-
-
fc_force_scalefloat= 10.0
-
-
-
timestepfloat= 0.004
-
-
-
solref_timeconstfloat= 0.005
-
-
-
obj_rootstr= str(MUJOCO_EVAL_ROOT / 'example_object')
-
-
-
handHandSpec= None
-
-
Members
-
-
attribute[source]
-
MjEvalConfig.num_workers: int = 48
- -
- -
-
-
attribute[source]
-
MjEvalConfig.obj_mass: float = 0.1
- -
-

Object mass (kg).

-
-
-
attribute[source]
-
MjEvalConfig.miu_coef: tuple = (0.6, 0.02)
- -
-

[tangential, torsional] friction.

-
-
-
attribute[source]
-
MjEvalConfig.setting: str = 'fc'
- -
-

Evaluation setting; only "fc" is ported.

-
-
-
attribute[source]
-
MjEvalConfig.max_pene: float = 0.01
- -
- -
-
-
attribute[source]
-
MjEvalConfig.trans_thre: float = 0.05
- -
- -
-
-
attribute[source]
-
MjEvalConfig.lift_slip_thre: float = 0.02
- -
-

Tabletop: max object-vs-palm slip during the lift (tight; trans_thre is too loose).

-
-
-
attribute[source]
-
MjEvalConfig.min_lift_dist: float = 0.0
- -
-

Tabletop: minimum actual object rise; zero preserves existing evaluator behavior.

-
-
-
attribute[source]
-
MjEvalConfig.grasp_interp_steps: int = 25
- -
-

Interp frames for pregrasp->grasp and grasp->squeeze.

-
-
-
attribute[source]
-
MjEvalConfig.lift_interp_steps: int = 50
- -
-

Interp frames for the squeeze->lift raise.

-
-
-
attribute[source]
-
MjEvalConfig.angle_thre: float = 15.0
- -
- -
-
-
attribute[source]
-
MjEvalConfig.contact_margin: float = 0.01
- -
- -
-
-
attribute[source]
-
MjEvalConfig.contact_threshold: float = 0.002
- -
- -
-
-
attribute[source]
-
MjEvalConfig.fc_force_scale: float = 10.0
- -
-

Multiplies obj_mass for the fc/tabletop external force (lower = gentler test).

-
-
-
attribute[source]
-
MjEvalConfig.timestep: float = 0.004
- -
-

MuJoCo step; lower (e.g. 0.001) stabilizes an actuated arm+hand grip.

-
-
-
attribute[source]
-
MjEvalConfig.solref_timeconst: float = 0.005
- -
-

Rigid-contact solref[0]; smaller = more rigid (less penetration).

-
-
-
attribute[source]
-
MjEvalConfig.obj_root: str = str(MUJOCO_EVAL_ROOT / 'example_object')
- -
- -
-
-
attribute[source]
-
MjEvalConfig.hand: HandSpec = None
- -
-

None -> build_env picks the default (floating SHADOW_HAND, or fixed-base VEGA_SHARPA).

-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-grasp-optim/index.html b/docs/graspkit/api-grasp-optim/index.html deleted file mode 100644 index af38ee2..0000000 --- a/docs/graspkit/api-grasp-optim/index.html +++ /dev/null @@ -1,940 +0,0 @@ - - - - - - Grasp Optimization · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Grasp Optimization

-
-
- -
graspkit.stages.grasp_optim.WarpGraspOptimizer(
-
cfg: GraspOptimConfig,
robot_config: RobotConfig,
device: Device,
fixed_base_robot_config: Optional[RobotConfig] = None,
ik_oversample_ratio: int = 16
)
-
-

Batched Warp grasp optimizer: samples init grasps per scene, then runs GraspOptimConfig.optimizer_backend.

Parameters
-
cfgGraspOptimConfigrequired
-
-
-
robot_configRobotConfigrequired
-
-
-
deviceDevicerequired
-
-
-
fixed_base_robot_configOptional[RobotConfig]= None
-
-
-
ik_oversample_ratioint= 16
-
-
Members
-
-
attribute[source]
-
WarpGraspOptimizer.last_snapshots: Optional[torch.Tensor]
- -
- -
-
-
method[source]
-
WarpGraspOptimizer.optimize(
-
scene_descriptions: List[SceneDescription],
num_samples_per_scene: int,
record: bool = False
) -> torch.Tensor
-
-

Optimize grasps for each scene; returns (n_scene, num_samples_per_scene, dof) grasp variables.

Parameters
-
scene_descriptionsList[SceneDescription]required
-
-
-
num_samples_per_sceneintrequired
-
-
-
recordbool= False
-
-
Returns
torch.Tensor
-
-
-
method[source]
-
WarpGraspOptimizer.compute_costs(
-
scene_descriptions: List[SceneDescription],
grasps: torch.Tensor
) -> Dict[str, torch.Tensor]
-
-

Per-term 0.5·Σr² cost of (n_scene, n, dof) grasps, with contacts re-picked nearest the object.

Parameters
-
scene_descriptionsList[SceneDescription]required
-
-
-
graspstorch.Tensorrequired
-
-
Returns
Dict[str, torch.Tensor]
-
-
-
- -
graspkit.stages.grasp_optim.GraspOptimConfig(
-
num_iters: int = 6000,
num_contact_points: int = 4,
switch_possibility: float = 0.5,
mu: float = 0.98,
step_size: float = 0.005,
stepsize_period: int = 50,
starting_temperature: float = 18.0,
annealing_period: int = 30,
temperature_decay: float = 0.95,
spen_threshold: float = 0.01,
spen_representation: Literal['capsule', 'sphere'] = 'sphere',
w_fc: float = 1.0,
w_dis: float = 100.0,
w_fingertip_dis: float = 0.0,
w_pen: float = 100.0,
w_spen: float = 10.0,
w_joints: float = 1.0,
w_angle_z: float = 0.0,
angle_z_min: float = math.pi / 2,
hand_axis: Optional[HandAxis] = None,
hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0),
filter_hand_axis_max_angle_deg: float = 30.0,
optimizer_backend: Literal['warp_gd', 'warp_lm'] = 'warp_gd',
scene_geom_backend: Literal['mesh', 'sdf_volume'] = 'sdf_volume',
sdf_bake_padding: float = 0.25,
sdf_resolution: int = 64,
sdf_voxel_size: Optional[float] = None,
use_link_bounding_sphere_filter: bool = False,
lm_w_pen: float = 150.0,
lm_w_joints: float = 10.0,
lm_w_fingertip_dis: float = 10.0,
lm_collision_margin: float = 0.005,
lm_residual_eps: float = 1e-06,
lm_base_step_scale: float = 0.001,
lm_init_sample_range_q: float = 0.2,
lm_init_sample_range_base: float = 0.05,
enable_ik_scoring: bool = False,
evaluator: Optional[EnvConfig] = None,
sampler_type: Literal['fixed_base', 'wbc', 'floating_base'] = 'fixed_base',
distance_lower: float = 0.02,
distance_upper: float = 0.2,
front_theta_lower: float = -math.pi / 2,
front_theta_upper: float = 0.0,
side_theta_lower: float = -math.pi / 18,
side_theta_upper: float = math.pi / 18,
hand_qpos_jitter_strength: float = 0.05,
hand_qpos_mu: Optional[Tuple[float, ...]] = None,
init_ik_position_tolerance: float = 0.05,
init_ik_orientation_tolerance: float = 0.3,
init_ik_prefer_rest: bool = True,
init_rest_pose_max_dist: float = 3.0,
init_num_ik_candidates_per_sample: int = 50,
init_num_points_per_sample: int = 1000,
init_ik_batch_size: int = 512,
num_samples_per_scene: int = 64,
num_scenes_per_batch: int = 16,
min_grasps_threshold: int = 16,
num_attempts: int = 1,
max_scenes: Optional[int] = None,
save_labels: bool = False
)
-
-

Grasp optimizer algorithm and runtime parameters, with hand-independent defaults.

The config of the optimize_grasps stage (ExperimentConfig.grasp_optim); every field is a CLI flag, e.g. --grasp_optim.num_iters 2000. The annealing fields drive warp_gd only and the lm_* fields warp_lm only. The init-sampler fields feed stages/grasp_optim/sampler.py; the runtime fields feed optimize_pipeline.py, not a bare optimize() call.

Parameters
-
num_itersint= 6000
-
-
-
num_contact_pointsint= 4
-
-
-
switch_possibilityfloat= 0.5
-
-
-
mufloat= 0.98
-
-
-
step_sizefloat= 0.005
-
-
-
stepsize_periodint= 50
-
-
-
starting_temperaturefloat= 18.0
-
-
-
annealing_periodint= 30
-
-
-
temperature_decayfloat= 0.95
-
-
-
spen_thresholdfloat= 0.01
-
-
-
spen_representationLiteral['capsule', 'sphere']= 'sphere'
-
-
-
w_fcfloat= 1.0
-
-
-
w_disfloat= 100.0
-
-
-
w_fingertip_disfloat= 0.0
-
-
-
w_penfloat= 100.0
-
-
-
w_spenfloat= 10.0
-
-
-
w_jointsfloat= 1.0
-
-
-
w_angle_zfloat= 0.0
-
-
-
angle_z_minfloat= math.pi / 2
-
-
-
hand_axisOptional[HandAxis]= None
-
-
-
hand_axis_targetTuple[float, float, float]= (0.0, 0.0, 1.0)
-
-
-
filter_hand_axis_max_angle_degfloat= 30.0
-
-
-
optimizer_backendLiteral['warp_gd', 'warp_lm']= 'warp_gd'
-
-
-
scene_geom_backendLiteral['mesh', 'sdf_volume']= 'sdf_volume'
-
-
-
sdf_bake_paddingfloat= 0.25
-
-
-
sdf_resolutionint= 64
-
-
-
sdf_voxel_sizeOptional[float]= None
-
-
-
use_link_bounding_sphere_filterbool= False
-
-
-
lm_w_penfloat= 150.0
-
-
-
lm_w_jointsfloat= 10.0
-
-
-
lm_w_fingertip_disfloat= 10.0
-
-
-
lm_collision_marginfloat= 0.005
-
-
-
lm_residual_epsfloat= 1e-06
-
-
-
lm_base_step_scalefloat= 0.001
-
-
-
lm_init_sample_range_qfloat= 0.2
-
-
-
lm_init_sample_range_basefloat= 0.05
-
-
-
enable_ik_scoringbool= False
-
-
-
evaluatorOptional[EnvConfig]= None
-
-
-
sampler_typeLiteral['fixed_base', 'wbc', 'floating_base']= 'fixed_base'
-
-
-
distance_lowerfloat= 0.02
-
-
-
distance_upperfloat= 0.2
-
-
-
front_theta_lowerfloat= -math.pi / 2
-
-
-
front_theta_upperfloat= 0.0
-
-
-
side_theta_lowerfloat= -math.pi / 18
-
-
-
side_theta_upperfloat= math.pi / 18
-
-
-
hand_qpos_jitter_strengthfloat= 0.05
-
-
-
hand_qpos_muOptional[Tuple[float, ...]]= None
-
-
-
init_ik_position_tolerancefloat= 0.05
-
-
-
init_ik_orientation_tolerancefloat= 0.3
-
-
-
init_ik_prefer_restbool= True
-
-
-
init_rest_pose_max_distfloat= 3.0
-
-
-
init_num_ik_candidates_per_sampleint= 50
-
-
-
init_num_points_per_sampleint= 1000
-
-
-
init_ik_batch_sizeint= 512
-
-
-
num_samples_per_sceneint= 64
-
-
-
num_scenes_per_batchint= 16
-
-
-
min_grasps_thresholdint= 16
-
-
-
num_attemptsint= 1
-
-
-
max_scenesOptional[int]= None
-
-
-
save_labelsbool= False
-
-
Members
-
-
attribute[source]
-
GraspOptimConfig.num_iters: int = 6000
- -
-

Annealing iterations (warp_gd). Each replays one CUDA graph; fewer trade grasp quality for speed, and 2000 suits smoke tests.

-
-
-
attribute[source]
-
GraspOptimConfig.num_contact_points: int = 4
- -
-

Active contact points per grasp, drawn from the robot's contact candidates; they parameterize the distance and force-closure terms. 4-5 fits most five-finger hands.

-
-
-
attribute[source]
-
GraspOptimConfig.switch_possibility: float = 0.5
- -
-

Per-grasp probability, each iteration, of re-drawing the whole contact set; the Metropolis test accepts or rejects it together with the pose step.

-
-
-
attribute[source]
-
GraspOptimConfig.mu: float = 0.98
- -
-

RMSprop weight on the current squared gradient, ema = mu * g^2 + (1 - mu) * ema. Near 1 the step approaches the gradient's sign times step_size.

-
-
-
attribute[source]
-
GraspOptimConfig.step_size: float = 0.005
- -
-

Base RMSprop step; the effective step is step_size * temperature_decay^(t // stepsize_period).

-
-
-
attribute[source]
-
GraspOptimConfig.stepsize_period: int = 50
- -
-

Iterations between step-size decays.

-
-
-
attribute[source]
-
GraspOptimConfig.starting_temperature: float = 18.0
- -
-

Initial Metropolis temperature T: a proposal that worsens the energy by d is still accepted with probability exp(-d / T).

-
-
-
attribute[source]
-
GraspOptimConfig.annealing_period: int = 30
- -
-

Iterations per temperature decay, T = starting_temperature * temperature_decay^(t // annealing_period).

-
-
-
attribute[source]
-
GraspOptimConfig.temperature_decay: float = 0.95
- -
-

Decay factor shared by the temperature and step-size schedules; closer to 1 cools slower and explores more.

-
-
-
attribute[source]
-
GraspOptimConfig.spen_threshold: float = 0.01
- -
-

Self-collision margin (m) between sphere/capsule pairs; 2 cm pinned the middle finger of most hands off the object.

-
-
-
attribute[source]
-
GraspOptimConfig.spen_representation: Literal['capsule', 'sphere'] = 'sphere'
- -
-

Self-collision geometry for warp_gd: per-link capsules or the collision spheres. warp_lm always uses capsules.

-
-
-
attribute[source]
-
GraspOptimConfig.w_fc: float = 1.0
- -
-

Force-closure weight: the active contact normals must balance external wrenches. A zero weight disables any term.

-
-
-
attribute[source]
-
GraspOptimConfig.w_dis: float = 100.0
- -
-

Weight pulling each active contact point onto the target surface.

-
-
-
attribute[source]
-
GraspOptimConfig.w_fingertip_dis: float = 0.0
- -
-

Weight of the fingertip term (warp_gd only; requires fingertip links set): each fingertip link's closest collision sphere is drawn onto the object. 0 disables; a hand should touch without it, this is a last resort.

-
-
-
attribute[source]
-
GraspOptimConfig.w_pen: float = 100.0
- -
-

warp_gd scene-penetration weight: hand collision spheres against the target and table, with a fixed 5 mm margin. warp_lm uses lm_w_pen.

-
-
-
attribute[source]
-
GraspOptimConfig.w_spen: float = 10.0
- -
-

Self-penetration weight between robot links; zero skips building the term.

-
-
-
attribute[source]
-
GraspOptimConfig.w_joints: float = 1.0
- -
-

warp_gd joint-limit weight; q is also clamped to its limits every iteration. warp_lm uses lm_w_joints.

-
-
-
attribute[source]
-
GraspOptimConfig.w_angle_z: float = 0.0
- -
-

Weight of the hand-orientation prior (HandUpAngleTask, both backends).

-
-
-
attribute[source]
-
GraspOptimConfig.angle_z_min: float = math.pi / 2
- -
-

Minimum angle between the hand-up axis and world +z; tabletop configs use it to forbid underhand grasps.

-
-
-
attribute[source]
-
GraspOptimConfig.hand_axis: Optional[HandAxis] = None
- -
-

Hand-axis cone filter on init samples: which hand_coord_spec axis to check, after IK for fixed-base samplers. None disables it. The cone on optimized grasps lives on GraspTrajBuilderConfig.

-
-
-
attribute[source]
-
GraspOptimConfig.hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0)
- -
-

Direction hand_axis should point, in the robot base frame (world for floating hands).

-
-
-
attribute[source]
-
GraspOptimConfig.filter_hand_axis_max_angle_deg: float = 30.0
- -
-

Hand-axis cone half-angle in degrees.

-
-
-
attribute[source]
-
GraspOptimConfig.optimizer_backend: Literal['warp_gd', 'warp_lm'] = 'warp_gd'
- -
-

warp_gd: simulated-annealing gradient descent for floating or fixed-base robots. warp_lm: multi-seed Levenberg-Marquardt, floating base only, typically 2-3x faster and needs fingertip links; to target an arm, set enable_ik_scoring and let GraspTrajBuilder IK-convert.

-
-
-
attribute[source]
-
GraspOptimConfig.scene_geom_backend: Literal['mesh', 'sdf_volume'] = 'sdf_volume'
- -
-

sdf_volume: a cached SDF of the target mesh plus analytic table boxes; fast, accuracy bounded by voxel size, and the target must be the scene's only mesh. mesh: per-scene BVHs, exact but slower.

-
-
-
attribute[source]
-
GraspOptimConfig.sdf_bake_padding: float = 0.25
- -
-

SDF bake padding, in mesh units (robokit bakes the unscaled mesh and applies scales at query time).

-
-
-
attribute[source]
-
GraspOptimConfig.sdf_resolution: int = 64
- -
-

Voxel grid resolution along the longest axis when sdf_voxel_size is None.

-
-
-
attribute[source]
-
GraspOptimConfig.sdf_voxel_size: Optional[float] = None
- -
-

Voxel size in mesh units (before scales). None = derive voxel size from sdf_resolution.

-
-
-
attribute[source]
-
GraspOptimConfig.lm_w_pen: float = 150.0
- -
-

warp_lm counterpart of w_pen: scene-collision term weight (LM raw-residual scale).

-
-
-
attribute[source]
-
GraspOptimConfig.lm_w_joints: float = 10.0
- -
-

warp_lm counterpart of w_joints: position-limit term weight (LM raw-residual scale).

-
-
-
attribute[source]
-
GraspOptimConfig.lm_w_fingertip_dis: float = 10.0
- -
-

warp_lm counterpart of w_fingertip_dis: fingertip-distance term weight (LM raw-residual scale).

-
-
-
attribute[source]
-
GraspOptimConfig.lm_collision_margin: float = 0.005
- -
-

warp_lm scene-collision margin (meters).

-
-
-
attribute[source]
-
GraspOptimConfig.lm_residual_eps: float = 1e-06
- -
-

warp_lm residual epsilon for distance / position-limit / self-penetration terms.

-
-
-
attribute[source]
-
GraspOptimConfig.lm_base_step_scale: float = 0.001
- -
-

warp_lm floating-base step relative to the joint step; keeps base updates from overshooting.

-
-
-
attribute[source]
-
GraspOptimConfig.lm_init_sample_range_q: float = 0.2
- -
-

warp_lm per-seed joint half-range: the 24 seeds are the init qpos plus Roberts offsets in [-range, range], clamped to limits.

-
-
-
attribute[source]
-
GraspOptimConfig.lm_init_sample_range_base: float = 0.05
- -
-

warp_lm per-seed base-translation sampling half-range (floating base only).

-
-
-
attribute[source]
-
GraspOptimConfig.enable_ik_scoring: bool = False
- -
-

warp_lm floating base only: oversample inits 16x, keep those an arm IK can reach, and rank solutions by energy plus reachability. Use when GraspTrajBuilder will IK-convert onto an arm.

-
-
-
attribute[source]
-
GraspOptimConfig.evaluator: Optional[EnvConfig] = None
- -
-

In-loop simulation filter: each optimized batch is rolled out (e.g. with perturbation or a heavy object) and only survivors are saved. None gates on motion-plan success only.

-
-
-
attribute[source]
-
GraspOptimConfig.sampler_type: Literal['fixed_base', 'wbc', 'floating_base'] = 'fixed_base'
- -
-

fixed_base: look-at poses solved to collision-free arm IK. wbc: world-rooted arms, any azimuth, never from below the table. floating_base: no IK, emits [xyz, euler_rxyz, hand_qpos]; floating optimizers force it.

-
-
-
attribute[source]
-
GraspOptimConfig.distance_lower: float = 0.02
- -
-

Lower bound (m) of the hand-to-surface standoff, sampled uniformly. Tight bounds are the usual cause of starved init sampling.

-
-
-
attribute[source]
-
GraspOptimConfig.distance_upper: float = 0.2
- -
-

Upper bound (m) of the hand-to-surface standoff.

-
-
-
attribute[source]
-
GraspOptimConfig.front_theta_lower: float = -math.pi / 2
- -
-

Lower bound of the roll jitter about the look-at approach axis.

-
-
-
attribute[source]
-
GraspOptimConfig.front_theta_upper: float = 0.0
- -
-

Upper bound of the roll jitter about the look-at approach axis.

-
-
-
attribute[source]
-
GraspOptimConfig.side_theta_lower: float = -math.pi / 18
- -
-

Lower bound of the tilt jitter about the two axes perpendicular to the approach.

-
-
-
attribute[source]
-
GraspOptimConfig.side_theta_upper: float = math.pi / 18
- -
-

Upper bound of the tilt jitter about the two axes perpendicular to the approach.

-
-
-
attribute[source]
-
GraspOptimConfig.hand_qpos_jitter_strength: float = 0.05
- -
-

Std of the per-joint Gaussian jitter added to hand_qpos_mu.

-
-
-
attribute[source]
-
GraspOptimConfig.hand_qpos_mu: Optional[Tuple[float, ...]] = None
- -
-

Mean hand qpos for init sampling, typically half-open; None uses the robot config's init qpos.

-
-
-
attribute[source]
-
GraspOptimConfig.init_ik_position_tolerance: float = 0.05
- -
-

Position tolerance (m) for the init-time arm IK solve (FixedBaseSampler / WBCSampler).

-
-
-
attribute[source]
-
GraspOptimConfig.init_ik_orientation_tolerance: float = 0.3
- -
-

Orientation tolerance (rad) for that solve.

-
-
-
attribute[source]
-
GraspOptimConfig.init_ik_prefer_rest: bool = True
- -
-

That solve keeps the solution nearest the rest pose; False keeps its best-scoring random seed.

-
-
-
attribute[source]
-
GraspOptimConfig.init_rest_pose_max_dist: float = 3.0
- -
-

Reject init IK solutions whose arm-qpos L2 distance from the rest pose exceeds this.

-
-
-
attribute[source]
-
GraspOptimConfig.init_num_ik_candidates_per_sample: int = 50
- -
-

IK candidates per requested sample before collision/rest filtering (this × num_samples_per_scene).

-
-
-
attribute[source]
-
GraspOptimConfig.init_num_points_per_sample: int = 1000
- -
-

Empty-space points sampled per requested sample when seeding approach directions.

-
-
-
attribute[source]
-
GraspOptimConfig.init_ik_batch_size: int = 512
- -
-

Chunk size of the IK + collision sweep over candidates (memory only).

-
-
-
attribute[source]
-
GraspOptimConfig.num_samples_per_scene: int = 64
- -
-

Grasps optimized per scene per attempt.

-
-
-
attribute[source]
-
GraspOptimConfig.num_scenes_per_batch: int = 16
- -
-

Scenes batched into one solve: num_scenes_per_batch * num_samples_per_scene grasps on the GPU.

-
-
-
attribute[source]
-
GraspOptimConfig.min_grasps_threshold: int = 16
- -
-

A scene is done once its output holds this many grasps; scenes below it are re-attempted.

-
-
-
attribute[source]
-
GraspOptimConfig.num_attempts: int = 1
- -
-

Top-up passes over unfinished scenes; attempt i runs with seed + i.

-
-
-
attribute[source]
-
GraspOptimConfig.max_scenes: Optional[int] = None
- -
-

If set, caps scenes processed per attempt (after sort/shuffle/rank slicing). Useful for quick testing.

-
-
-
attribute[source]
-
GraspOptimConfig.save_labels: bool = False
- -
-

Save all candidates and their filter/plan/simulation verdicts to <grasp_output_dir>.labels/.

-
-
-
- -
graspkit.stages.grasp_optim.GraspRobot(
-
spec: RobotSpec,
config: Optional[RobotConfig] = None,
device: Device = 'cpu'
)
Bases: Robot
-
-

Robot equipped with the grasp-pipeline torch facade and contact-point candidates.

Parameters
-
specRobotSpecrequired
-
-
-
configOptional[RobotConfig]= None
-
-
-
deviceDevice= 'cpu'
-
-
Members
-
-
property[source]
-
GraspRobot.actuated_joint_names: list[str]
- -
- -
-
-
method[source]
-
GraspRobot.from_config(
-
config: RobotConfig,
base_link_name: Optional[str] = None,
ee_link_names: Optional[Union[Tuple[str, ...], str]] = None,
load_meshes: bool = False,
load_collision_spheres: bool = False,
device: Device = 'cpu',
prune: bool = True,
self_collision_representation: Literal['sphere', 'capsule'] = 'sphere'
) -> GraspRobot
-
-

Build (and cache) a GraspRobot from RobotConfig; pruned to ee_link_names, prune=False for the full robot.

Parameters
-
configRobotConfigrequired
-
-
-
base_link_nameOptional[str]= None
-
-
-
ee_link_namesOptional[Union[Tuple[str, ...], str]]= None
-
-
-
load_meshesbool= False
-
-
-
load_collision_spheresbool= False
-
-
-
deviceDevice= 'cpu'
-
-
-
prunebool= True
-
-
-
self_collision_representationLiteral['sphere', 'capsule']= 'sphere'
-
-
Returns
GraspRobot
-
-
-
method[source]
-
GraspRobot.self_collision_ignored_pairs(
-
representation: Literal['sphere', 'capsule']
) -> Int[np.ndarray, 'pairs 2']
-
-

Load representation-specific pairs against this robot's pruned link names.

Parameters
-
representationLiteral['sphere', 'capsule']required
-
-
Returns
Int[np.ndarray, 'pairs 2']
-
-
-
property[source]
-
GraspRobot.root_pose_7d: Float[torch.Tensor, 7]
- -
- -
-
-
property[source]
-
GraspRobot.root_pose_mat: Float[torch.Tensor, '4 4']
- -
- -
-
-
property[source]
-
GraspRobot.actuated_joint_limits_torch: Float[torch.Tensor, 'num_dofs 2']
- -
- -
-
-
property[source]
-
GraspRobot.init_qpos: Float[torch.Tensor, num_dofs]
- -
- -
-
-
method[source]
-
GraspRobot.forward_kinematics_torch(
-
variables: Float[torch.Tensor, '... num_dofs'],
root_poses: Optional[Float[torch.Tensor, '... 4 4']] = None
) -> Float[torch.Tensor, '... num_links 4 4']
-
-

Torch FK. Two cases:

  1. floating base: variables packs free qpos (xyz + rxyz or xyz + 6d) then actuated qpos (root_poses must not be provided).
  2. fixed base: variables is just qpos (root_poses optional).
Parameters
-
variablesFloat[torch.Tensor, '... num_dofs']required
-
-
-
root_posesOptional[Float[torch.Tensor, '... 4 4']]= None
-
-
Returns
Float[torch.Tensor, '... num_links 4 4']
-
-
-
method[source]
-
GraspRobot.inverse_kinematics(
-
target_poses: Float[torch.Tensor, '... 4 4'],
init_qpos: Optional[Float[torch.Tensor, '... num_arm_dofs']] = None,
position_tolerance: float = 0.05,
orientation_tolerance: float = 0.3,
init_sample_range: float = 0.5,
use_score_rest: bool = False,
locked_joint_indices: Optional[Tuple[int, ...]] = None
) -> Tuple[Float[torch.Tensor, '... num_arm_dofs'], Bool[torch.Tensor, ...]]
-
-
Parameters
-
target_posesFloat[torch.Tensor, '... 4 4']required
-
-
-
init_qposOptional[Float[torch.Tensor, '... num_arm_dofs']]= None
-
-
-
position_tolerancefloat= 0.05
-
-
-
orientation_tolerancefloat= 0.3
-
-
-
init_sample_rangefloat= 0.5
-
-
-
use_score_restbool= False
-
-
-
locked_joint_indicesOptional[Tuple[int, ...]]= None
-
-
Returns
Tuple[Float[torch.Tensor, '... num_arm_dofs'], Bool[torch.Tensor, ...]]
-
-
-
property[source]
-
GraspRobot.arm_joint_indices: torch.Tensor
- -
- -
-
-
property[source]
-
GraspRobot.hand_joint_indices: torch.Tensor
- -
- -
-
-
property[source]
-
GraspRobot.ignore_joint_indices: torch.Tensor
- -
-

Actuated joints that are neither arm nor hand (complement of arm ∪ hand indices).

-
-
-
property[source]
-
GraspRobot.canonical_collision_spheres: Tuple[torch.Tensor, torch.Tensor]
- -
-

Link-local collision spheres from collision_spheres_path: (num_spheres,4) centers+radius, link indices.

-
-
-
method[source]
-
GraspRobot.get_collision_spheres(
-
link_poses: Float[torch.Tensor, '... num_links 4 4']
) -> Float[torch.Tensor, '... num_spheres 4']
-
-
Parameters
-
link_posesFloat[torch.Tensor, '... num_links 4 4']required
-
-
Returns
Float[torch.Tensor, '... num_spheres 4']
-
-
-
method[source]
-
GraspRobot.get_contact_points(
-
link_poses: Float[torch.Tensor, '... num_links 4 4'],
contact_point_indices: Int[torch.Tensor, '... num_contact_points']
) -> Float[torch.Tensor, '... num_contact_points 3']
-
-
Parameters
-
link_posesFloat[torch.Tensor, '... num_links 4 4']required
-
-
-
contact_point_indicesInt[torch.Tensor, '... num_contact_points']required
-
-
Returns
Float[torch.Tensor, '... num_contact_points 3']
-
-
-
method[source]
-
GraspRobot.get_contact_candidates(
-
config: RobotConfig,
device: Device = 'cpu'
) -> Tuple[torch.Tensor, torch.Tensor]
-
-

Canonical contact candidates: (N,3) link-local centers, (N,) link indices in the chain robot's link order.

Parameters
-
configRobotConfigrequired
-
-
-
deviceDevice= 'cpu'
-
-
Returns
Tuple[torch.Tensor, torch.Tensor]
-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-motion-plan/index.html b/docs/graspkit/api-motion-plan/index.html deleted file mode 100644 index fc1ebb0..0000000 --- a/docs/graspkit/api-motion-plan/index.html +++ /dev/null @@ -1,699 +0,0 @@ - - - - - - Motion Planning · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Motion Planning

-

GraspTrajBuilder filters grasps, optionally IK-converts them onto an arm, then plans with build_motion_planner: a WarpPlanner by default, or its base TorchPlanner when MotionPlannerConfig.backend is "torch".

-
- -
graspkit.stages.grasp_traj_build.GraspTrajBuilder(
-
cfg: GraspTrajBuilderConfig,
device: Device
)
-
-

Convert floating-base grasps into deployable trajectories: filter, optional IK-convert to fixed, then plan.

Parameters
-
cfgGraspTrajBuilderConfigrequired
-
-
-
deviceDevicerequired
-
-
Members
-
-
attribute[source]
-
GraspTrajBuilder.filters: List[Filter]
- -
- -
-
-
method[source]
-
GraspTrajBuilder.build(
-
batch: GraspKitData,
start_qpos: Optional[Float[torch.Tensor, ...]] = None,
skip_filter: bool = False,
target_xy: Optional[torch.Tensor] = None
) -> Tuple[GraspKitData, Bool[torch.Tensor, 'B K']]
-
-

target_xy (S, 2) overrides the ori-gate target when scenes lack a target mesh (e.g. deploy perception).

Parameters
-
batchGraspKitDatarequired
-
-
-
start_qposOptional[Float[torch.Tensor, ...]]= None
-
-
-
skip_filterbool= False
-
-
-
target_xyOptional[torch.Tensor]= None
-
-
Returns
Tuple[GraspKitData, Bool[torch.Tensor, 'B K']]
-
-
-
method[source]
-
GraspTrajBuilder.filter_grasps(
-
batch: GraspKitData,
success: Bool[torch.Tensor, 'B K']
) -> Tuple[Bool[torch.Tensor, 'B K'], List[str]]
-
-
Parameters
-
batchGraspKitDatarequired
-
-
-
successBool[torch.Tensor, 'B K']required
-
-
Returns
Tuple[Bool[torch.Tensor, 'B K'], List[str]]
-
-
-
- -
graspkit.configs.experiment_config.GraspTrajBuilderConfig(
-
fixed_base_robot_config: Optional[RobotConfig] = None,
floating_base_robot_config: Optional[RobotConfig] = None,
convert_to_fixed: bool = False,
motion_planner: MotionPlannerConfig = MotionPlannerConfig(),
hand_axis: Optional[HandAxis] = None,
hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0),
filter_hand_axis_max_angle_deg: float = 30.0,
contact_avoid_filter: bool = False,
pen_filter: bool = False,
pen_filter_threshold: float = 0.005,
rest_pose_filter_max_dist: Optional[float] = None,
arm_range_fraction: float = 0.3,
ori_threshold_deg: float = 45.0,
plan_table_only: bool = False
)
-
-

Grasp traj builder: floating-base grasps -> deployable trajectories (stages/traj_builder).

Parameters
-
fixed_base_robot_configOptional[RobotConfig]= None
-
-
-
floating_base_robot_configOptional[RobotConfig]= None
-
-
-
convert_to_fixedbool= False
-
-
-
motion_plannerMotionPlannerConfig= MotionPlannerConfig()
-
-
-
hand_axisOptional[HandAxis]= None
-
-
-
hand_axis_targetTuple[float, float, float]= (0.0, 0.0, 1.0)
-
-
-
filter_hand_axis_max_angle_degfloat= 30.0
-
-
-
contact_avoid_filterbool= False
-
-
-
pen_filterbool= False
-
-
-
pen_filter_thresholdfloat= 0.005
-
-
-
rest_pose_filter_max_distOptional[float]= None
-
-
-
arm_range_fractionfloat= 0.3
-
-
-
ori_threshold_degfloat= 45.0
-
-
-
plan_table_onlybool= False
-
-
Members
-
-
attribute[source]
-
GraspTrajBuilderConfig.fixed_base_robot_config: Optional[RobotConfig] = None
- -
-

Fixed-base arm+hand robot trajectories are planned for; also the camera-mount robot. None if floating-only.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.floating_base_robot_config: Optional[RobotConfig] = None
- -
-

Floating-base hand-only robot the input grasps come from.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.convert_to_fixed: bool = False
- -
-

True: filter + IK-convert floating grasps, build trajectories for the fixed robot. False: plan grasps as-is.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.motion_planner: MotionPlannerConfig = field(default_factory=MotionPlannerConfig)
- -
-

Motion planner config for the trajectory from the init pose to the grasp pose.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.hand_axis: Optional[HandAxis] = None
- -
-

Hand-axis cone filter on optimized grasps: which hand_coord_spec axis to check. None disables it.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.hand_axis_target: Tuple[float, float, float] = (0.0, 0.0, 1.0)
- -
-

Direction hand_axis should point, in the robot base frame (world for floating hands).

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.filter_hand_axis_max_angle_deg: float = 30.0
- -
-

Hand-axis cone half-angle in degrees.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.contact_avoid_filter: bool = False
- -
-

Reject grasps where the contact-avoid point is closer to the target than the contact point on that link.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.pen_filter: bool = False
- -
-

Reject grasps whose hand spheres overlap the target by more than pen_filter_threshold (m); fingertip ok.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.pen_filter_threshold: float = 0.005
- -
- -
-
-
attribute[source]
-
GraspTrajBuilderConfig.rest_pose_filter_max_dist: Optional[float] = None
- -
-

Reject grasps whose arm qpos (L2 over arm joints) is further than this from robot rest pose; None disables.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.arm_range_fraction: float = 0.3
- -
-

Half-width (fraction of each arm joint's range around its midpoint) the IK solution must lie in; 1.0 disables.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.ori_threshold_deg: float = 45.0
- -
-

Ori-gate half-angle (deg) for the floating->fixed IK conversion; 45 = default, 90 effectively disables.

-
-
-
attribute[source]
-
GraspTrajBuilderConfig.plan_table_only: bool = False
- -
-

Plan against a table-only scene (object removed), mirroring deployment. Pre/post qpos use the real scene.

-
-
-
- -
graspkit.stages.motion_plan.WarpPlanner(
-
cfg: MotionPlannerConfig,
robot_config: RobotConfig,
device: Device = 'cpu'
)
Bases: TorchPlanner
-
-

TorchPlanner on robokit's MotionPlanner: joint-goal plans, or one plan from start through the lift.

Parameters
-
cfgMotionPlannerConfigrequired
-
-
-
robot_configRobotConfigrequired
-
-
-
deviceDevice= 'cpu'
-
-
Members
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.plan(
-
batch: GraspKitData,
start_qpos: Optional[Float[torch.Tensor, num_dofs]] = None,
return_pre_post_only: bool = False
) -> GraspKitData
-
-

Plan a padded batch: needs grasp_qpos, returns pre/post-grasp qpos + full_traj_qpos unless pre-post-only.

Parameters
-
batchGraspKitDatarequired
-
-
-
start_qposOptional[Float[torch.Tensor, num_dofs]]= None
-
-
-
return_pre_post_onlybool= False
-
-
Returns
GraspKitData
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.get_pre_post_grasp_qpos(
-
scene_geom: SceneGeom,
grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs']
) -> Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]
-
-
Parameters
-
scene_geomSceneGeomrequired
-
-
-
grasp_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
Returns
Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.interpolate_qpos(
-
init_qpos: Float[torch.Tensor, '... num_dofs'],
end_qpos: Float[torch.Tensor, '... num_dofs'],
num_steps: int
) -> Float[torch.Tensor, '... num_steps num_dofs']
-
-
Parameters
-
init_qposFloat[torch.Tensor, '... num_dofs']required
-
-
-
end_qposFloat[torch.Tensor, '... num_dofs']required
-
-
-
num_stepsintrequired
-
-
Returns
Float[torch.Tensor, '... num_steps num_dofs']
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.compute_pose_penetration(
-
qpos: Float[torch.Tensor, '... num_dofs'],
scene_geom: SceneGeom
) -> Float[torch.Tensor, ...]
-
-
Parameters
-
qposFloat[torch.Tensor, '... num_dofs']required
-
-
-
scene_geomSceneGeomrequired
-
-
Returns
Float[torch.Tensor, ...]
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.interpolate_trajs(
-
orig_trajs: Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs'],
num_steps: int
) -> Float[torch.Tensor, 'n_scenes n_trajs num_steps num_dofs']
-
-
Parameters
-
orig_trajsFloat[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs']required
-
-
-
num_stepsintrequired
-
-
Returns
Float[torch.Tensor, 'n_scenes n_trajs num_steps num_dofs']
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.compute_energy(
-
full_traj_qpos: Float[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs'],
scene_geom: SceneGeom
) -> dict[str, torch.Tensor]
-
-

Compute E_pen + E_smooth for a trajectory; mirrors optimize_trajs loss, a benchmark reference metric.

Parameters
-
full_traj_qposFloat[torch.Tensor, 'n_scenes n_trajs n_steps num_dofs']required
-
-
-
scene_geomSceneGeomrequired
-
-
Returns
dict[str, torch.Tensor]
-
-
-
methodinherited from TorchPlanner[source]
-
WarpPlanner.get_lifting_target_qpos(
-
post_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs']
) -> Float[torch.Tensor, 'n_scenes n_grasps num_dofs']
-
-
Parameters
-
post_grasp_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
Returns
Float[torch.Tensor, 'n_scenes n_grasps num_dofs']
-
-
-
method[source]
-
WarpPlanner.plan_full(
-
start_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'],
pre_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'],
grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'],
post_grasp_qpos: Float[torch.Tensor, 'n_scenes n_grasps num_dofs'],
lift_qpos: Optional[Float[torch.Tensor, 'n_scenes n_grasps num_dofs']],
scene_geom: SceneGeom
) -> Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_steps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps']]
-
-

One robokit plan: start → pre-grasp against the scene, then grasp, the locked hold and the lift without it.

robokit times every segment but the hold, which keeps num_steps_holding; the plan is sampled every control_dt and padded with its last frame to num_steps when shorter. Returns it and the start → pre-grasp penetration.

Parameters
-
start_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
-
pre_grasp_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
-
grasp_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
-
post_grasp_qposFloat[torch.Tensor, 'n_scenes n_grasps num_dofs']required
-
-
-
lift_qposOptional[Float[torch.Tensor, 'n_scenes n_grasps num_dofs']]required
-
-
-
scene_geomSceneGeomrequired
-
-
Returns
Tuple[Float[torch.Tensor, 'n_scenes n_grasps num_steps num_dofs'], Float[torch.Tensor, 'n_scenes n_grasps']]
-
-
-
method[source]
-
WarpPlanner.optimize_trajs(
-
init_trajs: Float[torch.Tensor, '... num_steps num_dofs'],
scene_geom: SceneGeom
) -> Tuple[Float[torch.Tensor, '... num_steps num_dofs'], Float[torch.Tensor, ...]]
-
-
Parameters
-
init_trajsFloat[torch.Tensor, '... num_steps num_dofs']required
-
-
-
scene_geomSceneGeomrequired
-
-
Returns
Tuple[Float[torch.Tensor, '... num_steps num_dofs'], Float[torch.Tensor, ...]]
-
-
-
- -
graspkit.configs.experiment_config.MotionPlannerConfig(
-
backend: Literal['torch', 'warp'] = 'warp',
pre_grasp_arm_grad_move: float = 0.001,
pre_grasp_hand_grad_move: float = 0.0,
post_grasp_hand_grad_move: float = 1.0,
lifting_dist: float = 0.3,
padding_dist: float = 0.025,
opt_steps: int = 300,
pen_weight: float = 1.0,
arm_smooth_weight: float = 100.0,
hand_smooth_weight: float = 10.0,
vel_smooth_weight: float = 0.1,
num_steps_pre_grasp: int = 150,
num_steps_pre_to_grasp: int = 25,
num_steps_holding: int = 75,
close_during_holding: bool = False,
num_steps_post_grasp: int = 50,
control_dt: float = 0.02,
enable_joint_optimization: bool = False,
traj_opt_max_iter: int = 100,
traj_opt_smoothness_weight: float = 200.0,
traj_opt_accel_smoothness_weight: float = 30.0,
traj_opt_self_collision_weight: float = 0.0,
traj_opt_self_collision_margin: float = 0.02,
start_from_grasp_dof_indices: Optional[Tuple[int, ...]] = None,
num_samples_per_batch: int = 2048,
num_grasps_per_scene: int = 32
)
-
-

Trajectory optimization params — hand-independent defaults.

Parameters
-
backendLiteral['torch', 'warp']= 'warp'
-
-
-
pre_grasp_arm_grad_movefloat= 0.001
-
-
-
pre_grasp_hand_grad_movefloat= 0.0
-
-
-
post_grasp_hand_grad_movefloat= 1.0
-
-
-
lifting_distfloat= 0.3
-
-
-
padding_distfloat= 0.025
-
-
-
opt_stepsint= 300
-
-
-
pen_weightfloat= 1.0
-
-
-
arm_smooth_weightfloat= 100.0
-
-
-
hand_smooth_weightfloat= 10.0
-
-
-
vel_smooth_weightfloat= 0.1
-
-
-
num_steps_pre_graspint= 150
-
-
-
num_steps_pre_to_graspint= 25
-
-
-
num_steps_holdingint= 75
-
-
-
close_during_holdingbool= False
-
-
-
num_steps_post_graspint= 50
-
-
-
control_dtfloat= 0.02
-
-
-
enable_joint_optimizationbool= False
-
-
-
traj_opt_max_iterint= 100
-
-
-
traj_opt_smoothness_weightfloat= 200.0
-
-
-
traj_opt_accel_smoothness_weightfloat= 30.0
-
-
-
traj_opt_self_collision_weightfloat= 0.0
-
-
-
traj_opt_self_collision_marginfloat= 0.02
-
-
-
start_from_grasp_dof_indicesOptional[Tuple[int, ...]]= None
-
-
-
num_samples_per_batchint= 2048
-
-
-
num_grasps_per_sceneint= 32
-
-
Members
-
-
attribute[source]
-
MotionPlannerConfig.backend: Literal['torch', 'warp'] = 'warp'
- -
-

Motion planner backend. 'warp' (default; robokit MotionPlanner, fixed-base only) is faster than 'torch'.

-
-
-
attribute[source]
-
MotionPlannerConfig.pre_grasp_arm_grad_move: float = 0.001
- -
-

Pre-grasp arm gradient move

-
-
-
attribute[source]
-
MotionPlannerConfig.pre_grasp_hand_grad_move: float = 0.0
- -
-

Pre-grasp hand gradient move

-
-
-
attribute[source]
-
MotionPlannerConfig.post_grasp_hand_grad_move: float = 1.0
- -
-

Post-grasp hand gradient move

-
-
-
attribute[source]
-
MotionPlannerConfig.lifting_dist: float = 0.3
- -
-

Lifting distance

-
-
-
attribute[source]
-
MotionPlannerConfig.padding_dist: float = 0.025
- -
-

Padding distance

-
-
-
attribute[source]
-
MotionPlannerConfig.opt_steps: int = 300
- -
-

Optimization steps

-
-
-
attribute[source]
-
MotionPlannerConfig.pen_weight: float = 1.0
- -
-

Penetration weight

-
-
-
attribute[source]
-
MotionPlannerConfig.arm_smooth_weight: float = 100.0
- -
-

Arm smooth weight

-
-
-
attribute[source]
-
MotionPlannerConfig.hand_smooth_weight: float = 10.0
- -
-

Hand smooth weight

-
-
-
attribute[source]
-
MotionPlannerConfig.vel_smooth_weight: float = 0.1
- -
-

Velocity smooth weight

-
-
-
attribute[source]
-
MotionPlannerConfig.num_steps_pre_grasp: int = 150
- -
-

Number of steps in pre-grasp

-
-
-
attribute[source]
-
MotionPlannerConfig.num_steps_pre_to_grasp: int = 25
- -
-

Number of steps in pre-to-grasp

-
-
-
attribute[source]
-
MotionPlannerConfig.num_steps_holding: int = 75
- -
-

Number of steps in holding

-
-
-
attribute[source]
-
MotionPlannerConfig.close_during_holding: bool = False
- -
-

Close gradually during holding instead of settling at the closed pose.

-
-
-
attribute[source]
-
MotionPlannerConfig.num_steps_post_grasp: int = 50
- -
-

Number of steps in post-grasp

-
-
-
attribute[source]
-
MotionPlannerConfig.control_dt: float = 0.02
- -
-

Seconds per trajectory step, the simulator's control period.

-
-
-
attribute[source]
-
MotionPlannerConfig.enable_joint_optimization: bool = False
- -
-

Fixed base, warp: one robokit plan through start, pre-grasp, grasp, hold and lift, timed by robokit except the hold (num_steps_holding); at least num_steps long. False optimizes start → pre-grasp alone and fills the other phases at their step counts.

-
-
-
attribute[source]
-
MotionPlannerConfig.traj_opt_max_iter: int = 100
- -
- -
-
-
attribute[source]
-
MotionPlannerConfig.traj_opt_smoothness_weight: float = 200.0
- -
- -
-
-
attribute[source]
-
MotionPlannerConfig.traj_opt_accel_smoothness_weight: float = 30.0
- -
- -
-
-
attribute[source]
-
MotionPlannerConfig.traj_opt_self_collision_weight: float = 0.0
- -
-

Self-collision weight (warp only). 0 disables the term; the robokit q_goal preset ships it off.

-
-
-
attribute[source]
-
MotionPlannerConfig.traj_opt_self_collision_margin: float = 0.02
- -
-

Self-collision margin in metres; only read when the weight is > 0.

-
-
-
attribute[source]
-
MotionPlannerConfig.start_from_grasp_dof_indices: Optional[Tuple[int, ...]] = None
- -
-

DOF indices whose start values come from grasp_qpos, not init pose; also locked during post-grasp lift IK.

-
-
-
attribute[source]
-
MotionPlannerConfig.num_samples_per_batch: int = 2048
- -
-

Number of samples per batch

-
-
-
attribute[source]
-
MotionPlannerConfig.num_grasps_per_scene: int = 32
- -
-

Number of grasps to plan per scene (pad/truncate to this)

-
-
-
property[source]
-
MotionPlannerConfig.num_steps: int
- -
- -
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-policy/index.html b/docs/graspkit/api-policy/index.html deleted file mode 100644 index 6c56631..0000000 --- a/docs/graspkit/api-policy/index.html +++ /dev/null @@ -1,613 +0,0 @@ - - - - - - Policy · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Policy

-

Create a policy with build_grasp_policy(cfg, robot_config, device).

-
- -
graspkit.models.grasp_policy.GraspPolicy(
-
cfg: GraspPolicyConfig,
action_dim: int,
robot_config: RobotConfig
)
Bases: nn.Module
-
-

Predicts pre-grasp, grasp and post-grasp configurations from an observation; see build_grasp_policy.

Parameters
-
cfgGraspPolicyConfigrequired
-
-
-
action_dimintrequired
-
-
-
robot_configRobotConfigrequired
-
-
Members
-
-
attribute[source]
-
GraspPolicy.robot_helper: GraspRobot | None
- -
- -
-
-
property[source]
-
GraspPolicy.generator: CVAE | FlowMatching
- -
- -
-
-
method[source]
-
GraspPolicy.forward(
-
obs: dict,
actions: Float[torch.Tensor, 'b n t d']
) -> dict[str, torch.Tensor]
-
-
Parameters
-
obsdictrequired
-
-
-
actionsFloat[torch.Tensor, 'b n t d']required
-
-
Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
GraspPolicy.preprocess(
-
initial: dict,
current: dict,
calibrated: bool
) -> dict[str, torch.Tensor]
-
-

One scene's input from env.observe() slices plus "qpos" (1, 1, D); calibrated views skip the initial.

Parameters
-
initialdictrequired
-
-
-
currentdictrequired
-
-
-
calibratedboolrequired
-
-
Returns
dict[str, torch.Tensor]
-
-
-
method[source]
-
GraspPolicy.get_action(
-
obs: dict,
num_samples_per_scene: int = 1,
noise: torch.Tensor | None = None
) -> Float[torch.Tensor, 'b n t d']
-
-

Sample actions; guided sampling accepts raw noise shaped (batch * samples, latent_dim).

Parameters
-
obsdictrequired
-
-
-
num_samples_per_sceneint= 1
-
-
-
noisetorch.Tensor | None= None
-
-
Returns
Float[torch.Tensor, 'b n t d']
-
-
-
method[source]
-
GraspPolicy.select(
-
obs: dict,
actions: Float[torch.Tensor, 'b n t d']
) -> torch.Tensor
-
-

Each scene's best proposal index by the grasp evaluator, on the features get_action left in obs.

Parameters
-
obsdictrequired
-
-
-
actionsFloat[torch.Tensor, 'b n t d']required
-
-
Returns
torch.Tensor
-
-
-
- -
graspkit.configs.grasp_policy_config.GraspPolicyConfig(
-
num_queries: int = 3,
convert_rxyz_to_rot6d: bool = False,
analytic_euler: bool = False,
coupled_floating_base: bool = False,
rot_begin_idx: int = 3,
enable_kinematic_loss: bool = False,
vision_encoder: Literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views'] = 'spconv',
vision_encoder_feature_dim: int = 512,
vision_encoder_normalization: Literal['layernorm', 'groupnorm'] | None = None,
vision_encoder_global_feature: bool = True,
center_pointcloud: bool = False,
pointcloud_scale: float = 1.0,
train_yaw_augmentation: bool = False,
canonical_yaw: bool = False,
enable_objectness_prediction: bool = True,
num_points: int = 2048,
object_points_only: bool = True,
generative_model: Literal['cvae', 'flow', 'flow_transformer'] = 'cvae',
cvae_latent_dim: int = 256,
cvae_hidden_dim: int = 256,
cvae_learned_prior: bool = False,
normalize_cvae_actions: bool = False,
reconstruction_loss: Literal['native', 'phase_std_mse'] = 'native',
qpos_weight: float = 1.0,
rot_weight: float = 1.0,
tl_weight: float = 1.0,
kinematic_weight: float = 100.0,
kl_weight: float = 0.01,
objectness_weight: float = 0.02,
graspness_weight: float = 0.02,
enable_penetration_loss: bool = False,
penetration_weight: float = 0.1,
penetration_threshold: float = 0.005,
penetration_every: int = 1,
penetration_warmup_iters: int = 0,
prior_fingertip_weight: float = 0.0,
use_mean: bool = True,
cvae_temperature: float = 1.0,
grasp_evaluator_guidance_steps: int = 0,
grasp_evaluator_guidance_radius: float = 2.0,
grasp_evaluator_local_features: bool = False,
grasp_evaluator_anchor_state: bool = False,
grasp_evaluator_hand_joint_features: bool = False,
grasp_evaluator_mask_constant_features: bool = True
)
-
-

Grasp policy architecture, losses and sampling.

Reusable presets live in graspkit/configs/grasp_policy.py.

Parameters
-
num_queriesint= 3
-
-
-
convert_rxyz_to_rot6dbool= False
-
-
-
analytic_eulerbool= False
-
-
-
coupled_floating_basebool= False
-
-
-
rot_begin_idxint= 3
-
-
-
enable_kinematic_lossbool= False
-
-
-
vision_encoderLiteral['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views']= 'spconv'
-
-
-
vision_encoder_feature_dimint= 512
-
-
-
vision_encoder_normalizationLiteral['layernorm', 'groupnorm'] | None= None
-
-
-
vision_encoder_global_featurebool= True
-
-
-
center_pointcloudbool= False
-
-
-
pointcloud_scalefloat= 1.0
-
-
-
train_yaw_augmentationbool= False
-
-
-
canonical_yawbool= False
-
-
-
enable_objectness_predictionbool= True
-
-
-
num_pointsint= 2048
-
-
-
object_points_onlybool= True
-
-
-
generative_modelLiteral['cvae', 'flow', 'flow_transformer']= 'cvae'
-
-
-
cvae_latent_dimint= 256
-
-
-
cvae_hidden_dimint= 256
-
-
-
cvae_learned_priorbool= False
-
-
-
normalize_cvae_actionsbool= False
-
-
-
reconstruction_lossLiteral['native', 'phase_std_mse']= 'native'
-
-
-
qpos_weightfloat= 1.0
-
-
-
rot_weightfloat= 1.0
-
-
-
tl_weightfloat= 1.0
-
-
-
kinematic_weightfloat= 100.0
-
-
-
kl_weightfloat= 0.01
-
-
-
objectness_weightfloat= 0.02
-
-
-
graspness_weightfloat= 0.02
-
-
-
enable_penetration_lossbool= False
-
-
-
penetration_weightfloat= 0.1
-
-
-
penetration_thresholdfloat= 0.005
-
-
-
penetration_everyint= 1
-
-
-
penetration_warmup_itersint= 0
-
-
-
prior_fingertip_weightfloat= 0.0
-
-
-
use_meanbool= True
-
-
-
cvae_temperaturefloat= 1.0
-
-
-
grasp_evaluator_guidance_stepsint= 0
-
-
-
grasp_evaluator_guidance_radiusfloat= 2.0
-
-
-
grasp_evaluator_local_featuresbool= False
-
-
-
grasp_evaluator_anchor_statebool= False
-
-
-
grasp_evaluator_hand_joint_featuresbool= False
-
-
-
grasp_evaluator_mask_constant_featuresbool= True
-
-
Members
-
-
attribute[source]
-
GraspPolicyConfig.num_queries: int = 3
- -
-

Configurations decoded per trajectory; the trainer and evaluator assume three: pre-grasp, grasp and post-grasp.

-
-
-
attribute[source]
-
GraspPolicyConfig.convert_rxyz_to_rot6d: bool = False
- -
-

Floating base: predict a continuous 6D rotation instead of Euler rxyz, converted back on output.

-
-
-
attribute[source]
-
GraspPolicyConfig.analytic_euler: bool = False
- -
-

Use exact, non-iterative Euler conversion after decoding rotations.

-
-
-
attribute[source]
-
GraspPolicyConfig.coupled_floating_base: bool = False
- -
-

Share wrist rotation across all three poses and wrist translation during closing.

-
-
-
attribute[source]
-
GraspPolicyConfig.rot_begin_idx: int = 3
- -
-

Start index of the floating-base rotation in each action.

-
-
-
attribute[source]
-
GraspPolicyConfig.enable_kinematic_loss: bool = False
- -
-

Add the MSE between predicted and target link positions from forward kinematics.

-
-
-
attribute[source]
-
GraspPolicyConfig.vision_encoder: Literal['pointnet', 'pointnet_state', 'spconv', 'rgb', 'rgb_resnet', 'rgb_resnet_views'] = 'spconv'
- -
-

Observation backbone.

-
-
-
attribute[source]
-
GraspPolicyConfig.vision_encoder_feature_dim: int = 512
- -
-

Condition feature size passed to the generator.

-
-
-
attribute[source]
-
GraspPolicyConfig.vision_encoder_normalization: Literal['layernorm', 'groupnorm'] | None = None
- -
-

Normalization for the SpConv encoder.

-
-
-
attribute[source]
-
GraspPolicyConfig.vision_encoder_global_feature: bool = True
- -
-

Return one scene feature; False keeps per-point features for local grasp-point conditioning.

-
-
-
attribute[source]
-
GraspPolicyConfig.center_pointcloud: bool = False
- -
-

Predict floating-base translations relative to the observed point-cloud centroid.

-
-
-
attribute[source]
-
GraspPolicyConfig.pointcloud_scale: float = 1.0
- -
-

Fixed coordinate scale applied only to vision-encoder inputs.

-
-
-
attribute[source]
-
GraspPolicyConfig.train_yaw_augmentation: bool = False
- -
-

Rotate training observations and target poses together around the vertical axis.

-
-
-
attribute[source]
-
GraspPolicyConfig.canonical_yaw: bool = False
- -
-

Use a deterministic observed-point-cloud yaw frame for training and inference.

-
-
-
attribute[source]
-
GraspPolicyConfig.enable_objectness_prediction: bool = True
- -
-

With local features, train a target-segmentation head and mask graspness at inference.

-
-
-
attribute[source]
-
GraspPolicyConfig.num_points: int = 2048
- -
-

Points GraspPolicy.preprocess samples from an observed point cloud.

-
-
-
attribute[source]
-
GraspPolicyConfig.object_points_only: bool = True
- -
-

GraspPolicy.preprocess keeps only the target's points, initial and current frames together (hands occlude).

-
-
-
attribute[source]
-
GraspPolicyConfig.generative_model: Literal['cvae', 'flow', 'flow_transformer'] = 'cvae'
- -
-

cvae (models/cvae.py) or flow matching (models/flow_matching.py).

-
-
-
attribute[source]
-
GraspPolicyConfig.cvae_latent_dim: int = 256
- -
-

Latent dimension of the CVAE.

-
-
-
attribute[source]
-
GraspPolicyConfig.cvae_hidden_dim: int = 256
- -
-

Width of the generator networks and optional CVAE learned prior.

-
-
-
attribute[source]
-
GraspPolicyConfig.cvae_learned_prior: bool = False
- -
-

Jointly learn a diagonal-Gaussian latent prior conditioned on the observation.

-
-
-
attribute[source]
-
GraspPolicyConfig.normalize_cvae_actions: bool = False
- -
-

Encode standardized actions and decode physical actions using saved mean/std buffers.

-
-
-
attribute[source]
-
GraspPolicyConfig.reconstruction_loss: Literal['native', 'phase_std_mse'] = 'native'
- -
-

Native reconstruction loss or MSE scaled by each phase's training action standard deviation.

-
-
-
attribute[source]
-
GraspPolicyConfig.qpos_weight: float = 1.0
- -
-

Joint-position reconstruction weight: L1 for CVAE, MSE for flow.

-
-
-
attribute[source]
-
GraspPolicyConfig.rot_weight: float = 1.0
- -
-

Floating-base rotation L1 weight.

-
-
-
attribute[source]
-
GraspPolicyConfig.tl_weight: float = 1.0
- -
-

Floating-base translation L1 weight.

-
-
-
attribute[source]
-
GraspPolicyConfig.kinematic_weight: float = 100.0
- -
-

Weight of the kinematic loss.

-
-
-
attribute[source]
-
GraspPolicyConfig.kl_weight: float = 0.01
- -
-

Weight of the KL term to the unit Gaussian.

-
-
-
attribute[source]
-
GraspPolicyConfig.objectness_weight: float = 0.02
- -
-

Weight of the local-feature objectness BCE.

-
-
-
attribute[source]
-
GraspPolicyConfig.graspness_weight: float = 0.02
- -
-

Weight of the local-feature per-point graspness KL.

-
-
-
attribute[source]
-
GraspPolicyConfig.enable_penetration_loss: bool = False
- -
-

if True, penalize hand collision-sphere penetration into the target object (needs scene geom at train time)

-
-
-
attribute[source]
-
GraspPolicyConfig.penetration_weight: float = 0.1
- -
-

the weight of the penetration loss

-
-
-
attribute[source]
-
GraspPolicyConfig.penetration_threshold: float = 0.005
- -
-

only penetration deeper than this (meters) is penalized (avoids punishing legitimate contact)

-
-
-
attribute[source]
-
GraspPolicyConfig.penetration_every: int = 1
- -
-

compute the (expensive) penetration loss every N steps to amortize per-batch scene-geometry build

-
-
-
attribute[source]
-
GraspPolicyConfig.penetration_warmup_iters: int = 0
- -
-

delay the penetration loss until this iteration so the policy learns to grasp first (replaces fine-tuning)

-
-
-
attribute[source]
-
GraspPolicyConfig.prior_fingertip_weight: float = 0.0
- -
-

Attract prior-sampled fingertip collision spheres to the target surface during training.

-
-
-
attribute[source]
-
GraspPolicyConfig.use_mean: bool = True
- -
-

Decode the prior mean for CVAE or integrate from zero noise for flow.

-
-
-
attribute[source]
-
GraspPolicyConfig.cvae_temperature: float = 1.0
- -
-

Scale of the sampled generator noise; ignored when use_mean is True.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_guidance_steps: int = 0
- -
-

Latent refinement steps using a trained grasp evaluator; zero disables guidance.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_guidance_radius: float = 2.0
- -
-

Maximum L2 displacement from each initial latent draw.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_local_features: bool = False
- -
-

Let the grasp evaluator attend to frozen local visual tokens; the actor stays unchanged.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_anchor_state: bool = False
- -
-

Condition the local success critic on the current fixed-base robot configuration.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_hand_joint_features: bool = False
- -
-

Encode hand joints instead of all actuated joints in the grasp evaluator.

-
-
-
attribute[source]
-
GraspPolicyConfig.grasp_evaluator_mask_constant_features: bool = True
- -
-

Zero constant replay features after scorer normalization.

-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-scene/index.html b/docs/graspkit/api-scene/index.html deleted file mode 100644 index d98a146..0000000 --- a/docs/graspkit/api-scene/index.html +++ /dev/null @@ -1,394 +0,0 @@ - - - - - - Scene · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Scene

-
-
- -
graspkit.scene.scene_description.SceneDescription(
-
scene_id: str = '',
target_actor_id: str = '',
boxes: Dict[str, BoxDescription] = dict(),
meshes: Dict[str, MeshDescription] = dict(),
floating_scene_id: Optional[str] = None,
canonical_tabletop_scene_id: Optional[str] = None
)
-
-

Per-scene geometry with a scene id and a manipulation-target actor id.

Parameters
-
scene_idstr= ''
-
-
-
target_actor_idstr= ''
-
-
-
boxesDict[str, BoxDescription]= dict()
-
-
-
meshesDict[str, MeshDescription]= dict()
-
-
-
floating_scene_idOptional[str]= None
-
-
-
canonical_tabletop_scene_idOptional[str]= None
-
-
Members
-
-
attribute[source]
-
SceneDescription.scene_id: str = ''
- -
- -
-
-
attribute[source]
-
SceneDescription.target_actor_id: str = ''
- -
- -
-
-
attribute[source]
-
SceneDescription.boxes: Dict[str, BoxDescription] = field(default_factory=dict)
- -
- -
-
-
attribute[source]
-
SceneDescription.meshes: Dict[str, MeshDescription] = field(default_factory=dict)
- -
- -
-
-
attribute[source]
-
SceneDescription.floating_scene_id: Optional[str] = None
- -
- -
-
-
attribute[source]
-
SceneDescription.canonical_tabletop_scene_id: Optional[str] = None
- -
- -
-
-
method[source]
-
SceneDescription.load_scene_descriptions_msgpack(
-
msgpack_path: str,
return_splits: bool = False
) -> Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]
-
-
Parameters
-
msgpack_pathstrrequired
-
-
-
return_splitsbool= False
-
-
Returns
Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]
-
-
-
method[source]
-
SceneDescription.save_scene_descriptions_msgpack(
-
scene_descriptions: Union[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]],
msgpack_path: str
) -> None
-
-
Parameters
-
scene_descriptionsUnion[Dict[str, SceneDescription], Dict[Literal['train', 'test'], Dict[str, SceneDescription]]]required
-
-
-
msgpack_pathstrrequired
-
-
Returns
None
-
-
-
- -
graspkit.scene.scene_description.MeshDescription(
-
actor_id: str,
collision_mesh_path: str,
scales: Tuple[float, float, float],
position: Tuple[float, float, float] = (0.0, 0.0, 0.0),
quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0),
visual_mesh_path: Optional[str] = None,
bounds: Optional[Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]] = None
)
-
-

Triangle mesh with actor id, optional visual-mesh path, and cached bounds.

Parameters
-
actor_idstrrequired
-
-
-
collision_mesh_pathstrrequired
-
-
-
scalesTuple[float, float, float]required
-
-
-
positionTuple[float, float, float]= (0.0, 0.0, 0.0)
-
-
-
quaternionTuple[float, float, float, float]= (1.0, 0.0, 0.0, 0.0)
-
-
-
visual_mesh_pathOptional[str]= None
-
-
-
boundsOptional[Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]]= None
-
-
Members
-
-
attribute[source]
-
MeshDescription.actor_id: str
- -
- -
-
-
attribute[source]
-
MeshDescription.collision_mesh_path: str
- -
- -
-
-
attribute[source]
-
MeshDescription.scales: Tuple[float, float, float]
- -
- -
-
-
attribute[source]
-
MeshDescription.position: Tuple[float, float, float] = (0.0, 0.0, 0.0)
- -
- -
-
-
attribute[source]
-
MeshDescription.quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0)
- -
- -
-
-
attribute[source]
-
MeshDescription.visual_mesh_path: Optional[str] = None
- -
- -
-
-
attribute[source]
-
MeshDescription.bounds: Optional[Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]] = None
- -
- -
-
-
method[source]
-
MeshDescription.get_visual_mesh_path() -> str
- -
-

Return the visual mesh path, falling back to the collision mesh.

python
>>> MeshDescription("o", "c.obj", (1.0, 1.0, 1.0)).get_visual_mesh_path()
-'c.obj'
->>> MeshDescription("o", "c.obj", (1.0, 1.0, 1.0), visual_mesh_path="v.obj").get_visual_mesh_path()
-'v.obj'
Returns
str
-
-
-
method[source]
-
MeshDescription.get_bounds() -> Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]
- -
-
Returns
Tuple[Tuple[float, float], Tuple[float, float], Tuple[float, float]]
-
-
-
- -
graspkit.scene.scene_description.BoxDescription(
-
actor_id: str,
size: Tuple[float, float, float],
position: Tuple[float, float, float] = (0.0, 0.0, 0.0),
quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0)
)
-
-

Box primitive, usually for static elements like tables.

Parameters
-
actor_idstrrequired
-
-
-
sizeTuple[float, float, float]required
-
-
-
positionTuple[float, float, float]= (0.0, 0.0, 0.0)
-
-
-
quaternionTuple[float, float, float, float]= (1.0, 0.0, 0.0, 0.0)
-
-
Members
-
-
attribute[source]
-
BoxDescription.actor_id: str
- -
- -
-
-
attribute[source]
-
BoxDescription.size: Tuple[float, float, float]
- -
- -
-
-
attribute[source]
-
BoxDescription.position: Tuple[float, float, float] = (0.0, 0.0, 0.0)
- -
- -
-
-
attribute[source]
-
BoxDescription.quaternion: Tuple[float, float, float, float] = (1.0, 0.0, 0.0, 0.0)
- -
- -
-
-
- -
graspkit.scene.scene_geom.SceneGeom(
-
scene_descriptions: List[SceneDescription],
device: Device = 'cpu'
)
-
-

Per-scene mesh-backed WarpScenes for grasp / motion optimizers.

Parameters
-
scene_descriptionsList[SceneDescription]required
-
-
-
deviceDevice= 'cpu'
-
-
Members
-
-
property[source]
-
SceneGeom.target_scene: WarpScene
- -
-

The target mesh of each scene (none for a table-only scene); built lazily on first access.

-
-
-
method[source]
-
SceneGeom.update(
-
scene_descriptions: List[SceneDescription]
) -> None
-
-

Update geometry in place for a scene batch with the same layout; captured pointers stay valid.

Parameters
-
scene_descriptionsList[SceneDescription]required
-
-
Returns
None
-
-
-
method[source]
-
SceneGeom.build_collision_scene_in_base(
-
T_world_robot: np.ndarray
) -> WarpScene
-
-

One `WarpScene (mesh+box) for MotionPlanner.plan()`, in robot base frame (FK is base-relative).

Parameters
-
T_world_robotnp.ndarrayrequired
-
-
Returns
WarpScene
-
-
-
method[source]
-
SceneGeom.query_target_object_signed_distances(
-
query_points: torch.Tensor
) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]
-
-

Differentiable per-scene target-object SDF (single mesh -> diff path).

Parameters
-
query_pointstorch.Tensorrequired
-
-
Returns
Tuple[torch.Tensor, torch.Tensor, torch.Tensor]
-
-
-
method[source]
-
SceneGeom.query_scene_signed_distances(
-
query_points: torch.Tensor
) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]
-
-

Full-scene SDF (meshes+primitives), differentiable; drives penetration gradient in motion/grasp-GD.

Parameters
-
query_pointstorch.Tensorrequired
-
-
Returns
Tuple[torch.Tensor, torch.Tensor, torch.Tensor]
-
-
-
method[source]
-
SceneGeom.solver_scenes(
-
backend: Literal['mesh', 'sdf_volume'],
sdf_bake_padding: float = 0.25,
sdf_resolution: int = 64,
sdf_voxel_size: Optional[float] = None
) -> Tuple[WarpScene, WarpScene]
-
-

(target_scene, collision_scene); sdf_volume swaps the target mesh for an SDF (params in mesh units).

Parameters
-
backendLiteral['mesh', 'sdf_volume']required
-
-
-
sdf_bake_paddingfloat= 0.25
-
-
-
sdf_resolutionint= 64
-
-
-
sdf_voxel_sizeOptional[float]= None
-
-
Returns
Tuple[WarpScene, WarpScene]
-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/api-training/index.html b/docs/graspkit/api-training/index.html deleted file mode 100644 index cefb8a7..0000000 --- a/docs/graspkit/api-training/index.html +++ /dev/null @@ -1,552 +0,0 @@ - - - - - - Training · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Training

-
-
- -
graspkit.stages.trainer.Trainer(
-
exp_cfg: ExperimentConfig,
policy_cls: Callable[..., GraspPolicy] = GraspPolicy
)
-
-

Trains a GraspPolicy on GraspDataset batches, with DDP, checkpoints and periodic simulation evaluation.

Parameters
-
exp_cfgExperimentConfigrequired
-
-
-
policy_clsCallable[..., GraspPolicy]= GraspPolicy
-
-
Members
-
-
attribute[source]
-
Trainer.traj_builder: GraspTrajBuilder | None
- -
- -
-
-
attribute[source]
-
Trainer.evaluator: BaseEnv | None
- -
- -
-
-
method[source]
-
Trainer.train(
-
train_dataloader: DataLoader,
test_dataloader: DataLoader | None = None,
checkpoint_dir: Path | None = None,
metadata: dict | None = None,
resume: dict | None = None,
publish: Callable[[Path], None] | None = None
)
-
-

Train normally, or save resumable single-device milestones and publish them.

Parameters
-
train_dataloaderDataLoaderrequired
-
-
-
test_dataloaderDataLoader | None= None
-
-
-
checkpoint_dirPath | None= None
-
-
-
metadatadict | None= None
-
-
-
resumedict | None= None
-
-
-
publishCallable[[Path], None] | None= None
-
-
-
-
-
method[source]
-
Trainer.train_graph(
-
dataset: GraspDataset,
index_loader: DataLoader
)
-
-

train for TrainerConfig.cuda_graph: the same updates, with the step captured once as a CUDA graph.

Parameters
-
datasetGraspDatasetrequired
-
-
-
index_loaderDataLoaderrequired
-
-
-
-
-
method[source]
-
Trainer.evaluate(
-
test_dataloader: DataLoader,
num_samples_per_scene: int = 1
)
-
-
Parameters
-
test_dataloaderDataLoaderrequired
-
-
-
num_samples_per_sceneint= 1
-
-
-
-
-
- -
graspkit.configs.experiment_config.TrainerConfig(
-
seed: int = 0,
evaluator: Optional[EnvConfig] = None,
eval_only: bool = False,
eval_on_train: bool = False,
track: bool = False,
wandb_project_name: str = 'GraspKit',
batch_size: int = 32,
eval_num_envs: int = 32,
max_eval_batches: int = 100,
eval_pen_threshold: float = 0.005,
total_iters: int = 100000,
num_dataloader_workers: int = 12,
lr: float = 0.0001,
weight_decay: float = 0.0001,
log_freq: int = 100,
eval_freq: int = 10000,
save_freq: int = 10000,
cuda_graph: bool = False,
fast_step: bool = False,
grad_clip_norm: float = 0.0
)
-
-

Training-loop parameters for Trainer.

AdamW's learning rate drops 10x at two thirds of total_iters; that schedule has no field.

Parameters
-
seedint= 0
-
-
-
evaluatorOptional[EnvConfig]= None
-
-
-
eval_onlybool= False
-
-
-
eval_on_trainbool= False
-
-
-
trackbool= False
-
-
-
wandb_project_namestr= 'GraspKit'
-
-
-
batch_sizeint= 32
-
-
-
eval_num_envsint= 32
-
-
-
max_eval_batchesint= 100
-
-
-
eval_pen_thresholdfloat= 0.005
-
-
-
total_itersint= 100000
-
-
-
num_dataloader_workersint= 12
-
-
-
lrfloat= 0.0001
-
-
-
weight_decayfloat= 0.0001
-
-
-
log_freqint= 100
-
-
-
eval_freqint= 10000
-
-
-
save_freqint= 10000
-
-
-
cuda_graphbool= False
-
-
-
fast_stepbool= False
-
-
-
grad_clip_normfloat= 0.0
-
-
Members
-
-
attribute[source]
-
TrainerConfig.seed: int = 0
- -
-

Seeds model initialization, dataset workers and sampling.

-
-
-
attribute[source]
-
TrainerConfig.evaluator: Optional[EnvConfig] = None
- -
-

Simulation for periodic evaluation, built with build_env; None disables evaluation.

-
-
-
attribute[source]
-
TrainerConfig.eval_only: bool = False
- -
-

Skip training, load ExperimentConfig.ckpt_path and evaluate one trajectory per scene.

-
-
-
attribute[source]
-
TrainerConfig.eval_on_train: bool = False
- -
-

Evaluate on the train split instead of test, for small scene sets without test scenes.

-
-
-
attribute[source]
-
TrainerConfig.track: bool = False
- -
-

Log to Weights & Biases, which also syncs the TensorBoard scalars.

-
-
-
attribute[source]
-
TrainerConfig.wandb_project_name: str = 'GraspKit'
- -
-

W&B project used when track is set.

-
-
-
attribute[source]
-
TrainerConfig.batch_size: int = 32
- -
-

Global batch size in scenes; each DDP rank gets batch_size // world_size.

-
-
-
attribute[source]
-
TrainerConfig.eval_num_envs: int = 32
- -
-

Evaluator parallelism; capped at batch_size during training.

-
-
-
attribute[source]
-
TrainerConfig.max_eval_batches: int = 100
- -
-

Stop evaluation after this many data-loader batches.

-
-
-
attribute[source]
-
TrainerConfig.eval_pen_threshold: float = 0.005
- -
-

Penetration depth (m) below which an eval grasp counts toward pass-rate (report-only).

-
-
-
attribute[source]
-
TrainerConfig.total_iters: int = 100000
- -
-

Final training iteration; the loop runs iterations 0 through this value.

-
-
-
attribute[source]
-
TrainerConfig.num_dataloader_workers: int = 12
- -
-

Worker processes for the training and evaluation data loaders.

-
-
-
attribute[source]
-
TrainerConfig.lr: float = 0.0001
- -
-

AdamW learning rate.

-
-
-
attribute[source]
-
TrainerConfig.weight_decay: float = 0.0001
- -
-

AdamW weight decay.

-
-
-
attribute[source]
-
TrainerConfig.log_freq: int = 100
- -
-

Iterations between loss logs, and TensorBoard scalars when tracking.

-
-
-
attribute[source]
-
TrainerConfig.eval_freq: int = 10000
- -
-

Iterations between simulation evaluations; iteration 0 is skipped.

-
-
-
attribute[source]
-
TrainerConfig.save_freq: int = 10000
- -
-

Iterations between iter_<N>.pt checkpoints, iteration 0 included.

-
-
-
attribute[source]
-
TrainerConfig.cuda_graph: bool = False
- -
-

Capture training on prepared HDF5 views as a CUDA graph; single GPU without evaluation.

-
-
-
attribute[source]
-
TrainerConfig.fast_step: bool = False
- -
-

Use TF32 and fused AdamW for ordinary training steps.

-
-
-
attribute[source]
-
TrainerConfig.grad_clip_norm: float = 0.0
- -
-

Clip the gradient norm before an optimizer step; zero disables clipping.

-
-
-
- -
graspkit.datasets.grasp_dataset.GraspDataset(
-
cfg: DatasetConfig,
h5_path: str,
scene_description_path: str,
split: Literal['train', 'test'] | None = 'train',
indices_only: bool = False
)
Bases: Dataset
-
-

Per-scene point-cloud observations and successful grasp trajectories from a processed HDF5.

Parameters
-
cfgDatasetConfigrequired
-
-
-
h5_pathstrrequired
-
-
-
scene_description_pathstrrequired
-
-
-
splitLiteral['train', 'test'] | None= 'train'
-
-
-
indices_onlybool= False
-
-
Members
-
-
method[source]
-
GraspDataset.to_device(
-
device: str | torch.device
) -> dict[str, torch.Tensor]
-
-

Load prepared observations and actions once for CUDA batch gathering.

Parameters
-
devicestr | torch.devicerequired
-
-
Returns
dict[str, torch.Tensor]
-
-
-
- -
graspkit.configs.experiment_config.DatasetConfig(
-
num_actions: int = 64,
num_points: int = 2048,
return_actions: bool = True,
return_graspness: bool = False,
return_object_pointcloud_only: bool = False,
cache_in_memory: bool = False,
return_rgb: bool = True,
fuse_views: int = 0,
view_noise: float = 0.0,
point_noise: float = 0.0,
aug_prob: float = 0.0,
aug_keep_min: float = 0.1,
aug_voxel_max: float = 0.0,
aug_drop_wrist_prob: float = 0.0,
aug_rgb_prob: float = 0.0
)
-
-

Dataset loading parameters for GraspDataset.

One index is one scene, not one grasp; raw views resample points and actions on every access.

Parameters
-
num_actionsint= 64
-
-
-
num_pointsint= 2048
-
-
-
return_actionsbool= True
-
-
-
return_graspnessbool= False
-
-
-
return_object_pointcloud_onlybool= False
-
-
-
cache_in_memorybool= False
-
-
-
return_rgbbool= True
-
-
-
fuse_viewsint= 0
-
-
-
view_noisefloat= 0.0
-
-
-
point_noisefloat= 0.0
-
-
-
aug_probfloat= 0.0
-
-
-
aug_keep_minfloat= 0.1
-
-
-
aug_voxel_maxfloat= 0.0
-
-
-
aug_drop_wrist_probfloat= 0.0
-
-
-
aug_rgb_probfloat= 0.0
-
-
Members
-
-
attribute[source]
-
DatasetConfig.num_actions: int = 64
- -
-

Successful action trajectories sampled per scene, with replacement when a scene has fewer.

-
-
-
attribute[source]
-
DatasetConfig.num_points: int = 2048
- -
-

Point-cloud points per scene, with replacement when the cloud is smaller.

-
-
-
attribute[source]
-
DatasetConfig.return_actions: bool = True
- -
-

Return the (num_actions, 3, D) supervision tensor; training needs it and evaluation turns it off.

-
-
-
attribute[source]
-
DatasetConfig.return_graspness: bool = False
- -
-

Return per-point graspness and the best conditioning-point indices, for local-feature SpConv policies; needs data processed with enable_contact_extraction.

-
-
-
attribute[source]
-
DatasetConfig.return_object_pointcloud_only: bool = False
- -
-

Sample only target-object points instead of the full cropped scene cloud.

-
-
-
attribute[source]
-
DatasetConfig.cache_in_memory: bool = False
- -
-

Cache observations and actions in RAM; sampling stays unchanged.

-
-
-
attribute[source]
-
DatasetConfig.return_rgb: bool = True
- -
-

Include RGB and camera poses when available.

-
-
-
attribute[source]
-
DatasetConfig.fuse_views: int = 0
- -
-

Object-only multi-view data: fuse view 0 (the head) with up to this many other views, a random count per sample, into one cloud. 0: one random view.

-
-
-
attribute[source]
-
DatasetConfig.view_noise: float = 0.0
- -
-

With fuse_views: std of each view's rigid misalignment, meters (translation) and x10 radians (rotation).

-
-
-
attribute[source]
-
DatasetConfig.point_noise: float = 0.0
- -
-

With fuse_views: std of per-point Gaussian noise (m).

-
-
-
attribute[source]
-
DatasetConfig.aug_prob: float = 0.0
- -
-

With fuse_views: probability of the perception augmentation (datasets/perception_aug.py) per sample; needs renders that keep the neighbours (extract_segments=[]) and camera poses in the processed h5.

-
-
-
attribute[source]
-
DatasetConfig.aug_keep_min: float = 0.1
- -
-

Perception aug: fused-cloud keep fraction, log-uniform in [aug_keep_min, 1].

-
-
-
attribute[source]
-
DatasetConfig.aug_voxel_max: float = 0.0
- -
-

Perception aug: voxel dedup size (m), applied with p 0.5 (the old gate pipeline's 3 mm thinning).

-
-
-
attribute[source]
-
DatasetConfig.aug_drop_wrist_prob: float = 0.0
- -
-

Perception aug: probability of the head view alone (no wrist view).

-
-
-
attribute[source]
-
DatasetConfig.aug_rgb_prob: float = 0.0
- -
-

Perception aug: probability of the RGB / MoGe depth-error model (per sample).

-
-
- -
- -
-
- - - - - diff --git a/docs/graspkit/concepts-overview/index.html b/docs/graspkit/concepts-overview/index.html deleted file mode 100644 index c55d7e1..0000000 --- a/docs/graspkit/concepts-overview/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - Core Overview · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Core Overview

-

How the stages fit together, what flows between them, and where robokit ends and GraspKit begins.

The graph

text
scene descriptions (msgpack)            scripts/stages/scene_desc/*
-        |
-        +---------------------------+
-        |                           |
-   [render_data]              [optimize_grasps]              (sharded: scenes[rank::world_size])
-   Renderer / ManiSkill        WarpGraspOptimizer
-   kinematic replay,           -> GraspTrajBuilder: filters -> (IK convert) -> motion plan
-   point-cloud obs             -> optional in-loop sim eval
-        |                           |
-   rendered_data_path          grasp_output_dir
-   (h5 per scene)              (h5 per scene: pre / grasp / post qpos)
-        +------------+--------------+
-                     |
-            [process_sim_data]  -> processed_data_path (obs + actions per scene)
-                     |
-                  [train]  GraspDataset -> Trainer (DDP through torchrun)
-                     |
-          logs/train/<name>/checkpoints/*.pt

scripts/launch.py dispatches these by name; the order is whatever ExperimentConfig.steps lists, by default render_data, optimize_grasps, process_sim_data, train. A fifth step, sample_point_cloud, exists for object-only clouds but no shipped experiment uses it.

Stages

StageInOutConfig
optimize_graspsscene descriptionsgrasp h5 (pre/grasp/post qpos)GraspOptimConfig, GraspTrajBuilderConfig
render_datascene descriptionsrendered h5 (point clouds, segmentation, camera poses)RendererConfig
process_sim_datarendered h5 + grasp h5processed h5 (obs joined to actions)ExperimentConfig
trainprocessed h5checkpointsTrainerConfig, DatasetConfig, GraspPolicyConfig

Grasp optimization is the compound stage: it optimizes, then filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally IK-converts floating grasps onto an arm, plans a trajectory, and keeps only what a physics evaluator accepts.

Resuming and sharding

Each stage writes a completion marker (.optim_complete, .render_complete, .process_sim_data_complete, .train_complete) and skips itself when the marker exists. With multiple ranks the marker is written per rank and promoted once every rank is done; s3:// outputs get no marker. --restart-from <step> deletes the marker and outputs for that step and everything downstream, --append keeps the output and deletes only the marker. Grasp optimization additionally resumes per scene: it re-runs scenes whose output is smaller than min_grasps_threshold.

Only grasp optimization uses every GPU, one process per card with scenes striped across ranks; non-zero ranks sleep 20 s so rank 0 compiles the Warp kernels first. Rendering and processing pin to the first GPU, and training goes through torchrun.

Artifacts

GraspKitData is the tensor payload that crosses stages, in a padded (B, K, ...) or packed (N, ...) layout, saved as HDF5. Scene descriptions are msgpack with a train/test split. The processed file holds data/<scene>/obs, data/<scene>/actions and meta/action_{mean,std}; the trainer consumes it through GraspDataset.

Floating base versus fixed base

RobotConfig.base_type decides the action layout: a floating hand prepends six base DOFs, baked as [xyz, euler_rxyz, hand joints]. A floating hand is always optimized with the floating-base sampler, and the Levenberg-Marquardt backend is floating-only. Setting GraspTrajBuilderConfig.convert_to_fixed filters those grasps and IK-converts them onto an arm before planning; inside grasp optimization the conversion is always off, so the planner plans for the robot being optimized.

robokit versus GraspKit

robokit supplies the cost terms, optimizers, contact sampling, warp scenes, SDF baking, the robot model and the motion planner. GraspKit owns the energy assembly, the init samplers, the grasp filters, the scene-description adapter, the renderer, the datasets, the policy and the trainer. Code graduates to robokit only when a second consumer exists.

- -
- -
-
- - - - - diff --git a/docs/graspkit/concepts-policies/index.html b/docs/graspkit/concepts-policies/index.html deleted file mode 100644 index 928fc5c..0000000 --- a/docs/graspkit/concepts-policies/index.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Models and Policies · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Models and Policies

-

GraspPolicy in src/graspkit/models/grasp_policy.py maps an observation to a grasp: three hand poses (pre-grasp, grasp, post-grasp) that the trajectory builder turns into an executable motion.

Open and closed loop use the same policy. The execution controller decides when to observe and predict again; the benchmark's closed-loop mode refreshes the observation and replans at step 75.

The policy selects CVAE from models/cvae.py or FlowMatching from models/flow_matching.py using generative_model (cvae, flow, flow_transformer). Both generators expose forward, decode and sample; access the selected component as policy.generator. No shared base class is needed.

Saved configuration field names and the checkpoint's cvae.* parameter keys are unchanged. The policy registers its generator under that historical checkpoint name, while callers use generator. Existing state dictionaries load strictly without migration. Imports use GraspPolicy, GraspPolicyConfig and build_grasp_policy; the training CLI subcommand is agent:grasp_policy_config.

The CVAE

text
point cloud (B, N, 3)
-   -> [yaw canonicalization / augmentation] -> [centering] -> vision encoder (SpUNet or PointNet)
-        |                                            |
-        | global feature                             | per-point features
-        |                                            +-> objectness head  (target vs background)
-        |                                            +-> graspness head   (where to grasp)
-        v
-   CVAE encoder (training: ground-truth actions) -> z -> decoder -> (B, n, 3, d) actions

d is the hand's joint count for a fixed base; a floating base prepends a translation and a rotation, [xyz, rotation, hand joints], where the rotation is either Euler rxyz or a 6D representation. The three queries are pre-grasp, grasp and post-grasp, in that order.

At inference the encoder is skipped: the graspness head picks the top-k points, and the CVAE decodes a latent per point — the mean latent when use_mean, otherwise a sample scaled by cvae_temperature. With use_mean the diversity comes from the distinct query points, not the latent. grasp_evaluator_guidance_steps instead refines the latent by ascending a frozen grasp evaluator inside a ball of radius grasp_evaluator_guidance_radius.

The vision encoders include a sparse-convolution U-Net (vision_encoder="spconv", the default, voxel size 5 mm), a BN-free PointNet and RGB CNN/ResNet variants. RGB construction and shared training/inference preprocessing live in models/vision_encoder/rgb.py; the policy keeps state/camera conditioning and generator selection. The CVAE is an MLP encoder/decoder over the flattened action vector, conditioned on the vision feature, optionally with a learned prior.

Flow matching uses the same visual conditioning and action representation. Its velocity network is an MLP (flow) or transformer (flow_transformer), trained along a linear noise-to-action path. Sampling integrates eight Euler steps and restores physical joint units using the bank's action mean/std. Flow returns zero latent moments through the shared training interface, so its KL contribution is zero; joint reconstruction uses MSE.

Losses

LossWeight fieldPenalizes
qposqpos_weightL1 on the reconstructed hand joints
tl, rottl_weight, rot_weightL1 on floating-base translation and rotation
klkl_weightPosterior against the standard or learned prior
objectnessobjectness_weightPer-point target-vs-background BCE, positives upweighted
graspnessgraspness_weightKL between predicted and labelled graspness distributions
kinematickinematic_weightMSE between the FK link positions of predicted and ground-truth actions
penetrationpenetration_weightCollision-sphere overlap into the object beyond penetration_threshold, on prior samples
prior_fingertipprior_fingertip_weightDistance of fingertip spheres to the object surface

The last two need scene geometry at training time; the trainer builds it only every penetration_every steps and after penetration_warmup_iters.

Representation flags

  • convert_rxyz_to_rot6d — 6D rotation inside the CVAE, decoded back to Euler. analytic_euler picks the closed-form decode over the iterative one.
  • coupled_floating_base — all three queries share the grasp rotation, and grasp and post-grasp share its translation.
  • center_pointcloud — predict translations relative to the cloud centroid.
  • canonical_yaw — rotate into a deterministic yaw frame derived from the cloud's second moment.
  • train_yaw_augmentation — random training-time yaw applied to points and targets together.

Data

GraspDataset reads the processed HDF5: per scene, one rendered view is drawn uniformly per access, points are sampled (object-only or whole scene), and actions are sampled per grasp. With graspness enabled, the per-action best points are placed first and the rest sampled around them. Graspness labels come from the contact extractor's palm-cone weighting during process_sim_data. Fresh flow models use meta/action_mean and meta/action_std to normalize their action space. CVAE training uses raw poses.

Training

AdamW at lr=1e-4, weight decay 1e-4, a 10x step decay two thirds of the way through, DDP when distributed. Every step scans the gradients and skips the update if any rank saw a NaN or Inf. Checkpoints hold {"agent": state_dict}; the provenance keys the benchmark expects (experiment, policy_config, training) are added by the packaging scripts. Evaluation is described in Sim deployment.

From prediction to motion

A predicted grasp is not executable on its own. GraspTrajBuilder applies the filters (hand-axis cone, contact-avoid, penetration, rest pose), optionally IK-converts a floating grasp onto an arm with an orientation gate and an arm-range band, and plans the approach, closing, holding and lift segments. The benchmark runs the filters; deployment skips them and relies on the IK gate, since a real capture has no ground-truth object pose.

- -
- -
-
- - - - - diff --git a/docs/graspkit/concepts-sim/index.html b/docs/graspkit/concepts-sim/index.html deleted file mode 100644 index 232d884..0000000 --- a/docs/graspkit/concepts-sim/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Simulation · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Simulation

-

GraspKit uses two physics backends behind one interface: ManiSkill (GPU, batched, full rollouts) and MuJoCo (CPU, grasp-pose scoring). A third path, the renderer, uses the ManiSkill scene without stepping physics at all.

One interface

BaseEnv fixes the contract: reset, get_qpos, step_qpos, get_info, get_rgb, get_pointcloud, evaluate, close, with evaluate returning per-grasp success and, when asked, Rollout records (qpos, obj_pose, scene_id, success, grasp_index).

build_env picks the implementation: MjEnv when EnvConfig.mj_env_config is set, otherwise MsEnv; RealEnv is imported lazily so the sim path never needs the hardware extras. MjEnv implements only evaluate — it scores grasps offline and raises on the interactive methods. RealEnv is the mirror image: it drives hardware but has no ground truth, so evaluate raises.

ManiSkill

The env is registered as DexGrasp. A scene description becomes actors grouped by mesh and scale, built in sorted order because PhysX contact outcomes depend on insertion order, with mass forced to object_mass and a merged target actor per scene. A table is added unless floating_object is set, which also disables gravity on the object. Success is "strictly grasped and lifted past target_lift_dist", or grasp-only for a floating object; grasping itself means at least two contact links pushing with more than half a newton.

Floating hands can be driven two ways:

  • Virtual joints — the agent's first six joints are PD-driven by the floating_base controller. This is the default for *_floating_base agent uids.
  • Static base — when the ManiSkill agent is hand-only but the pipeline robot is floating, the six base DOFs are stripped from the qpos and applied as per-environment root poses instead. The base is pinned at the final grasp pose, which tests the grasp without an approach sweep or base PD shake.

Joint order differs between ManiSkill's observation order (robot.active_joints) and its action order (controller.joints); reindex_utils converts in both directions, and picking the wrong one silently scrambles a bimanual robot.

Agent uids follow the robot config name, with _floating_base appended for floating hands. The env lists the 21 supported uids.

MuJoCo

MjDexGraspEnv builds a model with MjSpec: the hand's MJCF, a table box that collides with the object but never the hand, and the object as convex pieces added in a fixed order because MuJoCo sums geom inertia in that order. Gravity is disabled; a downward wrench stands in for it. Density is rescaled so the object weighs obj_mass.

Two protocols:

  • fc — force closure in free space: pregrasp, grasp, squeeze, then hold against six axis-aligned forces scaled by fc_force_scale; failure is translation past trans_thre or rotation past angle_thre.
  • tabletop — grip, apply the wrench, lift 20 cm (mocap root for floating hands, damped least-squares arm IK for fixed-base rigs), then require slip below lift_slip_thre, rotation below angle_thre, and live contact after the lift.

Both bail out immediately when the initial pose is already penetrating past max_pene. Beyond success, the evaluator reports hand-object and self penetration, contact count, contact distance and consistency. A HandSpec adapts a hand: its MJCF path, whether it is mocap-driven, finger prefixes, the bodies that count as contact and fingertips, and — for fixed-base rigs — which body to lift and which joints the IK may move.

MuJoCo is CPU-only and not thread-safe, so MjEnv runs a spawned pool of up to 48 workers, one evaluator each. Spawn, not fork: forking a CUDA-initialized parent deadlocks.

The renderer

mani_skill/renderer.py (build_renderer) makes its own DexGrasp env with num_envs environments and a point-cloud observation mode, then never steps physics: it writes qpos and object poses, flushes the GPU kinematics, and reads observations. Batching is over (scene, view) pairs. Segmentation ids select what survives (extract_segments wins over remove_segments), and points are cropped either in the camera frame or in the world frame offset by each scene's table position. MsEnv.get_pointcloud replicates that crop exactly, so deployment clouds match the training distribution.

Choosing a backend

ManiSkillMuJoCo
HardwareGPU, batchedCPU, process pool
ScoresFull approach → grasp → lift rollouts, with perturbation forcesA grasp pose: force closure or a lift
GivesSuccess, observations, RGB and point cloudsSuccess plus penetration and contact metrics
RobotsThe 21 agents with ManiSkill uidsAny hand with an MJCF HandSpec

Hands with no ManiSkill agent (menagerie Shadow, the _mj xArm+XHand and Vega+Sharpa rigs) can only be validated in MuJoCo, which is why several experiments use it as their in-loop grasp filter.

- -
- -
-
- - - - - diff --git a/docs/graspkit/dev/index.html b/docs/graspkit/dev/index.html deleted file mode 100644 index 5603f93..0000000 --- a/docs/graspkit/dev/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Development Guide · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Development
- -
-

Development Guide

-

Setup

GraspKit needs Python 3.10–3.14.

shell
git clone https://github.com/openrobokit/graspkit.git
-cd graspkit
-uv sync --extra maniskill --extra spconv

uv sync installs the dev and pt-cu126 groups by default; the full pipeline also needs the maniskill and spconv extras (Python 3.10–3.12). For another PyTorch build, see Installation.

Git Workflow

Create your own branch for development. Use pull requests with squash merge to merge to main. Delete your branch after merging. GitHub CI runs ruff and the tests on a CPU runner without Hugging Face access, where tests marked cuda or hf_assets skip, so run the full suite locally on a GPU before opening a pull request.

Formatting, Linting, and Tests

shell
make ci                       # format + lint + test
-make format                   # uvx ruff@0.15.22 format
-make lint                     # uvx ruff@0.15.22 check --fix
-CUDA_VISIBLE_DEVICES=0 make test  # uv run pytest tests

tests/ mirrors src/graspkit/ and scripts/ (tests/scripts/), one Test<Feature> class per feature; shared fixtures live in tests/conftest.py. Mark tests that need a GPU with @pytest.mark.cuda and tests that need Hugging Face assets (robokit robots, graspkit scenes) with @pytest.mark.hf_assets; import such assets inside the test, since robokit downloads a robot when its module is imported.

Pre-commit hooks run ruff. Pin the same ruff version the Makefile does; a newer default rule set reports findings CI does not.

Running Things

  • Use uv run, never a bare python or pip.
  • GPU scripts: pick a free GPU first and set CUDA_VISIBLE_DEVICES.
  • Viser scripts serve until interrupted; give them a timeout when scripting them.

Configs

All config classes live in src/graspkit/configs/*_config.py; their instances live apart, in configs/experiment/, configs/robot/, configs/grasp_policy.py, configs/mj_hand.py and configs/real_env.py. A new robot or experiment is a module plus one line in the registry of its package's __init__.py. See the Config System.

Code Style

  • Type hints on function arguments and return types, except None, Any and object.
  • No from __future__ import annotations.
  • Prefer fewer, larger functions; add a helper only when it removes real duplication.
  • No try/except, no hasattr, no fallback paths: assume the environment is correct and let the program crash on errors.

The robokit Boundary

robokit holds robot-generic math (terms, solvers, lie, geom, robo); graspkit holds the research pipelines and anything tuned per experiment. Code moves to robokit only when a second consumer exists, and it is moved, never copied. robokit is pinned by git rev in pyproject.toml ([tool.uv.sources]): to pick up robokit changes, merge there, bump the rev, then uv sync.

- -
- -
-
- - - - - diff --git a/docs/graspkit/grasp-optim-backends/index.html b/docs/graspkit/grasp-optim-backends/index.html deleted file mode 100644 index 23174da..0000000 --- a/docs/graspkit/grasp-optim-backends/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Grasp Optimization Algorithms: warp_gd and warp_lm · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Grasp Optimization Algorithms: warp_gd and warp_lm

-

How the two grasp-optimizer backends work and when to use which. For running the stage see the grasp_optim tutorial; for every parameter see the grasp optimization API.

The problem

Grasp synthesis is energy minimization over a batch of grasps. Each grasp optimizes

  • the robot configuration q: hand joints, plus arm joints (fixed base) or a free SE(3) base pose (floating hand), and
  • a discrete contact assignment: which num_contact_points of the robot's predefined contact candidates are active.

The energy is a weighted sum of residual terms (robokit terms.dense.*):

TermPulls toward
DistanceTaskactive contact points on the object surface
ForceClosureTaskcontact normals that balance external wrenches (stability)
SceneCollisionTaskhand collision spheres out of the scene (object + table)
SelfCollisionTasklinks out of each other
PositionLimitjoints inside their limits
FingertipDistanceTask (optional)fingertip spheres onto the surface
HandUpAngleTask (optional)hand-up axis at least angle_z_min from world +z

Both backends share this formulation, the init samplers, and the Warp scene geometry (SDF volumes / mesh BVHs). The energy is highly non-convex and the contact assignment is discrete, so plain gradient descent gets stuck; each backend has its own escape mechanism.

warp_gd: simulated-annealing gradient descent

WarpGraspOptimizer (warp_optimizer.py, backend warp_gd) runs each grasp as an independent annealing chain for num_iters (~10k) iterations, DexGraspNet-style. One iteration:

  1. RMSprop step on the continuous variables; step size decays over time, joints are clamped to limits.
  2. With probability switch_possibility, propose a re-drawn contact set.
  3. Evaluate the proposal's energy and gradient.
  4. Metropolis accept: lower energy always wins; worse by d is accepted with probability exp(-d / T), where the temperature T cools over time. Rejected grasps roll back.

High T early lets grasps explore pose and contact assignment jointly; as T cools the chain settles into a low-energy basin. The whole iteration is captured as one CUDA graph, so the long loop has almost no launch overhead. Works for floating and fixed-base robots alike, which makes it the default backend.

warp_lm: multi-seed Levenberg-Marquardt

WarpGraspOptimizer (backend warp_lm) treats the same energy as nonlinear least squares and applies robokit's LMOptimizer: curvature-aware steps converge in tens of iterations instead of thousands. A single LM run is purely local, so exploration comes from:

  • Multi-seed: every init grasp spawns 24 jittered copies solved in parallel; the lowest-energy seed wins.
  • Contact resampling: LM cannot differentiate the discrete contacts, so every 8 iterations each candidate is joined by a copy with a fresh random contact set; both take the next LM steps, and the one with the lower energy stays.

warp_lm supports floating bases only. To target an arm+hand robot, set enable_ik_scoring=True: inits are pre-filtered by arm-IK reachability against the fixed-base robot and final seeds are ranked by energy + reachability penalty, so the grasps GraspTrajBuilder later IK-converts onto the arm are actually reachable.

Choosing a backend

warp_gdwarp_lm
MethodRMSprop + simulated annealingmulti-seed Levenberg-Marquardt
ExplorationMetropolis accept over pose + contacts24 seeds + periodic contact resampling
Iterations~10000 first-order steps64 curvature-aware steps
Speedbaselinetypically 2-3x faster
Robotsfloating and fixed basefloating base only (enable_ik_scoring bridges to arms)

Rule of thumb: warp_gd for fixed-base robots or when maximum exploration matters; warp_lm for floating-hand throughput, with enable_ik_scoring if the grasps will be converted to an arm. Both are compared in scripts/benchmark/grasp_opt/bench_grasp_optim.py.

- -
- -
-
- - - - - diff --git a/docs/graspkit/grasp-optim/index.html b/docs/graspkit/grasp-optim/index.html deleted file mode 100644 index d9046a5..0000000 --- a/docs/graspkit/grasp-optim/index.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - Grasp Optimization (grasp_optim) · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Grasp Optimization (grasp_optim)

-
A floating Sharpa hand optimizing a grasp on a cubeAn xArm7 + Sharpa optimizing arm and hand joints together
A floating hand optimizing a grasp.An arm and hand optimized together on a fixed base.

graspkit.stages.grasp_optim synthesizes grasps on a floating or fixed base. It optimizes them on the GPU (Warp) with a gradient-descent or Levenberg-Marquardt backend, then plans grasp trajectories and keeps only the grasps that pass simulation validation.

This tutorial covers the main grasp optimization workflows. The logic lives in [src/graspkit/stages/grasp_optim](../../src/graspkit/stages/grasp_optim/); runnable CLIs for optimization, validation, and visualization are in [scripts/stages/grasp_optim](../../scripts/stages/grasp_optim/).

How Grasp Optimization Works

  1. Sample initial hand poses around the target object.
  2. Run the grasp optimizer (warp_gd or warp_lm backend) to get 3-frame grasps (pre-grasp, grasp, post-grasp), with a floating or fixed base.
  3. If filters are enabled (hand-axis cone, contact-avoid, penetration), mark the grasps that fail them. Filters run first inside the traj builder.
  4. The traj builder motion-plans the 3 frames into grasp trajectories.
  5. Simulation validation keeps the grasps that pass filters, planning and sim.
flowchart TD - INPUT[Input<br/><br/>Scene description<br/>Robot config] - - subgraph OPTIM[Grasp optimization] - direction TB - SAMPLE[1. Sampler <br/>→ initial hand poses] - OPT["2. GraspOptimizer (warp_gd / warp_lm)<br/>→ 3-frame grasps"] - FILTER["3. Filters (optional)"] - PLAN["4. TrajBuilder<br/>→ grasp traj"] - SIM["5. Simulation validation"] - SAMPLE --> OPT --> FILTER --> PLAN --> SIM - end - - OUTPUT[Return grasps] - - INPUT --> SAMPLE - SIM --> OUTPUT

Quick Start

Prerequisites: uv sync --extra maniskill --extra spconv, a CUDA GPU. Assets (scenes, object meshes, robot URDFs) download automatically on first use.

Run grasp optimization for a registered experiment config (here xHand on the dex1b v0.5 tabletop mini set) with scripts/launch.py.

shell
uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \
-    --steps optimize_grasps \
-    --grasp_optim.max_scenes 32 \
-    --grasp_output_dir data/optim_data/xhand_grasps/quickstart

--grasp_optim.max_scenes 32 keeps it to about two minutes on one GPU; drop it to run all 5500 scenes.

The sections below build the same stage step by step in Python.

Sampling initial poses

Initial Sharpa hand poses sampled around a mustard bottle

Init samples drawn with the palm-down cone below: red is the hand axis (palm_forward), gray is the target (world -z). Both start at the wrist; the label is their angle, always within the 60 deg cone.

optimize() starts from the optimizer's sampler; call it directly to inspect the initial poses:

python
from dataclasses import replace
-
-import torch
-
-from graspkit.configs.robot.xhand import xhand_right
-from graspkit.gallery.grasp_optim import gallery_scene
-from graspkit.stages.grasp_optim import GraspOptimConfig, SceneGeom, WarpGraspOptimizer
-
-scene = gallery_scene("ycb/mustard_bottle")  # SceneDescription: the bottle on a table whose top is z=0
-device = torch.device("cuda:0")
-
-# Customize the approach
-config = GraspOptimConfig(
-    distance_lower=0.05,  # wrist 5-15 cm from the closest object point
-    distance_upper=0.15,
-    hand_axis="palm_forward",  # hand_coord_spec axis to constrain
-    hand_axis_target=(0.0, 0.0, -1.0),  # toward world -z
-    filter_hand_axis_max_angle_deg=60.0,  # cone half-angle
-)
-optimizer = WarpGraspOptimizer(config, xhand_right, device)
-init_qpos = optimizer.sampler.sample(SceneGeom([scene], device=device), num_samples_per_scene=8)

Grasp optimization

optimize() samples init poses with the same sampler, then minimizes the grasp energy on the GPU. Reusing scene and the palm-down config from above:

python
config = replace(config, optimizer_backend="warp_gd")  # or "warp_lm" (Levenberg-Marquardt)
-optimizer = WarpGraspOptimizer(config, xhand_right, device)
-grasp_qpos = optimizer.optimize([scene], num_samples_per_scene=8)  # (1, 8, 18)

Filtering grasps

Grasp filters live in GraspTrajBuilderConfig and run first inside GraspTrajBuilder.build(). They only mark grasps, they don't drop them. Call filter_grasps to run them alone, without motion planning:

A passing and a failing xHand grasp for each filter: contact-avoid, penetration, hand axis

python
from graspkit.configs.experiment_config import GraspTrajBuilderConfig
-from graspkit.datasets.graspkit_data import GraspKitData
-from graspkit.stages.grasp_traj_build import GraspTrajBuilder
-
-traj_builder = GraspTrajBuilder(
-    GraspTrajBuilderConfig(
-        floating_base_robot_config=xhand_right,
-        contact_avoid_filter=True,  # contact links closer to the object than their paired avoid links
-        pen_filter=True,  # hand spheres overlap the object by at most pen_filter_threshold
-        pen_filter_threshold=0.005,
-        hand_axis="palm_forward",  # palm normal within 60 deg of world -z (top-down grasps)
-        hand_axis_target=(0.0, 0.0, -1.0),
-        filter_hand_axis_max_angle_deg=60.0,
-    ),
-    device,
-)
-batch = GraspKitData(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos)
-success, metrics = traj_builder.filter_grasps(batch, torch.ones(grasp_qpos.shape[:2], dtype=torch.bool, device=device))
-kept = grasp_qpos[success]  # (n_kept, dofs)

Building grasp trajectories

build() runs the filters above, then motion-plans a pre-grasp -> grasp -> lift trajectory for every grasp. Rejected grasps are still planned; drop them with filter_success:

python
traj_builder = GraspTrajBuilder(
-    GraspTrajBuilderConfig(floating_base_robot_config=xhand_right, contact_avoid_filter=True), device
-)
-batch = GraspKitData(scene_ids=[scene.scene_id], scene_descriptions=[scene], grasp_qpos=grasp_qpos)
-batch, filter_success = traj_builder.build(batch)

Simulation validation

The sim evaluator rolls out each planned trajectory in ManiSkill, pokes the object with external forces, and reports which grasps still lift it:

python
from graspkit.configs.env_config import MsEnvConfig
-from graspkit.configs.experiment_config import EnvConfig
-from graspkit.envs import build_env
-
-evaluator = build_env(
-    EnvConfig(
-        ms_env_config=MsEnvConfig(robot_uid="xhand_right_floating_base"),
-        load_scenes=True,
-        control_freq=50,
-        object_mass=1.0,
-        target_lift_dist=0.08,
-        num_envs=8, 
-        num_perturbations=4, 
-        perturbation_magnitude=5.0, 
-        perturbation_step_range=(-25, -5), 
-    ),
-    xhand_right,
-    device,
-)
-eval_success = evaluator.evaluate(batch)["success"].to(device)  # (1, 8) bool
-kept = grasp_qpos[filter_success & eval_success]  # (n_kept, dofs)
-evaluator.close()

Outputs

One {scene_id}.h5 per scene with grasp_qpos, pre_grasp_qpos, post_grasp_qpos of shape (N, D): D = hand joints (fixed base) or xyz + euler rxyz + hand joints (floating). .optim_complete marks the stage done. See data_format.md.

Code Map

CodeRole
src/graspkit/stages/grasp_optim/sampler.pyInit pose sampler
src/graspkit/stages/grasp_optim/warp_optimizer.pyWarpGraspOptimizer
src/graspkit/stages/grasp_filters.pyGrasp filters (Ori, Pen, ContactAvoid)
src/graspkit/stages/grasp_traj_build/builder.pyGraspTrajBuilder: filters + motion planning
src/graspkit/envs/build_env sim evaluator
scripts/launch.pyRuns an experiment config end to end
- -
- -
-
- - - - - diff --git a/docs/graspkit/index.html b/docs/graspkit/index.html deleted file mode 100644 index d61bb6f..0000000 --- a/docs/graspkit/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - GraspKit docs · OpenRoboKit - - - - -Continue to the documentation - diff --git a/docs/graspkit/install/index.html b/docs/graspkit/install/index.html deleted file mode 100644 index 2167a16..0000000 --- a/docs/graspkit/install/index.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - Installation · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Installation

-

GraspKit needs Python 3.10–3.14; the maniskill extra needs 3.10–3.12 and spconv 3.10–3.13. Grasp optimization, rendering, and training need a CUDA GPU.

shell
uv add graspkit
shell
pip install graspkit

From source

shell
uv add git+https://github.com/openrobokit/graspkit.git
shell
pip install git+https://github.com/openrobokit/graspkit.git

To work on GraspKit itself, follow the Development Guide.

PyTorch builds

uv sync installs the dev and pt-cu126 groups by default. The PyTorch groups conflict with each other, so select another one explicitly:

shell
uv sync --no-default-groups --group pt-cu128
GroupWhat it adds
pt-cu126PyTorch + torchvision for CUDA 12.6 (default).
pt-cu118, pt-cu128The same for CUDA 11.8 / 12.8.
pt-cpuCPU-only PyTorch.
devipython, pytest, robot_descriptions (default).

Extras

ExtraWhat it adds
maniskillManiSkill, for simulation, rendering and grasp evaluation (Python 3.10–3.12).
spconvspconv, for the default spconv vision encoder (Python 3.10–3.13).
torchvisiontorchvision, for the rgb_resnet vision encoders.
sam2SAM 2, for the segmentation step of deployment.
xarmretargetingkit[realsense,xarm,ability] + open3d, for the xArm rigs (Python 3.10).
vegaretargetingkit[xarm,ability,dexmate] + pyzmq + open3d, for the Vega humanoid.
data-processcoacd, fast-simplification, for asset processing.

The sam2 extra uses a wheel from a separate index:

shell
uv add "graspkit[sam2]" --index https://jianglongye.github.io/torch_packages_builder
shell
pip install "graspkit[sam2]" --extra-index-url https://jianglongye.github.io/torch_packages_builder
shell
uv run --extra sam2 --extra vega scripts/deploy/deploy.py --help

Assets and credentials

import graspkit downloads nothing. Assets are fetched when the module that needs them is imported: graspkit's scenes, objects and calibration files come from the HuggingFace dataset openrobokit/graspkit into ~/.graspkit/assets/<revision>, and robot URDFs, meshes and collision spheres come from openrobokit/robokit into ~/.robokit/assets/<rev>.

Data and logs live in ~/.graspkit/data and ~/.graspkit/logs, created on import. graspkit.link() symlinks both into the repo for browsing.

  • A .env file with GRASPKIT_S3_ROOT, FSSPEC_S3_ENDPOINT_URL, FSSPEC_S3_KEY and FSSPEC_S3_SECRET is needed only for the _s3 experiments; it is loaded on import.
  • GRASPKIT_EXCLUDED_GPUS lists GPU ids that scripts/launch.py must never use, such as 4,5.
  • graspkit.assets.REVISION pins the asset revision; delete ~/.graspkit/assets/<revision>/.done/ to re-download.

Verify

shell
CUDA_VISIBLE_DEVICES=0 uv run pytest tests/
-uv run src/graspkit/examples/grasp_optim/01_basic.py

The example opens a Viser page with optimized xHand grasps. Next: the Quickstart.

- -
- -
-
- - - - - diff --git a/docs/graspkit/overview/index.html b/docs/graspkit/overview/index.html deleted file mode 100644 index eb4e117..0000000 --- a/docs/graspkit/overview/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Overview · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Overview

-

GraspKit

GraspKit is an end-to-end toolkit for manipulation across various robot embodiments, including grippers and dexterous hands. It synthesizes grasps, plans trajectories, trains policies, and deploys them in simulation or on real robots; it is built on top of RoboKit.

Robot hands grasping objects during a real-world run

Real-world grasping with dexterous robot hands in San Diego.

Key features

  • Fast grasp optimization. GPU optimizers refine thousands of grasp seeds per batch against cached scene geometry. See Grasp optimization.
  • Performant policy training. Train grasp policies on processed point clouds and successful trajectories, with multi-GPU support. See Training.
  • Across embodiments. Use grippers and dexterous hands in arm, hand, and humanoid configurations. See the robot catalog.
  • Simulation validation. Filter and motion-plan grasps, then test them in physics simulation. See Simulation deployment.
  • Real-world validation. Run trained policies on xArm and Vega robots with calibrated cameras and collision-checked motions. See Real deployment.
Fast grasp optimizationPolicy training
Fast grasp optimizationPerformant policy training
All arms, all handsReal-world robustness
All arms, all handsReal-world robustness

How it works

StageRoleRead more
Scene descriptionsObjects, scales and poses on a table, as msgpack.Scene descriptions
Grasp optimizationEnergy minimization to grasp poses, then filters, motion planning and sim validation.Grasp optimization
RenderingPoint-cloud observations of the same scenes, from calibrated cameras.Pipeline
TrainingA CVAE policy that maps an object point cloud to pre-grasp, grasp and post-grasp poses.Training
DeploymentPolicy inference plus trajectory building, in sim or on hardware.Sim, real

For the graph of stages and the artifacts between them, see Core overview.

- -
- -
-
- - - - - diff --git a/docs/graspkit/pipeline/index.html b/docs/graspkit/pipeline/index.html deleted file mode 100644 index 6a78a25..0000000 --- a/docs/graspkit/pipeline/index.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - The Full Pipeline (launch.py) · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

The Full Pipeline (launch.py)

-

scripts/launch.py turns a set of scene descriptions into a trained grasp policy. One experiment name selects an ExperimentConfig whose steps run in order: render point-cloud observations, synthesize and validate grasps, join both into a training dataset, and train an open-loop policy.

This tutorial explains what each stage does and how data flows between them. For stage deep-dives see the grasp_optim tutorial and the training tutorial; for every parameter see the config reference.

Overview

The default steps are ("render_data", "optimize_grasps", "process_sim_data", "train"). Observations and actions are produced independently from the same scene descriptions, then joined per scene.

  • robot_config decides what the optimizer outputs: a floating hand yields floating grasps, an arm+hand robot yields fixed-base grasps. The GraspTrajBuilder filters them, optionally IK-converts floating grasps onto the fixed robot (convert_to_fixed=True), and plans the grasp trajectory; the Evaluator keeps only grasps that survive a sim rollout.
  • Every stage writes a completion marker next to its output (.render_complete, .optim_complete, ...). A later launch skips any stage whose marker exists, so an interrupted pipeline resumes where it stopped.

Quick Start

Prerequisites: uv sync --extra maniskill --extra spconv, CUDA GPUs. Assets (scenes, object meshes, robot URDFs) download automatically on first use. Experiments live in src/graspkit/configs/experiment/ and are registered by name in its __init__.py.

shell
# Full pipeline on 4 GPUs
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3
-
-# Run a subset of steps; any nested config field is a CLI flag through tyro
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --steps optimize_grasps \
-  --grasp_optim.num_attempts 2
-
-# Rerun from a step: deletes that step's marker + output and everything downstream
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --restart-from process_sim_data
-
-# Append mode: keep the restart step's output, delete only its marker (top up grasps)
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop \
-  --restart-from optimize_grasps --append

Renderer -> Point-Cloud Observations

Renders every scene through the calibrated real camera so training observations match deployment.

flowchart TD - SD[(scene descriptions)] - CALIB[(camera calibration<br/>extrinsic + intrinsic .json)] - CAM[Per-scene camera poses<br/>fixed: calibrated view<br/>sampled: jittered views + look-at] - REN[Renderer] - SEG[Segmented object points] - VIS[Object-visibility view filter<br/>sampled mode only] - OUT[(rendered_data_path/scene_id.h5)] - - SD --> CAM - CALIB --> CAM - CAM --> REN --> SEG - SEG -->|fixed| OUT - SEG -->|sampled| VIS --> OUT

The calibrated extrinsic is anchored to the fixed-base robot's base pose (camera_frame="robot") or used as-is ("world"). camera_mode="fixed" saves one view per scene; "sampled" renders camera_sample_num_views jittered views and keeps every view where the target object projects into the image (multi-view augmentation). Key config: renderer (RendererConfig).

An optional sample_point_cloud step exists for experiments that want full object point clouds sampled directly from the meshes instead of rendered ones; no registered experiment currently uses it.

GraspOptimizer -> Grasp Synthesis and Validation

Synthesizes grasps per scene and keeps only those that survive filtering, motion planning, and a physics stress test. See the grasp_optim tutorial for the components and the algorithm concepts for the two optimizer backends.

%%{init: {"flowchart": {"curve": "linear"}}}%% -flowchart LR - SD([scene description]) --> OPT[grasp optimizer] - OPT --> GP["3 frame grasp poses<br/>(floating/fixed base)"] - GP --> TB[traj builder] - TB --> GT([grasp traj]) - GT --> EV[simulation evaluator] - EV --> GP - GP -- successful grasps --> OG([optimized grasps]) - style OPT fill:#ffe680,stroke:#b38f00 - style TB fill:#ffe680,stroke:#b38f00 - style EV fill:#ffe680,stroke:#b38f00 - linkStyle 6 stroke:#2e9e44,color:#2e9e44

The stage loops num_attempts passes with work stealing: a scene stays to-do while its file holds fewer than min_grasps_threshold grasps, so later passes top up hard scenes. Each batch runs optimize -> filter + plan -> sim eval, then appends the surviving pre/grasp/post configurations. Key config: grasp_optim (GraspOptimConfig, evaluator nested inside) and traj_builder (GraspTrajBuilderConfig).

process_sim_data —> Join Observations and Actions

Joins the two upstream outputs per scene ID into one training HDF5. Scenes missing either side are dropped.

flowchart TD - PC[(rendered pts)] - GR[(succ grasp poses)] - CE["ContactExtractor (optional)"] - GW[graspness weight] - OUT[(processed sim data<br/>processed_data_path .h5)] - - PC --> OUT - GR --> OUT - GR --> CE --> GW --> OUT

Actions stack the three saved configurations per grasp; meta/action_mean and meta/action_std normalize them during training. With enable_contact_extraction=True each scene also gets per-point graspness weights. See data_format.md.

Trainer — Policy Learning

Learns an open-loop policy mapping one scene point cloud to pre-grasp, grasp, and post-grasp configurations. See the training tutorial.

flowchart TD - DS[(Dex1B dataset<br/>processed_data_path .h5)] - POL[GraspPolicy<br/>point-cloud encoder + CVAE] - TB[GraspTrajBuilder] - EV[Evaluator] - CKPT[(ckpt<br/>logs/train/name)] - - DS --> POL --> TB --> EV --> CKPT
  • Every eval_freq iterations, predicted grasps go through the same GraspTrajBuilder path as data optimization (filters + motion planning) before rolling out in the evaluator env.
  • The policy can also be trained on floating grasps and evaluated on the fixed-base robot: with traj_builder.convert_to_fixed=True the builder IK-converts the predicted floating grasps onto the arm and the evaluator rolls out the fixed-base trajectories (see xhand_right_dex1b_v0_5_mini_tabletop_fixed_eval). Key config: dataset (DatasetConfig), agent (GraspPolicyConfig), trainer (TrainerConfig).

Outputs

Config fieldContentsMarker
rendered_data_pathPer-scene {scene_id}.h5 segmented point clouds<path>.render_complete
grasp_output_dirPer-scene {scene_id}.h5 pre/grasp/post qpos<dir>/.optim_complete
processed_data_pathOne .h5: data/<scene_id>/{obs,actions} + meta stats<path>.process_sim_data_complete
logs/train/<name>/TensorBoard logs, checkpoints, eval results<dir>/.train_complete
- -
- -
-
- - - - - diff --git a/docs/graspkit/quickstart/index.html b/docs/graspkit/quickstart/index.html deleted file mode 100644 index c0985a0..0000000 --- a/docs/graspkit/quickstart/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Quickstart · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Quickstart

-

Try it without installing

Run this to start the interactive grasp gallery:

shell
uvx --from graspkit python -m graspkit.gallery.grasp_optim

Pick a hand, arm, and object. Press Optimize to generate grasps, then browse them with the Grasp slider. The gallery caches results for the next visit.

The grasp gallery switching from xHand to a Robotiq gripper

Optimize one grasp

After installing, run the smallest grasp optimization example:

shell
uv run src/graspkit/examples/grasp_optim/01_basic.py

It optimizes xHand grasps for one YCB object and opens a Viser page to browse the results. Grasp optimization needs a CUDA GPU.

More examples

The scripts below are runnable. Paths are relative to the repository root.

DirectoryScripts
src/graspkit/examples/grasp_optim01_basic.py, 02_table.py, 03_arm.py, 04_sim_valid.py, 05_table_sim_valid.py, 06_arm_sim_valid.py, 07_mj_sim_valid.py
scripts/launch.pyRun an experiment from grasp optimization through policy training. See The full pipeline.

Example usage:

shell
uv run src/graspkit/examples/grasp_optim/02_table.py
- -
- -
-
- - - - - diff --git a/docs/graspkit/real-deploy/index.html b/docs/graspkit/real-deploy/index.html deleted file mode 100644 index 7578f44..0000000 --- a/docs/graspkit/real-deploy/index.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Real Deployment · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Real Deployment

-

Running a trained policy on hardware: capture a point cloud, predict a grasp, build a trajectory, execute it, release, and park.

These scripts move a real robot. Run them yourself, with the e-stop in reach — never from an automated agent.

Prerequisites

  • The rig's xarm extra, plus sam2 for segmentation.
  • A checkpoint whose robot matches the rig: deploy asserts that the actuated joint names of the policy's robot and the hardware robot are identical.

Hardware presets

configs/real_env.py holds one RealEnvConfig per rig; --real-env-config-name selects it, and an experiment can name a default through real_env_config_name.

PresetArmHandCamera
xarm7_xhand_rightxArm7XHandRealSense
xarm6_sharpa_rightxArm6SharpaRealSense
xarm7_ability_rightxArm7Ability (channel reindex)RealSense

Each preset also carries the planning table (table_size, table_xy, table_z), the point-cloud crop centre (workspace_center), the streaming rate (control_hz) and how many depth frames to median-combine. Experiments need --real-env-config-name, a fixed-base trajectory and camera_frame="robot".

Run it

shell
uv run --extra sam2 --extra xarm scripts/deploy/deploy.py --env real \
-  --exp-config-name xhand_right_dex1b_v0_5_mini_tabletop_fixed_eval \
-  --ckpt-path <checkpoint> --real-env-config-name xarm7_xhand_right

Every stage waits for a button in the Viser page:

  1. Capture — reset to the init pose, grab RGB (median of depth_frames depth frames).
  2. Segment — click the object; SAM 2 turns the clicks into a mask, which becomes the cropped, subsampled point cloud in the robot base frame.
  3. Check Grasp — the policy samples --num-samples grasps; the trajectory builder converts and plans them, and the top eight valid candidates are shown. For a floating-base policy the cloud is mean-centred and the centroid added back; --pc-offset nudges it. --post-grasp-hand-close-scale rescales the closing motion.
  4. Deploy — the trajectory is streamed phase by phase at the rig's control_hz. The Deploy Until Step slider stops mid-trajectory so you can compare commanded and measured joint positions against the live cloud, then resume.
  5. Release and park — the hand opens in place, then a collision-checked plan returns the arm to the init pose against a table raised by 5 cm. There is no reset afterwards.

--loop keeps cycling; without it, a capture with no valid grasp is an error.

Calibration

The deploy path reads a base-frame camera extrinsic and a camera intrinsic from the shipped calibration files (assets/calib.py, wired into the experiment's renderer.camera_poses_path and camera_intrinsic_path).

Inspect the result with uv run scripts/tools/visualize_camera_extrinsic.py --experiment-name ... (offline) or uv run --extra xarm scripts/deploy/visualize_calib.py (live).

The park plan raises the table by 5 cm because the optimizer otherwise rides the collision margin.

- -
- -
-
- - - - - diff --git a/docs/graspkit/ref-assets/index.html b/docs/graspkit/ref-assets/index.html deleted file mode 100644 index ac7faca..0000000 --- a/docs/graspkit/ref-assets/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - graspkit assets · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Data
- -
-

graspkit assets

-

graspkit's own assets (scene descriptions, object-mesh datasets) live in the HF dataset openrobokit/graspkit. Robot assets (URDFs, spheres, contact points, self-collision ignores) live in robokit's dataset and are consumed via modules such as robokit.assets.robots.end_effectors.sharpa_hand. import graspkit downloads nothing. A robot module fetches its subtree into ~/.robokit/assets/<pinned-commit>/; graspkit assets use ~/.graspkit/assets/<graspkit.assets.REVISION>/, fetched by the same robokit.assets.fetch.

RobotConfig.self_collision_ignore_path points to one robot's ignore YAML. Files named *.sphere.yml and *.capsule.yml select the sibling matching the term's representation. Grasp optimization defaults to spheres; select spen_representation="capsule" for capsule terms. Motion planning and sphere filters always select sphere ignores. An enabled term warns at construction if its matching file is unavailable; an invalid supplied path still raises. Runtime assemblies have no ignore path unless one is supplied on their resulting config.

Layout

text
calib/                 # per-rig camera extrinsics/intrinsics + joint offsets
-data/scene_description/ # per-task scene msgpacks (dex1b/, ...)
-data/object_data/       # mesh archives (dex_diffuser*, dexgraspnet, objaverse_dex1b_v2),
-                        #   extracted at import; dexgraspnet_official_splits/ = train/test lists

~/.graspkit/: assets/ = fetched HF files (what code reads), hf_cache/ = HF blobs; data/+logs/ = pipeline output (S3-backed, not assets). data/logs live under home (not the repo), so graspkit works as a library too; graspkit.link() symlinks them into your checkout for browsing.

Consuming

python
from graspkit.assets import calib
-from graspkit.assets.scene_descriptions import dex1b_v0_4
-from graspkit.assets.objects import dex_diffuser
-
-dex1b_v0_4.FLOATING_MINI_PATH                       # importing fetches only v0.4
-dex_diffuser.DATA_DIR / "processed/ycb"             # importing fetches + extracts the archive
-calib.calib_file("xarm/26-06-21-camera_pose.json")  # fetches calib/, returns a Path
  • Objects are archives: objects.<src> fetches + extracts into DATA_ROOT/object_data/<src> (marker-guarded) as DATA_DIR; dexgraspnet_official_splits is archive-free (DIR).
  • Scenes: one module per dex1b version (_DIR = fetch([...], REVISION, HF_REPO_ID, GRASPKIT_HOME) + *_PATH). Add a scene = add a *_PATH + its fetch pattern.
  • Ad-hoc: robokit.assets.fetch(["data/scene_description/**"], REVISION, HF_REPO_ID, GRASPKIT_HOME) / "...". Bump graspkit.assets.REVISION after uploading new data.

Configs/experiments resolve by name, importing only what's needed (so only its assets download):

python
from graspkit.configs.robot import build_robot_config
-from graspkit.configs.experiment import build_experiment_config
-
-build_robot_config("sharpa_right")                       # downloads only sharpa_right's robot assets
-build_experiment_config("sharpa_right_dex1b_v0_4_mini_floating")

Authoring

The dataset is too large to clone, so there's no local git checkout. Upload directly through the HF API (uploads only new xet chunks; no git or git-xet plugin needed):

shell
uv run scripts/tools/upload_to_hf.py data/scene_description/dex1b/v0.4/x.msgpack

It pushes the file/dir to the same repo-relative path (upload_file/upload_folder). Then expose it: add a module/symbol under src/graspkit/assets/scene_descriptions/ or objects/ (eager _DIR = fetch([...], REVISION, HF_REPO_ID, GRASPKIT_HOME) + typed Path symbols), keeping the data/ layout above, and bump graspkit.assets.REVISION to the new dataset commit.

To pull only a subset back, fetch with a pattern (or snapshot_download(allow_patterns=[...])): never the whole repo.

Robot assets are authored in robokit's (small) dataset via its own git-xet checkout: see robokit.

- -
- -
-
- - - - - diff --git a/docs/graspkit/ref-config-system/index.html b/docs/graspkit/ref-config-system/index.html deleted file mode 100644 index 71b9dce..0000000 --- a/docs/graspkit/ref-config-system/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Config System · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference
- -
-

Config System

-

All configuration is plain dataclasses in src/graspkit/configs/, parsed with tyro at the CLI. There are no YAML files: experiments are hand-written Python instances, variants are derived with dataclasses.replace, and every field is overridable from the command line. Field docstrings in the source are authoritative; this page covers the structure and entry points.

Layout

Class definitions live in *_config.py; instances live apart from them.

Path (src/graspkit/configs/)Contents
experiment_config.pyExperimentConfig (top level) and all stage sub-configs
experiment/Per-robot experiment instances + name registry (build_experiment_config, cli_experiment)
robot_config.pyRobotConfig
robot/Per-robot RobotConfig instances + name registry (build_robot_config)
grasp_policy_config.pyGraspPolicyConfig
grasp_policy.pyNamed GraspPolicyConfig presets (GRASP_POLICY_CONFIGS)
env_config.pyBackend configs: MsEnvConfig (ManiSkill), MjEvalConfig + HandSpec (MuJoCo), IsaacEnvConfig; the task is EnvConfig
mj_hand.pyMuJoCo HandSpec instances (SHADOW_HAND, XHAND, ...)
real_env_config.pyRealEnvConfig
real_env.pyRealEnvConfig hardware presets for RealEnv (REAL_ENV_CONFIGS; needs the xarm extra)

ExperimentConfig

ExperimentConfig (experiment_config.py) is the single config for the whole pipeline (launch.py and every stage script). Sub-configs hold hand-independent algorithm/runtime params; all paths, robot configs, and pipeline control live at the top level.

FieldTypeRole
namestrExperiment name (required)
robot_configRobotConfigRobot that grasp optimization and training target (the floating hand in the standard pipeline)
traj_builderGraspTrajBuilderConfigFloating/fixed robot pair, convert_to_fixed decision, grasp filters, and the builder's MotionPlannerConfig
grasp_optimGraspOptimConfigOptimizer backend, energy weights, init sampler, in-loop evaluator: see grasp_optim tutorial
rendererRendererConfigPoint-cloud rendering: env, cameras (calibrated extrinsic/intrinsic paths), crop/downsample
trainerTrainerConfigTraining loop: batch size, iters, eval EnvConfig, wandb
datasetDatasetConfigDataset loading (num actions/points, graspness)
agentGraspPolicyConfigModel architecture/loss preset: see training tutorial
scene_description_path, grasp_output_dir, rendered_data_path, processed_data_path, ...strAll experiment-specific paths (usually under DATA_ROOT)
steps, restart_from, append, gpus, num_gpus, seed-Pipeline control for launch.py
- -
- -
-
- - - - - diff --git a/docs/graspkit/ref-data-format/index.html b/docs/graspkit/ref-data-format/index.html deleted file mode 100644 index b390fb8..0000000 --- a/docs/graspkit/ref-data-format/index.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - Data Format Specification · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Data
- -
-

Data Format Specification

-

Grasp Poses

Per-scene files

One HDF5 file per scene:

  • File name: {scene_id}.h5
  • Datasets (float arrays):
    • grasp_qpos: shape (N, D)
    • pre_grasp_qpos: shape (N, D)
    • post_grasp_qpos: shape (N, D)

Where:

  • N = number of stored grasps for this scene (varies per scene; may include appended results from multiple runs)
  • D = dimension of the configuration. For floating base robots, this includes 3D position, 3D euler angles (rxyz), and hand joint positions.

Merged file

  • File name: {output_dir}.h5
  • Structure: one group per scene /{scene_id}/ containing the same datasets as per-scene files
- -
- -
-
- - - - - diff --git a/docs/graspkit/ref-robot-hands/index.html b/docs/graspkit/ref-robot-hands/index.html deleted file mode 100644 index aaed09f..0000000 --- a/docs/graspkit/ref-robot-hands/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Robot and Hand Catalog · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference
- -
-

Robot and Hand Catalog

-

Every robot is a RobotConfig instance in configs/robot/, registered by name in that package's __init__.py. build_robot_config(name) imports only that module, so only its assets download.

Hands and rigs

NameBaseRigFormatDOF
ability_rightfloatinghandURDF6
allegro_rightfloatinghandURDF16
barrett_rightfloatinghandURDF8
dclaw_rightfloating3-finger gripperURDF9
inspire_rightfloatinghandURDF12
leap_rightfloatinghandURDF16
mano_rightfloatinghandURDF16
orca_rightfloatinghandURDF17
paxini_rightfloatinghandURDF16
schunk_rightfloatinghandURDF9
shadow_right, shadow_right_mjfloatinghandMJCF22
sharpa_right, sharpa_leftfloatinghandURDF22
xhand_right, xhand_right_mjfloatinghandURDF / MJCF12
robotiq_2f85, yam_gripperfloatinggripperURDF1–2 driven
franka_gripperfixedarm + gripperURDF8
xarm6_sharpa_rightfixedarm + handURDF6 + 22
xarm7_ability_rightfixedarm + handURDF7 + 6
xarm7_mano_rightfixedarm + handURDF7 + 16
xarm7_sharpa_rightfixedarm + handURDF7 + 22
xarm7_shadow_rightfixedarm + handMJCF7 + 22
xarm7_xhand_right, xarm7_xhand_right_mjfixedarm + handURDF / MJCF7 + 12
g1_inspire_right, g1_inspire_right_wbcfixedhumanoid + handURDF41 / 33
g1_mano_rightfixedhumanoid + handURDF45
vega_sharpa_right, vega_sharpa_leftfixedhumanoid + handURDFfull body
vega_sharpa_right_mj, vega_sharpa_left_mjfixedhumanoid + handMJCF63

Variants suffixed _side_init and _centered differ only in initial pose or camera framing; _mj variants are the MJCF models used by the MuJoCo evaluator. Not every registered robot has a pipeline: experiments exist for ability, inspire, mano, paxini, sharpa, xhand, the xArm rigs, the G1 rigs, Vega and the MuJoCo Shadow.

What a config carries

Paths to the URDF or MJCF, collision spheres, self-collision ignore list, contact points and contact-avoid points; the base type and initial pose; the link names that name the palm, fingertips, thumb and middle finger; and robokit's EE_COORD_SPEC as ee_coord_spec, with the link it is expressed in as ee_coord_link_name. grasp_robot.hand_coord_spec turns it into palm-forward and fingers-up axes in the hand frame (a gripper's jaws are its palm). Those axes drive the hand-axis cone filter and the init sampler, so a wrong spec shows up as grasps approaching from the wrong side; tests/test_robot_coord_specs.py checks every config's axes against its fingertips and its sampled inits.

Contacts come either from a contact-points file or from a contact_candidates_config that samples per link; scripts/tools/create_contact_points.py authors the former.

ManiSkill agents

Simulation needs a ManiSkill agent per robot, in mani_skill/agents/. The uid is the robot config name, with _floating_base appended for floating hands — xhand_right_floating_base, vega_sharpa_right. Agents load sim-specific URDFs (floating-base, mimic-free variants) rather than the config's own path, and compose a controller: the six virtual base joints plus a position controller for the fingers. A robot with no hand-written agent (dclaw, orca, paxini, the grippers, every assembled rig) gets one from mani_skill/agents/config_agent.py: register_config_agent builds it from the robot config, writing a mimic-free sim URDF (plus the six virtual base joints for a floating hand) under ~/.graspkit/data/sim_urdf/<revision>. The _mj rigs are MuJoCo-only.

Adding a hand

  1. Write configs/robot/<hand>.py: one RobotConfig pointing at the robokit asset symbols.
  2. Register it in configs/robot/__init__.py.
  3. Add a ManiSkill agent in mani_skill/agents/<hand>.py and import it in mani_skill/__init__.py.
  4. Author contact points if the hand needs them.
  5. Optionally add it to EES in robokit's assets/robots/assembly/composed.py so it can be mounted on any arm, and to the gallery's hand list.
  6. Add an experiment config when you want a pipeline for it.

configs/robot/schunk.py plus mani_skill/agents/schunk.py is the smallest complete example.

Assembled rigs

robokit's assets/robots/assembly/composed.py assembles any of seven bases (YAM, xArm7, xArm6, Franka, UR5e, G1, Vega) with any of fourteen end effectors, merging collision spheres and computing the mount transform from the two mount specs, on demand under ~/.robokit/assembly/<revision>. utils/assembly_utils.py adds each base's scene placement and rest pose; its configs are what the gallery's arm dropdown offers. A base+ee name is always assembled, even where a hand-written config shares it. uv run python -m graspkit.gallery.grasp_optim --all --gpus ... optimizes every gallery hand floating and jointly on every base, sim-evaluates all of them, and prints the success table.

- -
- -
-
- - - - - diff --git a/docs/graspkit/ref-scene-descriptions/index.html b/docs/graspkit/ref-scene-descriptions/index.html deleted file mode 100644 index ab21d37..0000000 --- a/docs/graspkit/ref-scene-descriptions/index.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - Dex1B Scene Descriptions · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Data
- -
-

Dex1B Scene Descriptions

-

Dex1B scene descriptions under scene_description/dex1b/<version>/, hosted on HuggingFace (openrobokit/graspkit) and generated by the scripts in scripts/stages/scene_desc/.

v0.5

  • tabletop (normal): table (0.5, 0.5, 0.2), object region (xy ±0.2), and ±5cm table-height jitter (enable_table_pose_randomization with table xy fixed); height-balanced across 4 bins.
  • wbc_tabletop (whole-body control): thick table (0.35, 0.35, 0.2) with a per-scene pose pulled close to the robot (table_x_range=(0.35, 0.5): near edge ~0.175 clears the G1 torso front ~0.143) and uniform table-top height [0.3, 1.1]. Same height rebalancing as normal (mini/small balanced across 4 bins; dev off, since the tiny YCB set can't fill every bin).
  • dexmate_tabletop (mini only, Vega + Sharpa): tabletop with table (0.6, 0.6, 0.2), object region xy ±0.25, and ±15cm table-height jitter.

All families read the same canonicals. Train is dexgraspnet (in-distribution); test mixes in dexdiffuser (egad, kit, contactdb, ycb) as a held-out object family, with per-source counts pinned via merge_scene_description.py's subsample.

TiertraintestSources
dev10030YCB only (train & test)
mini5k500train dexgraspnet 684×5; test 300 dexgraspnet test-split + 200 dexdiffuser
small50k2ktrain dexgraspnet 4302×5; test dexgraspnet test-split + dexdiffuser

Families have identical counts/sources (same canonicals, different table). Scales: dexgraspnet [0.06, 0.08, 0.1, 0.12, 0.15], dexdiffuser 1.0. Pipeline: meshes → canonical drop → tabletop randomization, merged with merge_scene_description.py.

  • Canonical drop: each (object, scale) is dropped by physics onto a (0.3, 0.3, 0.1) table in 3 orientations (none, x90, y90). Kept if xy within ±0.15m, height ≥ 0.02m, volume ≤ 0.003m³, xy area ≤ 0.025m².
  • Tabletop randomization: xy translation and z rotation per canonical scene, plus the family's table pose. Height bins: 0.02–0.05, 0.05–0.09, 0.09–0.15, 0.15–0.25m. At most 10 scenes per object (mini), 6 (small), 5 (dev).
  • Meshes: collision.glb keeps the CoACD convex parts; visual.glb is a separate simplified mesh. Importing graspkit.assets.objects.dex_diffuser_v2 fetches the dexdiffuser meshes.
- -
- -
-
- - - - - diff --git a/docs/graspkit/sim-deploy/index.html b/docs/graspkit/sim-deploy/index.html deleted file mode 100644 index 92ffc3a..0000000 --- a/docs/graspkit/sim-deploy/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Sim Deployment · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Sim Deployment

-

Three ways to run a trained policy in simulation: inside training, as a reproducible benchmark, or interactively in the deploy UI.

During training

Set TrainerConfig.evaluator to an EnvConfig and the trainer evaluates every eval_freq iterations on rank 0: it samples actions, builds trajectories with GraspTrajBuilder, rolls them out, and reports a success rate plus a report-only penetration pass rate (penetration <= eval_pen_threshold, 5 mm by default).

shell
# evaluate an existing checkpoint, no training
-uv run scripts/stages/train/train.py <experiment> --trainer.eval-only --ckpt-path <ckpt>

Results land in logs/train/<experiment>/eval_success.jsonl, TensorBoard (eval/success_rate, eval/pen_pass_rate) and checkpoints/best_eval_success_rate.pt. Eval-only runs also write per-scene results to logs/eval/<experiment>.json.

Knobs on EnvConfig: num_envs (2048), num_seeds (a grasp must survive every seed), enable_perturbation with perturbation_magnitude / perturbation_step_range / num_perturbations, the task (control_freq, object_mass, target_lift_dist, ...), and mj_env_config / isaac_env_config to pick a backend other than ManiSkill. TrainerConfig adds eval_num_envs, max_eval_batches and eval_pen_threshold.

ManiSkill counts a tabletop grasp as a success when the hand is strictly grasping and the object has risen by target_lift_dist; with floating_object it is grasp-only.

As a benchmark

The default checkpoint mode of scripts/benchmark/grasp_policy/evaluate_policy.py makes every prediction before any physics, asserts the eval scenes are disjoint from the training and validation IDs, and records actions, trajectories, and per-scene results.

shell
PYTHONHASHSEED=0 CUDA_VISIBLE_DEVICES=<free gpu> uv run scripts/benchmark/grasp_policy/evaluate_policy.py \
-  --checkpoint <ckpt> --output <report.json> \
-  --evaluation-experiment <experiment> --observations-path <processed.h5> \
-  --require-native --require-object-disjoint

The checkpoint must carry experiment, policy_config, agent and training keys; plain trainer checkpoints hold only agent, so use the packaging scripts under scripts/stages/train/. The report gives raw (sim success), penetration (deepest hand-sphere overlap into the object at the grasp pose, in metres) and joint = raw & penetration <= 0.005. That 5 mm threshold is fixed in the script, independent of eval_pen_threshold.

The same runner supports tabletop observations with --mode pc_open_loop, pc_closed_loop, or rgb_closed_loop. Choose --robot from arx_x5, panda_allegro, or agilex_aloha, and --arm-mode from floating_ik or arm_aware. Each scene gets one selected grasp execution; tabletop results are written to a .jsonl output.

Interactively

shell
uv run --extra sam2 scripts/deploy/deploy.py --env sim \
-  --exp-config-name <experiment> --ckpt-path <ckpt>

The sim path runs one environment, takes scenes from the experiment's msgpack split, and drives the same staged Viser UI the real robot uses — Capture, Segment, Check Grasp, Deploy. --auto (sim only) takes the segmentation prompt from the simulator's ground-truth mask and prints the SAM2-vs-GT mask IoU; --scene-id and --num-scenes choose scenes, --deploy-batch-size replays several grasps at once.

MuJoCo instead of ManiSkill

Setting EnvConfig.mj_env_config selects MuJoCo, which is the only backend for hands with no ManiSkill agent (shadow_right_mj, xarm7_xhand_right_mj, vega_sharpa_*_mj). It runs on CPU in a spawned pool of up to 48 workers and evaluates a grasp pose rather than a trajectory:

  • setting="fc" — free-space force closure: grip, then hold against six axis-aligned forces; fails if the object translates past trans_thre or rotates past angle_thre.
  • setting="tabletop" — grip, apply a downward wrench (gravity is disabled), lift 20 cm, and require slip below lift_slip_thre, rotation below angle_thre, and contact after the lift.

Use timestep=0.001 for actuated arm+hand models; the 0.004 default flings the object.

Pitfalls

  • MsEnv warns when num_envs and the sample count are not multiples of each other: the mismatch forces a reconfiguration per batch, which dominates the runtime.
  • Evaluating far fewer grasps than num_envs is wasteful; the env warns about that too.
  • Reconfiguration only happens when the batch's scene set changes, so sort work by scene.
  • Seeding is explicit: evaluate_policy.py asserts PYTHONHASHSEED=0; seed_everything does not enable deterministic kernels unless asked.
- -
- -
-
- - - - - diff --git a/docs/graspkit/training/index.html b/docs/graspkit/training/index.html deleted file mode 100644 index 8306a09..0000000 --- a/docs/graspkit/training/index.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Policy Training (train) · GraspKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Policy Training (train)

-
%%{init: {"flowchart": {"wrappingWidth": 300}}}%% -flowchart LR - PC[Scene point cloud<br/>N × 3] - ENC[Vision encoder<br/>PointNet / SpConv] - EPS(["noise ε ~ N(0, I)"]) - GT[GT grasps] - GEN["Generator<br/>CVAE: encoder + decoder<br/>Flow: velocity network"] - OUT[Generated grasps] - - PC --> ENC -->|scene feature| GEN - EPS --> GEN - GT -.->|train only| GEN - GEN --> OUT

GraspPolicy maps a scene point cloud to pre-grasp, grasp, and post-grasp configurations, trained on successful grasp trajectories.

Code: scripts/stages/train/train.py (CLI), stages/trainer.py (loop), datasets/grasp_dataset.py (data), models/grasp_policy.py (model).

For every training, dataset, and policy parameter, see the training and policy API.

Quick start

Prerequisites: uv sync --extra maniskill --extra spconv, a CUDA GPU, and an experiment whose processed_data_path exists. Normally render_data, optimize_grasps, and process_sim_data produce that file.

shell
# Run only training from a registered experiment.
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train
-
-# Multi-GPU training (this experiment defaults to train_single_gpu=True).
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0,1,2,3 --steps train \
-  --no_train_single_gpu
-
-# Override nested dataclass fields through tyro.
-uv run scripts/launch.py xhand_right_dex1b_v0_5_mini_tabletop --gpus 0 --steps train \
-  --trainer.total_iters 20000 \
-  --trainer.eval_freq 5000 \
-  --trainer.save_freq 5000

Training writes TensorBoard logs and checkpoints under logs/train/<experiment_name>/. A completed run writes .train_complete; a later launch skips the stage while that marker exists.

Minimal training loop

The experiment config holds the three pieces: dataset (DatasetConfig), agent (GraspPolicyConfig), and trainer (TrainerConfig).

python
import torch
-from torch.utils.data import DataLoader
-
-from graspkit.configs.experiment import build_experiment_config
-from graspkit.datasets.grasp_dataset import GraspDataset
-from graspkit.models.grasp_policy import build_grasp_policy
-
-cfg = build_experiment_config("xhand_right_dex1b_v0_5_mini_tabletop")
-dataset = GraspDataset(cfg.dataset, cfg.processed_data_path, cfg.scene_description_path, split="train")
-loader = DataLoader(dataset, batch_size=cfg.trainer.batch_size, shuffle=True, num_workers=4, drop_last=True)
-policy = build_grasp_policy(cfg.agent, cfg.robot_config, "cuda")
-optimizer = torch.optim.AdamW(policy.parameters(), lr=cfg.trainer.lr)
-
-for batch in loader:
-    obs = {k: v.cuda() for k, v in batch["observations"].items()}
-    loss = policy(obs, batch["actions"].cuda())["loss"]
-    optimizer.zero_grad()
-    loss.backward()
-    optimizer.step()
-
-policy.eval()
-with torch.no_grad():
-    grasps = policy.get_action(obs, num_samples_per_scene=8)  # (B, 8, 3, D): pre / grasp / post

The real Trainer (src/graspkit/stages/trainer.py) adds LR scheduling, DDP, checkpoints, TensorBoard, and simulation evaluation through trainer.evaluator.

Evaluate a checkpoint

Evaluation samples one trajectory per scene, runs grasp filtering and motion planning, then rolls the trajectory out in the configured simulator:

shell
uv run scripts/stages/train/train.py xhand_right_dex1b_v0_5_mini_tabletop \
-  --trainer.eval_only \
-  --ckpt_path logs/train/xhand_right_dex1b_v0_5_mini_tabletop/checkpoints/best_eval_success_rate.pt

The command reports simulation success, penetration pass rate, and their joint rate. Per-scene results are saved to logs/eval/<experiment_name>.json.

- -
- -
-
- - - - - diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index c23b0af..0000000 --- a/docs/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Docs · OpenRoboKit - - - - -Continue to the documentation - diff --git a/docs/retargetingkit/ability-hand/index.html b/docs/retargetingkit/ability-hand/index.html deleted file mode 100644 index 4cc9682..0000000 --- a/docs/retargetingkit/ability-hand/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - Ability Hand · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

Ability Hand

-

Control the PSYONIC Ability Hand's six joints through a USB serial adapter. The driver accepts radians and runs a background servo process, with position commands ramped at 60 degrees per second by default.

Connect

Power and connect the hand according to its hardware manual. Use a stable Linux device path when available:

shell
ls /dev/serial/by-id/
-uv sync --extra ability

Your user needs access to the serial device, commonly through the dialout group. The driver uses 460800 baud.

Preview teleoperation

The named Vision Pro rig combines Ability Hand with xArm7:

shell
uv run --extra vision-pro --extra vis scripts/teleop/arm_hand.py \
-    visionpro_xarm7_ability --mode viser --source.ip <VISION_PRO_IP>

This previews motion without opening either robot target. Follow the Vision Pro guide to configure the arm IP and hand port before selecting real or both.

Use the driver

Starting the driver sends serial position commands, including zero-position commands during initial synchronization. The following is a hardware controller session:

python
from retargetingkit.targets.hands.ability_hand import AbilityHandConfig
-
-hand = AbilityHandConfig("/dev/serial/by-id/<ABILITY_HAND>").build()
-target_qpos = hand.get_qpos()  # (6,), radians
-hand.set_qpos(target_qpos)
-hand.close()

Replace target_qpos with the desired hand pose for your control loop.

Check motion

The diagnostic below opens and closes the physical hand once:

shell
uv run --extra ability scripts/targets/ability_hand/open_close.py \
-    --port /dev/serial/by-id/<ABILITY_HAND> --reps 1

scripts/targets/ability_hand/read_qpos.py also starts the active servo process and sends startup commands. It is not a passive serial reader.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/arm-retargeting/index.html b/docs/retargetingkit/arm-retargeting/index.html deleted file mode 100644 index ec67db2..0000000 --- a/docs/retargetingkit/arm-retargeting/index.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - Arm Retargeting · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Arm Retargeting

-

An xArm7 carrying an XHand in the interactive retargeting gallery

Map a tracked wrist to an xArm6 or xArm7 end effector. The arm solver uses RoboKit inverse kinematics with position, orientation, joint-limit, and smoothness terms.

How Retargeting Works

The source reports wrist poses in an ArmFrame. Calibration establishes the robot's home pose; inverse kinematics then maps relative wrist motion to a joint-position command for each arm.

Preview one arm

Complete Vision Pro setup, then run:

shell
uv run --extra vision-pro scripts/teleop/arm.py \
-    visionpro_xarm7 --mode viser --device cpu \
-    --source.ip <VISION_PRO_IP>

Open the Viser URL printed in the terminal. visionpro_xarm6 selects xArm6; visionpro_dual_xarm7 controls two independent arms.

Use the Python API

Build the rig's right-arm retargeter and pass it one ArmFrame per update:

python
from retargetingkit.configs.teleop.arm.visionpro_xarm7 import RIGHT_VISIONPRO_XARM7_CONFIG
-
-retargeter = RIGHT_VISIONPRO_XARM7_CONFIG.retargeters["right"].build(device)
-
-for frame in stream:  # ArmFrame: world-frame wrist [x, y, z, qw, qx, qy, qz]
-    command = retargeter.solve(frame)
-    qpos = command.qpos  # (7,), xArm7 joint positions

The first frame is the calibration origin, so it returns the home pose.

Retarget an arm and hand

Optimize the arm and fingers from each synchronized ArmHandFrame. The wrist pose is in world coordinates; hand keypoints are wrist-local. This example builds only the solvers and needs no tracking device or robot connection.

python
from retargetingkit.configs.teleop.arm_hand.visionpro_xarm7_xhand import RIGHT_VISIONPRO_XARM7_XHAND_CONFIG
-
-config = RIGHT_VISIONPRO_XARM7_XHAND_CONFIG
-arm = config.arm_retargeters["right"].build(device)
-hand = config.hand_retargeters["right"].build(device)
-
-for frame in stream:  # ArmHandFrame: synchronized wrist and finger poses
-    arm_qpos = arm.solve(frame.arm).qpos  # (7,), xArm7 joints
-    hand_qpos = hand.solve(frame.hand).qpos  # (12,), XHand joints

Calibration and motion

The first tracked wrist pose becomes the calibration origin and maps to the robot's configured home pose. Wrist movement is then applied relative to that origin.

Override for the right armEffectDefault
--retargeters.right.translation-scaleScale wrist translation1.5
--retargeters.right.ee-gainBlend each new end-effector pose with the previous pose1.0

A smaller gain smooths movement more. Use visionpro_xarm7 --help for all settings. Arm-hand rigs use the prefix --arm-retargeters.right instead.

Connect a robot

Use the xArm guide for SDK installation, network setup, and hardware mode. At startup, hardware mode moves each arm to its model-specific home pose.

To move fingers along with the wrist, choose a supported assembly on the Vision Pro page. Quest controller teleoperation has its own standalone workflow and button calibration.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/axis-studio/index.html b/docs/retargetingkit/axis-studio/index.html deleted file mode 100644 index 92033b3..0000000 --- a/docs/retargetingkit/axis-studio/index.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Axis Studio · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

Axis Studio

-

Stream Noitom body motion from Axis Studio in Calc broadcast mode. AxisStudioSource converts the incoming avatar to a canonical Z-up BodyFrame for G1 retargeting.

Connect Axis Studio

The bundled SDK runtime supports Linux x86-64. From the RetargetingKit repository:

shell
uv sync --extra axis --extra vis

In Axis Studio, enable Calc data broadcasting, set the destination to the RetargetingKit workstation, and use UDP port 7012. If a firewall is active:

shell
sudo ufw allow 7012/udp

Preview G1

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra axis --extra vis \
-    scripts/teleop/humanoid.py axisstudio_g1_sonic_viser \
-    --source.port 7012 --source.human-height 1.75

Set --source.human-height to the user's height in meters. Open http://localhost:8080 and check that G1 follows the streamed body motion. Change --source.port if Axis Studio uses a different port.

This rig also publishes commands to SONIC. Use axisstudio_g1_sonic to publish without Viser. See humanoid teleoperation for simulation and G1 deployment.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/development/index.html b/docs/retargetingkit/development/index.html deleted file mode 100644 index 01302fc..0000000 --- a/docs/retargetingkit/development/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - Development · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Development
- -
-

Development

-

Keep device conversion, retargeting, and robot transport in their respective layers. Named rig presets connect supported components without putting device-specific dispatch in a runtime.

Repository map

LayerLocationResponsibility
Sourcessrc/retargetingkit/sources/Native data to canonical frames
Retargeterssrc/retargetingkit/retargeting/Frames to robot commands
Targetssrc/retargetingkit/targets/Hardware, transport, or visualization
Presetssrc/retargetingkit/configs/teleop/Source, solver, target, and connection settings
Runtimesscripts/teleop/Component lifecycle and control loop

Validate changes

shell
uv sync --extra vis --group dev
-make ci

Add the hardware extras required by your work. During development, run make format, make lint, make check, or make test for the relevant check.

Every Python example in these docs runs in tests/test_docs.py; device pages run against autospecced devices.

Public functions should have doctests. Group pytest cases by feature and use torch.testing.assert_close for numerical comparisons.

Add a component

Give a source an isolated stream check, a target a connection check with its hardware behavior stated, and a retargeter a runnable example. Add a named rig once the complete composition is supported.

Keep device guides focused on setup, a stream or connection check, and a working entrypoint. Validate example paths and command flags against the implementation.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/dexmate/index.html b/docs/retargetingkit/dexmate/index.html deleted file mode 100644 index 6d1dca0..0000000 --- a/docs/retargetingkit/dexmate/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Dexmate Vega-1 · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

Dexmate Vega-1

-

Control Vega-1's torso, head, and both arms through the Dexmate SDK. The driver exposes 20 joints and is available as a standalone target; no named teleoperation rig is currently registered.

Connect

Configure robot discovery and Zenoh communication for your Dexmate setup, then install:

shell
uv sync --extra dexmate

RetargetingKit pins dexcontrol==0.4.4 and dexcomm==0.4.2 for the supported discovery stack.

Read current joint positions without sending a motion target:

shell
uv run --extra dexmate scripts/targets/dexmate/read_qpos.py

Press Ctrl+C to close the connection.

Use the driver

python
from retargetingkit.targets.humanoids.dexmate import DexmateConfig
-
-robot = DexmateConfig().build()
-qpos = robot.get_qpos()  # (20,), radians
-print(dict(zip(robot.joint_names, qpos)))
-robot.close()

Use robot.joint_names to align commands with the model:

GroupJoints
Torsotorso_j1 through torso_j3
Headhead_j1 through head_j3
Left armL_arm_j1 through L_arm_j7
Right armR_arm_j1 through R_arm_j7

This is also the order of get_qpos() and set_qpos().

Send motion

With an open connection and a desired 20-joint target_qpos, choose one command style:

python
robot.set_qpos(target_qpos)  # publish repeatedly in your control loop

The default wait_time=0 publishes a setpoint and returns immediately. For one interpolated move that blocks until completion:

python
robot.set_qpos(target_qpos, wait_time=3.0, max_vel=0.2)

max_vel is in radians per second. Both forms command the physical robot; call robot.close() when finished.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/frames/index.html b/docs/retargetingkit/frames/index.html deleted file mode 100644 index 933345a..0000000 --- a/docs/retargetingkit/frames/index.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Canonical frames · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Canonical frames

-

Source adapters convert native device data into a shared format. Solvers receive positions in meters, scalar-first quaternions, and explicit joint names.

Units and poses

ValueConvention
PositionMeters
Robot joint positionRadians, in actuated URDF order
Quaternion(qw, qx, qy, qz)
Pose(x, y, z, qw, qx, qy, qz)
Body coordinatesRight-handed Z-up world frame

Canonical poses have shape (7,). Native device matrices and quaternion orders are converted inside each source adapter.

Human motion

FrameContent
HandFramehands: side → wrist-local HandPose
ArmFramewrists: side → world-frame (7,) pose
ArmHandFrameSynchronized arm and hand frames
BodyFramejoint_names, (J, 7) world poses, human_height

Sides are "left" and "right". A frame can contain one available hand or both; check the requested side before consuming it. Body joint names travel with the data so the solver can select the joints it needs.

Hand keypoints

HandPose.positions contains 21 wrist-local MANO-21 points. It also carries joint orientations, a valid-point mask, and joint names.

python
import numpy as np
-from retargetingkit.sources.frames import HandFrame, HandPose, MANO21
-
-positions = np.zeros((21, 3), dtype=np.float32)  # shape example
-frame = HandFrame({"right": HandPose(positions)})
-frame.hands["right"].positions.shape  # (21, 3)
-MANO21.WRIST, MANO21.INDEX_TIP        # 0, 8
-MANO21.THUMB_TIP, MANO21.PINKY_TIP    # 4, 20

Replace the zero array with tracked keypoints before solving. See the Frame API for all fields and defaults.

Robot output

QPosCommand carries (Q,) joint positions. BasePoseQPosCommand adds a (7,) floating-base world pose. Neither type includes a time or batch dimension; those belong to recordings and lower-level solver APIs.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/full-body/index.html b/docs/retargetingkit/full-body/index.html deleted file mode 100644 index 0975068..0000000 --- a/docs/retargetingkit/full-body/index.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - Full-Body Retargeting · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Full-Body Retargeting

-
SAGA body and hand interaction retargeted in ViserParaHome body and scene interaction retargeted in Viser
Body, hand, and object interaction.Body and hand motion in a furnished scene.

Retarget body motion, articulated fingers, and object interaction together to a G1 with Inspire hands. RetargetingKit loads SAGA or ParaHome clips; RoboKit solves the robot motion and object poses.

How Retargeting Works

Each clip supplies body motion, finger motion, and interaction geometry. The body solver tracks human poses on G1; hand solvers track the fingers; grasp and scene terms keep the combined motion aligned with objects.

Retarget one object interaction

Run the SAGA example from the RetargetingKit checkout:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.01_hoi

The default clip contains a body, captured right-hand motion, and one object. After solving, open the printed Viser address to play or scrub the result. Press Ctrl+C to stop. The example chooses CUDA when available and otherwise uses CPU.

Pass --npz /path/to/clip.npz for a local SAGA FullGraspPose recording. The example still fetches its SAGA asset bundle, including object meshes.

Retarget an indoor interaction

ParaHome adds bimanual interaction and a furnished scene. List the available intervals in a sequence:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \
-    --sequence s1 --list

Select an interval from that list:

shell
uv run --extra vis python -m retargetingkit.examples.full_body.02_hsi \
-    --sequence s1 --index 7 --scene_clearance

--scene_clearance adjusts body placement to reduce penetration into furniture. Use --no_scene to omit the room, or --data_root /path/to/ParaHome/data to provide local ParaHome data.

Browse more clips

shell
uv run --extra vis python -m retargetingkit.gallery.full_body_hoi
-uv run --extra vis python -m retargetingkit.gallery.full_body_hsi

Choose a subject or sequence, then a clip in the viewer. By default, both galleries use captured finger poses and contact refinement. Add --grasp to optimize and hold grasps over contact intervals. The ParaHome gallery also exposes scene clearance in its viewer.

Both galleries accept --max_frames 60 --headless to solve a shorter selection and exit without opening a viewer. Dataset and model assets download on first use; gallery startup can fetch more than the selected clip.

These workflows produce motion for inspection. For live G1 control, follow humanoid teleoperation.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/g1/index.html b/docs/retargetingkit/g1/index.html deleted file mode 100644 index 5b973de..0000000 --- a/docs/retargetingkit/g1/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - G1 and SONIC · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

G1 and SONIC

-

Send retargeted G1 motion to GR00T Whole-Body Control through a SONIC ZMQ publisher. The deployment stack executes the policy in MuJoCo or on a real G1.

Prepare the deployment stack

Install and configure GR00T-WholeBodyControl on the deployment machine. For the bundled simulation launcher, place the checkout at:

text
thirdparty/GR00T-WholeBodyControl/

The launcher expects its .venv_sim environment and gear_sonic_deploy/deploy.sh to be ready, and requires tmux. Robot descriptions and collision assets come from RoboKit.

Start a recorded stream

From the RetargetingKit checkout:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser

This publishes a sample BVH clip on port 5556 and opens Viser. _viser adds a viewer while keeping the SONIC stream active. For a viewer without a publisher, use the first example in humanoid teleoperation.

In a second terminal, launch simulation:

shell
bash scripts/tools/launch_sonic_sim.sh

In the deployment pane, press ], then Enter, to start the policy. The script creates a sonic_sim tmux session and replaces an existing session with that name.

Connect a real G1

After validating the retargeted motion and preparing the robot deployment stack, run this from its gear_sonic_deploy directory on the robot:

shell
bash deploy.sh real --input-type zmq \
-    --zmq-host <WORKSTATION_IP> --zmq-port 5556 --zmq-topic pose

This selects real robot deployment. Use the deployment controls and physical emergency stop described by your G1 setup. The workstation must run a SONIC preset and be reachable on port 5556.

What the stream contains

SonicTarget receives a BasePoseQPosCommand, estimates and smooths joint velocities, and converts 29 joint positions and velocities from G1 URDF order to SONIC order. It sends the root quaternion and joint data on topic pose; root translation is omitted.

The default publisher binds tcp://*:5556. Live Axis Studio, PICO, and dual Inspire hand workflows are covered in humanoid teleoperation.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/hand-optimization/index.html b/docs/retargetingkit/hand-optimization/index.html deleted file mode 100644 index 411498c..0000000 --- a/docs/retargetingkit/hand-optimization/index.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - Hand Retargeting · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Hand Retargeting

-
Tracked hand retargeted to an xArm7 and XHandHand-object contact refinement in Viser
Hand motion on a robot assembly.Hand-object contact refinement.

Map human hand motion to robot joint positions with RoboKit's online or offline optimization. Start with a recorded example, then connect a Manus glove or Apple Vision Pro.

How Retargeting Works

A source supplies hand keypoints. The optimization retargeter matches them to a robot hand while respecting its joints and, when configured, object contact. Online solving handles one frame at a time; offline solving optimizes a trajectory. Both produce joint positions in the robot's URDF order.

Try a recording

From the RetargetingKit checkout, run:

shell
uv run --extra vis python -m retargetingkit.examples.hand_optimization.01_online

Open the Viser address printed in the terminal. The example replays hand motion and shows the retargeted robot without connecting hardware. Required assets download on first use. Press Ctrl+C to stop.

Use the Python API

Build a rig's retargeter and pass it one HandFrame per update:

python
from retargetingkit.configs.teleop.hand.manus_sharpa import RIGHT_MANUS_SHARPA_CONFIG
-
-retargeter = RIGHT_MANUS_SHARPA_CONFIG.retargeter.build(device)
-
-for frame in stream:  # HandFrame: right-hand MANO-21 keypoints
-    command = retargeter.solve(frame)
-    qpos = command.qpos  # (22,), Sharpa joints in URDF order

Preview live motion

Complete the source setup first. For a right Manus glove and XHand:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \
-    manus_xhand --mode viser

The live runtime defaults to cuda:0. Select an available GPU with CUDA_VISIBLE_DEVICES before launching, or pass --device cpu for optimization on CPU.

Optimization rigSourceRobot hand
manus_xhandManusXHand
manus_sharpaManusSharpa Wave
visionpro_xhandVision ProXHand
visionpro_sharpaVision ProSharpa Wave

Inspect a preset's device settings with uv run scripts/teleop/hand.py manus_xhand --help. Vision Pro requires the vision-pro extra.

Connect the robot

After checking motion in the viewer, configure the matching XHand or Sharpa target.

ModeBehavior
viserPreview only; the robot target is not opened. This is the default.
realConnect and command the physical hand.
bothCommand the physical hand and show Viser.

For example, manus_xhand --mode both --target.serial-port /dev/ttyUSB0 enables XHand hardware alongside the preview.

Work with trajectories

Use the packaged examples to inspect solver construction and array shapes:

Module under retargetingkit.examples.hand_optimizationTask
01_onlineRetarget one stream frame by frame
02_offlineOptimize one recorded trajectory
03_batchOptimize several trajectories together
04_armRetarget an arm and hand together
05_online_batchRetarget several arm-hand streams online

Run any module with uv run --extra vis python -m <MODULE>. Robot outputs use URDF joint order. Online inputs have shape (K, 3) or (B, K, 3), with points ordered by spec.target_names; offline inputs add a time axis.

Inspect object contact

Browse DexYCB recordings with an xArm7–XHand or xArm7–Ability assembly and compare contact refinement in the viewer:

shell
uv run --extra vis python -m retargetingkit.gallery.hand_contact

For learned inference, including the supported live manus_sharpa_neural rig, continue with neural hand retargeting.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/humanoid-retargeting/index.html b/docs/retargetingkit/humanoid-retargeting/index.html deleted file mode 100644 index 65f04fb..0000000 --- a/docs/retargetingkit/humanoid-retargeting/index.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - Humanoid Retargeting · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Humanoid Retargeting

-
Human motion retargeted to a G1 in ViserHumanoid adapting motion to terrain in Viser
Human motion mapped to a humanoid.Humanoid motion on terrain.

Map recorded or live body motion to G1 at 50 Hz. The runtime sends robot root pose and joint positions to its configured targets; the SONIC target derives joint velocities for whole-body control.

How Retargeting Works

A body source returns named joint poses in a BodyFrame. The humanoid retargeter maps them to G1 links and solves a base pose plus joint positions. A Viser target displays the command; a SONIC target publishes it for whole-body control.

Preview recorded motion

Start with the packaged example, which opens a Viser preview without a SONIC publisher:

shell
uv run --extra vis python -m retargetingkit.examples.humanoid.01_online

Open the printed viewer address. Required assets download on first use; press Ctrl+C to stop.

Use the Python API

Build the G1 retargeter and pass it one BodyFrame per update:

python
from retargetingkit.retargeting.humanoid.online import HumanoidRetargeterConfig
-from retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned
-
-retargeter = HumanoidRetargeterConfig(g1_aligned).build(device)
-
-command = retargeter.solve(frame)  # BodyFrame: named world-frame joint poses
-base_pose = command.base_pose  # (7,), [x, y, z, qw, qx, qy, qz]
-qpos = command.qpos  # (29,), G1 joints in URDF order

Publish to SONIC

The bundled BVH preset needs no tracking device:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser

Every named humanoid preset publishes to SONIC on port 5556. The _viser suffix adds visualization of the same motion; it does not disable SONIC. Run a single publisher on that port. The live runtime defaults to cuda:0; select an available GPU with CUDA_VISIBLE_DEVICES, or set --device cpu.

Override a recording and performer height:

shell
uv run --extra vis scripts/teleop/humanoid.py bvh_g1_sonic_viser \
-    --source.path /path/to/motion.bvh --source.human-height 1.80

Choose a live source

Complete Axis Studio or PICO setup before starting its rig.

shell
uv run --extra axis --extra vis scripts/teleop/humanoid.py \
-    axisstudio_g1_sonic_viser --source.port 7012 --source.human-height 1.75
-
-uv run --extra pico --extra vis scripts/teleop/humanoid.py \
-    pico_g1_sonic_viser --source.no-use-ankle-as-foot-target

The PICO override uses tracked foot poses instead of substituting ankle poses. For a PICO recording, use picofile_g1_sonic_viser --source.path /path/to/recording.npz. Remove _viser from these preset names to publish without a viewer.

Use uv run scripts/teleop/humanoid.py <RIG> --help to inspect all overrides.

Control both Inspire hands

This combined rig opens one PICO connection, publishes G1 motion to SONIC, and connects both physical Inspire hands. It has no preview mode.

shell
uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \
-    pico_g1_inspire --source.no-use-ankle-as-foot-target \
-    --left-hand.serial-port /dev/ttyUSB0 \
-    --right-hand.serial-port /dev/ttyUSB1

B toggles the right hand between open and closed; Y toggles the left. These are preset poses, not continuous finger tracking. See Inspire Hand for the serial connection.

Run G1 in simulation

Configure the deployment checkout described in G1 and SONIC, then start a SONIC rig and launch:

shell
bash scripts/tools/launch_sonic_sim.sh

The launcher opens MuJoCo and deployment in a tmux session. In the deployment pane, press ], then Enter, to start the policy. The G1 target guide also covers connection to a real robot.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/index.html b/docs/retargetingkit/index.html deleted file mode 100644 index 7113329..0000000 --- a/docs/retargetingkit/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - RetargetingKit docs · OpenRoboKit - - - - -Continue to the documentation - diff --git a/docs/retargetingkit/inspire/index.html b/docs/retargetingkit/inspire/index.html deleted file mode 100644 index d216d68..0000000 --- a/docs/retargetingkit/inspire/index.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Inspire Hand · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

Inspire Hand

-

Control six actuated finger joints over USB serial. The driver converts URDF radians to Inspire's serial joint order and normalized position range.

Connect

Connect the serial adapter and give your user access to its device port. On Linux this commonly requires membership in dialout; log out and back in after changing groups.

shell
uv sync --extra inspire

The combined G1 preset uses /dev/ttyUSB0 for the left hand and /dev/ttyUSB1 for the right, both at 115200 baud with hand ID 1. Confirm the actual ports before connecting.

Use the driver

python
from retargetingkit.targets.hands.inspire import InspireHandConfig
-
-hand = InspireHandConfig("/dev/ttyUSB0", 1, 115200).build()
-qpos = hand.get_qpos()  # (6,), URDF radians
-hand.close()

Construction opens the serial connection and starts a background reader. Commands begin after the first hand.set_qpos(target_qpos) call; feedback updates asynchronously.

Joint order is thumb rotation, thumb bend, index, middle, ring, and little finger. Use hand.joint_names when aligning a robot model.

Teleoperate with PICO

After completing PICO setup, run:

shell
uv run --extra pico --extra inspire scripts/teleop/humanoid_hand.py \
-    pico_g1_inspire --source.no-use-ankle-as-foot-target \
-    --left-hand.serial-port /dev/ttyUSB0 \
-    --right-hand.serial-port /dev/ttyUSB1

This connects both physical hands and publishes body motion to SONIC. B toggles the right hand open/closed; Y toggles the left. The rig has no preview mode and uses preset hand poses rather than tracked fingers.

For continuous Vision Pro arm-hand control, use the visionpro_xarm7_inspire rig described in Vision Pro. For G1 deployment, follow humanoid teleoperation.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/install/index.html b/docs/retargetingkit/install/index.html deleted file mode 100644 index 168156c..0000000 --- a/docs/retargetingkit/install/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Installation · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Installation

-

RetargetingKit needs Python 3.10 or newer.

shell
uv add retargetingkit
shell
pip install retargetingkit

From source

shell
uv add git+https://github.com/openrobokit/retargetingkit.git
shell
pip install git+https://github.com/openrobokit/retargetingkit.git

To work on RetargetingKit itself, clone the repository and run uv sync. See the Development Guide.

Extras

ExtraWhat it adds
visBrowser galleries and Viser previews.
contactHand-object contact examples.
vision-pro, pico, manus, axisLive motion sources; see Sources.
xarm, inspire, abilityPhysical arm and hand targets; see Targets.
realsenseRealSense camera source.
rby1, dexmateHumanoid hardware connections.

The pico, manus, and axis extras use wheels from a separate index:

shell
uv add "retargetingkit[manus]" --index https://jianglongye.github.io/torch_packages_builder
shell
pip install "retargetingkit[manus]" --extra-index-url https://jianglongye.github.io/torch_packages_builder

See Assets, then start with the Quickstart.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/manus/index.html b/docs/retargetingkit/manus/index.html deleted file mode 100644 index 2907569..0000000 --- a/docs/retargetingkit/manus/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Manus · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

Manus

-

Use Manus gloves for hand tracking and optimization-based retargeting to XHand or Sharpa Wave. ManusSource converts each 25-node glove skeleton to a wrist-local MANO-21 HandFrame.

Connect the gloves

Connect the gloves through the Manus host software, then install the SDK runtime and viewer from the RetargetingKit repository:

shell
uv sync --extra manus --extra vis

Preview both raw skeletons:

shell
uv run --extra manus --extra vis \
-    scripts/sources/manus/visualize_keypoints.py --side both

Open http://localhost:8080 and flex each hand to check its 25-node skeleton. The utility detects sides from glove metadata. If detection is ambiguous, pass --manus-left-id or --manus-right-id with a decimal or 0x glove ID.

Preview retargeting

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra manus --extra vis \
-    scripts/teleop/hand.py manus_xhand --mode viser

Use manus_sharpa for Sharpa Wave. These named rigs use online optimization and default to the right hand. Select --mode both for hardware plus Viser or --mode real for hardware only. Set --target.serial-port for XHand or --target.device-sn for Sharpa.

Manus currently supplies hand motion only and is not a source for humanoid_hand.py.

Record poses

Capture one frame per Enter press; type q and press Enter to save and finish:

shell
uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \
-    --hand right --output recording.npz

For a finite continuous recording, set the frame count and rate:

shell
uv run --extra manus --extra vis scripts/sources/manus/record_glove.py \
-    --hand right --no-viz --frames 300 --rate 30 \
-    --output manus_recording.npz

Use --hand left or --hand both to change the recorded sides. The preview applies glove calibration; the NPZ preserves raw SDK positions and rotations.

Recording format

Every field begins with left_ or right_ for its saved side. Positions are meters in the SDK's requested right-handed, Z-up coordinate system viewed along X (unitScale=1.0).

Field suffixShapedtypeMeaning
positions(N, 25, 3)float32Raw node positions
rotations(N, 25, 4)float32Raw quaternions in xyzw order
publish_time(N,)uint64Compressed SDK timestamp
recv_ns(N,)int64Host monotonic time at callback receipt
timestamps(N,)float64Seconds since recording start
glove_id(N,)uint32Hardware glove ID
side_code(N,)int32Side enum: 1 left, 2 right

Node ranges are wrist 0, thumb 1–4, index 5–9, middle 10–14, ring 15–19, and little finger 20–24. Each non-thumb finger runs from metacarpal through knuckle and two intermediate joints to the tip.

Treat publish_time as the opaque ManusTimestamp, not Unix time. Use recv_ns for timing intervals within one process run.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/neural-hand/index.html b/docs/retargetingkit/neural-hand/index.html deleted file mode 100644 index ca4d5fd..0000000 --- a/docs/retargetingkit/neural-hand/index.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Neural Hand Retargeting · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Neural Hand Retargeting

-

Neural hand inference in the interactive gallery

Train a model for one robot hand, then map wrist-local MANO-21 keypoints to joint positions in URDF order. Curated checkpoints support Allegro, Sharpa Wave, and XHand.

How Inference Works

The source returns a HandFrame; the selected checkpoint maps its wrist-local keypoints to a QPosCommand. A checkpoint belongs to one robot hand, so choose the matching hand and model before connecting a target.

Try a trained model

Run the gallery from the RetargetingKit checkout:

shell
uv run --extra vis python -m retargetingkit.gallery.hand_neural

Open the printed Viser address to choose a hand and checkpoint. The selected model downloads on first use and is cached. These commands default to CUDA; select an available GPU with CUDA_VISIBLE_DEVICES, or use --device cpu.

Use the Python API

Load a named checkpoint for its hand and pass it one HandFrame per update:

python
from retargetingkit.retargeting.hand.neural import NeuralHandAssetRetargeterConfig
-from retargetingkit.retargeting.hand.presets import HANDS
-
-config = NeuralHandAssetRetargeterConfig("sharpa_motion_alignment", HANDS["sharpa"])
-retargeter = config.build(device)
-
-for frame in stream:  # HandFrame: right-hand MANO-21 keypoints
-    command = retargeter.solve(frame)
-    qpos = command.qpos  # (22,), Sharpa joint angles

With a configured Manus glove, preview live Sharpa inference:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \
-    manus_sharpa_neural --mode viser

This preset loads sharpa_motion_alignment_contact_inhand. Set --mode real or --mode both to connect and command a physical Sharpa hand.

Train a recipe

Five training recipes live in scripts/teleop/neural_hand/configs/training/:

HandRecipe filename
Allegroallegro_motion_alignment.yaml
XHandxhand_motion_alignment.yaml
Sharpasharpa_motion_alignment.yaml
Sharpa with contact datasharpa_motion_alignment_contact.yaml
Sharpa with in-hand contact datasharpa_motion_alignment_contact_inhand.yaml

For example:

shell
uv run scripts/teleop/neural_hand/train.py \
-    scripts/teleop/neural_hand/configs/training/xhand_motion_alignment.yaml

The YAML selects named motion and calibration assets, loss weights, and an output directory. Training writes train.yaml with data provenance and weights.pt to ik_model/xhand_motion_alignment/ for this recipe. The output directory must not already exist; choose a new output path for another run.

Record your own motion

Record the right Manus glove at 30 Hz:

shell
uv run --extra manus --extra vis scripts/teleop/neural_hand/record_motion.py \
-    --output motion.npz

Press Enter to start, then Enter again to stop and save. Add --no-viz to record without a viewer. To use this recording for training, register it as a named asset in retargetingkit.assets.calib and reference that name under data.unsupervised in your YAML.

Replay the recording through your trained model:

shell
uv run --extra vis scripts/teleop/neural_hand/visualize.py xhand \
-    --checkpoints ik_model/xhand_motion_alignment --data motion.npz

Add contact supervision

The Sharpa contact workflow generates candidate YCB grasps, then captures matching human poses:

shell
uv run --extra contact scripts/teleop/neural_hand/contact_generate.py \
-    scripts/teleop/neural_hand/configs/contact/sharpa_ycb_contact.yaml
-
-uv run --extra contact --extra manus --extra vis \
-    scripts/teleop/neural_hand/contact_capture.py \
-    --specs sharpa_grasp.npz --output training_data.npz

Use the capture viewer to record, skip, and save samples. Register the result as a calibration asset and reference it under data.contact in a training YAML.

For paired human/robot measurements, record_pairs.py supports Manus and Sharpa. It starts in neural control mode and commands the physical hand; t toggles teaching mode, c captures a pair, and q saves and exits.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/overview/index.html b/docs/retargetingkit/overview/index.html deleted file mode 100644 index ddd83c9..0000000 --- a/docs/retargetingkit/overview/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - Overview · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Overview

-

RetargetingKit

Dexterous hand and humanoid motion

RetargetingKit maps human motion to robot hands, arms, and humanoids. It combines RoboKit optimization with neural hand models for recorded motion and real-time teleoperation.

Key features

  • One pipeline. Sources produce canonical motion frames; retargeters produce robot commands; targets preview or execute them.
  • Hands and bodies. Solve finger motion, wrist poses, humanoid motion, and combined body-and-hand interactions.
  • Optimization + neural. Choose geometry-aware optimization or trained hand inference for the task.
  • Recorded or live. Retarget clips in parallel or drive robots from VR, gloves, and motion capture.

How it works

flowchart LR - Source["`Source - *VR · gloves · mocap · recordings*`"] - Retargeter["`Retargeter - *Optimization + Neural*`"] - Target["`Target - *Viser · robot hardware*`"] - Source -- "Frame: hand · arm · body" --> Retargeter - Retargeter -- "Command: joints · base pose" --> Target - classDef endpoint fill:#dbeafe,stroke:#2563eb,color:#111827 - classDef solver fill:#dbc8ea,stroke:#8163a1,stroke-width:2px,color:#111827 - class Source,Target endpoint - class Retargeter solver
ComponentRoleRead more
SourceRead a device or recording.Sources
FrameRepresent human hand, arm, or body motion.Frames
RetargeterMap motion to a robot through optimization or neural inference.Interfaces
CommandCarry robot joints and an optional base pose.Commands
TargetPreview motion or command hardware.Targets

Features

Hand retargetingGeometry-aware hand retargetingReal-time hand teleoperation
Hand retargeting Map tracked hand motion to robot joints.Geometry-aware hand retargeting Refine hands against object geometry.Real-time hand teleoperation Drive a robot hand from live tracking.
Humanoid retargetingGeometry-aware humanoid retargetingReal-time humanoid teleoperation
Humanoid retargeting Map captured body motion to humanoids.Geometry-aware humanoid retargeting Account for terrain and contact.Real-time humanoid teleoperation Drive a humanoid from live motion.
Full-body retargetingGeometry-aware full-body retargetingReal-time full-body teleoperation
Full-body retargeting Combine body and hand motion.Geometry-aware full-body retargeting Preserve scene and object interactions.Real-time full-body teleoperation Drive body and hands together.
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/pico/index.html b/docs/retargetingkit/pico/index.html deleted file mode 100644 index 55e793b..0000000 --- a/docs/retargetingkit/pico/index.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - PICO · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

PICO

-

XRoboToolkit full-body settings. Use your workstation IP; the screenshot shows an example.

Use PICO full-body tracking through XRoboToolkit to retarget a 24-joint body to Unitree G1. Record sessions for offline replay, or use controller buttons to open and close two Inspire hands alongside body motion.

PicoSource converts the SDK's Y-up poses to a canonical Z-up BodyFrame. The combined body-and-hands runtime uses B and Y buttons for the hands.

Connect XRoboToolkit

Install XRoboToolkit PC Service, then install the pinned Python SDK from the RetargetingKit repository:

shell
uv sync --extra pico

Start one foreground service and leave its terminal open. For the standard /opt/apps/roboticsservice installation:

shell
cd /opt/apps/roboticsservice
-env \
-  LD_LIBRARY_PATH=/opt/apps/roboticsservice:/opt/apps/roboticsservice/lib:/opt/apps/roboticsservice/SDK/x64 \
-  QT_PLUGIN_PATH=/opt/apps/roboticsservice/plugins \
-  QT_QML_PATH=/opt/apps/roboticsservice/qml \
-  ./RoboticsServiceProcess

Connect the workstation and PICO to the same Wi-Fi. In the headset's XRoboToolkit app, enter the workstation's Wi-Fi IPv4 address under PC Service, select Reconnect once, and apply these settings:

SettingValue
Head, Controller, HandChecked
ModeFullbody
High-AccUnchecked
Num2
SendChecked
Switch w/ A ButtonUnchecked
Data Collection: Tracking, VisionUnchecked

Network Status should show WORKING. Any IP shown in a reference image is an example; enter your workstation's address.

Check body tracking

In a second terminal, return to the RetargetingKit repository and run:

shell
uv run --extra pico scripts/sources/pico/smoke_test.py --duration 5

Move your body during the test. It prints pelvis motion and a final 24-joint snapshot. If all poses remain frozen, fully close XRoboToolkit, recalibrate both trackers in the PICO Motion Tracker app, check that its avatar moves, and reopen XRoboToolkit.

Preview G1

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra pico --extra vis \
-    scripts/teleop/humanoid.py pico_g1_sonic_viser \
-    --source.no-use-ankle-as-foot-target --device cuda:0

Open http://localhost:8080 to see G1 follow your motion. This rig also publishes to SONIC, but the preview runs without a SONIC process or physical robot hands.

Keep --source.no-use-ankle-as-foot-target: the PICO G1 profile is calibrated for PICO's separate foot joints, while the named presets still default to ankle targets. Set --source.human-height to the user's height in meters; the default is 1.75.

Record and replay

Record a 15-second body session:

shell
uv run --extra pico scripts/sources/pico/record.py \
-    --duration 15 --rate 50 --out pico_recording.npz

Replay it without a headset:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vis \
-    scripts/teleop/humanoid.py picofile_g1_sonic_viser \
-    --source.path pico_recording.npz \
-    --source.no-use-ankle-as-foot-target

The NPZ stores raw poses as (N, 24, 7) float32, timestamps_s as seconds since recording start, and JSON metadata with measured frame rate and joint names.

Control body and hands

For G1 with two connected Inspire hands:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra pico --extra inspire \
-    scripts/teleop/humanoid_hand.py pico_g1_inspire \
-    --source.no-use-ankle-as-foot-target \
-    --left-hand.serial-port <LEFT_PORT> \
-    --right-hand.serial-port <RIGHT_PORT>

Press B to toggle the right hand or Y to toggle the left hand between open and closed. This runtime uses button commands, not the PICO hand skeleton. It publishes body commands to SONIC; see humanoid teleoperation for simulation and G1 deployment. Press Ctrl-C to stop.

Tracking format

The validated setup is PICO 4 Ultra with XRoboToolkit App 1.1.1, PC Service 1.0.0, and Python SDK 1.0.2. The wrapper converts arrays to finite float32 values.

DataShapeFormat
Headset or controller pose(7,)[x, y, z, qx, qy, qz, qw]; Y-up world, meters
Body poses(24, 7)24 SMPL joints; same pose format
Body velocity or acceleration(24, 6)Linear XYZ followed by angular XYZ
Active hand poses(27, 7)27 joints per hand
Joystick(2,)X/Y values
Motion Tracker pose(7,) per trackerAvailable in object-tracking mode

Fullbody mode sends the inferred body skeleton rather than raw Motion Tracker poses. The SDK device timestamp is an integer count of nanoseconds.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/pipeline/index.html b/docs/retargetingkit/pipeline/index.html deleted file mode 100644 index 6ed1e24..0000000 --- a/docs/retargetingkit/pipeline/index.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - Pipeline · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Pipeline

-

RetargetingKit connects a motion source, a retargeter, and one or more targets. RoboKit provides the robot models and optimization tools used by the solvers.

flowchart TD - accTitle: RetargetingKit framework - accDescr: Sources provide hand, arm, or body frames. Hand optimization, neural hand inference, and arm IK produce joint commands. Humanoid retargeting produces a base pose and joint command. Targets display the motion or send it to robot hardware and SONIC. - - SOURCE["Sources<br/>VR · gloves · mocap · recordings"] - HAND["HandFrame<br/>MANO-21 keypoints"] - ARM["ArmFrame<br/>World wrist poses"] - BODY["BodyFrame<br/>Named joint poses"] - OPT["Hand<br/>optimization"] - NEURAL["Neural hand<br/>inference"] - IK["Arm IK"] - HUMANOID["Humanoid<br/>retargeting"] - JOINTS["QPosCommand<br/>Joint positions"] - BASE["BasePoseQPosCommand<br/>Base pose + joints"] - ROBOT["Hand / arm targets<br/>Hardware · Viser"] - BODY_TARGET["Humanoid targets<br/>Viser · SONIC transport"] - - SOURCE --> HAND - SOURCE --> ARM - SOURCE --> BODY - HAND --> OPT - HAND --> NEURAL - ARM --> IK - BODY --> HUMANOID - OPT --> JOINTS - NEURAL --> JOINTS - IK --> JOINTS - HUMANOID --> BASE - JOINTS --> ROBOT - BASE --> BODY_TARGET - - class SOURCE framework-source

On narrow screens, scroll horizontally to read the full diagram.

ArmHandFrame synchronizes wrist and finger observations from one source; the runtime sends its arm and hand frames through their respective solvers. SONIC forwards humanoid commands to a separate control process for simulation or G1 hardware.

Three stages

StageResponsibilityExamples
SourceConvert device data or a recording into a canonical frameVision Pro, Manus, PICO, BVH
RetargeterMap human motion to robot jointsArm IK, hand optimization, neural hand, humanoid
TargetDisplay or send the resultViser, robot hardware, SONIC transport

A named rig supplies the matching source, solver, robot, and connection settings. The runtime builds them and runs the control loop. Start with a named rig for a complete workflow.

The diagram covers the canonical retargeting paths. Quest 3 has a standalone controller workflow. The PICO body-and-hands rig adds B/Y button commands for Inspire hand opening and closing alongside the body retargeter.

Shared data

Frames describe human motion. Commands describe a single solved robot pose. The source handles device axes and joint ordering before a retargeter receives the frame.

Hands use wrist-local MANO-21 keypoints; arms use world-frame wrist poses; bodies use named joint poses in a Z-up world frame. See Canonical frames for shapes and units.

One loop

For an initialized hand source, matching retargeter, and joint-position target:

python
frame = source.get_frame()
-if frame is not None:
-    command = retargeter.solve(frame)
-    target.set_qpos(command.qpos)

Humanoid runtimes call target.set_command(command) so the target receives the base pose together with the joints. The runtime also owns startup and cleanup; the snippet shows only one update.

See Interfaces to build a custom pipeline, or RoboKit's robot model for the underlying kinematics.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/protocols/index.html b/docs/retargetingkit/protocols/index.html deleted file mode 100644 index 626ae5e..0000000 --- a/docs/retargetingkit/protocols/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Interfaces · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Interfaces

-

Each pipeline stage has a runtime interface and a configuration object that builds it. Named rigs compose those configurations for a supported source and robot.

Contracts

ConfigurationBuildsRuntime method
SourceConfigSourceget_frame() returns a frame, or None before data arrives
RetargeterConfigRetargetersolve(frame) returns a robot command
TargetConfigTargetset_qpos(qpos) or set_command(command), depending on the target

Call source_config.build() and target_config.build() to start those components. retargeter_config.build(device) constructs and warms up the solver on the selected device.

Match the frame and command

RetargeterInputOutput
OptimizationHandRetargeterHandFrameQPosCommand
NeuralHandRetargeterHandFrameQPosCommand
ArmRetargeterArmFrameQPosCommand
HumanoidRetargeterBodyFrameBasePoseQPosCommand

Target declares both update methods, but concrete targets implement the methods they support. Use the method expected by the selected runtime; passing only joints to a humanoid target would lose its base pose.

Lifecycle

A runtime builds the components, reads frames, solves, and updates its targets. It calls close() on sources and targets when stopping. See Teleoperation for entrypoints and overrides, and Commands and targets for the API contracts.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/quest3/index.html b/docs/retargetingkit/quest3/index.html deleted file mode 100644 index 0d394c7..0000000 --- a/docs/retargetingkit/quest3/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Quest 3 · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

Quest 3

-

CloudXR Web Client: enter the workstation IP, accept its certificate, then connect.

Use Quest 3 controllers to move one or two xArm6 or xArm7 end effectors. Tracking comes through NVIDIA Isaac Teleop and CloudXR. The standalone playground supports a Viser preview, controller calibration, and hardware control.

Connect CloudXR

From the RetargetingKit repository, install the playground dependencies and Isaac Teleop:

shell
uv sync --extra vis --extra xarm
-uv pip install "isaacteleop[cloudxr,retargeters]~=1.0.0" \
-    --extra-index-url https://pypi.nvidia.com

Start CloudXR, then load its environment in the terminal used for teleoperation:

shell
uv run --no-sync python -m isaacteleop.cloudxr --accept-eula
-. ~/.cloudxr/run/cloudxr.env

The commands on this page use --no-sync to keep the installed Isaac Teleop environment. If a firewall is active, allow the CloudXR ports:

shell
sudo ufw allow 47998/udp
-sudo ufw allow 49100,48322/tcp

Open the Isaac Teleop WebXR client in the headset browser. Enter the workstation IP, accept its generated certificate, and select Connect, then Play.

CloudXR confirms that the certificate was accepted.

Check tracking

shell
uv run --no-sync python scripts/sources/quest3/stream.py --side both

Move each controller and check that its position and orientation change. Output includes XYZ position and a quaternion in wxyz order; invalid means that controller is not tracked. Use --side right or --side left to inspect one controller.

Preview an arm

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \
-    --mode single --single-side right --visualize

Open http://localhost:8080. Align the controller with the displayed end effector, then press B to calibrate and start following your motion. The default translation scale is 0.50.

Controller actionRightLeft
Calibrate; then pause or resumeBY
Return to the calibrated poseAX

Connect xArm hardware

Run a single xArm7:

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \
-    --mode single --single-side right \
-    --arm-ip <XARM_IP> --translation-scale 0.50

For two arms, set both xArm IPs:

shell
uv run --no-sync python scripts/sources/quest3/teleop.py \
-    --mode bimanual \
-    --right-xarm-ip <RIGHT_IP> --left-xarm-ip <LEFT_IP> \
-    --translation-scale 0.50

Use --arm xarm6 to select xArm6. Each arm moves to its home pose during startup; calibrate its controller afterward. Press Ctrl-C to stop. Quest uses this standalone script rather than a named rig under scripts/teleop/.

Keep the headset awake

Open Device Settings & Tools in SideQuest.

Disable the proximity sensor for an uninterrupted session.

For long sessions, enable developer mode, connect SideQuest over USB, and disable the proximity sensor in Device Settings & Tools.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/quickstart/index.html b/docs/retargetingkit/quickstart/index.html deleted file mode 100644 index c6a90de..0000000 --- a/docs/retargetingkit/quickstart/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Quickstart · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Quickstart

-

Try it without installing

Choose a free GPU and set CUDA_VISIBLE_DEVICES. Then run the interactive hand gallery without installing RetargetingKit:

shell
uvx --from 'retargetingkit[vis]' \
-    python -m retargetingkit.gallery.hand_retargeting

Open the Viser URL printed in the terminal. Select a robot and motion, then play or scrub the result. Replace hand_retargeting with any gallery below. Each preview records that gallery's Viser scene.

Hand retargeting in ViserNeural hand retargeting in ViserHand contact retargeting in Viser
hand_retargeting Retarget tracked hands.hand_neural Compare neural hand models.hand_contact Refine hand-object contact.
DexMachina hand-object retargeting in ViserGigaHands hand-object retargeting in ViserOakInk2 hand-object retargeting in Viser
hand_object_dexmachina Explore DexMachina interactions.hand_object_gigahands Explore GigaHands interactions.hand_object_oakink2 Explore OakInk2 interactions.
Humanoid retargeting in ViserHumanoid contact retargeting in ViserHumanoid terrain retargeting in Viser
humanoid Browse motions and robot presets.humanoid_contact Retarget object interactions.humanoid_terrain Adapt motion to terrain.
Full-body object interaction in ViserFull-body scene interaction in Viser
full_body_hoi Retarget body and hand interactions.full_body_hsi Retarget body motion in furnished scenes.

To list gallery module names from an installed checkout, run uv run python -m retargetingkit.gallery. Gallery data, robot models, and checkpoints download on first use; complete asset setup first.

Solve one humanoid retargeting problem

After installing, this program maps one frame of the included BVH recording to a Unitree G1 pose on CPU:

python
from retargetingkit.assets.sample_bvh import EXAMPLE_BVH
-from retargetingkit.retargeting.humanoid.online import HumanoidRetargeterConfig
-from retargetingkit.retargeting.humanoid.presets.g1 import g1_aligned
-from retargetingkit.sources.misc.human_frame_file import BodyFileSourceConfig
-
-source = BodyFileSourceConfig(EXAMPLE_BVH, use_ankle_as_foot_target=True).build()
-retargeter = HumanoidRetargeterConfig(g1_aligned).build("cpu")
-command = retargeter.solve(source.get_frame())
-print(command.qpos.shape, command.base_pose.shape)  # (29,) (7,)
-source.close()

The source produces a BodyFrame; the retargeter returns G1 joint positions and a floating-base pose.

More examples

Galleries are interactive demos. For code to copy, open a runnable script below. Paths are relative to src/retargetingkit/examples.

DirectoryScripts
hand_optimization01_online.py, 02_offline.py, 03_batch.py, 04_arm.py, 05_online_batch.py, 06_dexycb_online.py
hand_neural02_batch.py
humanoid01_online.py, 02_collision.py, 03_self_collision.py, 04_offline.py, 05_batch.py, 06_online_batch.py, 07_contact.py
full_body01_hoi.py, 02_hsi.py

Example usage:

shell
uv run --extra vis src/retargetingkit/examples/humanoid/01_online.py
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/rby1/index.html b/docs/retargetingkit/rby1/index.html deleted file mode 100644 index 2382650..0000000 --- a/docs/retargetingkit/rby1/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - RBY1-A · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

RBY1-A

-

Control the RBY1-A's seven-joint right arm through the Rainbow Robotics SDK, with separate commands for the two-joint head. This is a standalone driver; no named teleoperation rig is currently registered.

Connect

Find the robot's gRPC address in its control panel, then install:

shell
uv sync --extra rby1

Use the complete address, including the port, such as <RBY1_IP>:50051.

Use the driver

Building the driver powers on the robot, enables servos and the control manager, and starts a command stream. This snippet holds the measured right-arm pose:

python
from retargetingkit.targets.humanoids.rby1 import RBY1AConfig, RBY1AMode
-
-arm = RBY1AConfig("<RBY1_IP>:50051", mode=RBY1AMode.VELOCITY).build()
-target_qpos = arm.get_qpos()  # (7,), radians
-arm.set_qpos(target_qpos)
-arm.close()

Replace target_qpos with the desired right-arm joint positions. get_head_qpos() and set_head_qpos() expose the head separately. Close the driver with close().

ModeBehavior
VELOCITYDefault; converts position error to a smoothed command
SERVOStreams position targets with a velocity limit
TEACHINGEnables right-arm gravity compensation

The background loop runs at 100 Hz by default. Head position commands remain active in all three modes.

Inspect feedback

shell
uv run --extra rby1 scripts/targets/rby1/read_qpos.py \
-    --ip <RBY1_IP>:50051

This script starts the same active controller, including power and servo enable. It prints feedback while holding the initial pose; it is not a passive state reader.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/realsense/index.html b/docs/retargetingkit/realsense/index.html deleted file mode 100644 index bce5fc8..0000000 --- a/docs/retargetingkit/realsense/index.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - RealSense · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

RealSense

-

Capture aligned RGB-D frames with Realsense. The driver runs in a background process and exposes BGR color, raw depth, and camera intrinsics. L515 is the tested model; this camera driver is separate from the canonical teleoperation sources.

Check the camera

From the RetargetingKit repository:

shell
uv sync --extra realsense
-uv run --extra realsense python scripts/sources/realsense/print_intrinsics.py
-uv run --extra realsense --with opencv-python \
-    python scripts/sources/realsense/stream_rgbd.py

The intrinsics script prints image resolution, focal lengths, principal point, and depth scale. The viewer shows color beside a depth visualization; press Escape to close it.

The driver uses the first connected camera by default. Run rs-enumerate-devices to find a serial number, then pass --serial-number <SERIAL> to either script. The realsense extra pins pyrealsense2<2.55 for L515 depth-stream compatibility.

Read frames in Python

python
from retargetingkit.sources.cameras.realsense import Realsense, RealsenseConfig
-
-camera = Realsense(RealsenseConfig())
-camera.start()
-color = camera.get_color()          # (H, W, 3), uint8 BGR
-depth = camera.get_depth()          # (H, W), uint16 sensor units
-intrinsics = camera.get_intrinsics()
-depth_meters = depth * intrinsics[6]
-camera.stop()

intrinsics is [fx, fy, ppx, ppy, height, width, depth_scale]. Frames align to the color stream by default; set RealsenseConfig(align_to="depth") to align to depth. start() waits for the first captured frames.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-arm/index.html b/docs/retargetingkit/ref-arm/index.html deleted file mode 100644 index 4d827ff..0000000 --- a/docs/retargetingkit/ref-arm/index.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - Arm retargeter API · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Arm retargeter API

-

The arm retargeter maps world-frame wrist poses in an ArmFrame to arm joint positions. See Arm retargeting for usage.

-
- -
retargetingkit.retargeting.retargeter.RetargeterConfig
-
Bases: ABC, Generic[FrameT, CommandT]
-
-

Retargeter blueprint; configs live next to their solver and feed retargetingkit.configs.teleop rig presets.

Members
-
-
method[source]
-
RetargeterConfig.build(
-
device: str
) -> Retargeter[FrameT, CommandT]
-
-

Construct and warm up the retargeter.

Parameters
-
devicestrrequired
-
-
Returns
Retargeter[FrameT, CommandT]
-
-
-
- -
retargetingkit.retargeting.arm.online.ArmRetargeterConfig(
-
urdf: Path,
ee_link: str,
home_qpos: tuple[float, ...],
side: Side,
translation_scale: float = 1.5,
ee_gain: float = 1.0
)
Bases: RetargeterConfig[ArmFrame, QPosCommand]
-
-

One human wrist mapped onto one robot arm.

python
>>> ArmRetargeterConfig(Path("arm.urdf"), "link_eef", (0.0,), "right").translation_scale
-1.5
Parameters
-
urdfPathrequired
-
-
-
ee_linkstrrequired
-
-
-
home_qpostuple[float, ...]required
-
-
-
sideSiderequired
-
-
-
translation_scalefloat= 1.5
-
-
-
ee_gainfloat= 1.0
-
-
Members
-
-
attribute[source]
-
ArmRetargeterConfig.urdf: Path
- -
- -
-
-
attribute[source]
-
ArmRetargeterConfig.home_qpos: tuple[float, ...]
- -
- -
-
-
attribute[source]
-
ArmRetargeterConfig.side: Side
- -
- -
-
-
attribute[source]
-
ArmRetargeterConfig.translation_scale: float = 1.5
- -
- -
-
-
attribute[source]
-
ArmRetargeterConfig.ee_gain: float = 1.0
- -
- -
-
-
method[source]
-
ArmRetargeterConfig.build(
-
device: str
) -> ArmRetargeter
-
-

Build the online arm retargeter.

python
>>> ArmRetargeterConfig(Path("arm.urdf"), "link_eef", (0.0,), "right").build("cpu")  # doctest: +SKIP
Parameters
-
devicestrrequired
-
-
Returns
ArmRetargeter
-
-
-
- -
retargetingkit.retargeting.arm.online.ArmRetargeter(
-
config: ArmRetargeterConfig,
device: str
)
Bases: Retargeter[ArmFrame, QPosCommand]
-
-

One human wrist to one robot arm; the first wrist sample is the calibration origin and maps to the home pose.

python
>>> ArmRetargeter(config, "cpu")  # doctest: +SKIP
Parameters
-
configArmRetargeterConfigrequired
-
-
-
devicestrrequired
-
-
Members
-
-
attribute[source]
-
ArmRetargeter.side: Side
- -
- -
-
-
method[source]
-
ArmRetargeter.wrist_to_ee_pose(
-
initial_ee_pose: np.ndarray,
initial_wrist: np.ndarray,
wrist: np.ndarray,
translation_scale: float
) -> np.ndarray
-
-

Replay the wrist delta since calibration from the home EE pose, scaling translation to robot reach.

python
>>> ee = np.array([1, 2, 3, 1, 0, 0, 0], dtype=np.float32)
->>> identity = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)
->>> ArmRetargeter.wrist_to_ee_pose(ee, identity, identity, 1.5)
-array([1., 2., 3., 1., 0., 0., 0.], dtype=float32)
Parameters
-
initial_ee_posenp.ndarrayrequired
-
-
-
initial_wristnp.ndarrayrequired
-
-
-
wristnp.ndarrayrequired
-
-
-
translation_scalefloatrequired
-
-
Returns
np.ndarray
-
-
-
method[source]
-
ArmRetargeter.smooth_pose7(
-
previous: np.ndarray,
current: np.ndarray,
gain: float
) -> np.ndarray
-
-

EMA-blend two pose7s while keeping quaternions in one hemisphere.

python
>>> previous = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)
->>> current = np.array([1, 0, 0, 1, 0, 0, 0], dtype=np.float32)
->>> ArmRetargeter.smooth_pose7(previous, current, 0.5)
-array([0.5, 0. , 0. , 1. , 0. , 0. , 0. ], dtype=float32)
Parameters
-
previousnp.ndarrayrequired
-
-
-
currentnp.ndarrayrequired
-
-
-
gainfloatrequired
-
-
Returns
np.ndarray
-
-
-
method[source]
-
ArmRetargeter.solve(
-
frame: ArmFrame
) -> QPosCommand
-
-
Parameters
-
frameArmFramerequired
-
-
Returns
QPosCommand
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-assets/index.html b/docs/retargetingkit/ref-assets/index.html deleted file mode 100644 index 05a4430..0000000 --- a/docs/retargetingkit/ref-assets/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - Assets · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Assets

-

Recordings, checkpoints, and robot models download on first use. Importing retargetingkit alone downloads nothing.

Cache

AssetSourceCache
Recordings, calibration, training dataopenrobokit/retargetingkit~/.retargetingkit/assets/<revision>/
Neural checkpointsSame dataset, models/ik_model/Inside the same revision cache
Robot URDFs, meshes, collision and contact dataRoboKit assets~/.robokit/assets/<revision>/
MANO / SMPL-X body modelsLocal model filesROBOKIT_BODY_MODELS or ~/.robokit/body_models/
YCB meshesYCB benchmark S3~/.retargetingkit/ycb/

Resolve an asset

Use named accessors so examples and applications share the same data:

python
from retargetingkit.assets import calib, neural_hand, sample_bvh
-
-calibration = calib.get("manus_calib")
-checkpoint = neural_hand.get("sharpa_motion_alignment_contact_inhand")
-motion = sample_bvh.EXAMPLE_BVH

Robot models come from RoboKit:

python
from robokit.assets.robots.end_effectors import sharpa_hand
-
-urdf = sharpa_hand.URDF_PATH_RIGHT

Pinned revision

retargetingkit.assets.REVISION pins the dataset commit; accessors call robokit.assets.fetch with it, the dataset id, and ~/.retargetingkit. Bump the pin after publishing new data. To download again, delete the matching ~/.retargetingkit/assets/<revision>/.done/ marker.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-frames/index.html b/docs/retargetingkit/ref-frames/index.html deleted file mode 100644 index 06d199e..0000000 --- a/docs/retargetingkit/ref-frames/index.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - Frame API · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Frame API

-

Canonical frames describe one observation. See Canonical frames for units, axes, and joint ordering.

-
- -
retargetingkit.sources.frames.HandPose(
-
positions: Float[np.ndarray, '21 3'],
orientations: Float[np.ndarray, '21 4'] = (lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32))(),
valid: Bool[np.ndarray, 21] = (lambda: np.ones(21, dtype=bool))(),
joint_names: tuple[str, ...] = (lambda: MANO21_JOINTS)()
)
-
-

One hand pose: 21 MANO keypoints, wrist-local, meters; orientations default to identity (vector IK ignores them).

python
>>> import numpy as np
->>> f = HandPose(np.zeros((21, 3), dtype=np.float32))
->>> bool(f.valid.all()) and f.joint_names[MANO21.INDEX_TIP] == "index_tip"
-True
Parameters
-
positionsFloat[np.ndarray, '21 3']required
-
-
-
orientationsFloat[np.ndarray, '21 4']= (lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32))()
-
-
-
validBool[np.ndarray, 21]= (lambda: np.ones(21, dtype=bool))()
-
-
-
joint_namestuple[str, ...]= (lambda: MANO21_JOINTS)()
-
-
Members
-
-
attribute[source]
-
HandPose.positions: Float[np.ndarray, '21 3']
- -
- -
-
-
attribute[source]
-
HandPose.orientations: Float[np.ndarray, '21 4'] = field(default_factory=lambda: np.tile([1.0, 0.0, 0.0, 0.0], (21, 1)).astype(np.float32))
- -
- -
-
-
attribute[source]
-
HandPose.valid: Bool[np.ndarray, 21] = field(default_factory=lambda: np.ones(21, dtype=bool))
- -
- -
-
-
attribute[source]
-
HandPose.joint_names: tuple[str, ...] = field(default_factory=lambda: MANO21_JOINTS)
- -
- -
-
-
- -
retargetingkit.sources.frames.HandFrame(
-
hands: dict[Side, HandPose]
)
Bases: Frame
-
-

Latest left/right hand poses from one physical source.

python
>>> frame = HandFrame({"right": HandPose(np.zeros((21, 3), dtype=np.float32))})
->>> frame.hands["right"].positions.shape
-(21, 3)
Parameters
-
handsdict[Side, HandPose]required
-
-
Members
-
-
attribute[source]
-
HandFrame.hands: dict[Side, HandPose]
- -
- -
-
-
- -
retargetingkit.sources.frames.ArmFrame(
-
wrists: dict[Side, Float[np.ndarray, 7]]
)
Bases: Frame
-
-

World-frame wrist poses used for arm retargeting.

python
>>> frame = ArmFrame({"right": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)})
->>> frame.wrists["right"].shape
-(7,)
Parameters
-
wristsdict[Side, Float[np.ndarray, 7]]required
-
-
Members
-
-
attribute[source]
-
ArmFrame.wrists: dict[Side, Float[np.ndarray, 7]]
- -
- -
-
-
- -
retargetingkit.sources.frames.ArmHandFrame(
-
arm: ArmFrame,
hand: HandFrame
)
Bases: Frame
-
-

Synchronized arm and hand observations from one physical source.

python
>>> arm = ArmFrame({"right": np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.float32)})
->>> hand = HandFrame({"right": HandPose(np.zeros((21, 3), dtype=np.float32))})
->>> ArmHandFrame(arm, hand).arm.wrists["right"].shape
-(7,)
Parameters
-
armArmFramerequired
-
-
-
handHandFramerequired
-
-
Members
-
-
attribute[source]
-
ArmHandFrame.arm: ArmFrame
- -
- -
-
-
attribute[source]
-
ArmHandFrame.hand: HandFrame
- -
- -
-
-
- -
retargetingkit.sources.frames.BodyFrame(
-
joint_names: tuple[str, ...],
transforms: Float[np.ndarray, 'J 7'],
human_height: float
)
Bases: Frame
-
-

Named world-frame body transforms and performer height.

python
>>> frame = BodyFrame(("pelvis",), np.zeros((1, 7), dtype=np.float32), 1.75)
->>> frame.transforms.shape
-(1, 7)
Parameters
-
joint_namestuple[str, ...]required
-
-
-
transformsFloat[np.ndarray, 'J 7']required
-
-
-
human_heightfloatrequired
-
-
Members
-
-
attribute[source]
-
BodyFrame.joint_names: tuple[str, ...]
- -
- -
-
-
attribute[source]
-
BodyFrame.transforms: Float[np.ndarray, 'J 7']
- -
- -
-
-
attribute[source]
-
BodyFrame.human_height: float
- -
- -
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-hand/index.html b/docs/retargetingkit/ref-hand/index.html deleted file mode 100644 index e0e8060..0000000 --- a/docs/retargetingkit/ref-hand/index.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - Hand retargeter API · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Hand retargeter API

-

Hand retargeters consume a canonical HandFrame and return joint positions in the target URDF's order. Choose optimization for per-frame solving or a neural model for a trained mapping.

-
- -
retargetingkit.retargeting.hand.optimization.OptimizationHandRetargeterConfig(
-
urdf: Path,
spec: Annotated[HandSpec, tyro.conf.Suppress],
online: Annotated[HandRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress],
side: Side,
collision_spheres: Path | None = None,
collision_ignore: Path | None = None
)
Bases: RetargeterConfig[HandFrame, QPosCommand]
-
-

Online-optimization hand retargeting; spec/online come from robokit.helpers.hand_retargeting.presets.

python
>>> OptimizationHandRetargeterConfig(Path("hand.urdf"), spec, online, "right").side  # doctest: +SKIP
-'right'
Parameters
-
urdfPathrequired
-
-
-
specAnnotated[HandSpec, tyro.conf.Suppress]required
-
-
-
onlineAnnotated[HandRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]required
-
-
-
sideSiderequired
-
-
-
collision_spheresPath | None= None
-
-
-
collision_ignorePath | None= None
-
-
Members
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.urdf: Path
- -
- -
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.spec: Annotated[HandSpec, tyro.conf.Suppress]
- -
- -
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.online: Annotated[HandRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]
- -
- -
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.side: Side
- -
- -
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.collision_spheres: Path | None = None
- -
- -
-
-
attribute[source]
-
OptimizationHandRetargeterConfig.collision_ignore: Path | None = None
- -
- -
-
-
method[source]
-
OptimizationHandRetargeterConfig.build(
-
device: str
) -> OptimizationHandRetargeter
-
-

Build and warm up the optimization retargeter.

python
>>> config.build("cpu")  # doctest: +SKIP
Parameters
-
devicestrrequired
-
-
Returns
OptimizationHandRetargeter
-
-
-
- -
retargetingkit.retargeting.hand.neural.NeuralHandRetargeterConfig(
-
checkpoint_dir: Path,
hand: HandPreset,
side: Side = 'right'
)
Bases: RetargeterConfig[HandFrame, QPosCommand]
-
-

One human hand mapped onto one robot hand by a trained checkpoint.

python
>>> from pathlib import Path
->>> from retargetingkit.retargeting.hand.presets import HANDS
->>> NeuralHandRetargeterConfig(Path("run"), HANDS["xhand"]).side
-'right'
Parameters
-
checkpoint_dirPathrequired
-
-
-
handHandPresetrequired
-
-
-
sideSide= 'right'
-
-
Members
-
-
attribute[source]
-
NeuralHandRetargeterConfig.checkpoint_dir: Path
- -
- -
-
-
attribute[source]
-
NeuralHandRetargeterConfig.hand: HandPreset
- -
- -
-
-
attribute[source]
-
NeuralHandRetargeterConfig.side: Side = 'right'
- -
- -
-
-
method[source]
-
NeuralHandRetargeterConfig.build(
-
device: str
) -> NeuralHandRetargeter
-
-

Load the checkpoint onto device.

python
>>> NeuralHandRetargeterConfig(Path("run"), HANDS["xhand"]).build("cpu")  # doctest: +SKIP
Parameters
-
devicestrrequired
-
-
Returns
NeuralHandRetargeter
-
-
-
- -
retargetingkit.retargeting.hand.neural.NeuralHandAssetRetargeterConfig(
-
checkpoint: str,
hand: HandPreset,
side: Side = 'right'
)
Bases: RetargeterConfig[HandFrame, QPosCommand]
-
-

A named Hugging Face checkpoint resolved when the retargeter is built.

Parameters
-
checkpointstrrequired
-
-
-
handHandPresetrequired
-
-
-
sideSide= 'right'
-
-
Members
-
-
attribute[source]
-
NeuralHandAssetRetargeterConfig.checkpoint: str
- -
- -
-
-
attribute[source]
-
NeuralHandAssetRetargeterConfig.hand: HandPreset
- -
- -
-
-
attribute[source]
-
NeuralHandAssetRetargeterConfig.side: Side = 'right'
- -
- -
-
-
method[source]
-
NeuralHandAssetRetargeterConfig.build(
-
device: str
) -> NeuralHandRetargeter
-
-

Download the checkpoint if needed, then load it on device.

python
>>> config.build("cpu")  # doctest: +SKIP
Parameters
-
devicestrrequired
-
-
Returns
NeuralHandRetargeter
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-humanoid/index.html b/docs/retargetingkit/ref-humanoid/index.html deleted file mode 100644 index a39f6fc..0000000 --- a/docs/retargetingkit/ref-humanoid/index.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - Humanoid retargeter API · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Humanoid retargeter API

-

The humanoid retargeter maps a BodyFrame to a floating-base humanoid pose. See Humanoid retargeting for usage.

-
- -
retargetingkit.retargeting.humanoid.online.HumanoidRetargeterConfig(
-
preset: Annotated[HumanoidRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress],
z_offset: float = 0.0
)
Bases: RetargeterConfig[BodyFrame, BasePoseQPosCommand]
-
-

One robokit humanoid preset plus output adjustment.

python
>>> HumanoidRetargeterConfig(HumanoidRetargeterOnlineConfig()).z_offset
-0.0
Parameters
-
presetAnnotated[HumanoidRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]required
-
-
-
z_offsetfloat= 0.0
-
-
Members
-
-
attribute[source]
-
HumanoidRetargeterConfig.preset: Annotated[HumanoidRetargeterOnlineConfig, OPAQUE, tyro.conf.Suppress]
- -
- -
-
-
attribute[source]
-
HumanoidRetargeterConfig.z_offset: float = 0.0
- -
- -
-
-
method[source]
-
HumanoidRetargeterConfig.build(
-
device: str
) -> HumanoidRetargeter
-
-

Build and warm up the online retargeter.

python
>>> HumanoidRetargeterConfig(g1_aligned).build("cpu")  # doctest: +SKIP
Parameters
-
devicestrrequired
-
-
Returns
HumanoidRetargeter
-
-
-
- -
retargetingkit.retargeting.humanoid.online.HumanoidRetargeter(
-
config: HumanoidRetargeterConfig,
device: str
)
Bases: Retargeter[BodyFrame, BasePoseQPosCommand]
-
-

Named human body transforms to a floating-base robot command.

python
>>> HumanoidRetargeter(config, "cpu")  # doctest: +SKIP
Parameters
-
configHumanoidRetargeterConfigrequired
-
-
-
devicestrrequired
-
-
Members
-
-
method[source]
-
HumanoidRetargeter.solve(
-
frame: BodyFrame
) -> BasePoseQPosCommand
-
-
Parameters
-
frameBodyFramerequired
-
-
Returns
BasePoseQPosCommand
-
-
-
method[source]
-
HumanoidRetargeter.reset() -> None
- -
-

Reset the solver.

python
>>> retargeter.reset()  # doctest: +SKIP
Returns
None
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-sources/index.html b/docs/retargetingkit/ref-sources/index.html deleted file mode 100644 index 1ff645f..0000000 --- a/docs/retargetingkit/ref-sources/index.html +++ /dev/null @@ -1,551 +0,0 @@ - - - - - - Source API · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Source API

-

Sources read a device or recording and return canonical frames; each config's build() creates its source. See Interfaces for the lifecycle.

-
- -
retargetingkit.sources.source.Source
-
Bases: ABC, Generic[FrameT]
-
-

A device, recording, or stream producing canonical motion frames.

Built In Implementations Include

  • VisionProSource: Apple Vision Pro hands, wrists, or both.
  • PicoSource: PICO headset body tracking.
  • ManusSource: Manus glove hand keypoints.
  • AxisStudioSource: Axis Studio mocap body transforms.
  • BodyFileSource: recorded body frames replayed from disk.
Members
-
-
method[source]
-
Source.get_frame() -> FrameT | None
- -
-

Return the latest canonical frame, or None before the first sample.

Returns
FrameT | None
-
-
-
method[source]
-
Source.close() -> None
- -
-

Release the device.

Returns
None
-
-
-
- -
retargetingkit.sources.source.SourceConfig
-
Bases: ABC, Generic[FrameT]
-
-

Config for Source.

Members
-
-
method[source]
-
SourceConfig.build() -> Source[FrameT]
- -
-

Construct and start the source device.

Returns
Source[FrameT]
-
-
-
- -
retargetingkit.sources.misc.human_frame_file.BodyFileSourceConfig(
-
path: Path,
joint_names: tuple[str, ...] = BODY_JOINTS,
loop: bool = True,
target_fps: float = 0.0,
use_ankle_as_foot_target: bool = False,
human_height: float = 1.75
)
Bases: SourceConfig[BodyFrame]
-
-

BVH or PICO recording playback settings.

python
>>> BodyFileSourceConfig(Path("motion.bvh")).path.name
-'motion.bvh'
Parameters
-
pathPathrequired
-
-
-
joint_namestuple[str, ...]= BODY_JOINTS
-
-
-
loopbool= True
-
-
-
target_fpsfloat= 0.0
-
-
-
use_ankle_as_foot_targetbool= False
-
-
-
human_heightfloat= 1.75
-
-
Members
-
-
attribute[source]
-
BodyFileSourceConfig.path: Path
- -
- -
-
-
attribute[source]
-
BodyFileSourceConfig.joint_names: tuple[str, ...] = BODY_JOINTS
- -
- -
-
-
attribute[source]
-
BodyFileSourceConfig.loop: bool = True
- -
- -
-
-
attribute[source]
-
BodyFileSourceConfig.target_fps: float = 0.0
- -
- -
-
-
attribute[source]
-
BodyFileSourceConfig.use_ankle_as_foot_target: bool = False
- -
- -
-
-
attribute[source]
-
BodyFileSourceConfig.human_height: float = 1.75
- -
- -
-
-
method[source]
-
BodyFileSourceConfig.build() -> Source[BodyFrame]
- -
-
Returns
Source[BodyFrame]
-
-
-
- -
retargetingkit.sources.vr.vision_pro.VisionProHandConfig(
-
ip: str | None = None,
recording_path: str | None = None,
recording_fps: int = 20
)
Bases: SourceConfig[HandFrame]
-
-

Vision Pro connection projected as hand keypoints.

python
>>> VisionProHandConfig()
-VisionProHandConfig(ip=None, recording_path=None, recording_fps=20)
Parameters
-
ipstr | None= None
-
-
-
recording_pathstr | None= None
-
-
-
recording_fpsint= 20
-
-
Members
-
-
attribute[source]
-
VisionProHandConfig.ip: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProHandConfig.recording_path: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProHandConfig.recording_fps: int = 20
- -
- -
-
-
method[source]
-
VisionProHandConfig.build() -> VisionProSource[HandFrame]
- -
-

Construct one canonical hand source.

Returns
VisionProSource[HandFrame]
-
-
-
- -
retargetingkit.sources.vr.vision_pro.VisionProArmConfig(
-
ip: str | None = None,
recording_path: str | None = None,
recording_fps: int = 20
)
Bases: SourceConfig[ArmFrame]
-
-

Vision Pro connection projected as world-frame wrists.

python
>>> VisionProArmConfig()
-VisionProArmConfig(ip=None, recording_path=None, recording_fps=20)
Parameters
-
ipstr | None= None
-
-
-
recording_pathstr | None= None
-
-
-
recording_fpsint= 20
-
-
Members
-
-
attribute[source]
-
VisionProArmConfig.ip: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProArmConfig.recording_path: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProArmConfig.recording_fps: int = 20
- -
- -
-
-
method[source]
-
VisionProArmConfig.build() -> VisionProSource[ArmFrame]
- -
-

Construct one canonical arm source.

Returns
VisionProSource[ArmFrame]
-
-
-
- -
retargetingkit.sources.vr.vision_pro.VisionProArmHandConfig(
-
ip: str | None = None,
recording_path: str | None = None,
recording_fps: int = 20
)
Bases: SourceConfig[ArmHandFrame]
-
-

Vision Pro connection projected as synchronized arm and hand frames.

python
>>> VisionProArmHandConfig()
-VisionProArmHandConfig(ip=None, recording_path=None, recording_fps=20)
Parameters
-
ipstr | None= None
-
-
-
recording_pathstr | None= None
-
-
-
recording_fpsint= 20
-
-
Members
-
-
attribute[source]
-
VisionProArmHandConfig.ip: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProArmHandConfig.recording_path: str | None = None
- -
- -
-
-
attribute[source]
-
VisionProArmHandConfig.recording_fps: int = 20
- -
- -
-
-
method[source]
-
VisionProArmHandConfig.build() -> VisionProSource[ArmHandFrame]
- -
-

Construct one synchronized canonical arm-and-hand source.

Returns
VisionProSource[ArmHandFrame]
-
-
-
- -
retargetingkit.sources.vr.pico.PicoSourceConfig(
-
human_height: float = 1.75,
use_ankle_as_foot_target: bool = False,
joint_names: tuple[str, ...] = CANONICAL_BODY_JOINTS
)
Bases: SourceConfig[BodyFrame]
-
-

Live PICO body-tracking settings.

python
>>> PicoSourceConfig().joint_names[0]
-'pelvis'
Parameters
-
human_heightfloat= 1.75
-
-
-
use_ankle_as_foot_targetbool= False
-
-
-
joint_namestuple[str, ...]= CANONICAL_BODY_JOINTS
-
-
Members
-
-
attribute[source]
-
PicoSourceConfig.human_height: float = 1.75
- -
- -
-
-
attribute[source]
-
PicoSourceConfig.use_ankle_as_foot_target: bool = False
- -
- -
-
-
attribute[source]
-
PicoSourceConfig.joint_names: tuple[str, ...] = CANONICAL_BODY_JOINTS
- -
- -
-
-
method[source]
-
PicoSourceConfig.build() -> PicoSource
- -
-
Returns
PicoSource
-
-
-
- -
retargetingkit.sources.glove.manus_glove.ManusSourceConfig(
-
left_id: str | None = None,
right_id: str | None = None,
use_calibration: bool = True,
calibration_path: Path | None = None
)
Bases: SourceConfig[HandFrame]
-
-

Manus glove connection settings.

python
>>> # ManusSourceConfig().build()  # doctest: +SKIP
Parameters
-
left_idstr | None= None
-
-
-
right_idstr | None= None
-
-
-
use_calibrationbool= True
-
-
-
calibration_pathPath | None= None
-
-
Members
-
-
attribute[source]
-
ManusSourceConfig.left_id: str | None = None
- -
-

Override the left glove ID (decimal or 0x hex).

-
-
-
attribute[source]
-
ManusSourceConfig.right_id: str | None = None
- -
-

Override the right glove ID (decimal or 0x hex).

-
-
-
attribute[source]
-
ManusSourceConfig.use_calibration: bool = True
- -
-

Apply the Manus thumb transform and per-finger scales.

-
-
-
attribute[source]
-
ManusSourceConfig.calibration_path: Path | None = None
- -
-

Calibration NPZ path; None fetches the manus_calib Hugging Face asset.

-
-
-
method[source]
-
ManusSourceConfig.build() -> Source[HandFrame]
- -
-
Returns
Source[HandFrame]
-
-
-
- -
retargetingkit.sources.mocap.axis_studio.source.AxisStudioSourceConfig(
-
port: int = 7012,
human_height: float = 1.75,
use_ankle_as_foot_target: bool = False,
joint_names: tuple[str, ...] = BODY_JOINTS
)
Bases: SourceConfig[BodyFrame]
-
-

Axis Studio Calc connection settings.

python
>>> AxisStudioSourceConfig().port
-7012
Parameters
-
portint= 7012
-
-
-
human_heightfloat= 1.75
-
-
-
use_ankle_as_foot_targetbool= False
-
-
-
joint_namestuple[str, ...]= BODY_JOINTS
-
-
Members
-
-
attribute[source]
-
AxisStudioSourceConfig.port: int = 7012
- -
- -
-
-
attribute[source]
-
AxisStudioSourceConfig.human_height: float = 1.75
- -
- -
-
-
attribute[source]
-
AxisStudioSourceConfig.use_ankle_as_foot_target: bool = False
- -
- -
-
-
attribute[source]
-
AxisStudioSourceConfig.joint_names: tuple[str, ...] = BODY_JOINTS
- -
- -
-
-
method[source]
-
AxisStudioSourceConfig.build() -> Source[BodyFrame]
- -
-
Returns
Source[BodyFrame]
-
-
-
- -
retargetingkit.sources.vr.quest3.Quest3Config(
-
app_name: str = 'RetargetingKitQuest3',
sides: tuple[str, ...] = (RIGHT,),
verbose: bool = True,
cloudxr_env_path: str = '~/.cloudxr/run/cloudxr.env'
)
Bases: SourceConfig['Quest3Frame']
-
-

Quest3 Isaac Teleop stream configuration.

Parameters
-
app_namestr= 'RetargetingKitQuest3'
-
-
-
sidestuple[str, ...]= (RIGHT,)
-
-
-
verbosebool= True
-
-
-
cloudxr_env_pathstr= '~/.cloudxr/run/cloudxr.env'
-
-
Members
-
-
attribute[source]
-
Quest3Config.app_name: str = 'RetargetingKitQuest3'
- -
- -
-
-
attribute[source]
-
Quest3Config.sides: tuple[str, ...] = (RIGHT,)
- -
- -
-
-
attribute[source]
-
Quest3Config.verbose: bool = True
- -
- -
-
-
attribute[source]
-
Quest3Config.cloudxr_env_path: str = '~/.cloudxr/run/cloudxr.env'
- -
- -
-
-
method[source]
-
Quest3Config.build() -> Quest3
- -
-

Start the Isaac Teleop session.

python
>>> Quest3Config().build()  # doctest: +SKIP
Returns
Quest3
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-target-configs/index.html b/docs/retargetingkit/ref-target-configs/index.html deleted file mode 100644 index 34f09c1..0000000 --- a/docs/retargetingkit/ref-target-configs/index.html +++ /dev/null @@ -1,734 +0,0 @@ - - - - - - Target configs · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Target configs

-

Each config builds one robot or viewer target. See the Targets pages for hardware setup.

-
- -
retargetingkit.targets.arms.xarm6.XArm6Config(
-
ip: str,
mode: XArmMode = XArmMode.VELOCITY,
dt: float = 1.0 / 250,
ee_link: str = XARM6_EE_LINK,
kp: np.ndarray = (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))(),
kd: np.ndarray = (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))(),
max_velocity: np.ndarray = (lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()
)
Bases: TargetConfig
-
-

xArm6 controller configuration.

Parameters
-
ipstrrequired
-
-
-
modeXArmMode= XArmMode.VELOCITY
-
-
-
dtfloat= 1.0 / 250
-
-
-
ee_linkstr= XARM6_EE_LINK
-
-
-
kpnp.ndarray= (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))()
-
-
-
kdnp.ndarray= (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))()
-
-
-
max_velocitynp.ndarray= (lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()
-
-
Members
-
-
attribute[source]
-
XArm6Config.ip: str
- -
-

IP address of the xArm controller.

-
-
-
attribute[source]
-
XArm6Config.mode: XArmMode = XArmMode.VELOCITY
- -
-

Control mode.

-
-
-
attribute[source]
-
XArm6Config.dt: float = 1.0 / 250
- -
-

Servo loop timestep in seconds.

-
-
-
attribute[source]
-
XArm6Config.kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0]))
- -
-

Proportional gains for velocity mode.

-
-
-
attribute[source]
-
XArm6Config.kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25]))
- -
-

Derivative gains for velocity mode.

-
-
-
attribute[source]
-
XArm6Config.max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))
- -
-

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

-
-
-
method[source]
-
XArm6Config.build() -> XArm6
- -
-
Returns
XArm6
-
-
-
- -
retargetingkit.targets.arms.xarm7.XArm7Config(
-
ip: str,
mode: XArmMode = XArmMode.VELOCITY,
dt: float = 1.0 / 250,
ee_link: str = XARM7_EE_LINK,
kp: np.ndarray = (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))(),
kd: np.ndarray = (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))(),
max_velocity: np.ndarray = (lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()
)
Bases: TargetConfig
-
-

xArm7 controller configuration.

Parameters
-
ipstrrequired
-
-
-
modeXArmMode= XArmMode.VELOCITY
-
-
-
dtfloat= 1.0 / 250
-
-
-
ee_linkstr= XARM7_EE_LINK
-
-
-
kpnp.ndarray= (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))()
-
-
-
kdnp.ndarray= (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))()
-
-
-
max_velocitynp.ndarray= (lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()
-
-
Members
-
-
attribute[source]
-
XArm7Config.ip: str
- -
-

IP address of the xArm controller.

-
-
-
attribute[source]
-
XArm7Config.mode: XArmMode = XArmMode.VELOCITY
- -
-

Control mode.

-
-
-
attribute[source]
-
XArm7Config.dt: float = 1.0 / 250
- -
-

Servo loop timestep in seconds.

-
-
-
attribute[source]
-
XArm7Config.kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))
- -
-

Proportional gains for velocity mode.

-
-
-
attribute[source]
-
XArm7Config.kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))
- -
-

Derivative gains for velocity mode.

-
-
-
attribute[source]
-
XArm7Config.max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))
- -
-

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

-
-
-
method[source]
-
XArm7Config.build() -> XArm7
- -
-
Returns
XArm7
-
-
-
- -
retargetingkit.targets.hands.xhand.XHandConfig(
-
serial_port: str,
protocol: str = 'RS485',
baud_rate: int = 3000000,
dt: float = 1.0 / 83,
kp: float = 90.0,
ki: float = 0.0,
kd: float = 0.0,
tor_max: float = 80.0
)
Bases: TargetConfig
-
-

XHand controller configuration.

Parameters
-
serial_portstrrequired
-
-
-
protocolstr= 'RS485'
-
-
-
baud_rateint= 3000000
-
-
-
dtfloat= 1.0 / 83
-
-
-
kpfloat= 90.0
-
-
-
kifloat= 0.0
-
-
-
kdfloat= 0.0
-
-
-
tor_maxfloat= 80.0
-
-
Members
-
-
attribute[source]
-
XHandConfig.serial_port: str
- -
-

Serial port for RS485 communication.

-
-
-
attribute[source]
-
XHandConfig.protocol: str = 'RS485'
- -
-

Communication protocol ('RS485' or 'EtherCAT').

-
-
-
attribute[source]
-
XHandConfig.baud_rate: int = 3000000
- -
-

Baud rate for RS485 serial.

-
-
-
attribute[source]
-
XHandConfig.dt: float = 1.0 / 83
- -
-

Servo loop timestep (matches 83 Hz firmware rate).

-
-
-
attribute[source]
-
XHandConfig.kp: float = 90.0
- -
-

Default position-loop proportional gain.

-
-
-
attribute[source]
-
XHandConfig.ki: float = 0.0
- -
-

Default position-loop integral gain.

-
-
-
attribute[source]
-
XHandConfig.kd: float = 0.0
- -
-

Default position-loop derivative gain.

-
-
-
attribute[source]
-
XHandConfig.tor_max: float = 80.0
- -
-

Default maximum torque.

-
-
-
method[source]
-
XHandConfig.build() -> XHand
- -
-
Returns
XHand
-
-
-
- -
retargetingkit.targets.hands.sharpa_hand.SharpaHandConfig(
-
speed_coeff: float = 0.3,
current_coeff: float = 0.3,
device_sn: str | None = None
)
Bases: TargetConfig
-
-

Sharpa Wave connection settings.

Parameters
-
speed_coefffloat= 0.3
-
-
-
current_coefffloat= 0.3
-
-
-
device_snstr | None= None
-
-
Members
-
-
attribute[source]
-
SharpaHandConfig.speed_coeff: float = 0.3
- -
-

Joint speed coefficient (0-1).

-
-
-
attribute[source]
-
SharpaHandConfig.current_coeff: float = 0.3
- -
-

Joint current coefficient (0-1).

-
-
-
attribute[source]
-
SharpaHandConfig.device_sn: str | None = None
- -
-

Serial number; the first discovered hand is used when unset.

-
-
-
method[source]
-
SharpaHandConfig.build() -> SharpaHand
- -
-
Returns
SharpaHand
-
-
-
- -
retargetingkit.targets.hands.ability_hand.AbilityHandConfig(
-
port: str,
dt: float = 1.0 / 160,
mode: ControlMode = ControlMode.POS_RAMP,
ramp_deg_per_s: float = 60.0
)
Bases: TargetConfig
-
-

Ability Hand controller configuration.

Parameters
-
portstrrequired
-
-
-
dtfloat= 1.0 / 160
-
-
-
modeControlMode= ControlMode.POS_RAMP
-
-
-
ramp_deg_per_sfloat= 60.0
-
-
Members
-
-
attribute[source]
-
AbilityHandConfig.port: str
- -
-

Serial port path (e.g. /dev/serial/by-id/...).

-
-
-
attribute[source]
-
AbilityHandConfig.dt: float = 1.0 / 160
- -
-

Servo loop timestep in seconds.

-
-
-
attribute[source]
-
AbilityHandConfig.mode: ControlMode = ControlMode.POS_RAMP
- -
-

Control mode.

-
-
-
attribute[source]
-
AbilityHandConfig.ramp_deg_per_s: float = 60.0
- -
-

Position ramp rate to avoid firmware current-limiting stalls.

-
-
-
method[source]
-
AbilityHandConfig.build() -> AbilityHand
- -
-
Returns
AbilityHand
-
-
-
- -
retargetingkit.targets.hands.inspire.InspireHandConfig(
-
serial_port: str,
hand_id: int,
baudrate: int
)
Bases: TargetConfig
-
-

Inspire Hand serial settings.

python
>>> InspireHandConfig("/dev/ttyUSB0", 1, 115200).serial_port
-'/dev/ttyUSB0'
Parameters
-
serial_portstrrequired
-
-
-
hand_idintrequired
-
-
-
baudrateintrequired
-
-
Members
-
-
attribute[source]
-
InspireHandConfig.serial_port: str
- -
- -
-
-
attribute[source]
-
InspireHandConfig.hand_id: int
- -
- -
-
-
attribute[source]
-
InspireHandConfig.baudrate: int
- -
- -
-
-
method[source]
-
InspireHandConfig.build() -> InspireHand
- -
-

Connect and return an Inspire Hand target.

python
>>> InspireHandConfig("/dev/ttyUSB0", 1, 115200).build()  # doctest: +SKIP
Returns
InspireHand
-
-
-
- -
retargetingkit.targets.humanoids.sonic.SonicTargetConfig(
-
host: str = '*',
port: int = 5556,
lookahead: int = 50
)
Bases: TargetConfig
-
-

SONIC v1 publisher settings.

python
>>> SonicTargetConfig().port
-5556
Parameters
-
hoststr= '*'
-
-
-
portint= 5556
-
-
-
lookaheadint= 50
-
-
Members
-
-
attribute[source]
-
SonicTargetConfig.host: str = '*'
- -
- -
-
-
attribute[source]
-
SonicTargetConfig.port: int = 5556
- -
- -
-
-
attribute[source]
-
SonicTargetConfig.lookahead: int = 50
- -
- -
-
-
method[source]
-
SonicTargetConfig.build() -> SonicTarget
- -
-

Bind and return a SONIC target.

python
>>> SonicTargetConfig(port=15556).build()  # doctest: +SKIP
Returns
SonicTarget
-
-
-
- -
retargetingkit.targets.humanoids.rby1.RBY1AConfig(
-
ip: str,
mode: RBY1AMode = RBY1AMode.VELOCITY,
dt: float = 1.0 / 100,
ee_link: str = 'link_right_arm_6',
cutoff_frequency: float = 5.0,
kp: np.ndarray = (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))(),
kd: np.ndarray = (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))(),
max_velocity: np.ndarray = (lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))(),
home_qpos: np.ndarray = (lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))(),
head_max_velocity: np.ndarray = (lambda: np.array([1.0, 1.0]))(),
head_home_qpos: np.ndarray = (lambda: np.zeros(NUM_HEAD_JOINTS))()
)
Bases: TargetConfig
-
-

RBY1-A right-arm controller configuration.

Parameters
-
ipstrrequired
-
-
-
modeRBY1AMode= RBY1AMode.VELOCITY
-
-
-
dtfloat= 1.0 / 100
-
-
-
ee_linkstr= 'link_right_arm_6'
-
-
-
cutoff_frequencyfloat= 5.0
-
-
-
kpnp.ndarray= (lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))()
-
-
-
kdnp.ndarray= (lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))()
-
-
-
max_velocitynp.ndarray= (lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))()
-
-
-
home_qposnp.ndarray= (lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))()
-
-
-
head_max_velocitynp.ndarray= (lambda: np.array([1.0, 1.0]))()
-
-
-
head_home_qposnp.ndarray= (lambda: np.zeros(NUM_HEAD_JOINTS))()
-
-
Members
-
-
attribute[source]
-
RBY1AConfig.ip: str
- -
-

IP address with port (e.g. 192.168.30.1:50051).

-
-
-
attribute[source]
-
RBY1AConfig.mode: RBY1AMode = RBY1AMode.VELOCITY
- -
-

Control mode.

-
-
-
attribute[source]
-
RBY1AConfig.dt: float = 1.0 / 100
- -
-

Servo loop timestep in seconds.

-
-
-
attribute[source]
-
RBY1AConfig.cutoff_frequency: float = 5.0
- -
-

SDK-side position command smoothing frequency (Hz).

-
-
-
attribute[source]
-
RBY1AConfig.kp: np.ndarray = field(default_factory=lambda: np.array([10.0, 10.0, 5.0, 5.0, 5.0, 5.0, 5.0]))
- -
-

Proportional gains for velocity mode.

-
-
-
attribute[source]
-
RBY1AConfig.kd: np.ndarray = field(default_factory=lambda: np.array([0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.25]))
- -
-

Derivative gains for velocity mode.

-
-
-
attribute[source]
-
RBY1AConfig.max_velocity: np.ndarray = field(default_factory=lambda: np.array([0.8, 0.8, 0.8, 0.8, 1.0, 1.0, 3.0]))
- -
-

Maximum joint velocities (rad/s), used by both SERVO and VELOCITY modes.

-
-
-
attribute[source]
-
RBY1AConfig.home_qpos: np.ndarray = field(default_factory=lambda: np.array([0, 0, 0, -np.pi / 2, -np.pi / 2, 0, 0]))
- -
-

Target joint positions for the home configuration (rad).

-
-
-
attribute[source]
-
RBY1AConfig.head_max_velocity: np.ndarray = field(default_factory=lambda: np.array([1.0, 1.0]))
- -
-

Maximum head joint velocities (rad/s).

-
-
-
attribute[source]
-
RBY1AConfig.head_home_qpos: np.ndarray = field(default_factory=lambda: np.zeros(NUM_HEAD_JOINTS))
- -
-

Target head joint positions for the home configuration (rad).

-
-
-
method[source]
-
RBY1AConfig.build() -> RBY1A
- -
-

Connect to the robot and start its servo loop.

python
>>> RBY1AConfig("192.168.30.1:50051").build()  # doctest: +SKIP
Returns
RBY1A
-
-
-
- -
retargetingkit.targets.humanoids.dexmate.DexmateConfig(
-
auto_shutdown: bool = True
)
Bases: TargetConfig
-
-

Dexmate Vega-1 whole-body controller configuration.

Parameters
-
auto_shutdownbool= True
-
-
Members
-
-
attribute[source]
-
DexmateConfig.auto_shutdown: bool = True
- -
-

Register the SDK's atexit shutdown hook. Disable when the caller owns shutdown via close.

-
-
-
method[source]
-
DexmateConfig.build() -> Dexmate
- -
-

Connect to the robot.

python
>>> DexmateConfig().build()  # doctest: +SKIP
Returns
Dexmate
-
-
-
- -
retargetingkit.targets.viser.ViserConfig(
-
urdfs: tuple[Path, ...],
keypoint_edges: tuple[tuple[int, int], ...] = ()
)
Bases: TargetConfig
-
-

URDFs to display, in the order callers index them.

python
>>> ViserConfig((Path("robot.urdf"),)).urdfs[0].name
-'robot.urdf'
Parameters
-
urdfstuple[Path, ...]required
-
-
-
keypoint_edgestuple[tuple[int, int], ...]= ()
-
-
Members
-
-
attribute[source]
-
ViserConfig.urdfs: tuple[Path, ...]
- -
- -
-
-
attribute[source]
-
ViserConfig.keypoint_edges: tuple[tuple[int, int], ...] = ()
- -
- -
-
-
method[source]
-
ViserConfig.build() -> Viser
- -
-

Start the Viser server.

python
>>> ViserConfig((Path("robot.urdf"),)).build()  # doctest: +SKIP
Returns
Viser
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-targets/index.html b/docs/retargetingkit/ref-targets/index.html deleted file mode 100644 index b7e62a8..0000000 --- a/docs/retargetingkit/ref-targets/index.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - Commands and targets · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Commands and targets

-

Commands carry one solved robot pose. Concrete targets consume joint positions or a complete command; see Interfaces for how runtimes choose the update method.

-
- -
retargetingkit.targets.commands.QPosCommand(
-
qpos: np.ndarray
)
Bases: Command
-
-

Actuated joint positions in URDF order.

python
>>> QPosCommand(np.zeros(7)).qpos.shape
-(7,)
Parameters
-
qposnp.ndarrayrequired
-
-
Members
-
-
attribute[source]
-
QPosCommand.qpos: np.ndarray
- -
- -
-
-
- -
retargetingkit.targets.commands.BasePoseQPosCommand(
-
qpos: np.ndarray,
base_pose: np.ndarray
)
Bases: QPosCommand
-
-

Joint positions plus the floating-base world pose as [xyz, wxyz].

python
>>> BasePoseQPosCommand(np.zeros(29), np.array([0, 0, 0, 1, 0, 0, 0])).base_pose.shape
-(7,)
Parameters
-
qposnp.ndarrayrequired
-
-
-
base_posenp.ndarrayrequired
-
-
Members
-
-
attributeinherited from QPosCommand[source]
-
BasePoseQPosCommand.qpos: np.ndarray
- -
- -
-
-
attribute[source]
-
BasePoseQPosCommand.base_pose: np.ndarray
- -
- -
-
-
- -
retargetingkit.targets.target.Target
-
Bases: ABC
-
-

A hardware, transport, or viewer consuming robot commands.

Built In Implementations Include

  • XArm6, XArm7: xArm hardware over the xArm SDK.
  • XHand, AbilityHand, InspireHand, SharpaHand: robot-hand hardware.
  • SonicTarget: SONIC v1 humanoid commands over ZMQ.
  • Viser: one or more URDFs in a browser.
Members
-
-
method[source]
-
Target.set_qpos(
-
qpos: np.ndarray
) -> None
-
-

Command actuated joint positions in radians.

Parameters
-
qposnp.ndarrayrequired
-
-
Returns
None
-
-
-
method[source]
-
Target.set_command(
-
command: Command
) -> None
-
-

Command one canonical robot command as one atomic update.

Parameters
-
commandCommandrequired
-
-
Returns
None
-
-
-
method[source]
-
Target.close() -> None
- -
-

Release hardware or transport.

Returns
None
-
-
-
- -
retargetingkit.targets.target.TargetConfig
-
Bases: ABC
-
-

Robot target blueprint; subclasses live beside their device and make up retargetingkit.configs.teleop rigs.

Members
-
-
method[source]
-
TargetConfig.build() -> Target
- -
-

Construct and start the target.

Returns
Target
-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/ref-teleop/index.html b/docs/retargetingkit/ref-teleop/index.html deleted file mode 100644 index 2d2f625..0000000 --- a/docs/retargetingkit/ref-teleop/index.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - - Teleop configs · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Teleop configs

-

Each named rig run by scripts/teleop/ is an instance of one of these configs. See Teleoperation for rig names and overrides.

-
- -
retargetingkit.configs.teleop.config.HandTeleopConfig(
-
source: SourceConfig[HandFrame],
target: TargetConfig,
retargeter: RetargeterConfig[HandFrame, QPosCommand],
side: Side = 'right',
rate: float = 30.0,
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)
-
-

One hand source retargeted to one robot hand.

Parameters
-
sourceSourceConfig[HandFrame]required
-
-
-
targetTargetConfigrequired
-
-
-
retargeterRetargeterConfig[HandFrame, QPosCommand]required
-
-
-
sideSide= 'right'
-
-
-
ratefloat= 30.0
-
-
-
modeLiteral['viser', 'real', 'both']= 'viser'
-
-
-
devicestr= 'cuda:0'
-
-
Members
-
-
attribute[source]
-
HandTeleopConfig.source: SourceConfig[HandFrame]
- -
-

Hand motion source blueprint.

-
-
-
attribute[source]
-
HandTeleopConfig.target: TargetConfig
- -
-

Robot hand blueprint.

-
-
-
attribute[source]
-
HandTeleopConfig.retargeter: RetargeterConfig[HandFrame, QPosCommand]
- -
-

Optimization or neural hand retargeting blueprint.

-
-
-
attribute[source]
-
HandTeleopConfig.side: Side = 'right'
- -
-

Hand side shared by the source and retargeter.

-
-
-
attribute[source]
-
HandTeleopConfig.rate: float = 30.0
- -
-

Control-loop frequency in Hz.

-
-
-
attribute[source]
-
HandTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'
- -
-

Viser only, hardware only, or both.

-
-
-
attribute[source]
-
HandTeleopConfig.device: str = 'cuda:0'
- -
-

Warp device used by RoboKit.

-
-
-
- -
retargetingkit.configs.teleop.config.ArmTeleopConfig(
-
source: SourceConfig[ArmFrame],
arms: dict[Side, TargetConfig],
retargeters: dict[Side, ArmRetargeterConfig],
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)
-
-

One arm source controlling one robot arm per side.

Parameters
-
sourceSourceConfig[ArmFrame]required
-
-
-
armsdict[Side, TargetConfig]required
-
-
-
retargetersdict[Side, ArmRetargeterConfig]required
-
-
-
modeLiteral['viser', 'real', 'both']= 'viser'
-
-
-
devicestr= 'cuda:0'
-
-
Members
-
-
attribute[source]
-
ArmTeleopConfig.source: SourceConfig[ArmFrame]
- -
-

Wrist motion source blueprint.

-
-
-
attribute[source]
-
ArmTeleopConfig.arms: dict[Side, TargetConfig]
- -
-

Robot arm blueprint per side.

-
-
-
attribute[source]
-
ArmTeleopConfig.retargeters: dict[Side, ArmRetargeterConfig]
- -
-

Wrist-to-arm retargeting blueprint per side.

-
-
-
attribute[source]
-
ArmTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'
- -
-

Viser only, hardware only, or both.

-
-
-
attribute[source]
-
ArmTeleopConfig.device: str = 'cuda:0'
- -
-

Warp device used by RoboKit.

-
-
-
- -
retargetingkit.configs.teleop.config.ArmHandTeleopConfig(
-
source: SourceConfig[ArmHandFrame],
arms: dict[Side, TargetConfig],
hands: dict[Side, TargetConfig],
arm_retargeters: dict[Side, ArmRetargeterConfig],
hand_retargeters: dict[Side, RetargeterConfig[HandFrame, QPosCommand]],
assembly_urdf: Path,
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)
-
-

One arm-and-hand source controlling one robot arm and one robot hand per side.

Parameters
-
sourceSourceConfig[ArmHandFrame]required
-
-
-
armsdict[Side, TargetConfig]required
-
-
-
handsdict[Side, TargetConfig]required
-
-
-
arm_retargetersdict[Side, ArmRetargeterConfig]required
-
-
-
hand_retargetersdict[Side, RetargeterConfig[HandFrame, QPosCommand]]required
-
-
-
assembly_urdfPathrequired
-
-
-
modeLiteral['viser', 'real', 'both']= 'viser'
-
-
-
devicestr= 'cuda:0'
-
-
Members
-
-
attribute[source]
-
ArmHandTeleopConfig.source: SourceConfig[ArmHandFrame]
- -
-

Wrist and hand motion source blueprint.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.arms: dict[Side, TargetConfig]
- -
-

Robot arm blueprint per side.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.hands: dict[Side, TargetConfig]
- -
-

Robot hand blueprint per side.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.arm_retargeters: dict[Side, ArmRetargeterConfig]
- -
-

Wrist-to-arm retargeting blueprint per side.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.hand_retargeters: dict[Side, RetargeterConfig[HandFrame, QPosCommand]]
- -
-

Hand retargeting blueprint per side.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.assembly_urdf: Path
- -
-

Combined arm-and-hand URDF used only for visualization.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'
- -
-

Viser only, hardware only, or both.

-
-
-
attribute[source]
-
ArmHandTeleopConfig.device: str = 'cuda:0'
- -
-

Warp device used by RoboKit.

-
-
-
- -
retargetingkit.configs.teleop.config.HumanoidTeleopConfig(
-
source: SourceConfig[BodyFrame],
retargeter: HumanoidRetargeterConfig,
targets: tuple[TargetConfig, ...],
device: str = 'cuda:0'
)
-
-

One body source retargeted to one or more humanoid targets.

Parameters
-
sourceSourceConfig[BodyFrame]required
-
-
-
retargeterHumanoidRetargeterConfigrequired
-
-
-
targetstuple[TargetConfig, ...]required
-
-
-
devicestr= 'cuda:0'
-
-
Members
-
-
attribute[source]
-
HumanoidTeleopConfig.source: SourceConfig[BodyFrame]
- -
-

Body motion source blueprint.

-
-
-
attribute[source]
-
HumanoidTeleopConfig.retargeter: HumanoidRetargeterConfig
- -
-

Body-to-humanoid retargeting blueprint.

-
-
-
attribute[source]
-
HumanoidTeleopConfig.targets: tuple[TargetConfig, ...]
- -
-

Humanoid target blueprints fed the same command.

-
-
-
attribute[source]
-
HumanoidTeleopConfig.device: str = 'cuda:0'
- -
-

Warp device used by RoboKit.

-
-
-
- -
retargetingkit.configs.teleop.config.HumanoidHandTeleopConfig(
-
source: PicoSourceConfig,
retargeter: HumanoidRetargeterConfig,
targets: tuple[TargetConfig, ...],
left_hand: TargetConfig,
right_hand: TargetConfig,
open_qpos: tuple[float, ...],
closed_qpos: tuple[float, ...],
device: str = 'cuda:0'
)
-
-

One PICO connection controlling a humanoid and two robot hands.

Parameters
-
sourcePicoSourceConfigrequired
-
-
-
retargeterHumanoidRetargeterConfigrequired
-
-
-
targetstuple[TargetConfig, ...]required
-
-
-
left_handTargetConfigrequired
-
-
-
right_handTargetConfigrequired
-
-
-
open_qpostuple[float, ...]required
-
-
-
closed_qpostuple[float, ...]required
-
-
-
devicestr= 'cuda:0'
-
-
Members
-
-
attribute[source]
-
HumanoidHandTeleopConfig.source: PicoSourceConfig
- -
-

PICO body and controller source blueprint.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.retargeter: HumanoidRetargeterConfig
- -
-

Body-to-humanoid retargeting blueprint.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.targets: tuple[TargetConfig, ...]
- -
-

Humanoid target blueprints fed the same command.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.left_hand: TargetConfig
- -
-

Left robot hand blueprint.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.right_hand: TargetConfig
- -
-

Right robot hand blueprint.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.open_qpos: tuple[float, ...]
- -
-

Hand joint positions commanded when the trigger is released.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.closed_qpos: tuple[float, ...]
- -
-

Hand joint positions commanded when the trigger is pressed.

-
-
-
attribute[source]
-
HumanoidHandTeleopConfig.device: str = 'cuda:0'
- -
-

Warp device used by RoboKit.

-
-
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/sharpa-hand/index.html b/docs/retargetingkit/sharpa-hand/index.html deleted file mode 100644 index eb40045..0000000 --- a/docs/retargetingkit/sharpa-hand/index.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Sharpa Wave · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

Sharpa Wave

-

Control 22 finger joints and read tactile measurements from five fingers per hand. The driver accepts joint positions in URDF radians and exposes position, velocity, and torque feedback.

Connect

Get the Sharpa SDK from Sharpa and extract it so ~/.retargetingkit/sharpa-sdk/ holds its lib/ and python/ folders. The SDK's native extension must match your Python environment.

If the native loader reports a missing libpython, add your Python environment's library directory and ~/.retargetingkit/sharpa-sdk/lib to LD_LIBRARY_PATH before launching.

device_sn=None selects the first discovered hand. Set a device serial number when several hands are connected.

Read five samples in floating mode:

shell
uv run scripts/targets/sharpa_hand/read_qpos.py --samples 5

This changes the hand to floating mode for backdriving and prints angles in degrees. The Python API returns radians.

Preview retargeting

With Manus configured, preview optimization:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \
-    manus_sharpa --mode viser

Use manus_sharpa_neural for the curated neural model. --mode real or --mode both commands the physical hand; add --target.device-sn <SERIAL> to select it. Vision Pro also supports hand-only and xArm–Sharpa rigs.

Use the driver

Construction connects the hand, selects position mode, and starts SDK control:

python
from retargetingkit.targets.hands.sharpa_hand import SharpaHand
-
-hand = SharpaHand(speed_coeff=0.3, current_coeff=0.3)
-qpos, qvel, torque = hand.get_state()  # each has 22 values
-hand.set_qpos(qpos)
-hand.close()

Use set_control_mode("floating") for backdriving and set_control_mode("position") to resume position control.

Read touch data

Fetch five samples from the right thumb:

shell
uv run scripts/targets/sharpa_hand/tactile_fetch.py \
-    --channel 0 --samples 5 --calibrate

This connects the SDK in position mode and calibrates before reading. Frames may contain RAW, DEFORM, and F6 data. The driver API uses channels 0–4 for right thumb through pinky and 5–9 for the left; the current diagnostic labels right-hand channels only.

scripts/targets/sharpa_hand/wave_example.py --cycles 3 moves joint 7 by 3 degrees and returns it, three times.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/teleoperation/index.html b/docs/retargetingkit/teleoperation/index.html deleted file mode 100644 index e933538..0000000 --- a/docs/retargetingkit/teleoperation/index.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Teleoperation · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Teleoperation

-
Real-time robot hand teleoperationReal-time humanoid teleoperation
Dexterous hand control.Humanoid motion control.

A named rig connects a source, retargeter, and target in one command. Choose the flow that matches the motion you want to control, then complete the linked device setup.

Choose a flow

FlowMotion sourceRobot output
hand.pyManus or Vision ProOne robot hand
arm.pyVision ProOne or two xArms
arm_hand.pyVision ProSynchronized arms and hands
humanoid.pyBVH, Axis Studio, PICO, or a PICO recordingG1 motion through SONIC, with optional Viser
humanoid_hand.pyPICO body motion and buttonsG1 plus two physical Inspire hands

Quest 3, RealSense, and ZED have standalone device scripts. They are not inputs to these named rigs.

Select a rig

List the available rigs, then inspect a selected rig's settings:

shell
uv run scripts/teleop/hand.py --help
-uv run scripts/teleop/hand.py manus_xhand --help

The first command lists rigs; the second shows the selected rig's fields and defaults. Install the source's dependencies before running it; each device page provides a complete command.

Override settings

Configuration fields become dotted options. For example, replay a Vision Pro recording at its original rate and scale wrist movement:

shell
uv run --extra vision-pro scripts/teleop/arm.py \
-    visionpro_xarm7 --mode viser --device cpu \
-    --source.recording-path data/vision_pro.pkl \
-    --source.recording-fps 50 \
-    --retargeters.right.translation-scale 0.5

Create the recording with the Vision Pro recorder first. Recording files do not store frame rate, so pass the rate used when capturing.

Field familyExample
Source--source.ip, --source.recording-path
Arm connection--arms.right.ip
Arm solver in arm.py--retargeters.right.translation-scale
Arm solver in arm_hand.py--arm-retargeters.right.translation-scale
Humanoid target tuple--targets.0.port

The fields available depend on the selected rig. Boolean switches may use a --no- form; PICO's foot mapping uses --source.no-use-ankle-as-foot-target.

Choose the output

hand, arm, and arm_hand default to viser:

ModeOutput
--mode viserBrowser preview
--mode realPhysical robot
--mode bothPhysical robot and browser preview

Humanoid flows choose targets through the rig. A *_sonic_viser rig publishes SONIC commands and displays the same motion in Viser. The viewer works without a SONIC receiver. humanoid_hand opens physical Inspire hands and has no preview mode.

SONIC runs as a separate receiver. See G1 / SONIC for sender and receiver settings, simulation, and deployment.

Start with Humanoid teleoperation for body motion, or Quickstart for a recording that needs no hardware.

Use the Python API

A rig is a source, a retargeter, and targets. This loop runs the BVH rig without a tracking device or robot: SONIC publishes commands whether or not a receiver is running.

python
from retargetingkit.configs.teleop.humanoid.bvh_g1_sonic import BVH_G1_SONIC_CONFIG
-
-config = BVH_G1_SONIC_CONFIG
-source = config.source.build()
-retargeter = config.retargeter.build(device)
-targets = [target_config.build() for target_config in config.targets]
-
-while True:
-    frame = source.get_frame()
-    if frame is not None:
-        command = retargeter.solve(frame)
-        for target in targets:
-            target.set_command(command)
- -
- -
-
- - - - - diff --git a/docs/retargetingkit/vision-pro/index.html b/docs/retargetingkit/vision-pro/index.html deleted file mode 100644 index 25c3647..0000000 --- a/docs/retargetingkit/vision-pro/index.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - Apple Vision Pro · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

Apple Vision Pro

-

Tracking Streamer: note the headset IP and select Start.

Stream head, wrist, and finger tracking from Apple Vision Pro with avp_stream. RetargetingKit can drive robot hands, robot arms, or synchronized arm-and-hand assemblies, and replay the same tracking from a recording.

MotionRuntimeExample rig
Fingersscripts/teleop/hand.pyvisionpro_sharpa
Wristsscripts/teleop/arm.pyvisionpro_xarm7
Wrists and fingersscripts/teleop/arm_hand.pyvisionpro_xarm7_xhand

Connect the headset

Open Tracking Streamer from the Vision Pro app launcher.

  1. Connect the workstation and Vision Pro to the same Wi-Fi network.
  2. Open Tracking Streamer on Vision Pro.
  3. Note its IP address and select Start. Use that address as <VISION_PRO_IP> below.
  4. Install the source dependencies from the RetargetingKit repository:
shell
uv sync --extra vision-pro

Check the live stream:

shell
uv run --extra vision-pro scripts/sources/vision_pro/stream.py \
-    --ip <VISION_PRO_IP>

The terminal prints head position and left/right pinch distances. Move your head and pinch each hand to check the values.

Preview retargeting

Run a right xArm7 with XHand in Viser:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \
-    scripts/teleop/arm_hand.py visionpro_xarm7_xhand \
-    --source.ip <VISION_PRO_IP> --mode viser

Open http://localhost:8080. The first tracked wrist frame becomes the calibration origin and maps to the arm's home pose. Finger motion drives the robot hand.

For arm-only or hand-only retargeting:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \
-    scripts/teleop/arm.py visionpro_xarm7 --source.ip <VISION_PRO_IP>
-
-CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \
-    scripts/teleop/hand.py visionpro_sharpa --source.ip <VISION_PRO_IP>

The arm runtime also offers visionpro_xarm6 and visionpro_dual_xarm7. The hand runtime offers visionpro_xhand and visionpro_sharpa. All default to Viser.

Connect hardware

Use --mode both to send the same targets to hardware and Viser:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro --extra xarm \
-    scripts/teleop/arm_hand.py visionpro_xarm7_xhand \
-    --source.ip <VISION_PRO_IP> --mode both \
-    --arms.right.ip <XARM_IP> \
-    --hands.right.serial-port /dev/ttyUSBX

Each arm moves to its model-specific home pose at startup. Hold the wrist at the desired tracking origin when the first frame is read. Use --mode real for hardware only; press Ctrl-C to stop.

AssemblyNamed rigHand connection
xArm7 + XHandvisionpro_xarm7_xhand, visionpro_dual_xarm7_xhand--hands.right.serial-port
xArm7 + Ability Handvisionpro_xarm7_ability--hands.right.port; add --extra ability
xArm7 + Inspire Handvisionpro_xarm7_inspire--hands.right.serial-port; add --extra inspire
xArm7 + Sharpa Wavevisionpro_xarm7_sharpa--hands.right.device-sn
xArm6 + Sharpa Wavevisionpro_xarm6_sharpa--hands.right.device-sn

Single-arm presets use the right side. For the dual XHand rig, also set --arms.left.ip and --hands.left.serial-port. Sharpa uses the first discovered hand when its device serial number is unset.

To tune arm-and-hand motion, use --arm-retargeters.right.translation-scale for wrist translation and --arm-retargeters.right.ee-gain for pose smoothing. The arm-only runtime uses --retargeters.right.translation-scale and --retargeters.right.ee-gain.

Record and replay

Record 15 seconds at a requested 50 Hz:

shell
uv run --extra vision-pro scripts/sources/vision_pro/record.py \
-    --ip <VISION_PRO_IP> --duration 15 --rate 50 \
-    --output data/vision_pro.pkl

Replay with the original rate:

shell
CUDA_VISIBLE_DEVICES=<FREE_GPU> uv run --extra vision-pro \
-    scripts/teleop/arm.py visionpro_xarm7 \
-    --source.recording-path data/vision_pro.pkl \
-    --source.recording-fps 50

The pickle contains tracking dictionaries without timestamps or frame-rate metadata. Always set --source.recording-fps to the recording rate. Playback holds the final frame when it reaches the end.

To inspect the recorded skeleton directly:

shell
uv run --extra vision-pro scripts/sources/vision_pro/visualize.py \
-    --recording data/vision_pro.pkl

This viewer and stream.py --recording <FILE> use the device API's fixed default of 20 Hz, so a 50 Hz recording plays more slowly.

Tracking format

The validated avp_stream 2.51 format uses finite float64 values. Translations are in meters and wrist roll is in radians.

FieldShapeCoordinate frame
head(1, 4, 4)World
left_wrist, right_wrist(1, 4, 4)World
left_fingers, right_fingers(25, 4, 4)Wrist-local
left_arm, right_arm(25, 4, 4) or (27, 4, 4)Wrist-local; optional two forearm joints
left_pinch_distance, right_pinch_distancescalarThumb-tip to index-tip distance
left_wrist_roll, right_wrist_rollscalarWrist roll

The streamer converts world poses from Y-up to right-handed Z-up: x'=x, y'=-z, z'=y. Finger and arm matrices stay wrist-local. The 25-joint order is wrist, four thumb joints, then five joints each for index, middle, ring, and little fingers. The optional final two arm joints are forearmWrist and forearmArm.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/xarm/index.html b/docs/retargetingkit/xarm/index.html deleted file mode 100644 index c6aabb1..0000000 --- a/docs/retargetingkit/xarm/index.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - xArm6 and xArm7 · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

xArm6 and xArm7

-

Control a six- or seven-joint xArm through the UFACTORY SDK. Both drivers accept joint positions in radians and provide end-effector IK and teaching modes.

Connect

Find the controller IP on the power box and open http://<XARM_IP>:18333 for UFACTORY Studio. From the RetargetingKit checkout, install the driver:

shell
uv sync --extra xarm

For xArm7, read five samples without enabling motion or sending position commands:

shell
uv run --extra xarm scripts/targets/xarm7/read_qpos.py \
-    --ip <XARM_IP> --samples 5

The xArm6 read_qpos.py script starts the active velocity controller, including motion enable and error clearing. Treat it as a controller session.

Preview teleoperation

With Vision Pro configured:

shell
uv run --extra vision-pro --extra vis scripts/teleop/arm.py \
-    visionpro_xarm7 --mode viser --source.ip <VISION_PRO_IP>

Use visionpro_xarm6 for xArm6. The preview does not connect the arm. The Vision Pro guide covers IP overrides and arm-hand rigs; Quest 3 provides a separate controller workflow.

Use the driver

This snippet starts a hardware controller and holds the measured pose. Replace target_qpos with your desired joint vector to move the arm.

python
from retargetingkit.targets.arms.xarm7 import XArm7Config, XArmMode
-
-arm = XArm7Config("<XARM_IP>", mode=XArmMode.VELOCITY).build()
-target_qpos = arm.get_qpos()  # (7,), URDF radians
-arm.set_qpos(target_qpos)
-arm.close()

For six joints, import XArm6Config from retargetingkit.targets.arms.xarm6.

ModeBehavior
VELOCITYDefault; smooths position tracking through velocity control
SERVOStreams joint position targets
TEACHINGEnables gravity-compensated teaching

Both drivers run a background control loop at 250 Hz by default. Starting a driver enables motion, clears warnings and errors, and selects the configured control mode.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/xhand/index.html b/docs/retargetingkit/xhand/index.html deleted file mode 100644 index a5cf61a..0000000 --- a/docs/retargetingkit/xhand/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - XHand · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Targets
- -
-

XHand

-

Control 12 XHand joints through RS485 or EtherCAT. The driver accepts URDF radians and sends commands through a background loop at approximately 83 Hz.

Connect

Install the xhand_controller wheel from the XHand vendor. There is no xhand package extra.

For RS485, connect the adapter and confirm its serial port. The default baud rate is 3,000,000.

Read five state samples without starting the servo controller:

shell
uv run scripts/targets/xhand/read_qpos.py \
-    --serial-port /dev/ttyUSB0 --samples 5

The output includes joint names, positions in radians, and shape checks.

Preview retargeting

With a configured Manus glove:

shell
uv run --extra manus --extra vis scripts/teleop/hand.py \
-    manus_xhand --mode viser

After checking the preview, --mode both --target.serial-port /dev/ttyUSB0 connects and commands the hand. The Vision Pro guide also covers visionpro_xhand and xArm7–XHand rigs.

Use the driver

This starts the physical hand's servo process and holds its measured pose:

python
from retargetingkit.targets.hands.xhand import XHandConfig
-
-hand = XHandConfig(serial_port="/dev/ttyUSB0").build()
-target_qpos = hand.get_qpos()  # (12,), URDF radians
-hand.set_qpos(target_qpos)
-hand.close()

Use protocol="EtherCAT" in the config for EtherCAT. Commands must contain 12 finite values in the driver's documented URDF order.

Check a small motion

The following moves joint 4 by 0.05 radians and returns it to its starting position:

shell
uv run scripts/targets/xhand/open_close.py \
-    --serial-port /dev/ttyUSB0 --joint 4 --delta 0.05 --reps 1

Despite its filename, this diagnostic nudges one joint; it does not open and close all fingers.

- -
- -
-
- - - - - diff --git a/docs/retargetingkit/zed/index.html b/docs/retargetingkit/zed/index.html deleted file mode 100644 index fa605cd..0000000 --- a/docs/retargetingkit/zed/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - ZED · RetargetingKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Sources
- -
-

ZED

-

Capture BGR color and metric depth with a Stereolabs ZED camera. Zed runs capture in a background process and exposes frames and intrinsics. It is a standalone camera driver and requires a CUDA-capable NVIDIA GPU.

Install the SDK

Install the ZED SDK for the workstation's Ubuntu and CUDA versions. Stereolabs publishes one Python binding wheel per Python version (3.10–3.14) for ZED SDK 5.2, Linux x86-64; select the one matching the project's interpreter:

shell
PY=$(uv run python -c 'import sys; print(f"cp{sys.version_info.major}{sys.version_info.minor}")')
-PYZED="https://download.stereolabs.com/zedsdk/5.2/whl/linux_x86_64/pyzed-5.2-$PY-$PY-linux_x86_64.whl"

Check the camera

shell
uv run --with "$PYZED" --with opencv-python \
-    python scripts/sources/zed/stream_rgbd.py

The viewer shows color beside a depth visualization; press Escape to close it. It defaults to HD1080, 30 FPS, and ULTRA depth mode. Set --serial-number <SERIAL> to select a camera, or use --resolution, --fps, and --depth-mode to change capture settings.

Read frames in Python

python
from retargetingkit.sources.cameras.zed import Zed, ZedConfig
-
-camera = Zed(ZedConfig(resolution="HD1080", depth_mode="ULTRA"))
-camera.start()
-color = camera.get_color()          # (H, W, 3), uint8 BGR
-depth = camera.get_depth()          # (H, W), float32 meters
-intrinsics = camera.get_intrinsics()
-camera.stop()

intrinsics is [fx, fy, cx, cy, height, width] for the left camera. Depth is already in meters and needs no scale conversion.

- -
- -
-
- - - - - diff --git a/docs/robokit/api-geometry/index.html b/docs/robokit/api-geometry/index.html deleted file mode 100644 index 3956d24..0000000 --- a/docs/robokit/api-geometry/index.html +++ /dev/null @@ -1,1371 +0,0 @@ - - - - - - Geometry · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Geometry

-
-
- -
robokit.geom.BaseGeom(
-
count: int,
scene_offsets: np.ndarray,
poses: Optional[wp.array],
scales: Optional[wp.array],
capacity: Optional[int]
)
-
-

Base geom.

Lifecycle

geom = BoxGeom(...) # store raw inputs (CPU) scene.add(geom) # calls geom.build(device): allocate capacity-padded GPU arrays geom.update(...) # fixed buffers update in place; resource swaps advance graph_revision

Parameters
-
countintrequired
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]required
-
-
-
scalesOptional[wp.array]required
-
-
-
capacityOptional[int]required
-
-
Members
-
-
attribute[source]
-
BaseGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
BaseGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
property[source]
-
BaseGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
property[source]
-
BaseGeom.refine_band: float
- -
- -
-
-
property[source]
-
BaseGeom.launch_params: Tuple
- -
- -
-
-
method[source]
-
BaseGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
method[source]
-
BaseGeom.build(
-
device: Device = 'cpu'
) -> BaseGeom
-
-

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

Parameters
-
deviceDevice= 'cpu'
-
-
Returns
BaseGeom
-
-
-
- -
robokit.geom.WarpScene(
-
num_scenes: int,
device: Device = 'cpu'
)
-
-

Heterogeneous batched scene SDF query.

Example

python
>>> import numpy as np
->>> import torch
->>> import warp as wp
->>> from robokit.geom.geoms import SphereGeom
->>> wp.init()
->>> scene = WarpScene(num_scenes=1, device="cpu").add(
-...     SphereGeom(np.array([1.0]), np.array([0, 1], dtype=np.int32))
-... )
->>> signed_dists, _, _ = scene.query_sdf_torch(
-...     torch.tensor([[2.0, 0.0, 0.0], [0.5, 0.0, 0.0]]),
-...     torch.tensor([0, 2]),
-... )
->>> bool(torch.allclose(signed_dists, torch.tensor([1.0, -0.5])))
-True
->>> normal_jacobians = wp.empty(1, dtype=wp.mat33, device="cpu")
->>> _ = scene.query_sdf(
-...     wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device="cpu"),
-...     scene_indices=wp.array([0], dtype=wp.int32, device="cpu"),
-...     out_normal_jacobians=normal_jacobians,
-... )
->>> np.allclose(normal_jacobians.numpy()[0], np.diag([0.0, 0.5, 0.5]))
-True
->>> observed = wp.empty(1, dtype=wp.bool, device="cpu")
->>> _ = scene.query_sdf(wp.array([[2.0, 0.0, 0.0]], dtype=wp.vec3, device="cpu"),
-...     scene_indices=wp.array([0], dtype=wp.int32, device="cpu"), out_observed=observed)
->>> bool(observed.numpy()[0])  # analytical geometry is fully known
-True
Parameters
-
num_scenesintrequired
-
-
-
deviceDevice= 'cpu'
-
-
Members
-
-
property[source]
-
WarpScene.device: wp_device_type
- -
- -
-
-
property[source]
-
WarpScene.geoms: Tuple[BaseGeom, ...]
- -
- -
-
-
property[source]
-
WarpScene.num_scenes: int
- -
- -
-
-
property[source]
-
WarpScene.num_elements: int
- -
-

Total element count across all attached geoms (a MeshGeom of N meshes counts N).

-
-
-
property[source]
-
WarpScene.graph_revision: int
- -
-

Monotonic revision of resources referenced by captured graphs.

-
-
-
method[source]
-
WarpScene.add(
-
geom: BaseGeom
) -> WarpScene
-
-

Attach a geom: allocates its GPU arrays on this scene's device; update in place via geom.update(...).

Parameters
-
geomBaseGeomrequired
-
-
Returns
WarpScene
-
-
-
method[source]
-
WarpScene.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query the scene SDF (min over all attached geoms) at points.

Parameters
-
pointswp.arrayrequired
-

Query points, any shape (flattened to n internally).

-
-
scene_offsetsOptional[wp.array]= None
-

CSR boundaries into the flat points, int32, length num_scenes+1. Pass exactly one of scene_offsets / scene_indices.

-
-
scene_indicesOptional[wp.array]= None
-

Scene id of each point, int32, one per point. Skips the derivation launch, so hot loops pass a pre-built map here.

-
-
query_maskOptional[wp.array]= None
-

Optional per-point gate, int32, length n. Points with mask 0 skip every geom kernel.

-
-
distance_onlybool= False
-

Skip the normal/closest computation (~2x faster) and return only signed distances.

-
-
out_signed_distsOptional[wp.array]= None
-

Optional preallocated output; required shape n. Hot loops and CUDA-graph capture pass all out_* so no allocation happens per call.

-
-
out_normalsOptional[wp.array]= None
-

Optional preallocated output, shape n.

-
-
out_closest_pointsOptional[wp.array]= None
-

Optional preallocated output, shape n.

-
-
record_tapebool= True
-

Record the launches on an active wp.Tape; False keeps the query off the gradient.

-
-
out_normal_jacobiansOptional[wp.array]= None
-

Optional preallocated wp.mat33 output, one per point. Entry (i, j) is the derivative of normal component i with respect to point coordinate j. Mesh face normals have zero derivatives; voxel and primitive normals use analytical derivatives of the active query branch. Derivatives at cell, face, or closest-object switches are discontinuous.

-
-
out_observedOptional[wp.array]= None
-

Optional device bool array, one per point. True when every sensor map in the scene has observed the queried voxel; outside a sensor map or masked out is False. Meshes and analytical geometry leave this status unchanged. Unknown status never skips distance checks.

-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]

Flat (n,) views: signed_dists if distance_only, else (signed_dists, normals, closest_points). Points in an empty scene get MAX_DIST distance and zero normals.

-
-
-
method[source]
-
WarpScene.query_sdf_torch(
-
query_points: torch.Tensor,
scene_offsets: torch.Tensor,
poses: Optional[Dict[BaseGeom, torch.Tensor]] = None,
scales: Optional[Dict[BaseGeom, torch.Tensor]] = None
) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]
-
-

Differentiable scene SDF query (per-point min over all attached geoms).

Parameters
-
query_pointstorch.Tensorrequired
-

Query points, shape (n, 3), differentiable.

-
-
scene_offsetstorch.Tensorrequired
-

CSR boundaries into the points, length num_scenes+1.

-
-
posesOptional[Dict[BaseGeom, torch.Tensor]]= None
-

Optional per-geom pose overrides, (count, 4, 4) tensors keyed by attached geom. Overridden geoms are queried on these poses and receive gradients; other geoms use their stored (non-differentiable) transforms.

-
-
scalesOptional[Dict[BaseGeom, torch.Tensor]]= None
-

Optional per-geom scale overrides, (count,) tensors keyed by attached geom. Same semantics as poses.

-
Returns
Tuple[torch.Tensor, torch.Tensor, torch.Tensor]

(signed_dists, normals, closest_points) torch tensors, shapes (n,), (n, 3), (n, 3). Gradients flow to query_points and to the poses/scales tensors of whichever geom is closest at each point.

-
-
-
- -
robokit.geom.BoxGeom(
-
half_extents: np.ndarray,
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N boxes: half_extents (N, 3), posed/rotated via poses.

Parameters
-
half_extentsnp.ndarrayrequired
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
BoxGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
BoxGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
propertyinherited from BaseGeom[source]
-
BoxGeom.refine_band: float
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
BoxGeom.launch_params: Tuple
- -
- -
-
-
methodinherited from BaseGeom[source]
-
BoxGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
methodinherited from BaseGeom[source]
-
BoxGeom.build(
-
device: Device = 'cpu'
) -> BaseGeom
-
-

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

Parameters
-
deviceDevice= 'cpu'
-
-
Returns
BaseGeom
-
-
-
method[source]
-
BoxGeom.update(
-
half_extents: Optional[np.ndarray] = None,
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-
Parameters
-
half_extentsOptional[np.ndarray]= None
-
-
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
-
- -
robokit.geom.SphereGeom(
-
radii: np.ndarray,
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N spheres: radii (N,), centered via poses.

Parameters
-
radiinp.ndarrayrequired
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
SphereGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
SphereGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
propertyinherited from BaseGeom[source]
-
SphereGeom.refine_band: float
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
SphereGeom.launch_params: Tuple
- -
- -
-
-
methodinherited from BaseGeom[source]
-
SphereGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
methodinherited from BaseGeom[source]
-
SphereGeom.build(
-
device: Device = 'cpu'
) -> BaseGeom
-
-

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

Parameters
-
deviceDevice= 'cpu'
-
-
Returns
BaseGeom
-
-
-
method[source]
-
SphereGeom.update(
-
radii: Optional[np.ndarray] = None,
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-
Parameters
-
radiiOptional[np.ndarray]= None
-
-
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
-
- -
robokit.geom.PlaneGeom(
-
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N halfspaces (local z=0 planes, sdf = local z): count = scene_offsets[-1], orientation via poses.

Parameters
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
PlaneGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
PlaneGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
propertyinherited from BaseGeom[source]
-
PlaneGeom.refine_band: float
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
PlaneGeom.launch_params: Tuple
- -
- -
-
-
methodinherited from BaseGeom[source]
-
PlaneGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
methodinherited from BaseGeom[source]
-
PlaneGeom.build(
-
device: Device = 'cpu'
) -> BaseGeom
-
-

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

Parameters
-
deviceDevice= 'cpu'
-
-
Returns
BaseGeom
-
-
-
method[source]
-
PlaneGeom.update(
-
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-
Parameters
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
-
- -
robokit.geom.CapsuleGeom(
-
radii: np.ndarray,
half_heights: np.ndarray,
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N capsules: radii (N,) + half_heights (N,), axis along local z via poses.

Parameters
-
radiinp.ndarrayrequired
-
-
-
half_heightsnp.ndarrayrequired
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
CapsuleGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
CapsuleGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
propertyinherited from BaseGeom[source]
-
CapsuleGeom.refine_band: float
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
CapsuleGeom.launch_params: Tuple
- -
- -
-
-
methodinherited from BaseGeom[source]
-
CapsuleGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
methodinherited from BaseGeom[source]
-
CapsuleGeom.build(
-
device: Device = 'cpu'
) -> BaseGeom
-
-

Allocate the GPU arrays; called by WarpScene.add, or directly for scene-less query_sdf.

Parameters
-
deviceDevice= 'cpu'
-
-
Returns
BaseGeom
-
-
-
method[source]
-
CapsuleGeom.update(
-
radii: Optional[np.ndarray] = None,
half_heights: Optional[np.ndarray] = None,
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-
Parameters
-
radiiOptional[np.ndarray]= None
-
-
-
half_heightsOptional[np.ndarray]= None
-
-
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
-
- -
robokit.geom.MeshGeom(
-
meshes: MeshList,
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
enable_sdf: bool = False,
sdf_voxel_size: float = 0.01,
sdf_padding: float = 0.1,
refine_band_voxels: float = REFINE_BAND_VOXELS,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N triangle meshes; enable_sdf bakes a disk-cached per-mesh SDF for far queries instead of the exact mesh.

Parameters
-
meshesMeshListrequired
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
enable_sdfbool= False
-
-
-
sdf_voxel_sizefloat= 0.01
-
-
-
sdf_paddingfloat= 0.1
-
-
-
refine_band_voxelsfloat= REFINE_BAND_VOXELS
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
MeshGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
MeshGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
methodinherited from BaseGeom[source]
-
MeshGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
property[source]
-
MeshGeom.launch_params: Tuple
- -
- -
-
-
property[source]
-
MeshGeom.refine_band: float
- -
- -
-
-
method[source]
-
MeshGeom.build(
-
device: Device = 'cpu'
) -> MeshGeom
-
-
Parameters
-
deviceDevice= 'cpu'
-
-
Returns
MeshGeom
-
-
-
method[source]
-
MeshGeom.update(
-
meshes: Optional[MeshList] = None,
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-

meshes swaps the mesh ids + AABBs (and rebakes the SDF tier if enabled).

Parameters
-
meshesOptional[MeshList]= None
-
-
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
-
- -
robokit.geom.VolumeGeom(
-
sdf_volumes: List[SdfVolume],
scene_offsets: np.ndarray,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None,
capacity: Optional[int] = None
)
Bases: BaseGeom
-
-

N pre-baked SdfVolume grids (NanoVDB trilinear sample; conservative extrapolation outside the AABB).

Parameters
-
sdf_volumesList[SdfVolume]required
-
-
-
scene_offsetsnp.ndarrayrequired
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
-
capacityOptional[int]= None
-
-
Members
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.params_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.mesh_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.volume_ids_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.aabb_min_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.aabb_max_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.paddings_wp: Optional[wp.array] = None
- -
- -
-
-
attributeinherited from BaseGeom[source]
-
VolumeGeom.device_wp: Optional[wp_device_type]
- -
- -
-
-
propertyinherited from BaseGeom[source]
-
VolumeGeom.graph_revision: int
- -
-

Revision of GPU resources referenced by captured graphs.

-
-
-
propertyinherited from BaseGeom[source]
-
VolumeGeom.refine_band: float
- -
- -
-
-
methodinherited from BaseGeom[source]
-
VolumeGeom.query_sdf(
-
points: wp.array,
scene_offsets: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
query_mask: Optional[wp.array] = None,
distance_only: bool = False,
out_signed_dists: Optional[wp.array] = None,
out_normals: Optional[wp.array] = None,
out_closest_points: Optional[wp.array] = None,
record_tape: bool = True,
out_normal_jacobians: Optional[wp.array] = None,
out_observed: Optional[wp.array] = None
) -> Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-

Query this geom alone (same semantics as WarpScene.query_sdf); call build first.

Parameters
-
pointswp.arrayrequired
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
-
query_maskOptional[wp.array]= None
-
-
-
distance_onlybool= False
-
-
-
out_signed_distsOptional[wp.array]= None
-
-
-
out_normalsOptional[wp.array]= None
-
-
-
out_closest_pointsOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
-
out_normal_jacobiansOptional[wp.array]= None
-
-
-
out_observedOptional[wp.array]= None
-
-
Returns
Union[wp.array, Tuple[wp.array, wp.array, wp.array]]
-
-
-
property[source]
-
VolumeGeom.launch_params: Tuple
- -
- -
-
-
method[source]
-
VolumeGeom.build(
-
device: Device = 'cpu'
) -> VolumeGeom
-
-
Parameters
-
deviceDevice= 'cpu'
-
-
Returns
VolumeGeom
-
-
-
method[source]
-
VolumeGeom.update(
-
sdf_volumes: Optional[List[SdfVolume]] = None,
scene_offsets: Optional[np.ndarray] = None,
poses: Optional[wp.array] = None,
scales: Optional[wp.array] = None
) -> None
-
-

sdf_volumes swaps ids/AABBs/paddings.

Parameters
-
sdf_volumesOptional[List[SdfVolume]]= None
-
-
-
scene_offsetsOptional[np.ndarray]= None
-
-
-
posesOptional[wp.array]= None
-
-
-
scalesOptional[wp.array]= None
-
-
Returns
None
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-hand-retargeting/index.html b/docs/robokit/api-hand-retargeting/index.html deleted file mode 100644 index 83f7bdc..0000000 --- a/docs/robokit/api-hand-retargeting/index.html +++ /dev/null @@ -1,634 +0,0 @@ - - - - - - Hand Retargeting · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Hand Retargeting

-
-
- -
robokit.helpers.hand_retargeting.HandRetargeterOnline(
-
config: HandRetargeterOnlineConfig,
robot: Robot,
spec: HandSpec,
device: Optional[wp_device_type] = None
)
-
-

Retarget point streams; reference_origin="wrist" centers floating hands internally, but I/O stays world-frame.

Temporal cost:

  • First frame after warmup/reset: none.
  • Later frames: smooth against the previous solution, independently of the initial guess.

Example

python
>>> from robokit.robo.robot_spec import RobotSpec
->>> from robokit.utils.ee_coord_utils import MANOPTH_HAND_COORD_SPEC as coords
->>> from robokit.opt.population_solver import PopulationSolverConfig, Stage
->>> from robokit.opt.lm_optimizer import LMOptimizerConfig
->>> from robokit.utils.warp_utils import wp_vec7
->>> urdf = '''<robot name="finger"><link name="palm"/><link name="tip"/>
-... <joint name="finger" type="revolute"><parent link="palm"/><child link="tip"/>
-... <origin xyz="0 0.03 0"/><axis xyz="0 0 1"/>
-... <limit lower="0" upper="1" effort="1" velocity="1"/></joint></robot>'''
->>> robot = Robot(RobotSpec.parse(urdf, load_meshes=False, mesh_dir=None))
->>> spec = HandSpec(True, ("tip", "wrist"), {"tip": "tip", "wrist": "palm"},
-...                 (("tip",),), "wrist", ("tip",), coords)
->>> config = HandRetargeterOnlineConfig(reference_origin="wrist",
-...     solver=PopulationSolverConfig(stages=[Stage(2, optimizer=LMOptimizerConfig())],
-...         cuda_graph_mode="none"))
->>> config.task("positions").weight = {"tip": 24.0, "wrist": 0.1}
->>> solver = HandRetargeterOnline(config, robot, spec, device="cpu")
->>> solver.warmup(1)
->>> points = np.array([[[1, 2.03, 3], [1, 2, 3]]], dtype=np.float32)
->>> packed = solver.solve_numpy(points)
->>> packed.shape
-(1, 8)
->>> output = wp.empty((1, 8), dtype=wp.float32, device="cpu")
->>> solver.solve(wp.from_numpy(points, dtype=wp.float32, device="cpu"), out=output) is output
-True
->>> state = robot.state(q=wp.from_numpy(packed[:, 7:].copy(), dtype=wp.float32, device="cpu"),
-...     T_world_base=wp.from_numpy(packed[:, :7].copy(), dtype=wp_vec7, device="cpu"))
->>> all(np.isfinite(cost.numpy()).all() for cost in solver.compute_costs(state).values())
-True
->>> solver.reset()
Parameters
-
configHandRetargeterOnlineConfigrequired
-

Online solver, objective, filtering, and sampling settings.

-
-
robotRobotrequired
-

Loaded robot model; self-collision skip pairs come from its spec (Robot.load(self_collision_ignore_path=...)).

-
-
specHandSpecrequired
-

Ordered semantic point topology.

-
-
deviceOptional[wp_device_type]= None
-

Warp device. The first CUDA device is used when available.

-
Members
-
-
method[source]
-
HandRetargeterOnline.warmup(
-
batch_size: int
) -> None
-
-

Build all batch-shaped terms, buffers, and solver state.

Parameters
-
batch_sizeintrequired
-

Number of independent streams advanced by each solve.

-
Returns
None
-
-
-
method[source]
-
HandRetargeterOnline.solve(
-
target_points: wp.array,
init_state: Optional[RobotState] = None,
out: Optional[wp.array] = None
) -> wp.array
-
-

Retarget one batched frame.

Parameters
-
target_pointswp.arrayrequired
-

Point targets with shape (batch, targets, 3) in spec.target_names order.

-
-
init_stateOptional[RobotState]= None
-

Optional state overriding the streaming warm start.

-
-
outOptional[wp.array]= None
-

Optional packed output buffer with shape (batch, 7 + dofs).

-
Returns
wp.array

Packed base transform and joint positions; a helper-owned buffer is reused when out is omitted.

-
-
-
method[source]
-
HandRetargeterOnline.solve_numpy(
-
target_points: np.ndarray,
init_state: Optional[RobotState] = None
) -> np.ndarray
-
-

NumPy wrapper for solve().

Parameters
-
target_pointsnp.ndarrayrequired
-
-
-
init_stateOptional[RobotState]= None
-
-
Returns
np.ndarray
-
-
-
method[source]
-
HandRetargeterOnline.reset() -> None
- -
-

Clear all streaming history and disable smoothness until a previous frame exists.

Returns
None
-
-
-
method[source]
-
HandRetargeterOnline.compute_costs(
-
state: RobotState
) -> Dict[str, wp.array]
-
-

Evaluate the current targets for a caller-provided robot state.

Parameters
-
stateRobotStaterequired
-

Robot state matching the warmed batch and device.

-
Returns
Dict[str, wp.array]

Per-term costs keyed by task cost name.

-
-
-
- -
robokit.helpers.hand_retargeting.HandRetargeterOnlineConfig(
-
terms: List[ResidualTask] = _default_online_terms(),
pinch_correspondences: Tuple[_Correspondence, ...] = (),
target_scale: float = 1.0,
target_ema_alpha: float = 1.0,
output_ema_alpha: float = 1.0,
sampler: RobertsSamplerConfig = (lambda: RobertsSamplerConfig(keep_first=True))(),
base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0),
solver: PopulationSolverConfig = _online_solver(),
pinch_threshold: float = 0.03,
pinch_release_threshold: float = 0.05,
reference_origin: Literal['world', 'wrist'] = 'world'
)
-
-

Frame-level hand-retargeting configuration.

Parameters
-
termsList[ResidualTask]= _default_online_terms()
-
-
-
pinch_correspondencesTuple[_Correspondence, ...]= ()
-
-
-
target_scalefloat= 1.0
-
-
-
target_ema_alphafloat= 1.0
-
-
-
output_ema_alphafloat= 1.0
-
-
-
samplerRobertsSamplerConfig= (lambda: RobertsSamplerConfig(keep_first=True))()
-
-
-
base_init_sample_rangeTuple[float, float, float]= (0.1, 0.1, 0.0)
-
-
-
solverPopulationSolverConfig= _online_solver()
-
-
-
pinch_thresholdfloat= 0.03
-
-
-
pinch_release_thresholdfloat= 0.05
-
-
-
reference_originLiteral['world', 'wrist']= 'world'
-
-
Members
-
-
attribute[source]
-
HandRetargeterOnlineConfig.terms: List[ResidualTask] = field(default_factory=_default_online_terms)
- -
-

Task templates built at warmup; HandContext lists their inputs.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.pinch_correspondences: Tuple[_Correspondence, ...] = ()
- -
-

Vector rows whose target shrinks to near zero while their two targets pinch.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.target_scale: float = 1.0
- -
-

Scale from human to robot hand size applied to vector targets; pinched rows keep their own length.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.target_ema_alpha: float = 1.0
- -
-

EMA weight of the newest vector and direction targets, in (0, 1]; 1 disables smoothing.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.output_ema_alpha: float = 1.0
- -
-

EMA weight of the newest output joints, in (0, 1]; 1 disables smoothing.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.sampler: RobertsSamplerConfig = field(default_factory=lambda: RobertsSamplerConfig(keep_first=True))
- -
-

Joint noise around the previous solution; scale is a fraction of each joint's range.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0)
- -
-

Per-axis base translation noise (m) around the previous solution of a floating hand.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.solver: PopulationSolverConfig = field(default_factory=_online_solver)
- -
-

Candidate schedule and LM settings of each frame's solve.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.pinch_threshold: float = 0.03
- -
-

Target distance (m) below which a pinch pair latches.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.pinch_release_threshold: float = 0.05
- -
-

Target distance (m) above which a latched pinch pair releases.

-
-
-
attribute[source]
-
HandRetargeterOnlineConfig.reference_origin: Literal['world', 'wrist'] = 'world'
- -
-

Solve floating hands relative to the target wrist position ("wrist") or in world; I/O frames are unchanged.

-
-
-
method[source]
-
HandRetargeterOnlineConfig.add(
-
term: ResidualTask,
name: Optional[str] = None
) -> HandRetargeterOnlineConfig
-
-

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HandRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name="rest")
->>> config.task("rest").weight
-0.1
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
HandRetargeterOnlineConfig
-
-
-
method[source]
-
HandRetargeterOnlineConfig.task(
-
name: str
) -> ResidualTask
-
-

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HandRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name="rest")
->>> config.task("rest").weight
-0.2
Parameters
-
namestrrequired
-
-
Returns
ResidualTask
-
-
-
- -
robokit.helpers.hand_retargeting.HandRetargeterOffline(
-
config: HandRetargeterOfflineConfig,
robot: Robot,
spec: HandSpec,
scene: Optional[WarpScene] = None,
device: Optional[wp_device_type] = None,
scene_indices: Optional[wp.array] = None
)
-
-

Retarget trajectory batches in HandSpec.target_names order by solving config.terms over HandContext inputs.

Parameters
-
configHandRetargeterOfflineConfigrequired
-

Trajectory, contact, and solver settings.

-
-
robotRobotrequired
-

Loaded robot model.

-
-
specHandSpecrequired
-

Ordered semantic point topology.

-
-
sceneOptional[WarpScene]= None
-

Optional caller-owned collision scene.

-
-
deviceOptional[wp_device_type]= None
-

Warp device. The first CUDA device is used when available.

-
-
scene_indicesOptional[wp.array]= None
-

Optional static (batch,) or per-frame (batch, frames) scene mapping.

-
Members
-
-
method[source]
-
HandRetargeterOffline.warmup(
-
batch_size: int,
num_frames: int
) -> None
-
-

Build buffers and the config's tasks, and capture the solver for one trajectory shape.

Parameters
-
batch_sizeintrequired
-

Number of independent trajectories.

-
-
num_framesintrequired
-

Frames in each fixed-shape trajectory.

-
Returns
None
-
-
-
method[source]
-
HandRetargeterOffline.set_valid_lengths(
-
lengths: np.ndarray
) -> None
-
-

Mask padded frames and temporal edges in every task.

Parameters
-
lengthsnp.ndarrayrequired
-
-
Returns
None
-
-
-
method[source]
-
HandRetargeterOffline.set_target_scales(
-
scales: np.ndarray
) -> None
-
-

Set one positive pairwise target scale per warmed trajectory without rebuilding the solver.

Example

python
>>> from robokit.helpers.full_body_retargeting import FullBodyRetargeter
->>> from robokit.helpers.hand_retargeting.presets.inspire import offline, spec
->>> solver = HandRetargeterOffline(offline, FullBodyRetargeter().hand_robot("right"), spec)
->>> solver.warmup(2, 3)
->>> solver.set_target_scales(np.array([0.9, 1.2]))
Parameters
-
scalesnp.ndarrayrequired
-
-
Returns
None
-
-
-
method[source]
-
HandRetargeterOffline.solve(
-
target_points: wp.array,
root_quat_wxyz: Optional[wp.array] = None,
init_state: Optional[RobotState] = None,
out: Optional[wp.array] = None
) -> wp.array
-
-

Retarget one Warp trajectory batch.

Parameters
-
target_pointswp.arrayrequired
-

Float points shaped (batch, frames, targets, 3) in spec.target_names order.

-
-
root_quat_wxyzOptional[wp.array]= None
-

Optional root rotations shaped (batch, frames, 4).

-
-
init_stateOptional[RobotState]= None
-

Optional joint and base warm start.

-
-
outOptional[wp.array]= None
-

Optional packed output shaped (batch, frames, 7 + dofs).

-
Returns
wp.array

Packed base transforms and joint positions.

-
-
-
method[source]
-
HandRetargeterOffline.solve_numpy(
-
target_points: np.ndarray,
root_quat_wxyz: Optional[np.ndarray] = None,
init_state: Optional[RobotState] = None
) -> np.ndarray
-
-

NumPy wrapper for solve().

Parameters
-
target_pointsnp.ndarrayrequired
-
-
-
root_quat_wxyzOptional[np.ndarray]= None
-
-
-
init_stateOptional[RobotState]= None
-
-
Returns
np.ndarray
-
-
-
method[source]
-
HandRetargeterOffline.solve_with_contact(
-
target_points: wp.array,
contact_points: wp.array,
contact_mask: wp.array,
init_state: Optional[RobotState] = None,
local_contact_points: Optional[wp.array] = None,
out: Optional[wp.array] = None,
surface_contact_mask: Optional[wp.array] = None
) -> wp.array
-
-

Retarget with world-frame contacts; an init_state anchors the solution and its motion to that trajectory.

Parameters
-
target_pointswp.arrayrequired
-

Named points shaped (batch, frames, targets, 3).

-
-
contact_pointswp.arrayrequired
-

World contacts shaped (batch, frames, contacts, 3).

-
-
contact_maskwp.arrayrequired
-

Active contacts shaped (batch, frames, contacts).

-
-
init_stateOptional[RobotState]= None
-

Optional state that anchors the solution around that trajectory.

-
-
local_contact_pointsOptional[wp.array]= None
-

Optional contacts in each link frame.

-
-
outOptional[wp.array]= None
-

Optional caller-owned packed output.

-
-
surface_contact_maskOptional[wp.array]= None
-

Optional mask for sphere-surface contacts; uses contact_mask when omitted.

-
Returns
wp.array

Packed base transforms and joint positions.

-
-
-
method[source]
-
HandRetargeterOffline.solve_with_contact_numpy(
-
target_points: np.ndarray,
contact_points: np.ndarray,
contact_mask: np.ndarray,
init_state: Optional[RobotState] = None,
local_contact_points: Optional[np.ndarray] = None,
surface_contact_mask: Optional[np.ndarray] = None
) -> np.ndarray
-
-

NumPy wrapper for solve_with_contact().

Parameters
-
target_pointsnp.ndarrayrequired
-
-
-
contact_pointsnp.ndarrayrequired
-
-
-
contact_masknp.ndarrayrequired
-
-
-
init_stateOptional[RobotState]= None
-
-
-
local_contact_pointsOptional[np.ndarray]= None
-
-
-
surface_contact_maskOptional[np.ndarray]= None
-
-
Returns
np.ndarray
-
-
-
- -
robokit.helpers.hand_retargeting.HandRetargeterOfflineConfig(
-
terms: List[ResidualTask] = _default_offline_terms(),
target_scale: float = 1.0,
optimize_base: bool = True,
active_joint_names: Optional[Tuple[str, ...]] = None,
locked_prefix_frames: int = 0,
solver: LMOptimizerConfig = _offline_solver()
)
-
-

One whole-trajectory problem; contact_config and refine_config derive the contact ones from tracking.

Parameters
-
termsList[ResidualTask]= _default_offline_terms()
-
-
-
target_scalefloat= 1.0
-
-
-
optimize_basebool= True
-
-
-
active_joint_namesOptional[Tuple[str, ...]]= None
-
-
-
locked_prefix_framesint= 0
-
-
-
solverLMOptimizerConfig= _offline_solver()
-
-
Members
-
-
attribute[source]
-
HandRetargeterOfflineConfig.terms: List[ResidualTask] = field(default_factory=_default_offline_terms)
- -
-

Task templates of the tracking solve; HandContext lists their inputs.

-
-
-
attribute[source]
-
HandRetargeterOfflineConfig.target_scale: float = 1.0
- -
-

Scale from human to robot hand size of each trajectory's pairwise targets until set_target_scales.

-
-
-
attribute[source]
-
HandRetargeterOfflineConfig.optimize_base: bool = True
- -
-

Optimize a floating hand's base trajectory; False keeps the initial one.

-
-
-
attribute[source]
-
HandRetargeterOfflineConfig.active_joint_names: Optional[Tuple[str, ...]] = None
- -
-

Joints the solve moves; None moves every joint.

-
-
-
attribute[source]
-
HandRetargeterOfflineConfig.locked_prefix_frames: int = 0
- -
-

Leading frames whose joints keep their initial values; base activity follows optimize_base.

-
-
-
attribute[source]
-
HandRetargeterOfflineConfig.solver: LMOptimizerConfig = field(default_factory=_offline_solver)
- -
-

LM settings of the whole-trajectory solve.

-
-
-
method[source]
-
HandRetargeterOfflineConfig.add(
-
term: ResidualTask,
name: Optional[str] = None
) -> HandRetargeterOfflineConfig
-
-

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HandRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name="rest")
->>> config.task("rest").weight
-0.1
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
HandRetargeterOfflineConfig
-
-
-
method[source]
-
HandRetargeterOfflineConfig.task(
-
name: str
) -> ResidualTask
-
-

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HandRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name="rest")
->>> config.task("rest").weight
-0.2
Parameters
-
namestrrequired
-
-
Returns
ResidualTask
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-hand_eye_calibration/index.html b/docs/robokit/api-hand_eye_calibration/index.html deleted file mode 100644 index 86c858a..0000000 --- a/docs/robokit/api-hand_eye_calibration/index.html +++ /dev/null @@ -1,543 +0,0 @@ - - - - - - Hand-Eye Calibration · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Hand-Eye Calibration

-
-
- -
robokit.helpers.hand_eye_calibration.HandEyeCalibrator(
-
config: HandEyeCalibratorConfig,
robot: Robot,
camera_intrinsic: Float[torch.Tensor, '*obs 3 3'],
height: int,
width: int,
render_link_names: Optional[List[str]] = None,
target_link_names: Optional[Union[List[str], List[List[str]]]] = None
)
-
-

Solve the camera extrinsic from robot silhouette masks and/or depth maps.

Parameters
-
configHandEyeCalibratorConfigrequired
-
-
-
robotRobotrequired
-
-
-
camera_intrinsicFloat[torch.Tensor, '*obs 3 3']required
-
-
-
heightintrequired
-
-
-
widthintrequired
-
-
-
render_link_namesOptional[List[str]]= None
-
-
-
target_link_namesOptional[Union[List[str], List[List[str]]]]= None
-
-
Members
-
-
attribute[source]
-
HandEyeCalibrator.last_q: Optional[torch.Tensor]
- -
- -
-
-
method[source]
-
HandEyeCalibrator.solve(
-
initial_extrinsic: Float[torch.Tensor, '4 4'],
target_masks: Optional[Float[torch.Tensor, 'n_obs height width']] = None,
target_depths: Optional[Float[torch.Tensor, 'n_obs height width']] = None,
observation_weights: Optional[Float[torch.Tensor, n_obs]] = None,
q: Optional[Float[torch.Tensor, '*batch num_dofs']] = None,
T_mount_base: Optional[Float[torch.Tensor, 'n_obs 4 4']] = None,
keypoint_links: Optional[List[str]] = None,
target_keypoints: Optional[torch.Tensor] = None,
keypoint_weights: Optional[torch.Tensor] = None
) -> Float[torch.Tensor, '4 4']
-
-

Solve camera extrinsics from initial_extrinsic.

Lifecycle

  1. Build the solver for new observations, or reuse stored data.
  2. Reset variables and sample camera or joint candidates.
  3. Optionally initialize q from keypoints, then run native population LM.
  4. Retain the best result and restart if mask mismatch remains high.

Data:

  • Any target supplied: replace data and rebuild the solver.
  • No targets supplied: reuse stored data.
Parameters
-
initial_extrinsicFloat[torch.Tensor, '4 4']required
-

Initial OpenCV T_camera_base or mounted-camera T_camera_mount, [4,4].

-
-
target_masksOptional[Float[torch.Tensor, 'n_obs height width']]= None
-

Robot silhouette masks [N, H, W] in [0, 1].

-
-
target_depthsOptional[Float[torch.Tensor, 'n_obs height width']]= None
-

Robot-only depth maps [N, H, W] in meters, 0 = invalid.

-
-
observation_weightsOptional[Float[torch.Tensor, n_obs]]= None
-

Optional nonnegative objective weights [N].

-
-
qOptional[Float[torch.Tensor, '*batch num_dofs']]= None
-

Known [N,num_dofs], or one initial [num_dofs] shared across views with optimize_q; None uses midpoints.

-
-
T_mount_baseOptional[Float[torch.Tensor, 'n_obs 4 4']]= None
-

Per-sample mount pose [N, 4, 4] (mounted camera).

-
-
keypoint_linksOptional[List[str]]= None
-

Optional link-frame origins to project, with optimize_q.

-
-
target_keypointsOptional[torch.Tensor]= None
-

Their observed pixels [N,P,2]. NaNs mark missing points.

-
-
keypoint_weightsOptional[torch.Tensor]= None
-

Optional nonnegative confidence weights [N,P].

-
Returns
Float[torch.Tensor, '4 4']

Optimized extrinsic [4,4] on the input device; last_q stores fitted q and last_var includes model offsets.

-
-
-
- -
robokit.helpers.hand_eye_calibration.HandEyeCalibratorConfig(
-
levels: Sequence[PyramidLevel] = _default_levels(),
terms: Sequence[ResidualTask] = (lambda: [MaskAlignmentNormalEqTask()])(),
solver: PopulationSolverConfig = _default_solver(),
candidate_noise_t: float = 0.35,
candidate_noise_r: float = 0.7,
restart_mismatch: float = 0.5,
max_restarts: int = 4,
seed: int = 0,
optimize_q: bool = False,
optimize_camera: bool = True,
candidate_noise_q: Optional[float] = None,
keypoint_weight: float = 0.03,
keypoint_sigma: float = 8.0,
keypoint_huber_delta: float = 12.0,
keypoint_warmup_iters: int = 24,
candidate_metric: Literal['objective', 'iou'] = 'objective'
)
-
-

Eager fitting with pyramid levels, cost terms and candidate sampling.

Example

python
>>> config = HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False)
->>> config.optimize_q, config.optimize_camera, config.candidate_noise_q
-(True, False, None)
Parameters
-
levelsSequence[PyramidLevel]= _default_levels()
-
-
-
termsSequence[ResidualTask]= (lambda: [MaskAlignmentNormalEqTask()])()
-
-
-
solverPopulationSolverConfig= _default_solver()
-
-
-
candidate_noise_tfloat= 0.35
-
-
-
candidate_noise_rfloat= 0.7
-
-
-
restart_mismatchfloat= 0.5
-
-
-
max_restartsint= 4
-
-
-
seedint= 0
-
-
-
optimize_qbool= False
-
-
-
optimize_camerabool= True
-
-
-
candidate_noise_qOptional[float]= None
-
-
-
keypoint_weightfloat= 0.03
-
-
-
keypoint_sigmafloat= 8.0
-
-
-
keypoint_huber_deltafloat= 12.0
-
-
-
keypoint_warmup_itersint= 24
-
-
-
candidate_metricLiteral['objective', 'iou']= 'objective'
-
-
Members
-
-
attribute[source]
-
HandEyeCalibratorConfig.levels: Sequence[PyramidLevel] = field(default_factory=_default_levels)
- -
-

Coarse-to-fine levels, one per solver segment.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.terms: Sequence[ResidualTask] = field(default_factory=lambda: [MaskAlignmentNormalEqTask()])
- -
-

Cost terms; each walks levels itself. MaskAlignmentOffsetTask also calibrates the kinematic model.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.solver: PopulationSolverConfig = field(default_factory=_default_solver)
- -
-

One segment per level; native final ranking returns the best candidate.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.candidate_noise_t: float = 0.35
- -
-

Largest translation (m) of the initial candidates from the initial guess; each draws 0.5-1x of it.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.candidate_noise_r: float = 0.7
- -
-

Largest rotation (rad) of the initial candidates from the initial guess; each draws 0.5-1x of it.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.restart_mismatch: float = 0.5
- -
-

Re-solve with fresh candidates while the final mask mismatch (2 * cost / target mask area) exceeds this.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.max_restarts: int = 4
- -
-

Re-solves allowed after the first; 0 turns restarts off.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.seed: int = 0
- -
-

Seed of the candidate noise.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.optimize_q: bool = False
- -
-

Fit one unknown q vector shared across views; solve(q=...) takes an initial [num_dofs] guess.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.optimize_camera: bool = True
- -
-

Optimize the camera extrinsic; False keeps the supplied extrinsic fixed.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.candidate_noise_q: Optional[float] = None
- -
-

Joint sampling radius in radians/meters; None samples the full finite joint limits. Candidate 0 keeps initial q.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.keypoint_weight: float = 0.03
- -
-

Relative weight of optional 2D link-origin observations.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.keypoint_sigma: float = 8.0
- -
-

Keypoint residual scale in input-image pixels.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.keypoint_huber_delta: float = 12.0
- -
-

Robust-loss transition in input-image pixels.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.keypoint_warmup_iters: int = 24
- -
-

Keypoint-only initialization steps; half the broad samples remain unmodified.

-
-
-
attribute[source]
-
HandEyeCalibratorConfig.candidate_metric: Literal['objective', 'iou'] = 'objective'
- -
-

Select by cost or soft IoU; IoU mode uses union-normalized coarse fitting.

-
-
-
- -
robokit.helpers.hand_eye_calibration.QposTrajectoryCalibrator(
-
config: QposTrajectoryCalibratorConfig,
robot: Robot,
camera_intrinsic: torch.Tensor,
height: int,
width: int,
render_link_names: Optional[List[str]] = None
)
-
-

Fit unknown q[T,J], optionally refining static cameras[V,4,4] shared over time; temporal penalties apply only to q.

Example (CUDA, robot meshes and observations required):

python
>>> from robokit.helpers.hand_eye_calibration import presets
->>> config = presets.rgb_qpos_trajectory
->>> config.optimize_camera
-False
->>> # helper = QposTrajectoryCalibrator(config, robot, K, H, W)
->>> # cameras = helper.solve(cameras, masks, timestamps)
->>> # helper.last_q.shape  # (timestamps, joints)
Parameters
-
configQposTrajectoryCalibratorConfigrequired
-
-
-
robotRobotrequired
-
-
-
camera_intrinsictorch.Tensorrequired
-
-
-
heightintrequired
-
-
-
widthintrequired
-
-
-
render_link_namesOptional[List[str]]= None
-
-
Members
-
-
method[source]
-
QposTrajectoryCalibrator.solve(
-
initial_extrinsics: torch.Tensor,
target_masks: torch.Tensor,
timestamps: torch.Tensor,
observation_weights: Optional[torch.Tensor] = None,
q: Optional[torch.Tensor] = None,
keypoint_links: Optional[List[str]] = None,
target_keypoints: Optional[torch.Tensor] = None,
keypoint_weights: Optional[torch.Tensor] = None
) -> torch.Tensor
-
-

Fit synchronized silhouettes and optional keypoints to a joint trajectory; an empty mask with positive weight constrains absence.

Lifecycle

  1. Validate calibration, timestamps and observations; normalize mask costs by area.
  2. Initialize a coherent trajectory, or use supplied q without frame sampling.
  3. Fit the coupled image, temporal and optional camera system.
  4. Resolve shared joint offsets against source frames and retain joints and cameras.

Outputs

last_frame_q: Independent frame fits, or the supplied q. last_initial_q: Coherent path before coupled refinement, or the supplied q. last_q: Final joint result [T,J] on the input device.

Parameters
-
initial_extrinsicstorch.Tensorrequired
-

Static calibrated cameras [V,4,4].

-
-
target_maskstorch.Tensorrequired
-

Silhouettes [T,V,H,W] in [0,1].

-
-
timestampstorch.Tensorrequired
-

Finite, strictly increasing source times [T].

-
-
observation_weightsOptional[torch.Tensor]= None
-

Nonnegative mask weights [T,V]; zero marks a missing view.

-
-
qOptional[torch.Tensor]= None
-

Optional joint trajectory [T,J]; skips frame sampling.

-
-
keypoint_linksOptional[List[str]]= None
-

Link-frame origins [P] observed by the keypoints.

-
-
target_keypointsOptional[torch.Tensor]= None
-

Image coordinates [T,V,P,2]; NaNs mark missing points.

-
-
keypoint_weightsOptional[torch.Tensor]= None
-

Optional confidence weights [T,V,P]; zero excludes a point.

-
Returns
torch.Tensor

Cameras [V,4,4] on the input device; fixed unless camera refinement is enabled.

-
-
-
- -
robokit.helpers.hand_eye_calibration.QposTrajectoryCalibratorConfig(
-
frame: HandEyeCalibratorConfig = (lambda: HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False))(),
initialization_frames: Optional[int] = None,
initialization_paths: int = 1,
initialization_repairs: int = 0,
initialization_seconds: Optional[float] = None,
levels: Sequence[PyramidLevel] = (lambda: [PyramidLevel(4, 1.0, 5), PyramidLevel(1, 0.0, 5)])(),
solver: PopulationSolverConfig = (lambda: PopulationSolverConfig(stages=[Stage(20, 1, LMOptimizerConfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), Stage(20)]))(),
path_weight: float = 0.08,
velocity_weight: float = 0.015,
acceleration_weight: float = 0.02,
optimize_camera: bool = False,
camera_prior_weight: float = 0.0,
camera_prior_t: float = 0.03,
camera_prior_r: float = 0.06
)
-
-

Eager frame fitting followed by coupled mask and temporal refinement.

python
>>> config = QposTrajectoryCalibratorConfig(velocity_weight=0.01)
->>> config.optimize_camera, config.velocity_weight
-(False, 0.01)
Parameters
-
frameHandEyeCalibratorConfig= (lambda: HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False))()
-
-
-
initialization_framesOptional[int]= None
-
-
-
initialization_pathsint= 1
-
-
-
initialization_repairsint= 0
-
-
-
initialization_secondsOptional[float]= None
-
-
-
levelsSequence[PyramidLevel]= (lambda: [PyramidLevel(4, 1.0, 5), PyramidLevel(1, 0.0, 5)])()
-
-
-
solverPopulationSolverConfig= (lambda: PopulationSolverConfig(stages=[Stage(20, 1, LMOptimizerConfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), Stage(20)]))()
-
-
-
path_weightfloat= 0.08
-
-
-
velocity_weightfloat= 0.015
-
-
-
acceleration_weightfloat= 0.02
-
-
-
optimize_camerabool= False
-
-
-
camera_prior_weightfloat= 0.0
-
-
-
camera_prior_tfloat= 0.03
-
-
-
camera_prior_rfloat= 0.06
-
-
Members
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.frame: HandEyeCalibratorConfig = field(default_factory=lambda: HandEyeCalibratorConfig(optimize_q=True, optimize_camera=False))
- -
-

Unknown-qpos frame initialization; cameras stay fixed during initialization.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.initialization_frames: Optional[int] = None
- -
-

Limit broad frame searches to this many visible frames; interpolate before fitting every frame. None searches all.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.initialization_paths: int = 1
- -
-

Alternative initial pose branches to rank against every source mask before refinement.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.initialization_repairs: int = 0
- -
-

Additional frame searches at the worst fitted source times; 0 disables repair.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.initialization_seconds: Optional[float] = None
- -
-

Stop starting repairs after this initialization time; the initial searches and ranking still complete.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.levels: Sequence[PyramidLevel] = field(default_factory=lambda: [PyramidLevel(4, 1.0, 5), PyramidLevel(1, 0.0, 5)])
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.solver: PopulationSolverConfig = field(default_factory=lambda: PopulationSolverConfig(stages=[Stage(20, 1, LMOptimizerConfig(lm_lambda=0.001, rho_min=0.001, early_stopping_interval=2)), Stage(20)]))
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.path_weight: float = 0.08
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.velocity_weight: float = 0.015
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.acceleration_weight: float = 0.02
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.optimize_camera: bool = False
- -
-

Refine one static extrinsic per view, shared across all frames.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.camera_prior_weight: float = 0.0
- -
-

Prior cost relative to the supplied calibration; 0 disables it.

-
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.camera_prior_t: float = 0.03
- -
- -
-
-
attribute[source]
-
QposTrajectoryCalibratorConfig.camera_prior_r: float = 0.06
- -
-

Translation (m) and rotation (rad) scales of shared camera corrections.

-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-humanoid-retargeting/index.html b/docs/robokit/api-humanoid-retargeting/index.html deleted file mode 100644 index 28f7e8a..0000000 --- a/docs/robokit/api-humanoid-retargeting/index.html +++ /dev/null @@ -1,604 +0,0 @@ - - - - - - Humanoid Retargeting · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Humanoid Retargeting

-
-
- -
robokit.helpers.humanoid_retargeting.HumanoidRetargeterOnline(
-
config: HumanoidRetargeterOnlineConfig,
robot: Optional[Robot] = None,
scene: Optional[WarpScene] = None,
device: Optional[wp_device_type] = None,
seed: int = 0
)
-
-

Online humanoid retargeting with input joints ordered by human_joint_names.

Lifecycle

  1. __init__ stores the robot, configuration, and caller-owned scene.
  2. warmup(batch_size) builds batch-shaped buffers and solvers.
  3. solve(T_world_human) advances one batched frame from Warp inputs.
Parameters
-
configHumanoidRetargeterOnlineConfigrequired
-
-
-
robotOptional[Robot]= None
-
-
-
sceneOptional[WarpScene]= None
-
-
-
deviceOptional[wp_device_type]= None
-
-
-
seedint= 0
-
-
Members
-
-
property[source]
-
HumanoidRetargeterOnline.interaction_task: InteractionMeshTask
- -
-

Return the interaction task; set its first frame before warmup and update it before each solve.

-
-
-
method[source]
-
HumanoidRetargeterOnline.warmup(
-
batch_size: int
)
-
-

Fix the online batch size and build its reusable solver state.

Parameters
-
batch_sizeintrequired
-
-
-
-
-
method[source]
-
HumanoidRetargeterOnline.solve(
-
T_world_human: wp.array,
human_heights: Optional[wp.array] = None,
out: Optional[wp.array] = None
) -> wp.array
-
-

Retarget one batched human frame from Warp inputs.

Lifecycle

  1. Validate the shape fixed by warmup(...).
  2. Update temporal terms from the previous robot state.
  3. Compute targets and candidate states.
  4. Solve once, retain the state, and write the requested output buffer.
Parameters
-
T_world_humanwp.arrayrequired
-

Human joint transforms with shape (batch, joints).

-
-
human_heightsOptional[wp.array]= None
-

Optional human height in meters for each batch element.

-
-
outOptional[wp.array]= None
-

Optional caller-owned output with shape (batch, 7 + dofs).

-
Returns
wp.array

out when provided; otherwise a reusable helper-owned buffer overwritten by the next call.

-
-
-
method[source]
-
HumanoidRetargeterOnline.solve_numpy(
-
T_world_human: np.ndarray,
human_heights: Optional[np.ndarray] = None
) -> np.ndarray
-
-

Convert NumPy inputs, call solve(...), and return a NumPy copy.

Parameters
-
T_world_humannp.ndarrayrequired
-
-
-
human_heightsOptional[np.ndarray]= None
-
-
Returns
np.ndarray
-
-
-
method[source]
-
HumanoidRetargeterOnline.reset(
-
T_world_base: Optional[wp.array] = None
)
-
-

Reset temporal state, optionally from an initial floating-base transform.

Parameters
-
T_world_baseOptional[wp.array]= None
-
-
-
-
-
- -
robokit.helpers.humanoid_retargeting.HumanoidRetargeterOnlineConfig(
-
terms: List[ResidualTask] = _default_online_terms(),
urdf_path: Optional[str] = None,
human_root_name: str = 'pelvis',
human_height_assumption: float = 1.8,
ground_height: float = 0.0,
collision_spheres_path: Optional[Union[str, Path]] = None,
scale_table: Dict[str, float] = dict(),
link_mapping: Dict[str, LinkMapping] = dict(),
correspondence_edges: Optional[List[CorrespondenceEdge]] = None,
interaction_terms: List[ResidualTask] = list(),
velocity_limit_dt: float = 1.0 / 30.0,
velocity_clamp_scale: float = 0.6,
velocity_limit_override: Optional[Sequence[Union[int, float]]] = None,
solver: PopulationSolverConfig = _default_retargeting_solver()
)
-
-

A robot's human-to-robot mapping, task templates and per-frame solver; offline retargeting reuses the mapping.

Parameters
-
termsList[ResidualTask]= _default_online_terms()
-
-
-
urdf_pathOptional[str]= None
-
-
-
human_root_namestr= 'pelvis'
-
-
-
human_height_assumptionfloat= 1.8
-
-
-
ground_heightfloat= 0.0
-
-
-
collision_spheres_pathOptional[Union[str, Path]]= None
-
-
-
scale_tableDict[str, float]= dict()
-
-
-
link_mappingDict[str, LinkMapping]= dict()
-
-
-
correspondence_edgesOptional[List[CorrespondenceEdge]]= None
-
-
-
interaction_termsList[ResidualTask]= list()
-
-
-
velocity_limit_dtfloat= 1.0 / 30.0
-
-
-
velocity_clamp_scalefloat= 0.6
-
-
-
velocity_limit_overrideOptional[Sequence[Union[int, float]]]= None
-
-
-
solverPopulationSolverConfig= _default_retargeting_solver()
-
-
Members
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.terms: List[ResidualTask] = field(default_factory=_default_online_terms)
- -
-

Task templates; each names its inputs with HumanoidContext members.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.urdf_path: Optional[str] = None
- -
-

Robot URDF, loaded when the retargeter gets no robot.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.human_root_name: str = 'pelvis'
- -
-

Human joint that places the robot base.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.human_height_assumption: float = 1.8
- -
-

Human height in meters when a solve gets no human_heights.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.ground_height: float = 0.0
- -
-

Ground height of the human motion, subtracted from every target height.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.collision_spheres_path: Optional[Union[str, Path]] = None
- -
-

Robot collision spheres, needed by a weighted self-collision task.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.scale_table: Dict[str, float] = field(default_factory=dict)
- -
-

Target scale per human joint; absent joints use 1.0.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.correspondence_edges: Optional[List[CorrespondenceEdge]] = None
- -
-

Link vectors the correspondence task drives toward human joint vectors; None is off (online only).

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.interaction_terms: List[ResidualTask] = field(default_factory=list)
- -
-

Interaction-mesh task templates, built at construction so the first frame is set before warmup; empty is off.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.velocity_limit_dt: float = 1.0 / 30.0
- -
-

Time between frames, for the velocity limits and the output clamp.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.velocity_clamp_scale: float = 0.6
- -
-

Clamp each output step at this fraction of the velocity limits; 0 is off.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.velocity_limit_override: Optional[Sequence[Union[int, float]]] = None
- -
-

Joint velocity limits in rad/s, replacing the URDF's; None uses the URDF's.

-
-
-
attribute[source]
-
HumanoidRetargeterOnlineConfig.solver: PopulationSolverConfig = field(default_factory=_default_retargeting_solver)
- -
-

Candidate schedule and optimizers of each frame's solve.

-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.add(
-
term: ResidualTask,
name: Optional[str] = None
) -> HumanoidRetargeterOnlineConfig
-
-

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HumanoidRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name="rest")
->>> config.task("rest").weight
-0.1
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
HumanoidRetargeterOnlineConfig
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.task(
-
name: str
) -> ResidualTask
-
-

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HumanoidRetargeterOnlineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name="rest")
->>> config.task("rest").weight
-0.2
Parameters
-
namestrrequired
-
-
Returns
ResidualTask
-
-
-
property[source]
-
HumanoidRetargeterOnlineConfig.human_joint_names: Tuple[str, ...]
- -
-

Return the ordered human joints expected by the solve APIs.

Example

python
>>> import numpy as np
->>> config = HumanoidRetargeterOnlineConfig(
-...     link_mapping={"torso": LinkMapping("spine", np.zeros(3), np.zeros(4))},
-... )
->>> config.human_joint_names  # mapped joints first, then the root
-('spine', 'pelvis')
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.target_arrays(
-
human_joint_names: Sequence[str]
) -> TargetArrays
-
-

Resolve link_mapping in input human_joint_names order for both solvers' compute_targets_kernel arrays.

Example

python
>>> import numpy as np
->>> config = HumanoidRetargeterOnlineConfig(
-...     link_mapping={
-...         "torso": LinkMapping("spine", np.zeros(3), np.zeros(4)),
-...         "hip": LinkMapping("pelvis", np.zeros(3), np.zeros(4)),
-...     },
-...     scale_table={"spine": 0.9},
-... )
->>> arrays = config.target_arrays(config.human_joint_names)
->>> arrays.joint_indices.tolist(), arrays.scales.tolist()
-([0, 1], [0.8999999761581421, 1.0])
->>> arrays.root_joint_index, arrays.root_target_index
-(1, 1)
->>> arrays.rotation_offsets[0].tolist()  # zero offset normalizes to identity
-[1.0, 0.0, 0.0, 0.0]
Parameters
-
human_joint_namesSequence[str]required
-
-
Returns
TargetArrays
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.from_yaml(
-
yaml_path: Union[str, Path]
) -> HumanoidRetargeterOnlineConfig
-
-
Parameters
-
yaml_pathUnion[str, Path]required
-
-
Returns
HumanoidRetargeterOnlineConfig
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.to_dict() -> dict
- -
-
Returns
dict
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.to_yaml(
-
yaml_path: Union[str, Path]
)
-
-
Parameters
-
yaml_pathUnion[str, Path]required
-
-
-
-
-
method[source]
-
HumanoidRetargeterOnlineConfig.load_robot(
-
load_meshes: bool = False
) -> Robot
-
-

Load the config's robot, with its collision spheres when the config names them.

Parameters
-
load_meshesbool= False
-
-
Returns
Robot
-
-
-
- -
robokit.helpers.humanoid_retargeting.HumanoidRetargeterOffline(
-
config: HumanoidRetargeterOnlineConfig,
offline_config: HumanoidRetargeterOfflineConfig,
robot: Optional[Robot] = None,
device: Optional[wp_device_type] = None
)
-
-

Whole-clip retargeting with input joints ordered by human_joint_names.

Lifecycle

  1. __init__ stores the robot and configuration.
  2. warmup(batch_size, num_frames) builds shape-specific buffers and optimizers.
  3. solve(T_world_human) retargets one fixed-shape Warp trajectory batch.
Parameters
-
configHumanoidRetargeterOnlineConfigrequired
-
-
-
offline_configHumanoidRetargeterOfflineConfigrequired
-
-
-
robotOptional[Robot]= None
-
-
-
deviceOptional[wp_device_type]= None
-
-
Members
-
-
method[source]
-
HumanoidRetargeterOffline.warmup(
-
batch_size: int,
num_frames: int
)
-
-

Build and cache all state for (batch_size, num_frames).

Parameters
-
batch_sizeintrequired
-
-
-
num_framesintrequired
-
-
-
-
-
method[source]
-
HumanoidRetargeterOffline.solve(
-
T_world_human: wp.array,
valid_lengths: Optional[wp.array] = None,
human_heights: Optional[wp.array] = None,
out: Optional[wp.array] = None,
target_overrides: Optional[Dict[str, np.ndarray]] = None
) -> wp.array
-
-

Retarget one padded [B, T, J] Warp trajectory batch.

Lifecycle

  1. Validate the shape fixed by warmup(...).
  2. Compute all frame targets and independent IK warm starts.
  3. Reset the cached trajectory state and valid-frame masks.
  4. Solve once and write the requested padded output buffer.
Parameters
-
T_world_humanwp.arrayrequired
-

Human joint transforms with shape (batch, frames, joints).

-
-
valid_lengthsOptional[wp.array]= None
-

Optional valid frame count for each padded batch element.

-
-
human_heightsOptional[wp.array]= None
-

Optional human height in meters for each batch element.

-
-
outOptional[wp.array]= None
-

Optional caller-owned output with shape (batch, frames, 7 + dofs).

-
-
target_overridesOptional[Dict[str, np.ndarray]]= None
-

Optional (batch, frames, 7) target tracks keyed by robot link; they move the IK warm start and TARGET_POSITIONS, while orientation templates read TARGETS (the mapped poses) unless they read OVERRIDDEN_TARGETS.

-
Returns
wp.array

out when provided; otherwise a reusable helper-owned buffer overwritten by the next call.

-
-
-
method[source]
-
HumanoidRetargeterOffline.solve_numpy(
-
T_world_human: np.ndarray,
valid_lengths: Optional[np.ndarray] = None,
human_heights: Optional[np.ndarray] = None,
target_overrides: Optional[Dict[str, np.ndarray]] = None
) -> np.ndarray
-
-

Convert padded [B, T, J, 7] NumPy inputs, warm up for their shape, solve, and return a NumPy copy.

Parameters
-
T_world_humannp.ndarrayrequired
-
-
-
valid_lengthsOptional[np.ndarray]= None
-
-
-
human_heightsOptional[np.ndarray]= None
-
-
-
target_overridesOptional[Dict[str, np.ndarray]]= None
-
-
Returns
np.ndarray
-
-
-
- -
robokit.helpers.humanoid_retargeting.HumanoidRetargeterOfflineConfig(
-
terms: List[ResidualTask] = _default_offline_terms(),
warm_start: IKSolverConfig = (lambda: IKSolverConfig(enable_T_world_base=True, solver=PopulationSolverConfig(stages=[Stage(6, 4, LMOptimizerConfig(lm_lambda=1.5)), Stage(3, 1)])).add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0)).add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0)).add(PositionLimit(weight=30.0)))(),
solver: LMOptimizerConfig = (lambda: LMOptimizerConfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))()
)
-
-

Whole-clip optimizer settings; the paired online config supplies the mapping and velocity limits.

Parameters
-
termsList[ResidualTask]= _default_offline_terms()
-
-
-
warm_startIKSolverConfig= (lambda: IKSolverConfig(enable_T_world_base=True, solver=PopulationSolverConfig(stages=[Stage(6, 4, LMOptimizerConfig(lm_lambda=1.5)), Stage(3, 1)])).add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0)).add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0)).add(PositionLimit(weight=30.0)))()
-
-
-
solverLMOptimizerConfig= (lambda: LMOptimizerConfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))()
-
-
Members
-
-
attribute[source]
-
HumanoidRetargeterOfflineConfig.terms: List[ResidualTask] = field(default_factory=_default_offline_terms)
- -
-

Trajectory task templates; tracking weights are per link, and self-collision costs O(pairs) per frame.

-
-
-
attribute[source]
-
HumanoidRetargeterOfflineConfig.warm_start: IKSolverConfig = field(default_factory=lambda: IKSolverConfig(enable_T_world_base=True, solver=PopulationSolverConfig(stages=[Stage(6, 4, LMOptimizerConfig(lm_lambda=1.5)), Stage(3, 1)])).add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0)).add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0)).add(PositionLimit(weight=30.0)))
- -
-

Per-frame IK that seeds the trajectory.

-
-
-
attribute[source]
-
HumanoidRetargeterOfflineConfig.solver: LMOptimizerConfig = field(default_factory=lambda: LMOptimizerConfig(linear_solver='cg', lm_lambda=0.5, max_iter=25, lambda_min=1e-06, lambda_max=1000000.0, rho_min=0.0001, cuda_graph_mode='full'))
- -
-

Trajectory solver.

-
-
-
method[source]
-
HumanoidRetargeterOfflineConfig.add(
-
term: ResidualTask,
name: Optional[str] = None
) -> HumanoidRetargeterOfflineConfig
-
-

Append a task, optionally assigning its input role.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HumanoidRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.1), name="rest")
->>> config.task("rest").weight
-0.1
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
HumanoidRetargeterOfflineConfig
-
-
-
method[source]
-
HumanoidRetargeterOfflineConfig.task(
-
name: str
) -> ResidualTask
-
-

Return a named task; raise KeyError when absent.

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> config = HumanoidRetargeterOfflineConfig(terms=[]).add(ConfigurationTask(weight=0.2), name="rest")
->>> config.task("rest").weight
-0.2
Parameters
-
namestrrequired
-
-
Returns
ResidualTask
-
-
-
method[source]
-
HumanoidRetargeterOfflineConfig.from_yaml(
-
yaml_path: Union[str, Path]
) -> HumanoidRetargeterOfflineConfig
-
-
Parameters
-
yaml_pathUnion[str, Path]required
-
-
Returns
HumanoidRetargeterOfflineConfig
-
-
-
method[source]
-
HumanoidRetargeterOfflineConfig.to_yaml(
-
yaml_path: Union[str, Path]
)
-
-
Parameters
-
yaml_pathUnion[str, Path]required
-
-
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-ik/index.html b/docs/robokit/api-ik/index.html deleted file mode 100644 index 60a2e80..0000000 --- a/docs/robokit/api-ik/index.html +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - Inverse Kinematics · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Inverse Kinematics

-
-
- -
robokit.helpers.ik.IKSolver(
-
config: IKSolverConfig,
robot: Robot,
target_links: Union[str, int, Sequence[Union[str, int]]],
device: Optional[wp_device_type] = None,
scene: Optional[WarpScene] = None
)
-
-

IK solver accepting one target link or a sequence, using names or indices.

Parameters
-
configIKSolverConfigrequired
-
-
-
robotRobotrequired
-
-
-
target_linksUnion[str, int, Sequence[Union[str, int]]]required
-
-
-
deviceOptional[wp_device_type]= None
-
-
-
sceneOptional[WarpScene]= None
-
-
Members
-
-
attribute[source]
-
IKSolver.robot: Robot
- -
- -
-
-
property[source]
-
IKSolver.num_targets: int
- -
- -
-
-
property[source]
-
IKSolver.num_solutions: int
- -
-

Number of solutions returned per target instance.

-
-
-
method[source]
-
IKSolver.set_weight(
-
name: str,
value: Union[float, Sequence[float]]
)
-
-

Update a term's weight in-place: scalar for uniform, per-link sequence for terms on the target links.

Parameters
-
namestrrequired
-
-
-
valueUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
IKSolver.set_active_joint_mask(
-
joint_mask: Sequence[float]
)
-
-

Set which actuated joints are active (1.0) or locked (0.0).

Parameters
-
joint_maskSequence[float]required
-
-
-
-
-
method[source]
-
IKSolver.set_active_base_mask(
-
base_mask: Sequence[float]
)
-
-

Set active (1.0)/locked (0.0) base DOFs [x,y,z,roll,pitch,yaw]; needs enable_T_world_base=True.

Parameters
-
base_maskSequence[float]required
-
-
-
-
-
method[source]
-
IKSolver.warmup(
-
batch_size: int
)
-
-

Eagerly build the multi-candidate solver for a given batch size.

Parameters
-
batch_sizeintrequired
-
-
-
-
-
method[source]
-
IKSolver.solve(
-
T_world_target: wp.array,
prev_state: Optional[RobotState] = None,
init_state: Optional[RobotState] = None,
rest_state: Optional[RobotState] = None,
out_state: Optional[RobotState] = None,
init_sample_range: Optional[float] = None,
base_init_sample_range: Optional[Sequence[float]] = None,
scene_indices: Optional[wp.array] = None
) -> RobotState
-
-

Solve IK and return instance-major final-stage solutions shaped (batch * num_solutions, dofs); solver.rank_final=True sorts them best first within each instance.

Parameters
-
T_world_targetwp.arrayrequired
-
-
-
prev_stateOptional[RobotState]= None
-
-
-
init_stateOptional[RobotState]= None
-
-
-
rest_stateOptional[RobotState]= None
-
-
-
out_stateOptional[RobotState]= None
-
-
-
init_sample_rangeOptional[float]= None
-
-
-
base_init_sample_rangeOptional[Sequence[float]]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
Returns
RobotState
-
-
-
method[source]
-
IKSolver.solve_torch(
-
T_world_target: torch.Tensor,
prev_state: Optional[RobotState] = None,
init_q: Optional[torch.Tensor] = None,
init_T_world_base: Optional[torch.Tensor] = None,
rest_q: Optional[torch.Tensor] = None,
rest_T_world_base: Optional[torch.Tensor] = None,
init_sample_range: Optional[float] = None,
base_init_sample_range: Optional[Sequence[float]] = None
) -> IKResultTorch
-
-
Parameters
-
T_world_targettorch.Tensorrequired
-
-
-
prev_stateOptional[RobotState]= None
-
-
-
init_qOptional[torch.Tensor]= None
-
-
-
init_T_world_baseOptional[torch.Tensor]= None
-
-
-
rest_qOptional[torch.Tensor]= None
-
-
-
rest_T_world_baseOptional[torch.Tensor]= None
-
-
-
init_sample_rangeOptional[float]= None
-
-
-
base_init_sample_rangeOptional[Sequence[float]]= None
-
-
Returns
IKResultTorch
-
-
-
method[source]
-
IKSolver.solve_numpy(
-
T_world_target: np.ndarray,
prev_state: Optional[RobotState] = None,
init_state: Optional[RobotState] = None,
rest_state: Optional[RobotState] = None,
out_state: Optional[RobotState] = None,
init_sample_range: Optional[float] = None,
base_init_sample_range: Optional[Sequence[float]] = None
) -> RobotState
-
-
Parameters
-
T_world_targetnp.ndarrayrequired
-
-
-
prev_stateOptional[RobotState]= None
-
-
-
init_stateOptional[RobotState]= None
-
-
-
rest_stateOptional[RobotState]= None
-
-
-
out_stateOptional[RobotState]= None
-
-
-
init_sample_rangeOptional[float]= None
-
-
-
base_init_sample_rangeOptional[Sequence[float]]= None
-
-
Returns
RobotState
-
-
-
method[source]
-
IKSolver.compute_costs(
-
state: RobotState,
T_world_target: wp.array,
prev_state: Optional[RobotState] = None,
scene_indices: Optional[wp.array] = None
) -> Dict[str, wp.array]
-
-
Parameters
-
stateRobotStaterequired
-
-
-
T_world_targetwp.arrayrequired
-
-
-
prev_stateOptional[RobotState]= None
-
-
-
scene_indicesOptional[wp.array]= None
-
-
Returns
Dict[str, wp.array]
-
-
-
method[source]
-
IKSolver.compute_metrics(
-
state: RobotState,
T_world_target: wp.array,
position_threshold_m: float = 0.005,
orientation_threshold_rad: float = 0.05,
out: Optional[IKMetrics] = None
) -> IKMetrics
-
-

Task-space accuracy of state against T_world_target, independent of term weights.

Parameters
-
stateRobotStaterequired
-

Robot state to score; any solver's output works, not just this one's.

-
-
T_world_targetwp.arrayrequired
-

[batch, num_targets] wp_vec7 targets on this solver's device.

-
-
position_threshold_mfloat= 0.005
-

Success threshold on translation error.

-
-
orientation_threshold_radfloat= 0.05
-

Success threshold on rotation error.

-
-
outOptional[IKMetrics]= None
-

Buffers to write in place, from an earlier call; allocated when omitted.

-
Returns
IKMetrics

Errors per target and per-batch success.

-
-
-
method[source]
-
IKSolver.compute_metrics_numpy(
-
state: RobotState,
T_world_target: np.ndarray,
position_threshold_m: float = 0.005,
orientation_threshold_rad: float = 0.05
) -> IKMetrics
-
-

compute_metrics for numpy targets shaped (7,), (batch, 7) or (batch, num_targets, 7).

Parameters
-
stateRobotStaterequired
-

Robot state to score; any solver's output works, not just this one's.

-
-
T_world_targetnp.ndarrayrequired
-

Targets as [x, y, z, q_w, q_x, q_y, q_z].

-
-
position_threshold_mfloat= 0.005
-

Success threshold on translation error.

-
-
orientation_threshold_radfloat= 0.05
-

Success threshold on rotation error.

-
Returns
IKMetrics

Errors per target and per-batch success, as numpy arrays.

-
-
-
- -
robokit.helpers.ik.IKSolverConfig(
-
terms: List[ResidualTask] = list(),
score_terms: List[ResidualTask] = list(),
solver: PopulationSolverConfig = _default_ik_solver_config(),
sampler: RobertsSamplerConfig = (lambda: RobertsSamplerConfig(keep_first=True))(),
base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0),
enable_T_world_base: bool = False,
base_active_mask: Sequence[float] = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
)
-
-

Robot-free IK configuration; build it with IKSolver(config, robot, target_links).

Parameters
-
termsList[ResidualTask]= list()
-
-
-
score_termsList[ResidualTask]= list()
-
-
-
solverPopulationSolverConfig= _default_ik_solver_config()
-
-
-
samplerRobertsSamplerConfig= (lambda: RobertsSamplerConfig(keep_first=True))()
-
-
-
base_init_sample_rangeTuple[float, float, float]= (0.1, 0.1, 0.0)
-
-
-
enable_T_world_basebool= False
-
-
-
base_active_maskSequence[float]= (1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
-
-
Members
-
-
attribute[source]
-
IKSolverConfig.terms: List[ResidualTask] = field(default_factory=list)
- -
-

Optimization task templates; IKContext lists their inputs.

-
-
-
attribute[source]
-
IKSolverConfig.score_terms: List[ResidualTask] = field(default_factory=list)
- -
-

Task templates that rank candidates at each select without changing optimization; empty ranks by cost.

-
-
-
attribute[source]
-
IKSolverConfig.solver: PopulationSolverConfig = field(default_factory=_default_ik_solver_config)
- -
-

Candidate schedule and LM settings; the last segment's width is the solutions returned per target.

-
-
-
attribute[source]
-
IKSolverConfig.sampler: RobertsSamplerConfig = field(default_factory=lambda: RobertsSamplerConfig(keep_first=True))
- -
-

Joint noise of the initial candidates; scale is a fraction of each joint's range around init_state.

-
-
-
attribute[source]
-
IKSolverConfig.base_init_sample_range: Tuple[float, float, float] = (0.1, 0.1, 0.0)
- -
-

Per-axis base translation noise (m) around init_state, for a floating base.

-
-
-
attribute[source]
-
IKSolverConfig.enable_T_world_base: bool = False
- -
-

Optimize the six floating-base DOFs along with the joints.

-
-
-
attribute[source]
-
IKSolverConfig.base_active_mask: Sequence[float] = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
- -
-

Active (1.0) or locked (0.0) base DOFs [x, y, z, roll, pitch, yaw]; locking needs enable_T_world_base.

-
-
-
method[source]
-
IKSolverConfig.add(
-
term: ResidualTask,
name: Optional[str] = None
) -> IKSolverConfig
-
-
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
IKSolverConfig
-
-
-
method[source]
-
IKSolverConfig.add_score(
-
term: ResidualTask,
name: Optional[str] = None
) -> IKSolverConfig
-
-
Parameters
-
termResidualTaskrequired
-
-
-
nameOptional[str]= None
-
-
Returns
IKSolverConfig
-
-
-
method[source]
-
IKSolverConfig.task(
-
name: str
) -> ResidualTask
-
-

Return the term added under name, so a caller can complete a preset stub.

Parameters
-
namestrrequired
-
-
Returns
ResidualTask
-
-
-
- -
robokit.helpers.ik.IKResultTorch
-
Bases: NamedTuple
-
-
Members
-
-
attribute[source]
-
IKResultTorch.q: torch.Tensor
- -
- -
-
-
attribute[source]
-
IKResultTorch.T_world_base: Optional[torch.Tensor] = None
- -
- -
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-motion-plan/index.html b/docs/robokit/api-motion-plan/index.html deleted file mode 100644 index b3d5bb2..0000000 --- a/docs/robokit/api-motion-plan/index.html +++ /dev/null @@ -1,656 +0,0 @@ - - - - - - Motion Planning · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Motion Planning

-
-
- -
robokit.helpers.motion_plan.MotionPlanner(
-
config: MotionPlannerConfig,
robot: Robot,
target_links: Union[str, int, Sequence[Union[str, int]]],
scene: Optional[WarpScene] = None,
device: Optional[wp_device_type] = None
)
-
-

Batched motion planning with goal IK, trajectory optimization stages, and retry.

Lifecycle

  1. __init__ copies configuration and constructs goal IK, the optimizer stages, and their retiming.
  2. warmup(batch_size) fixes the batch size and allocates all batch-shaped state.
  3. solve_offline(...), which solve_offline_numpy and solve_offline_torch wrap, places the waypoints, builds candidates, solves and retries trajectories, then retimes them with the last stage's retime and computes motion_time.
  4. solve_online(...) runs a fresh gradient solve with executed-history smoothing, or updates the retained MPPI action distribution.
Parameters
-
configMotionPlannerConfigrequired
-

Planner configuration.

-
-
robotRobotrequired
-

Robot model.

-
-
target_linksUnion[str, int, Sequence[Union[str, int]]]required
-

One target link or a sequence, using names or indices.

-
-
sceneOptional[WarpScene]= None
-

Optional collision scene.

-
-
deviceOptional[wp_device_type]= None
-

Warp device.

-
Members
-
-
method[source]
-
MotionPlanner.warmup(
-
batch_size: int
)
-
-

Fix the planner batch size and allocate its batch-shaped buffers.

Parameters
-
batch_sizeintrequired
-

Number of queries solved together.

-
-
-
-
method[source]
-
MotionPlanner.set_active_joint_mask(
-
joint_mask: Sequence[float]
)
-
-

Set which actuated joints IK and trajectory optimization may change; before the first solve it also limits the trajectory collision Jacobians to the active joints, which later masks must stay within.

Parameters
-
joint_maskSequence[float]required
-

One value per actuated joint; zero pins the joint.

-
-
-
-
method[source]
-
MotionPlanner.solve_offline(
-
waypoints: Sequence[Union[wp.array, Dict[str, wp.array]]],
start_T_world_base: Optional[wp.array] = None,
seed_q: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
segment_check_collision: Optional[Sequence[bool]] = None,
segment_fixed_duration: Optional[Sequence[Optional[float]]] = None,
segment_locked: Optional[Sequence[bool]] = None,
attached_objects: Optional[Sequence[AttachedObject]] = None,
fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None
) -> MotionPlanResult[wp.array]
-
-

Plan batched Warp trajectories through waypoints, start first and goal last; the NumPy and Torch APIs wrap it.

Lifecycle

  1. Parse segments: each segment's world collision flag, fixed duration and lock.
  2. Solve waypoint IK: each pose but a final goal by goal IK (scene collision, no self collision), resting at its neighbors' blend.
  3. Create split: each segment's frames by its duration, else evenly, then the locked frames and collision.
  4. Solve: _solve_offline_attempt with retries, one CUDA graph under cuda_graph="solve" but for durations; it builds each guess's goal by goal IK, its later poses' answers nearest its neighbors' blend, and straight lines through its waypoints, on frames resplit by the time each line needs; after the first stage, several segments resplit their frames again.
  5. Retime: every plan under the last stage's retime, its fixed segments held still, and its motion time.
Parameters
-
waypointsSequence[Union[wp.array, Dict[str, wp.array]]]required
-

Ordered list of at least two: joint arrays (batch, dofs) in robot.spec.actuated_joint_names order, wp_vec7 arrays (batch,) or (batch, target links) posing the target links, or dicts of target link names to wp_vec7 (batch,) posing some of them (other keys are ignored). A link a dict leaves out is free at its frame, so each link reaches its own waypoints in turn: the first guess keeps it at its pose of the waypoint before (blended toward any later joint waypoint; a start pose's at seed_q or the next joint waypoint, one needed), and the stages move it from there only as their costs pull. Every link passes each waypoint at the same instant, and the goal names all. An inner waypoint holds the links it names at its joints or IK answer, contact included.

-
-
start_T_world_baseOptional[wp.array]= None
-

A floating base's start poses, wp_vec7 (batch,); such plans take a start and a goal.

-
-
seed_qOptional[wp.array]= None
-

Optional IK seed: the goal IK's initialization, or the rest of a pose waypoint before any joint one.

-
-
scene_indicesOptional[wp.array]= None
-

Optional scene index per batch row; defaults to zero.

-
-
segment_check_collisionOptional[Sequence[bool]]= None
-

One flag per segment (waypoint i to i + 1); False drops world collision there (self collision stays), and from the checks of anchors only such segments touch, e.g. a contact. Defaults to all True. Every segment_* and waypoint_* list applies to all batch rows alike.

-
-
segment_fixed_durationOptional[Sequence[Optional[float]]]= None
-

Seconds per segment, or None to let the planner time it. A duration gives the segment round(duration / dt) frames (at least two) in the solve, keeps them through the resplit and is its time in interpolate; None segments share the rest of num_timesteps, which the durations must fit.

-
-
segment_lockedOptional[Sequence[bool]]= None
-

One flag per segment; True keeps its frames on the straight joint-space line between its waypoints (the tool's path between them is not straight), whatever it passes through, and holds the links both its waypoints name.

-
-
attached_objectsOptional[Sequence[AttachedObject]]= None
-

Objects the robot carries, on the spheres max_attached_spheres reserves on the target link each one's link is rigid with: checked by world and self collision over their segments (an inner waypoint: those both its segments carry), in the stages, their scores and waypoint and goal IK.

-
-
fixed_relative_posesOptional[Sequence[FixedRelativePose]]= None
-

Link pairs whose relative pose the gradient stages hold over their segments, at most max_fixed_relative_poses.

-
Returns
MotionPlanResult[wp.array]

last and only their rows return; more raise ValueError("Batch size mismatch").

-
-
-
method[source]
-
MotionPlanner.solve_offline_numpy(
-
waypoints: Sequence[Union[np.ndarray, Dict[str, np.ndarray]]],
start_T_world_base: Optional[np.ndarray] = None,
seed_q: Optional[np.ndarray] = None,
scene_indices: Optional[np.ndarray] = None,
segment_check_collision: Optional[Sequence[bool]] = None,
segment_fixed_duration: Optional[Sequence[Optional[float]]] = None,
segment_locked: Optional[Sequence[bool]] = None,
attached_objects: Optional[Sequence[AttachedObject]] = None,
fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None
) -> MotionPlanResult[np.ndarray]
-
-

NumPy wrapper for solve_offline: a pose waypoint is a dict of target links to 4x4 or [x, y, z, qw, qx, qy, qz] poses, unbatched values broadcast across queries, and the result holds owned copies.

Parameters
-
waypointsSequence[Union[np.ndarray, Dict[str, np.ndarray]]]required
-
-
-
start_T_world_baseOptional[np.ndarray]= None
-
-
-
seed_qOptional[np.ndarray]= None
-
-
-
scene_indicesOptional[np.ndarray]= None
-
-
-
segment_check_collisionOptional[Sequence[bool]]= None
-
-
-
segment_fixed_durationOptional[Sequence[Optional[float]]]= None
-
-
-
segment_lockedOptional[Sequence[bool]]= None
-
-
-
attached_objectsOptional[Sequence[AttachedObject]]= None
-
-
-
fixed_relative_posesOptional[Sequence[FixedRelativePose]]= None
-
-
Returns
MotionPlanResult[np.ndarray]
-
-
-
method[source]
-
MotionPlanner.solve_offline_torch(
-
waypoints: Sequence[Union[torch.Tensor, Dict[str, torch.Tensor]]],
start_T_world_base: Optional[torch.Tensor] = None,
seed_q: Optional[torch.Tensor] = None,
scene_indices: Optional[torch.Tensor] = None,
segment_check_collision: Optional[Sequence[bool]] = None,
segment_fixed_duration: Optional[Sequence[Optional[float]]] = None,
segment_locked: Optional[Sequence[bool]] = None,
attached_objects: Optional[Sequence[AttachedObject]] = None,
fixed_relative_poses: Optional[Sequence[FixedRelativePose]] = None
) -> MotionPlanResult[torch.Tensor]
-
-

Torch wrapper for solve_offline, as solve_offline_numpy with 4x4 pose matrices; plans without waypoint IK stay on device.

Parameters
-
waypointsSequence[Union[torch.Tensor, Dict[str, torch.Tensor]]]required
-
-
-
start_T_world_baseOptional[torch.Tensor]= None
-
-
-
seed_qOptional[torch.Tensor]= None
-
-
-
scene_indicesOptional[torch.Tensor]= None
-
-
-
segment_check_collisionOptional[Sequence[bool]]= None
-
-
-
segment_fixed_durationOptional[Sequence[Optional[float]]]= None
-
-
-
segment_lockedOptional[Sequence[bool]]= None
-
-
-
attached_objectsOptional[Sequence[AttachedObject]]= None
-
-
-
fixed_relative_posesOptional[Sequence[FixedRelativePose]]= None
-
-
Returns
MotionPlanResult[torch.Tensor]
-
-
-
method[source]
-
MotionPlanner.solve_online(
-
start_state: RobotState,
T_world_target: Optional[wp.array] = None,
target_q: Optional[wp.array] = None,
online_state: Optional[OnlineState] = None,
scene_indices: Optional[wp.array] = None
) -> Tuple[RobotState, OnlineState]
-
-

Solve one online planning update.

Parameters
-
start_stateRobotStaterequired
-

Current configurations with q shaped (batch, dofs), and base poses for a floating base.

-
-
T_world_targetOptional[wp.array]= None
-

Optional wp_vec7 pose goals, (batch,) or (batch, target links).

-
-
target_qOptional[wp.array]= None
-

Optional solved IK goals or joint-space goals with shape (batch, dofs).

-
-
online_stateOptional[OnlineState]= None
-

Optional state returned by the previous update.

-
-
scene_indicesOptional[wp.array]= None
-

Optional scene indices with shape (batch,).

-
Returns
Tuple[RobotState, OnlineState]

The optimized trajectories, a borrowed buffer, and the caller-owned online state.

-
-
-
method[source]
-
MotionPlanner.solve_online_numpy(
-
start_q: np.ndarray,
start_T_world_base: Optional[np.ndarray] = None,
T_world_target: Optional[np.ndarray] = None,
target_q: Optional[np.ndarray] = None,
online_state: Optional[OnlineState] = None,
scene_indices: Optional[np.ndarray] = None
) -> MotionPlanResult[np.ndarray]
-
-

NumPy wrapper for solve_online.

Parameters
-
start_qnp.ndarrayrequired
-
-
-
start_T_world_baseOptional[np.ndarray]= None
-
-
-
T_world_targetOptional[np.ndarray]= None
-
-
-
target_qOptional[np.ndarray]= None
-
-
-
online_stateOptional[OnlineState]= None
-
-
-
scene_indicesOptional[np.ndarray]= None
-
-
Returns
MotionPlanResult[np.ndarray]
-
-
-
method[source]
-
MotionPlanner.compute_metrics(
-
state: RobotState,
T_world_target: Optional[wp.array] = None,
target_q: Optional[wp.array] = None,
scene_indices: Optional[wp.array] = None,
position_threshold_m: float = 0.005,
orientation_threshold_rad: float = 0.05,
q_threshold: float = 0.05,
penetration_threshold_mm: float = 5.0,
out: Optional[MotionPlanMetrics[wp.array]] = None
) -> MotionPlanMetrics[wp.array]
-
-

Endpoint accuracy of state against exactly one pose or joint goal, independent of term weights.

Parameters
-
stateRobotStaterequired
-

Trajectories with shape (batch, frames, dofs); any planner's output works.

-
-
T_world_targetOptional[wp.array]= None
-

Optional batched pose goals.

-
-
target_qOptional[wp.array]= None
-

Optional batched joint-space goals.

-
-
scene_indicesOptional[wp.array]= None
-
-
-
position_threshold_mfloat= 0.005
-

Success threshold on translation error.

-
-
orientation_threshold_radfloat= 0.05
-

Success threshold on rotation error.

-
-
q_thresholdfloat= 0.05
-

Success threshold on joint error, for a joint goal.

-
-
penetration_threshold_mmfloat= 5.0
-

Success threshold on scene penetration.

-
-
outOptional[MotionPlanMetrics[wp.array]]= None
-

Buffers to write in place, from an earlier call; allocated when omitted.

-
Returns
MotionPlanMetrics[wp.array]

Endpoint errors and success per batch element.

-
-
-
method[source]
-
MotionPlanner.compute_metrics_numpy(
-
q_traj: np.ndarray,
T_world_base_traj: Optional[np.ndarray] = None,
T_world_target: Optional[np.ndarray] = None,
target_q: Optional[np.ndarray] = None,
scene_indices: Optional[np.ndarray] = None,
position_threshold_m: float = 0.005,
orientation_threshold_rad: float = 0.05,
q_threshold: float = 0.05,
penetration_threshold_mm: float = 5.0
) -> MotionPlanMetrics[np.ndarray]
-
-

compute_metrics for numpy inputs, returning numpy arrays.

Parameters
-
q_trajnp.ndarrayrequired
-
-
-
T_world_base_trajOptional[np.ndarray]= None
-
-
-
T_world_targetOptional[np.ndarray]= None
-
-
-
target_qOptional[np.ndarray]= None
-
-
-
scene_indicesOptional[np.ndarray]= None
-
-
-
position_threshold_mfloat= 0.005
-
-
-
orientation_threshold_radfloat= 0.05
-
-
-
q_thresholdfloat= 0.05
-
-
-
penetration_threshold_mmfloat= 5.0
-
-
Returns
MotionPlanMetrics[np.ndarray]
-
-
-
- -
robokit.helpers.motion_plan.MotionPlannerConfig(
-
num_timesteps: int = 32,
dt: float = 0.25,
max_attached_spheres: int = 0,
max_fixed_relative_poses: int = 0,
fixed_relative_pose_weight: Tuple[float, float] = (3000.0, 1000.0),
acceleration_limit: float = 15.0,
jerk_limit: float = 500.0,
duration_weight: float = 0.0,
goal_ik: IKSolverConfig = build_default_motion_plan_ik_config(),
init_sample_range: float = 0.2,
init_detour_samples: Tuple[int, int] = (16, 64),
stages: Tuple[Union[GradientTrajectoryOptimizerConfig, MppiTrajectoryOptimizerConfig], ...] = (lambda: (build_default_gradient_trajectory_optimizer_config(),))(),
stage_dt_scale: float = 0.0,
stage_retime: Optional[RetimeConfig] = None,
stage_retries: int = 0,
stage_retry_iters: int = 0,
stage_retry_dt_growth: float = 1.025,
max_retries: int = 1,
retime: Optional[RetimeConfig] = None,
resplit_waypoints: bool = True,
cuda_graph: Literal['none', 'stages', 'solve'] = 'stages'
)
-
-

Configuration for offline or online motion planning.

Parameters
-
num_timestepsint= 32
-
-
-
dtfloat= 0.25
-
-
-
max_attached_spheresint= 0
-
-
-
max_fixed_relative_posesint= 0
-
-
-
fixed_relative_pose_weightTuple[float, float]= (3000.0, 1000.0)
-
-
-
acceleration_limitfloat= 15.0
-
-
-
jerk_limitfloat= 500.0
-
-
-
duration_weightfloat= 0.0
-
-
-
goal_ikIKSolverConfig= build_default_motion_plan_ik_config()
-
-
-
init_sample_rangefloat= 0.2
-
-
-
init_detour_samplesTuple[int, int]= (16, 64)
-
-
-
stagesTuple[Union[GradientTrajectoryOptimizerConfig, MppiTrajectoryOptimizerConfig], ...]= (lambda: (build_default_gradient_trajectory_optimizer_config(),))()
-
-
-
stage_dt_scalefloat= 0.0
-
-
-
stage_retimeOptional[RetimeConfig]= None
-
-
-
stage_retriesint= 0
-
-
-
stage_retry_itersint= 0
-
-
-
stage_retry_dt_growthfloat= 1.025
-
-
-
max_retriesint= 1
-
-
-
retimeOptional[RetimeConfig]= None
-
-
-
resplit_waypointsbool= True
-
-
-
cuda_graphLiteral['none', 'stages', 'solve']= 'stages'
-
-
Members
-
-
attribute[source]
-
MotionPlannerConfig.num_timesteps: int = 32
- -
-

Steps per plan; a plan has one more frame.

-
-
-
attribute[source]
-
MotionPlannerConfig.dt: float = 0.25
- -
-

Planning step (s).

-
-
-
attribute[source]
-
MotionPlannerConfig.max_attached_spheres: int = 0
- -
-

Collision spheres reserved on each target link for attached_objects, which every solve places there.

-
-
-
attribute[source]
-
MotionPlannerConfig.max_fixed_relative_poses: int = 0
- -
-

Link pairs reserved for fixed_relative_poses, which every solve sets.

-
-
-
attribute[source]
-
MotionPlannerConfig.fixed_relative_pose_weight: Tuple[float, float] = (3000.0, 1000.0)
- -
-

Position and rotation weights of fixed_relative_poses, per m and per rad of drift.

-
-
-
attribute[source]
-
MotionPlannerConfig.acceleration_limit: float = 15.0
- -
-

Joint acceleration limit (rad/s²): the stages' bounds and ranking, MPPI rollouts, retimes and resplits.

-
-
-
attribute[source]
-
MotionPlannerConfig.jerk_limit: float = 500.0
- -
-

Joint jerk limit (rad/s³): the stages' bounds and ranking, retimes and resplits.

-
-
-
attribute[source]
-
MotionPlannerConfig.duration_weight: float = 0.0
- -
-

0: the last stage also optimizes each free segment's duration, from the query's step, at this cost per second

of plan time; its derivative bounds use the optimized durations, which the returned retime only lengthens.

-
-
-
attribute[source]
-
MotionPlannerConfig.goal_ik: IKSolverConfig = field(default_factory=build_default_motion_plan_ik_config)
- -
-

Goal IK, which turns pose goals into joint goals; fewer goals than trajectory candidates repeat across them.

-
-
-
attribute[source]
-
MotionPlannerConfig.init_sample_range: float = 0.2
- -
-

Spread of the sampled seed candidates, as a fraction of each joint range; MPPI stages sample their own.

-
-
-
attribute[source]
-
MotionPlannerConfig.init_detour_samples: Tuple[int, int] = (16, 64)
- -
-

Random-midpoint detours per detour candidate (first round, retries); the shortest collision-free one seeds it.

-
-
-
attribute[source]
-
MotionPlannerConfig.stages: Tuple[Union[GradientTrajectoryOptimizerConfig, MppiTrajectoryOptimizerConfig], ...] = field(default_factory=lambda: (build_default_gradient_trajectory_optimizer_config(),))
- -
-

Optimizer stages, run in order on the candidate population every planning round.

-
-
-
attribute[source]
-
MotionPlannerConfig.stage_dt_scale: float = 0.0
- -
-

0: each later stage optimizes at this multiple of the previous stage's fastest feasible retimed step.

-
-
-
attribute[source]
-
MotionPlannerConfig.stage_retime: Optional[RetimeConfig] = None
- -
-

Retime between stages (stage_dt_scale); its minimum_dt floors the later stages' steps.

-
-
-
attribute[source]
-
MotionPlannerConfig.stage_retries: int = 0
- -
-

Reruns of a failed last stage whose predecessor passed, at a growing step; each query keeps its better plan.

-
-
-
attribute[source]
-
MotionPlannerConfig.stage_retry_iters: int = 0
- -
-

Iterations of each stage retry.

-
-
-
attribute[source]
-
MotionPlannerConfig.stage_retry_dt_growth: float = 1.025
- -
-

Factor each stage retry grows the step by.

-
-
-
attribute[source]
-
MotionPlannerConfig.max_retries: int = 1
- -
-

Rounds retrying failed plans with new goals and seeds; needs a gradient first stage with several candidates.

-
-
-
attribute[source]
-
MotionPlannerConfig.retime: Optional[RetimeConfig] = None
- -
-

Retime of the returned plan; None keeps the planning step.

-
-
-
attribute[source]
-
MotionPlannerConfig.resplit_waypoints: bool = True
- -
-

Resplit a waypoint plan's frames by the time each part needs, so a short segment takes fewer: its straight lines' before the solve, and its paths' after the first stage, which the later gradient stages smooth; False keeps the even split.

-
-
-
attribute[source]
-
MotionPlannerConfig.cuda_graph: Literal['none', 'stages', 'solve'] = 'stages'
- -
-

CUDA graphs: none, each stage's and goal IK's solve, or the whole NumPy solve with its device-side retries; a capture makes a planner's first solve take seconds longer.

-
-
-
- -
robokit.helpers.motion_plan.MotionPlanResult(
-
q_traj: ArrayT,
T_world_base_traj: Optional[ArrayT] = None,
motion_time: Optional[ArrayT] = None,
online_state: Optional[OnlineState] = None,
waypoint_indices: Optional[Tuple[int, ...]] = None,
segment_fixed_duration: Optional[Tuple[Optional[float], ...]] = None,
segment_duration: Optional[ArrayT] = None
)
Bases: Generic[ArrayT]
-
-

Planner output with offline timing or online state.

Offline: q_traj (batch, frames, dofs) with frames = num_timesteps + 1, motion_time (batch,) (s) and waypoint_indices each waypoint's frame in q_traj (one per waypoint, 0 first, the same for every row).

Parameters
-
q_trajArrayTrequired
-
-
-
T_world_base_trajOptional[ArrayT]= None
-
-
-
motion_timeOptional[ArrayT]= None
-
-
-
online_stateOptional[OnlineState]= None
-
-
-
waypoint_indicesOptional[Tuple[int, ...]]= None
-
-
-
segment_fixed_durationOptional[Tuple[Optional[float], ...]]= None
-
-
-
segment_durationOptional[ArrayT]= None
-
-
Members
-
-
attribute[source]
-
MotionPlanResult.q_traj: ArrayT
- -
- -
-
-
attribute[source]
-
MotionPlanResult.T_world_base_traj: Optional[ArrayT] = None
- -
- -
-
-
attribute[source]
-
MotionPlanResult.motion_time: Optional[ArrayT] = None
- -
- -
-
-
attribute[source]
-
MotionPlanResult.online_state: Optional[OnlineState] = None
- -
- -
-
-
attribute[source]
-
MotionPlanResult.waypoint_indices: Optional[Tuple[int, ...]] = None
- -
- -
-
-
attribute[source]
-
MotionPlanResult.segment_fixed_duration: Optional[Tuple[Optional[float], ...]] = None
- -
- -
-
-
attribute[source]
-
MotionPlanResult.segment_duration: Optional[ArrayT] = None
- -
- -
-
-
method[source]
-
MotionPlanResult.interpolate(
-
dt: float,
speed_scale: float = 1.0
) -> ArrayT
-
-

Joint trajectories sampled every dt (s) or slightly less across motion_time.

Each segment between waypoints spreads ceil(its time / dt) steps evenly over its frames, so every waypoint is a sample; a plan then holds its last frame, so a batch shares one length. A segment with a fixed segment_fixed_duration takes that time; the others run at the plan's retimed step or segment_duration.

Example

python
>>> import numpy as np
->>> q_traj = np.array([[[0.0], [1.0], [2.0]]], np.float32)
->>> MotionPlanResult(q_traj, motion_time=np.array([1.0], np.float32)).interpolate(0.25)[0, :, 0]
-array([0. , 0.5, 1. , 1.5, 2. ], dtype=float32)
Parameters
-
dtfloatrequired
-

Control step (s).

-
-
speed_scalefloat= 1.0
-

Fraction of the plan's speed; 0.5 plays its retimed segments over twice their time.

-
Returns
ArrayT

Joint positions with shape (batch, samples, dofs), NumPy or Torch as q_traj.

-
-

Objective configuration

GradientTrajectoryOptimizerConfig and MppiTrajectoryOptimizerConfig accept terms, a list of ResidualTask templates. Objective weights and cost options are task constructor parameters. Use config.task(name) to retrieve a named task; for TrajectoryTask, configure its dense_task. deepcopy(config) creates an independent preset whose task attributes can be assigned directly. Config-level cost-weight arguments have been removed. IK objectives are supplied through MotionPlannerConfig.goal_ik.

- -
- -
-
- - - - - diff --git a/docs/robokit/api-optimization/index.html b/docs/robokit/api-optimization/index.html deleted file mode 100644 index ea2fea0..0000000 --- a/docs/robokit/api-optimization/index.html +++ /dev/null @@ -1,2325 +0,0 @@ - - - - - - Optimization · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Optimization

-
-
- -
robokit.opt.Var
-
Bases: abc.ABC
-
-
Members
-
-
property[source]
-
Var.tangent_dim: int
- -
- -
-
-
method[source]
-
Var.clone() -> Self
- -
-
Returns
Self
-
-
-
method[source]
-
Var.view(
-
batch_size: int,
offset: int = 0
) -> Self
-
-

Elements offset to offset + batch_size, sharing storage.

Parameters
-
batch_sizeintrequired
-
-
-
offsetint= 0
-
-
Returns
Self
-
-
-
method[source]
-
Var.integrate(
-
velocity: ArrayLike,
out: Optional[Self] = None,
tangent_mask: Optional[wp.array] = None,
weight_decay: float = 0.0,
out_velocity: Optional[ArrayLike] = None
) -> Self
-
-

Move by velocity; only shortened steps write out_velocity, which may alias the input velocity.

Parameters
-
velocityArrayLikerequired
-
-
-
outOptional[Self]= None
-
-
-
tangent_maskOptional[wp.array]= None
-
-
-
weight_decayfloat= 0.0
-
-
-
out_velocityOptional[ArrayLike]= None
-
-
Returns
Self
-
-
-
method[source]
-
Var.difference(
-
other: Self,
out: Optional[ArrayLike] = None
) -> ArrayLike
-
-

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

Parameters
-
otherSelfrequired
-
-
-
outOptional[ArrayLike]= None
-
-
Returns
ArrayLike
-
-
-
method[source]
-
Var.invalidate()
- -
- -
-
-
property[source]
-
Var.batch_size: int
- -
- -
-
-
property[source]
-
Var.device: wp_device_type
- -
- -
-
-
method[source]
-
Var.gather(
-
indices: ArrayLike,
out: Optional[Self] = None
) -> Self
-
-
Parameters
-
indicesArrayLikerequired
-
-
-
outOptional[Self]= None
-
-
Returns
Self
-
-
-
method[source]
-
Var.accept(
-
accept_mask: ArrayLike,
proposed: Self
) -> Self
-
-

Accept proposed values and derived state where accept_mask[i] == 1; leave other rows unchanged.

Parameters
-
accept_maskArrayLikerequired
-
-
-
proposedSelfrequired
-
-
Returns
Self
-
-
-
- -
robokit.opt.VarValues(
-
named_vars: Mapping[Enum, Var]
)
Bases: Var
-
-

Combine Vars into tangent-column blocks; preserve subclass step rules across copies and views.

Parameters
-
named_varsMapping[Enum, Var]required
-
-
Members
-
-
method[source]
-
VarValues.from_var(
-
var: Var,
key: Enum
) -> VarValues
-
-
Parameters
-
varVarrequired
-
-
-
keyEnumrequired
-
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.get(
-
key: Enum
) -> Var
-
-
Parameters
-
keyEnumrequired
-
-
Returns
Var
-
-
-
method[source]
-
VarValues.values()
- -
- -
-
-
method[source]
-
VarValues.tangent_offset(
-
key: Enum
) -> int
-
-
Parameters
-
keyEnumrequired
-
-
Returns
int
-
-
-
property[source]
-
VarValues.tangent_dim: int
- -
- -
-
-
property[source]
-
VarValues.batch_size: int
- -
- -
-
-
property[source]
-
VarValues.device: wp_device_type
- -
- -
-
-
method[source]
-
VarValues.clone() -> VarValues
- -
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.view(
-
batch_size: int,
offset: int = 0
) -> VarValues
-
-
Parameters
-
batch_sizeintrequired
-
-
-
offsetint= 0
-
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.integrate(
-
velocity: ArrayLike,
out: Optional[VarValues] = None,
tangent_mask: Optional[wp.array] = None,
weight_decay: float = 0.0,
out_velocity: Optional[ArrayLike] = None
) -> VarValues
-
-
Parameters
-
velocityArrayLikerequired
-
-
-
outOptional[VarValues]= None
-
-
-
tangent_maskOptional[wp.array]= None
-
-
-
weight_decayfloat= 0.0
-
-
-
out_velocityOptional[ArrayLike]= None
-
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.difference(
-
other: VarValues,
out: Optional[ArrayLike] = None
) -> ArrayLike
-
-
Parameters
-
otherVarValuesrequired
-
-
-
outOptional[ArrayLike]= None
-
-
Returns
ArrayLike
-
-
-
method[source]
-
VarValues.gather(
-
indices: ArrayLike,
out: Optional[VarValues] = None
) -> VarValues
-
-
Parameters
-
indicesArrayLikerequired
-
-
-
outOptional[VarValues]= None
-
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.accept(
-
accept_mask: ArrayLike,
proposed: VarValues
) -> VarValues
-
-
Parameters
-
accept_maskArrayLikerequired
-
-
-
proposedVarValuesrequired
-
-
Returns
VarValues
-
-
-
method[source]
-
VarValues.invalidate()
- -
- -
-
-
- -
robokit.opt.VectorVar(
-
x: wp.array,
unit: float = 1.0,
max_step: float = 0.0
)
Bases: Var
-
-

A batched vector optimization variable on Euclidean space.

Example

python
>>> from enum import Enum
->>> from robokit.opt import VarValues
->>> class Key(Enum):
-...     X = 0
->>> var = VectorVar(wp.array([[1.0, 2.0]], dtype=wp.float32))
->>> values = VarValues.from_var(var, Key.X)
->>> result = values.integrate(wp.array([[0.5, -1.0]], dtype=wp.float32))
->>> result.get(Key.X).x.numpy().tolist()
-[[1.5, 1.0]]
->>> capped = VectorVar(wp.zeros((1, 2), dtype=wp.float32), unit=10.0, max_step=1.0)  # moves 10x, 1 at most
->>> capped.integrate(wp.array([[0.0625, 1.0]], dtype=wp.float32)).x.numpy().tolist()
-[[0.625, 1.0]]
Parameters
-
xwp.arrayrequired
-
-
-
unitfloat= 1.0
-
-
-
max_stepfloat= 0.0
-
-
Members
-
-
methodinherited from Var[source]
-
VectorVar.invalidate()
- -
- -
-
-
property[source]
-
VectorVar.x: wp.array
- -
- -
-
-
property[source]
-
VectorVar.tangent_dim: int
- -
- -
-
-
property[source]
-
VectorVar.batch_size: int
- -
- -
-
-
property[source]
-
VectorVar.device: wp_device_type
- -
- -
-
-
method[source]
-
VectorVar.clone() -> VectorVar
- -
-
Returns
VectorVar
-
-
-
method[source]
-
VectorVar.view(
-
batch_size: int,
offset: int = 0
) -> VectorVar
-
-
Parameters
-
batch_sizeintrequired
-
-
-
offsetint= 0
-
-
Returns
VectorVar
-
-
-
method[source]
-
VectorVar.integrate(
-
velocity: ArrayLike,
out: Optional[VectorVar] = None,
tangent_mask: Optional[wp.array] = None,
weight_decay: float = 0.0,
out_velocity: Optional[ArrayLike] = None
) -> VectorVar
-
-
Parameters
-
velocityArrayLikerequired
-
-
-
outOptional[VectorVar]= None
-
-
-
tangent_maskOptional[wp.array]= None
-
-
-
weight_decayfloat= 0.0
-
-
-
out_velocityOptional[ArrayLike]= None
-
-
Returns
VectorVar
-
-
-
method[source]
-
VectorVar.difference(
-
other: VectorVar,
out: Optional[ArrayLike] = None
) -> ArrayLike
-
-
Parameters
-
otherVectorVarrequired
-
-
-
outOptional[ArrayLike]= None
-
-
Returns
ArrayLike
-
-
-
method[source]
-
VectorVar.gather(
-
indices: ArrayLike,
out: Optional[VectorVar] = None
) -> VectorVar
-
-
Parameters
-
indicesArrayLikerequired
-
-
-
outOptional[VectorVar]= None
-
-
Returns
VectorVar
-
-
-
method[source]
-
VectorVar.accept(
-
accept_mask: ArrayLike,
proposed: VectorVar
) -> VectorVar
-
-
Parameters
-
accept_maskArrayLikerequired
-
-
-
proposedVectorVarrequired
-
-
Returns
VectorVar
-
-
-
- -
robokit.opt.optimizer.Optimizer(
-
terms: Union[Task, Sequence[Task]],
config: Optional[OptimizerConfig] = None,
device: Optional[wp_device_type] = None,
active_dof_mask: Optional[wp.array] = None
)
Bases: abc.ABC
-
-

Warp optimizer lifecycle with shared Jacobian machinery for gradient optimizers and LM's CG step.

Solve sequence:

  1. reset: build once, slice to batch size, optionally capture a graph, then call _start.
  2. Repeat step max_iter times, replaying the iteration graph or running _step_body.

Subclass hooks:

  • _build(var): allocate all buffers at the first var's batch size (max_batch_size).
  • _BATCH_BUFFERS: identify batch-leading arrays and vars to slice per solve.
  • _start(var): initialize per-solve damping/history/schedules and starting cost.
  • _step_body(var): run one iteration in place using kernels only.
Parameters
-
termsUnion[Task, Sequence[Task]]required
-
-
-
configOptional[OptimizerConfig]= None
-
-
-
deviceOptional[wp_device_type]= None
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Members
-
-
attribute[source]
-
Optimizer.terms: Sequence[Task]
- -
- -
-
-
attribute[source]
-
Optimizer.config: OptimizerConfig
- -
- -
-
-
method[source]
-
Optimizer.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Optimize var in place; returns it with the final cost per batch element.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
method[source]
-
Optimizer.reset(
-
var: VarValues,
num_steps: Optional[int] = None
) -> None
-
-

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

Parameters
-
varVarValuesrequired
-
-
-
num_stepsOptional[int]= None
-
-
Returns
None
-
-
-
method[source]
-
Optimizer.step(
-
var: VarValues
) -> None
-
-

One iteration in place; an outer capture records kernels instead of replaying a graph.

Parameters
-
varVarValuesrequired
-
-
Returns
None
-
-
-
property[source]
-
Optimizer.is_all_sparse: bool
- -
- -
-
-
- -
robokit.opt.optimizer.OptimizerConfig(
-
max_iter: int = 100,
early_stopping_interval: int = 1,
cost_tol: float = 1e-09,
cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
)
-
-
Parameters
-
max_iterint= 100
-
-
-
early_stopping_intervalint= 1
-
-
-
cost_tolfloat= 1e-09
-
-
-
cuda_graph_modeLiteral['none', 'iter', 'full']= 'none'
-
-
Members
-
-
attribute[source]
-
OptimizerConfig.max_iter: int = 100
- -
-

Iterations per solve.

-
-
-
attribute[source]
-
OptimizerConfig.early_stopping_interval: int = 1
- -
-

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

-
-
-
attribute[source]
-
OptimizerConfig.cost_tol: float = 1e-09
- -
-

The solve stops once every batch element's cost is at most this.

-
-
-
attribute[source]
-
OptimizerConfig.cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
- -
-

Capture per width: "iter" replays one step; "full" replays the solve without callbacks or early stopping.

-
-
-
method[source]
-
OptimizerConfig.build(
-
terms: Sequence[Task],
device: wp_device_type,
active_dof_mask: Optional[wp.array] = None
) -> Optimizer
-
-

The optimizer a PopulationSolver steps with this config.

Parameters
-
termsSequence[Task]required
-
-
-
devicewp_device_typerequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
Optimizer
-
-
-
- -
robokit.opt.gd_optimizer.GDOptimizer
-
Bases: Optimizer
-
-

First-order optimizer supporting GD and Adam, with optional decoupled weight decay (AdamW).

Members
-
-
attributeinherited from Optimizer[source]
-
GDOptimizer.terms: Sequence[Task]
- -
- -
-
-
attributeinherited from Optimizer[source]
-
GDOptimizer.config: OptimizerConfig
- -
- -
-
-
methodinherited from Optimizer[source]
-
GDOptimizer.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Optimize var in place; returns it with the final cost per batch element.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
methodinherited from Optimizer[source]
-
GDOptimizer.reset(
-
var: VarValues,
num_steps: Optional[int] = None
) -> None
-
-

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

Parameters
-
varVarValuesrequired
-
-
-
num_stepsOptional[int]= None
-
-
Returns
None
-
-
-
propertyinherited from Optimizer[source]
-
GDOptimizer.is_all_sparse: bool
- -
- -
-
-
method[source]
-
GDOptimizer.step(
-
var: VarValues
) -> None
-
-
Parameters
-
varVarValuesrequired
-
-
Returns
None
-
-
-
- -
robokit.opt.gd_optimizer.GDOptimizerConfig(
-
max_iter: int = 100,
early_stopping_interval: int = 1,
cost_tol: float = 1e-09,
cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none',
learning_rate: float = 0.01,
lr_schedule: Optional[Callable[[int, float], float]] = None,
gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian',
optimizer_type: Literal['gd', 'adam'] = 'gd',
gradient_clip: float = math.inf,
beta1: float = 0.9,
beta2: float = 0.999,
epsilon: float = 1e-08,
weight_decay: float = 0.0
)
Bases: OptimizerConfig
-
-
Parameters
-
max_iterint= 100
-
-
-
early_stopping_intervalint= 1
-
-
-
cost_tolfloat= 1e-09
-
-
-
cuda_graph_modeLiteral['none', 'iter', 'full']= 'none'
-
-
-
learning_ratefloat= 0.01
-
-
-
lr_scheduleOptional[Callable[[int, float], float]]= None
-
-
-
gradient_modeLiteral['analytic_jacobian', 'autodiff', 'analytic_gradient']= 'analytic_jacobian'
-
-
-
optimizer_typeLiteral['gd', 'adam']= 'gd'
-
-
-
gradient_clipfloat= math.inf
-
-
-
beta1float= 0.9
-
-
-
beta2float= 0.999
-
-
-
epsilonfloat= 1e-08
-
-
-
weight_decayfloat= 0.0
-
-
Members
-
-
attributeinherited from OptimizerConfig[source]
-
GDOptimizerConfig.max_iter: int = 100
- -
-

Iterations per solve.

-
-
-
attributeinherited from OptimizerConfig[source]
-
GDOptimizerConfig.early_stopping_interval: int = 1
- -
-

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

-
-
-
attributeinherited from OptimizerConfig[source]
-
GDOptimizerConfig.cost_tol: float = 1e-09
- -
-

The solve stops once every batch element's cost is at most this.

-
-
-
attributeinherited from OptimizerConfig[source]
-
GDOptimizerConfig.cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
- -
-

Capture per width: "iter" replays one step; "full" replays the solve without callbacks or early stopping.

-
-
-
attribute[source]
-
GDOptimizerConfig.learning_rate: float = 0.01
- -
-

Step size.

-
-
-
attribute[source]
-
GDOptimizerConfig.lr_schedule: Optional[Callable[[int, float], float]] = None
- -
-

Learning rate per iteration from (zero-based iteration, learning_rate); None keeps it constant.

-
-
-
attribute[source]
-
GDOptimizerConfig.gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'
- -
-

analytic_jacobian: terms fill a shared sparse/dense J, then one Jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

-
-
-
attribute[source]
-
GDOptimizerConfig.optimizer_type: Literal['gd', 'adam'] = 'gd'
- -
-

Update rule: plain gradient descent or Adam.

-
-
-
attribute[source]
-
GDOptimizerConfig.gradient_clip: float = math.inf
- -
-

Clamp each gradient entry to ±this before the update, so a stiff cost cannot overshoot.

-
-
-
attribute[source]
-
GDOptimizerConfig.beta1: float = 0.9
- -
-

Adam's first-moment decay.

-
-
-
attribute[source]
-
GDOptimizerConfig.beta2: float = 0.999
- -
-

Adam's second-moment decay.

-
-
-
attribute[source]
-
GDOptimizerConfig.epsilon: float = 1e-08
- -
-

Adam's denominator stabilizer.

-
-
-
attribute[source]
-
GDOptimizerConfig.weight_decay: float = 0.0
- -
-

Decoupled decay: each step also moves x by -learning_rate weight_decay x (AdamW under Adam).

-
-
-
method[source]
-
GDOptimizerConfig.build(
-
terms: Sequence[Task],
device: wp_device_type,
active_dof_mask: Optional[wp.array] = None
) -> GDOptimizer
-
-
Parameters
-
termsSequence[Task]required
-
-
-
devicewp_device_typerequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
GDOptimizer
-
-
-
- -
robokit.opt.gd_optimizer.AnnealedGDOptimizer
-
Bases: GDOptimizer
-
-

GD with RMSProp proposals and Metropolis acceptance, supporting every base-class gradient mode.

Acceptance outcomes:

  • Accept: keep the proposed point and gradient.
  • Reject: restore the previous point and gradient, continuing the chain there.
Members
-
-
attributeinherited from Optimizer[source]
-
AnnealedGDOptimizer.terms: Sequence[Task]
- -
- -
-
-
attributeinherited from Optimizer[source]
-
AnnealedGDOptimizer.config: OptimizerConfig
- -
- -
-
-
methodinherited from Optimizer[source]
-
AnnealedGDOptimizer.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Optimize var in place; returns it with the final cost per batch element.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
methodinherited from Optimizer[source]
-
AnnealedGDOptimizer.reset(
-
var: VarValues,
num_steps: Optional[int] = None
) -> None
-
-

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

Parameters
-
varVarValuesrequired
-
-
-
num_stepsOptional[int]= None
-
-
Returns
None
-
-
-
propertyinherited from Optimizer[source]
-
AnnealedGDOptimizer.is_all_sparse: bool
- -
- -
-
-
method[source]
-
AnnealedGDOptimizer.step(
-
var: VarValues
) -> None
-
-
Parameters
-
varVarValuesrequired
-
-
Returns
None
-
-
-
- -
robokit.opt.gd_optimizer.AnnealedGDConfig(
-
max_iter: int = 100,
early_stopping_interval: int = 1,
cost_tol: float = 1e-09,
cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none',
learning_rate: float = 0.01,
gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian',
mu: float = 0.98,
stepsize_period: int = 50,
starting_temperature: float = 18.0,
temperature_decay: float = 0.95,
annealing_period: int = 30,
grad_eps: float = 1e-06,
seed: int = 0
)
Bases: OptimizerConfig
-
-

learning_rate and the Metropolis temperature both decay by temperature_decay, on their own periods.

Parameters
-
max_iterint= 100
-
-
-
early_stopping_intervalint= 1
-
-
-
cost_tolfloat= 1e-09
-
-
-
cuda_graph_modeLiteral['none', 'iter', 'full']= 'none'
-
-
-
learning_ratefloat= 0.01
-
-
-
gradient_modeLiteral['analytic_jacobian', 'autodiff', 'analytic_gradient']= 'analytic_jacobian'
-
-
-
mufloat= 0.98
-
-
-
stepsize_periodint= 50
-
-
-
starting_temperaturefloat= 18.0
-
-
-
temperature_decayfloat= 0.95
-
-
-
annealing_periodint= 30
-
-
-
grad_epsfloat= 1e-06
-
-
-
seedint= 0
-
-
Members
-
-
attributeinherited from OptimizerConfig[source]
-
AnnealedGDConfig.max_iter: int = 100
- -
-

Iterations per solve.

-
-
-
attributeinherited from OptimizerConfig[source]
-
AnnealedGDConfig.early_stopping_interval: int = 1
- -
-

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

-
-
-
attributeinherited from OptimizerConfig[source]
-
AnnealedGDConfig.cost_tol: float = 1e-09
- -
-

The solve stops once every batch element's cost is at most this.

-
-
-
attributeinherited from OptimizerConfig[source]
-
AnnealedGDConfig.cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
- -
-

Capture per width: "iter" replays one step; "full" replays the solve without callbacks or early stopping.

-
-
-
methodinherited from OptimizerConfig[source]
-
AnnealedGDConfig.build(
-
terms: Sequence[Task],
device: wp_device_type,
active_dof_mask: Optional[wp.array] = None
) -> Optimizer
-
-

The optimizer a PopulationSolver steps with this config.

Parameters
-
termsSequence[Task]required
-
-
-
devicewp_device_typerequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
Optimizer
-
-
-
attribute[source]
-
AnnealedGDConfig.learning_rate: float = 0.01
- -
-

Initial RMSProp step size.

-
-
-
attribute[source]
-
AnnealedGDConfig.gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'
- -
-

How the gradient is computed, as in GDOptimizerConfig.

-
-
-
attribute[source]
-
AnnealedGDConfig.mu: float = 0.98
- -
-

RMSProp's weight on the newest squared gradient.

-
-
-
attribute[source]
-
AnnealedGDConfig.stepsize_period: int = 50
- -
-

Iterations between step-size decays.

-
-
-
attribute[source]
-
AnnealedGDConfig.starting_temperature: float = 18.0
- -
-

Initial Metropolis temperature.

-
-
-
attribute[source]
-
AnnealedGDConfig.temperature_decay: float = 0.95
- -
-

Factor applied to the step size and the temperature at each of their periods.

-
-
-
attribute[source]
-
AnnealedGDConfig.annealing_period: int = 30
- -
-

Iterations between temperature decays.

-
-
-
attribute[source]
-
AnnealedGDConfig.grad_eps: float = 1e-06
- -
-

RMSProp's denominator stabilizer.

-
-
-
attribute[source]
-
AnnealedGDConfig.seed: int = 0
- -
-

Seed of the Metropolis acceptance draws.

-
-
-
- -
robokit.opt.lbfgs_optimizer.LBFGSOptimizer
-
Bases: Optimizer
-
-
Members
-
-
attributeinherited from Optimizer[source]
-
LBFGSOptimizer.terms: Sequence[Task]
- -
- -
-
-
attributeinherited from Optimizer[source]
-
LBFGSOptimizer.config: OptimizerConfig
- -
- -
-
-
methodinherited from Optimizer[source]
-
LBFGSOptimizer.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Optimize var in place; returns it with the final cost per batch element.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
methodinherited from Optimizer[source]
-
LBFGSOptimizer.reset(
-
var: VarValues,
num_steps: Optional[int] = None
) -> None
-
-

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

Parameters
-
varVarValuesrequired
-
-
-
num_stepsOptional[int]= None
-
-
Returns
None
-
-
-
methodinherited from Optimizer[source]
-
LBFGSOptimizer.step(
-
var: VarValues
) -> None
-
-

One iteration in place; an outer capture records kernels instead of replaying a graph.

Parameters
-
varVarValuesrequired
-
-
Returns
None
-
-
-
propertyinherited from Optimizer[source]
-
LBFGSOptimizer.is_all_sparse: bool
- -
- -
-
-
- -
robokit.opt.lbfgs_optimizer.LBFGSOptimizerConfig(
-
max_iter: int = 100,
early_stopping_interval: int = 0,
cost_tol: float = 1e-09,
cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none',
history_len: int = 10,
h0_scale: float = 1.0,
line_search_alphas: tuple = (1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0),
wolfe_c1: float = 0.0001,
wolfe_c2: float = 0.9,
line_search: Literal['armijo', 'approx_wolfe'] = 'armijo',
normalize_direction: bool = False,
gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian',
fold_line_search_gradient: bool = False
)
Bases: OptimizerConfig
-
-
Parameters
-
max_iterint= 100
-
-
-
early_stopping_intervalint= 0
-
-
-
cost_tolfloat= 1e-09
-
-
-
cuda_graph_modeLiteral['none', 'iter', 'full']= 'none'
-
-
-
history_lenint= 10
-
-
-
h0_scalefloat= 1.0
-
-
-
line_search_alphastuple= (1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0)
-
-
-
wolfe_c1float= 0.0001
-
-
-
wolfe_c2float= 0.9
-
-
-
line_searchLiteral['armijo', 'approx_wolfe']= 'armijo'
-
-
-
normalize_directionbool= False
-
-
-
gradient_modeLiteral['analytic_jacobian', 'autodiff', 'analytic_gradient']= 'analytic_jacobian'
-
-
-
fold_line_search_gradientbool= False
-
-
Members
-
-
attributeinherited from OptimizerConfig[source]
-
LBFGSOptimizerConfig.max_iter: int = 100
- -
-

Iterations per solve.

-
-
-
attributeinherited from OptimizerConfig[source]
-
LBFGSOptimizerConfig.cost_tol: float = 1e-09
- -
-

The solve stops once every batch element's cost is at most this.

-
-
-
attributeinherited from OptimizerConfig[source]
-
LBFGSOptimizerConfig.cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
- -
-

Capture per width: "iter" replays one step; "full" replays the solve without callbacks or early stopping.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.early_stopping_interval: int = 0
- -
-

Off by default: without host checks, a folded line search defers each step into the next direction launch.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.history_len: int = 10
- -
-

Curvature pairs kept for the two-loop recursion.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.h0_scale: float = 1.0
- -
-

Initial inverse-Hessian scale when there is no history or normalize_direction is on (else Barzilai-Borwein).

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.line_search_alphas: tuple = (1e-05, 0.0001, 0.001, 0.01, 0.1, 0.5, 1.0)
- -
-

Trial step sizes, evaluated in parallel.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.wolfe_c1: float = 0.0001
- -
-

Sufficient-decrease constant.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.wolfe_c2: float = 0.9
- -
-

Curvature constant (approx_wolfe).

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.normalize_direction: bool = False
- -
-

Normalize directions so trial steps are lengths; H0 then uses h0_scale instead of Barzilai-Borwein.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.gradient_mode: Literal['analytic_jacobian', 'autodiff', 'analytic_gradient'] = 'analytic_jacobian'
- -
-

analytic_jacobian: terms fill a shared sparse/dense J, then one Jᵀr reduction; autodiff: tape gradients; analytic_gradient: term kernels accumulate cost and gradient directly.

-
-
-
attribute[source]
-
LBFGSOptimizerConfig.fold_line_search_gradient: bool = False
- -
-

Fold trial gradients to skip a recompute; needs analytic_gradient or all-sparse analytic_jacobian terms.

-
-
-
method[source]
-
LBFGSOptimizerConfig.build(
-
terms: Sequence[Task],
device: wp_device_type,
active_dof_mask: Optional[wp.array] = None
) -> LBFGSOptimizer
-
-

Runs without a per-iteration graph: each step branches on the host iteration count.

Parameters
-
termsSequence[Task]required
-
-
-
devicewp_device_typerequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
LBFGSOptimizer
-
-
-
- -
robokit.opt.lm_optimizer.LMOptimizer
-
Bases: Optimizer
-
-

Levenberg-Marquardt with Cholesky or conjugate gradients.

Solver paths:

  • Cholesky/default Jacobian terms: fused fast path.
  • Cholesky/other terms: accumulate JᵀJ, then factor in one tile or 16×16 tiles within the sparse-pattern band.
  • CG: reuse sparse/dense Jacobians without forming JᵀJ.
Members
-
-
attributeinherited from Optimizer[source]
-
LMOptimizer.terms: Sequence[Task]
- -
- -
-
-
attributeinherited from Optimizer[source]
-
LMOptimizer.config: OptimizerConfig
- -
- -
-
-
methodinherited from Optimizer[source]
-
LMOptimizer.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Optimize var in place; returns it with the final cost per batch element.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
methodinherited from Optimizer[source]
-
LMOptimizer.reset(
-
var: VarValues,
num_steps: Optional[int] = None
) -> None
-
-

Prepare to iterate from var; num_steps (default max_iter) steps follow and L-BFGS finishes the last.

Parameters
-
varVarValuesrequired
-
-
-
num_stepsOptional[int]= None
-
-
Returns
None
-
-
-
methodinherited from Optimizer[source]
-
LMOptimizer.step(
-
var: VarValues
) -> None
-
-

One iteration in place; an outer capture records kernels instead of replaying a graph.

Parameters
-
varVarValuesrequired
-
-
Returns
None
-
-
-
propertyinherited from Optimizer[source]
-
LMOptimizer.is_all_sparse: bool
- -
- -
-
-
- -
robokit.opt.lm_optimizer.LMOptimizerConfig(
-
max_iter: int = 100,
early_stopping_interval: int = 1,
cost_tol: float = 1e-09,
cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none',
lm_lambda: float = 0.001,
lambda_factor: float = 2.0,
lambda_min: float = 1e-05,
lambda_max: float = 10000000000.0,
rho_min: float = 0.001,
gain_ratio_epsilon: float = 1e-08,
linear_solver: Literal['cholesky', 'cg', 'torch_cholesky'] = 'cholesky',
cg_max_iter: Optional[int] = None,
cg_tol: float = 1e-06,
cg_check_interval: int = 4
)
Bases: OptimizerConfig
-
-
Parameters
-
max_iterint= 100
-
-
-
early_stopping_intervalint= 1
-
-
-
cost_tolfloat= 1e-09
-
-
-
cuda_graph_modeLiteral['none', 'iter', 'full']= 'none'
-
-
-
lm_lambdafloat= 0.001
-
-
-
lambda_factorfloat= 2.0
-
-
-
lambda_minfloat= 1e-05
-
-
-
lambda_maxfloat= 10000000000.0
-
-
-
rho_minfloat= 0.001
-
-
-
gain_ratio_epsilonfloat= 1e-08
-
-
-
linear_solverLiteral['cholesky', 'cg', 'torch_cholesky']= 'cholesky'
-
-
-
cg_max_iterOptional[int]= None
-
-
-
cg_tolfloat= 1e-06
-
-
-
cg_check_intervalint= 4
-
-
Members
-
-
attributeinherited from OptimizerConfig[source]
-
LMOptimizerConfig.max_iter: int = 100
- -
-

Iterations per solve.

-
-
-
attributeinherited from OptimizerConfig[source]
-
LMOptimizerConfig.early_stopping_interval: int = 1
- -
-

Check the stop rule every this many iterations; 0 never stops early (each check syncs the host).

-
-
-
attributeinherited from OptimizerConfig[source]
-
LMOptimizerConfig.cost_tol: float = 1e-09
- -
-

The solve stops once every batch element's cost is at most this.

-
-
-
attributeinherited from OptimizerConfig[source]
-
LMOptimizerConfig.cuda_graph_mode: Literal['none', 'iter', 'full'] = 'none'
- -
-

Capture per width: "iter" replays one step; "full" replays the solve without callbacks or early stopping.

-
-
-
attribute[source]
-
LMOptimizerConfig.lm_lambda: float = 0.001
- -
-

Initial damping.

-
-
-
attribute[source]
-
LMOptimizerConfig.lambda_factor: float = 2.0
- -
-

Damping divides by this on accept and multiplies on reject.

-
-
-
attribute[source]
-
LMOptimizerConfig.lambda_min: float = 1e-05
- -
-

Smallest damping.

-
-
-
attribute[source]
-
LMOptimizerConfig.lambda_max: float = 10000000000.0
- -
-

Largest damping.

-
-
-
attribute[source]
-
LMOptimizerConfig.rho_min: float = 0.001
- -
-

Minimum gain ratio rho to accept a step.

-
-
-
attribute[source]
-
LMOptimizerConfig.gain_ratio_epsilon: float = 1e-08
- -
-

Stabilizer in the rho denominator; 0 uses the exact ratio.

-
-
-
attribute[source]
-
LMOptimizerConfig.linear_solver: Literal['cholesky', 'cg', 'torch_cholesky'] = 'cholesky'
- -
-

Native Cholesky, matrix-free CG, or optional Torch float64 Cholesky for large dense systems.

-
-
-
attribute[source]
-
LMOptimizerConfig.cg_max_iter: Optional[int] = None
- -
-

CG iterations per step; None: max(4, min(64, tangent_dim // 4)).

-
-
-
attribute[source]
-
LMOptimizerConfig.cg_tol: float = 1e-06
- -
-

Squared CG residual that stops early; checked on the host, so only without CUDA graphs.

-
-
-
attribute[source]
-
LMOptimizerConfig.cg_check_interval: int = 4
- -
-

CG iterations between those host checks.

-
-
-
method[source]
-
LMOptimizerConfig.build(
-
terms: Sequence[Task],
device: wp_device_type,
active_dof_mask: Optional[wp.array] = None
) -> LMOptimizer
-
-

CG and Torch Cholesky use eager steps; the native backend retains CUDA graph capture.

Parameters
-
termsSequence[Task]required
-
-
-
devicewp_device_typerequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
LMOptimizer
-
-

LMOptimizerConfig(linear_solver="cholesky"), the default, solves each step exactly. Small systems factor in one tile; larger ones use the band implied by SparseTask sparsity patterns. linear_solver="cg" iterates matrix-free on whichever Jacobian the terms provide, sparse or dense, and never forms the normal matrix.

-
- -
robokit.opt.population_solver.PopulationSolver(
-
terms: Union[List[ResidualTask], List[List[ResidualTask]]],
config: PopulationSolverConfig,
device: wp_device_type,
score_terms: Optional[Union[ResidualTask, List[Optional[ResidualTask]]]] = None,
active_dof_mask: Optional[wp.array] = None
)
-
-

Refine batch * num_candidates[0] VarValues, reusing one var, allocation, and graph per population width.

Each scheduled round:

  1. sample: move candidates using prior scores, then draw around them.
  2. optimize: move each candidate toward lower cost.
  3. score: evaluate the terms or score term.
  4. select: keep each problem's best num_candidates[k + 1] candidates.
Parameters
-
termsUnion[List[ResidualTask], List[List[ResidualTask]]]required
-
-
-
configPopulationSolverConfigrequired
-
-
-
devicewp_device_typerequired
-
-
-
score_termsOptional[Union[ResidualTask, List[Optional[ResidualTask]]]]= None
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Members
-
-
attribute[source]
-
PopulationSolver.device: wp_device_type
- -
- -
-
-
attribute[source]
-
PopulationSolver.terms: List[List[ResidualTask]]
- -
- -
-
-
attribute[source]
-
PopulationSolver.score_terms: List[Optional[ResidualTask]]
- -
- -
-
-
method[source]
-
PopulationSolver.setup(
-
var: VarValues
)
-
-
Parameters
-
varVarValuesrequired
-
-
-
-
-
property[source]
-
PopulationSolver.winner_indices: wp.array
- -
-

(batch, 1) row of each instance's winner: the first ranked index.

-
-
-
method[source]
-
PopulationSolver.solve(
-
var: VarValues,
iteration_callback: Optional[IterationCallback] = None
) -> Tuple[VarValues, wp.array]
-
-

Run the schedule on widest var; return each instance's best candidate and cost.

Parameters
-
varVarValuesrequired
-
-
-
iteration_callbackOptional[IterationCallback]= None
-
-
Returns
Tuple[VarValues, wp.array]
-
-
-
method[source]
-
PopulationSolver.compute_costs(
-
var: VarValues
) -> Dict[str, wp.array]
-
-

Sum final-segment term costs by cost_name, including duplicate names such as ConfigurationTask.

Parameters
-
varVarValuesrequired
-
-
Returns
Dict[str, wp.array]
-
-
-
- -
robokit.opt.population_solver.PopulationSolverConfig(
-
stages: List[Stage] = (lambda: [Stage(iters=10)])(),
samplers: Sequence[SamplerConfig] = tuple(),
cuda_graph_mode: Literal['none', 'full', 'iter'] = 'iter',
use_early_stopping: bool = True,
rank_final: bool = False,
min_improvement: float = 0.0,
patience: int = 2
)
-
-

What a round does, and when: stages run in order, iterations counted across them.

Parameters
-
stagesList[Stage]= (lambda: [Stage(iters=10)])()
-
-
-
samplersSequence[SamplerConfig]= tuple()
-
-
-
cuda_graph_modeLiteral['none', 'full', 'iter']= 'iter'
-
-
-
use_early_stoppingbool= True
-
-
-
rank_finalbool= False
-
-
-
min_improvementfloat= 0.0
-
-
-
patienceint= 2
-
-
Members
-
-
attribute[source]
-
PopulationSolverConfig.stages: List[Stage] = field(default_factory=lambda: [Stage(iters=10)])
- -
-

The schedule, e.g. [Stage(6, 64, LMOptimizerConfig(lm_lambda=10.0)), Stage(10, 4), Stage(0, 1)]: 64 candidates for 6 iterations, the best 4 for 10 more, then the best one.

-
-
-
attribute[source]
-
PopulationSolverConfig.samplers: Sequence[SamplerConfig] = field(default_factory=tuple)
- -
-

Built during setup, then applied in order where the stages sample.

At each sampling iteration:

  1. Sample the population before optimizing.
  2. Restart the optimizer on that population.
  3. At the last iteration, sample after the final score and end on the moved candidates.
-
-
-
attribute[source]
-
PopulationSolverConfig.cuda_graph_mode: Literal['none', 'full', 'iter'] = 'iter'
- -
-

"iter" replays one optimizer step per width; "full" the whole solve (no callbacks or early stopping).

-
-
-
attribute[source]
-
PopulationSolverConfig.use_early_stopping: bool = True
- -
-

Let a segment end at its optimizer's stop rule (OptimizerConfig.early_stopping_interval); not under "full".

-
-
-
attribute[source]
-
PopulationSolverConfig.rank_final: bool = False
- -
-

Score only the final population and return it best first; earlier selects keep the optimization cost.

-
-
-
attribute[source]
-
PopulationSolverConfig.min_improvement: float = 0.0
- -
-

If positive, a drawing sampler's solve ends once each instance's cheapest draw beats its first one (the center) by less than this, patience scores in a row; the last sample still moves the candidates. Reads scores on the host.

-
-
-
attribute[source]
-
PopulationSolverConfig.patience: int = 2
- -
- -
-
-
property[source]
-
PopulationSolverConfig.num_draws: int
- -
-

The widest the population gets per candidate: the drawing sampler's draw count, or 1.

-
-
-
property[source]
-
PopulationSolverConfig.num_iters: int
- -
-

Iterations of the whole schedule.

-
-
-
property[source]
-
PopulationSolverConfig.select_at: List[int]
- -
-

Iterations (1-based, after the update) where a stage ends and the next one's width is kept.

-
-
-
property[source]
-
PopulationSolverConfig.num_candidates: List[int]
- -
-

Population width per instance in each stage.

-
-
-
property[source]
-
PopulationSolverConfig.optimizer: Optional[List[Optional[OptimizerConfig]]]
- -
-

Each stage's gradient update, or None if no stage sets one.

-
-
-
property[source]
-
PopulationSolverConfig.sample_at: List[int]
- -
-

Zero-based sampling iterations; empty: the default (see Stage.sample_every).

-
-
-
- -
robokit.opt.population_solver.Stage(
-
iters: int = 0,
num_candidates: Optional[int] = None,
optimizer: Optional[OptimizerConfig] = None,
sample_every: int = 0
)
-
-

A run of iters iterations at one population width. Entering a stage keeps each instance's best num_candidates (the first stage's is the input width); unset fields keep the previous stage's.

Parameters
-
itersint= 0
-
-
-
num_candidatesOptional[int]= None
-
-
-
optimizerOptional[OptimizerConfig]= None
-
-
-
sample_everyint= 0
-
-
Members
-
-
attribute[source]
-
Stage.iters: int = 0
- -
-

Iterations of this stage.

-
-
-
attribute[source]
-
Stage.num_candidates: Optional[int] = None
- -
-

Population width per instance; None: the previous stage's, or 1.

-
-
-
attribute[source]
-
Stage.optimizer: Optional[OptimizerConfig] = None
- -
-

Gradient update; None: the previous stage's. With none in any stage: drawing samplers (MPPI/ES) update by sampling, other solvers by dense LM.

-
-
-
attribute[source]
-
Stage.sample_every: int = 0
- -
-

Draw with the samplers every this many iterations from the stage's start; 0 in every stage: a drawing sampler draws before every score and once after the last, others at each select.

-
-
-
- -
robokit.opt.sampler.SamplerConfig(
-
var_key: Enum = VarKey.ROBOT
)
-
-

Sampler settings; owners supply variables, population width, device and masks at build time.

Parameters
-
var_keyEnum= VarKey.ROBOT
-
-
Members
-
-
attribute[source]
-
SamplerConfig.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
method[source]
-
SamplerConfig.build(
-
var: VarValues,
num_candidates: int,
active_dof_mask: Optional[wp.array] = None
) -> Sampler
-
-

Construct an independent runtime sampler for these variables.

Parameters
-
varVarValuesrequired
-
-
-
num_candidatesintrequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
Sampler
-
-
-
- -
robokit.opt.sampler.RobertsSamplerConfig(
-
var_key: Enum = VarKey.ROBOT,
scale: Union[float, Sequence[float]] = 0.2,
seed: Optional[int] = None,
keep_first: bool = False
)
Bases: SamplerConfig
-
-

Low-discrepancy initialization settings; helpers may scale the spread by joint ranges.

Example

python
>>> config = RobertsSamplerConfig(scale=0.5, keep_first=True)
->>> config.scale, config.keep_first, config.num_draws
-(0.5, True, 1)
Parameters
-
var_keyEnum= VarKey.ROBOT
-
-
-
scaleUnion[float, Sequence[float]]= 0.2
-
-
-
seedOptional[int]= None
-
-
-
keep_firstbool= False
-
-
Members
-
-
attributeinherited from SamplerConfig[source]
-
RobertsSamplerConfig.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attribute[source]
-
RobertsSamplerConfig.scale: Union[float, Sequence[float]] = 0.2
- -
- -
-
-
attribute[source]
-
RobertsSamplerConfig.seed: Optional[int] = None
- -
- -
-
-
attribute[source]
-
RobertsSamplerConfig.keep_first: bool = False
- -
- -
-
-
method[source]
-
RobertsSamplerConfig.build(
-
var: VarValues,
num_candidates: int,
active_dof_mask: Optional[wp.array] = None
) -> Sampler
-
-
Parameters
-
varVarValuesrequired
-
-
-
num_candidatesintrequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
Sampler
-
-
-
- -
robokit.opt.sampler.GaussianSamplerConfig(
-
var_key: Enum = VarKey.ROBOT,
num_draws: int = 64,
weighting: Weighting = 'softmax',
init_std: float = 0.1,
min_std: float = 0.01,
temperature: float = 0.1,
gamma: float = 0.9,
learning_rate: float = 0.1,
epsilon: float = 1e-06,
seed: int = 0,
sample_mode: Literal['mean', 'best'] = 'mean',
elite_ratio: float = 0.0,
mean_elites: bool = False,
noise_decay: float = 1.0,
wide_ratio: float = 0.0,
wide_scale: float = 1.0
)
Bases: SamplerConfig
-
-

Gaussian draw/update settings, independent of runtime population buffers.

Example

python
>>> from robokit.opt.var_values import VectorVar
->>> class Key(Enum):
-...     X = 0
->>> var = VarValues({Key.X: VectorVar(wp.zeros((1, 2), dtype=wp.float32, device="cpu"))})
->>> config = GaussianSamplerConfig(var_key=Key.X, num_draws=8)
->>> first, second = config.build(var, 1), config.build(var, 1)
->>> first is second
-False
->>> first.noise.shape
-(8, 2)
Parameters
-
var_keyEnum= VarKey.ROBOT
-
-
-
num_drawsint= 64
-
-
-
weightingWeighting= 'softmax'
-
-
-
init_stdfloat= 0.1
-
-
-
min_stdfloat= 0.01
-
-
-
temperaturefloat= 0.1
-
-
-
gammafloat= 0.9
-
-
-
learning_ratefloat= 0.1
-
-
-
epsilonfloat= 1e-06
-
-
-
seedint= 0
-
-
-
sample_modeLiteral['mean', 'best']= 'mean'
-
-
-
elite_ratiofloat= 0.0
-
-
-
mean_elitesbool= False
-
-
-
noise_decayfloat= 1.0
-
-
-
wide_ratiofloat= 0.0
-
-
-
wide_scalefloat= 1.0
-
-
Members
-
-
attributeinherited from SamplerConfig[source]
-
GaussianSamplerConfig.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attribute[source]
-
GaussianSamplerConfig.num_draws: int = 64
- -
-

Candidates drawn around each center, the center itself first.

-
-
-
attribute[source]
-
GaussianSamplerConfig.weighting: Weighting = 'softmax'
- -
-

How scored draws become weights: MPPI's softmax, or evolution strategies' fitness shaping.

-
-
-
attribute[source]
-
GaussianSamplerConfig.init_std: float = 0.1
- -
-

Noise standard deviation at the start of a solve.

-
-
-
attribute[source]
-
GaussianSamplerConfig.min_std: float = 0.01
- -
-

Floor the softmax refit keeps the standard deviation above.

-
-
-
attribute[source]
-
GaussianSamplerConfig.temperature: float = 0.1
- -
-

Softmax temperature; lower follows the cheapest draws more closely.

-
-
-
attribute[source]
-
GaussianSamplerConfig.gamma: float = 0.9
- -
-

Share of the weighted spread the softmax refit moves the standard deviation toward.

-
-
-
attribute[source]
-
GaussianSamplerConfig.learning_rate: float = 0.1
- -
-

Fitness-shaping step size.

-
-
-
attribute[source]
-
GaussianSamplerConfig.epsilon: float = 1e-06
- -
-

Guard against division by a zero spread.

-
-
-
attribute[source]
-
GaussianSamplerConfig.seed: int = 0
- -
-

Noise seed; the same seed replays the same draws.

-
-
-
attribute[source]
-
GaussianSamplerConfig.sample_mode: Literal['mean', 'best'] = 'mean'
- -
-

Move each center to its draws' weighted mean, or onto its cheapest draw.

-
-
-
attribute[source]
-
GaussianSamplerConfig.elite_ratio: float = 0.0
- -
-

If positive, the softmax temperature is each center's cost spread over this best share of its draws (at least two) instead of temperature, and best_draws keeps its cheapest draw.

-
-
-
attribute[source]
-
GaussianSamplerConfig.mean_elites: bool = False
- -
-

With elite_ratio, move each center to the weighted mean of that share alone.

-
-
-
attribute[source]
-
GaussianSamplerConfig.noise_decay: float = 1.0
- -
-

Each scored round scales std by this before the refit, never below min_std.

-
-
-
attribute[source]
-
GaussianSamplerConfig.wide_ratio: float = 0.0
- -
-

Share of a solve's first-round draws (its last ones) drawn at wide_scale times std, to explore.

-
-
-
attribute[source]
-
GaussianSamplerConfig.wide_scale: float = 1.0
- -
- -
-
-
method[source]
-
GaussianSamplerConfig.build(
-
var: VarValues,
num_candidates: int,
active_dof_mask: Optional[wp.array] = None
) -> Sampler
-
-
Parameters
-
varVarValuesrequired
-
-
-
num_candidatesintrequired
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
Returns
Sampler
-
-
-
- -
robokit.opt.sampler.Sampler
-
Bases: Protocol
-
-

Draws new candidates around each candidate of one named variable.

Members
-
-
attribute[source]
-
Sampler.var_key: Enum
- -
- -
-
-
attribute[source]
-
Sampler.num_draws: int
- -
-

Candidates drawn around each one; 1 draws in place.

-
-
-
method[source]
-
Sampler.reset() -> None
- -
-

Reopen the distribution at the start of a solve.

Returns
None
-
-
-
method[source]
-
Sampler.sample(
-
var: VarValues,
scores: Optional[wp.array]
) -> VarValues
-
-

Move candidates by scores; return var or sampler-owned draws for scoring.

Parameters
-
varVarValuesrequired
-
-
-
scoresOptional[wp.array]required
-
-
Returns
VarValues
-
-
-
- -
robokit.opt.sampler.RobertsSampler(
-
num_candidates: int,
scale: Sequence[float],
seed: Optional[int] = None,
keep_first: bool = False,
device: wp_device_type = 'cpu',
var_key: Enum = VarKey.ROBOT
)
-
-

Seed candidates once with a Roberts low-discrepancy sequence, covering a box more evenly than random draws.

Sampling options:

  • scale: half-width per tangent column; joint columns usually use joint range.
  • sampler.scale.assign(...): change the device-side scale between solves.
  • keep_first: leave candidate zero at the seed by assigning it zero noise.

Example

python
>>> sampler = RobertsSampler(num_candidates=4, scale=[0.5, 0.5], device="cpu")
->>> tangent = wp.zeros((8, 2), dtype=wp.float32, device="cpu")
->>> sampler.fill(tangent)
->>> tangent.numpy().shape
-(8, 2)
->>> bool(np.abs(tangent.numpy()).max() <= 0.25)
-True
Parameters
-
num_candidatesintrequired
-
-
-
scaleSequence[float]required
-
-
-
seedOptional[int]= None
-
-
-
keep_firstbool= False
-
-
-
devicewp_device_type= 'cpu'
-
-
-
var_keyEnum= VarKey.ROBOT
-
-
Members
-
-
method[source]
-
RobertsSampler.reset() -> None
- -
-

A Roberts spread is fixed.

Returns
None
-
-
-
method[source]
-
RobertsSampler.sample(
-
var: VarValues,
scores: Optional[wp.array]
) -> VarValues
-
-

A Roberts spread is fixed, so scores tell it nothing: spread var in place.

Parameters
-
varVarValuesrequired
-
-
-
scoresOptional[wp.array]required
-
-
Returns
VarValues
-
-
-
method[source]
-
RobertsSampler.fill(
-
out_tangent: wp.array,
iteration: int = 0
) -> None
-
-
Parameters
-
out_tangentwp.arrayrequired
-
-
-
iterationint= 0
-
-
Returns
None
-
-
-
- -
robokit.opt.sampler.GaussianSampler(
-
num_draws: int,
tangent_dim: int,
instances: int,
weighting: Weighting = 'softmax',
init_std: float = 0.1,
min_std: float = 0.01,
temperature: float = 0.1,
gamma: float = 0.9,
learning_rate: float = 0.1,
epsilon: float = 1e-06,
seed: int = 0,
sample_mode: Literal['mean', 'best'] = 'mean',
elite_ratio: float = 0.0,
mean_elites: bool = False,
noise_decay: float = 1.0,
wide_ratio: float = 0.0,
wide_scale: float = 1.0,
active_dof_mask: Optional[wp.array] = None,
device: wp_device_type = 'cpu',
var_key: Enum = VarKey.ROBOT
)
-
-

Fit a sampling distribution from costs, as in MPPI and evolution strategies.

Each round:

  1. Move centers using scored draws and refit std.
  2. Draw num_draws std-scaled normals per center; draw zero has no noise and preserves the center.

Center updates:

  • sample_mode=mean: cost-weighted mean of noise.
  • sample_mode=best: cheapest draw's current position, including any optimizer movement.

Cost weighting:

  • softmax: Boltzmann weights over negative cost at temperature.
  • fitness_shaping: standardized costs scaled by learning_rate.

Capacity/reset controls:

  • instances: maximum center population; narrower solves use prefixes.
  • std_reset and temperatures: caller-adjustable per-instance settings; reset restores std from std_reset.
  • lower and upper: optional (instances, tangent_dim) bounds on a vector variable's drawn values; each draw is clamped to its center's and its noise follows.
Parameters
-
num_drawsintrequired
-
-
-
tangent_dimintrequired
-
-
-
instancesintrequired
-
-
-
weightingWeighting= 'softmax'
-
-
-
init_stdfloat= 0.1
-
-
-
min_stdfloat= 0.01
-
-
-
temperaturefloat= 0.1
-
-
-
gammafloat= 0.9
-
-
-
learning_ratefloat= 0.1
-
-
-
epsilonfloat= 1e-06
-
-
-
seedint= 0
-
-
-
sample_modeLiteral['mean', 'best']= 'mean'
-
-
-
elite_ratiofloat= 0.0
-
-
-
mean_elitesbool= False
-
-
-
noise_decayfloat= 1.0
-
-
-
wide_ratiofloat= 0.0
-
-
-
wide_scalefloat= 1.0
-
-
-
active_dof_maskOptional[wp.array]= None
-
-
-
devicewp_device_type= 'cpu'
-
-
-
var_keyEnum= VarKey.ROBOT
-
-
Members
-
-
attribute[source]
-
GaussianSampler.lower: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
GaussianSampler.upper: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
GaussianSampler.best_draws: Optional[VarValues]
- -
- -
-
-
attribute[source]
-
GaussianSampler.draws: Optional[VarValues]
- -
- -
-
-
method[source]
-
GaussianSampler.reset() -> None
- -
-

Reopen the spread to std_reset and replay the same noise sequence.

Returns
None
-
-
-
method[source]
-
GaussianSampler.sample(
-
var: VarValues,
scores: Optional[wp.array]
) -> VarValues
-
-
Parameters
-
varVarValuesrequired
-
-
-
scoresOptional[wp.array]required
-
-
Returns
VarValues
-
-
-
method[source]
-
GaussianSampler.fill(
-
out_tangent: wp.array,
iteration: int = 0
) -> None
-
-
Parameters
-
out_tangentwp.arrayrequired
-
-
-
iterationint= 0
-
-
Returns
None
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-robot/index.html b/docs/robokit/api-robot/index.html deleted file mode 100644 index b2ced50..0000000 --- a/docs/robokit/api-robot/index.html +++ /dev/null @@ -1,1552 +0,0 @@ - - - - - - Robot · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Robot

-
-
- -
robokit.robo.Robot(
-
spec: RobotSpec
)
-
-

Robot model backed by Warp.

Examples

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)
->>> state = robot.state(q=q)
->>> state = robot.forward_kinematics(state)
->>> hand_idx = robot.spec.link_names.index("panda_hand")
->>> link_pose = state.T_world_link[:, hand_idx]
->>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32)
->>> expected = wp.from_numpy(expected, dtype=wp_vec7)
->>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)
-True
Parameters
-
specRobotSpecrequired
-
-
Members
-
-
attribute[source]
-
Robot.spec: RobotSpec
- -
- -
-
-
method[source]
-
Robot.load(
-
robot_description_or_path: Union[str, Path, yourdfpy.URDF],
load_meshes: bool = False,
mesh_dir: Optional[Union[str, Path]] = None,
load_collision_spheres: bool = False,
collision_spheres_path: Optional[Union[str, Path]] = None,
base_link_name: Optional[str] = None,
ee_link_names: Optional[Union[Sequence[str], str]] = None,
self_collision_ignore_path: Optional[Union[str, Path]] = None
) -> Robot
-
-

Load a robot model from a URDF/MJCF path, description string, or parsed yourdfpy.URDF.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> robot.spec.num_actuated_joints
-8
Parameters
-
robot_description_or_pathUnion[str, Path, yourdfpy.URDF]required
-

URDF/MJCF file path, description string, or already-parsed yourdfpy.URDF.

-
-
load_meshesbool= False
-

Load link visual/collision meshes.

-
-
mesh_dirOptional[Union[str, Path]]= None
-

Directory to resolve mesh files against.

-
-
load_collision_spheresbool= False
-

Load collision spheres from collision_spheres_path.

-
-
collision_spheres_pathOptional[Union[str, Path]]= None
-

YAML file with per-link collision spheres and optional self_collision_link_buffers.

-
-
base_link_nameOptional[str]= None
-

Base link; defaults to the URDF root.

-
-
ee_link_namesOptional[Union[Sequence[str], str]]= None
-

End-effector link name(s).

-
-
self_collision_ignore_pathOptional[Union[str, Path]]= None
-

YAML file with link pairs self-collision terms skip.

-
Returns
Robot

The loaded robot model.

-
-
-
method[source]
-
Robot.state(
-
q: Optional[Union[wp.array, np.ndarray]] = None,
T_world_base: Optional[wp.array] = None
) -> RobotState
-
-

Build a robot state for the given joint positions (defaults to zero_q).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> robot.state().q.shape
-(1, 8)
Parameters
-
qOptional[Union[wp.array, np.ndarray]]= None
-
-
-
T_world_baseOptional[wp.array]= None
-
-
Returns
RobotState
-
-
-
method[source]
-
Robot.forward_kinematics(
-
state: RobotState,
use_sequential: Optional[bool] = None
) -> RobotState
-
-

Compute forward kinematics for given joint positions; returns a state with all link transforms.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)
->>> state = robot.state(q=q)
->>> state = robot.forward_kinematics(state)
->>> hand_idx = robot.spec.link_names.index("panda_hand")
->>> link_pose = state.T_world_link[:, hand_idx]
->>> expected = np.array([6.0860e-02, -4.7547e-12, 7.6373e-01, 0.0382, 0.9193, 0.3808, 0.0922], dtype=np.float32)
->>> expected = wp.from_numpy(expected, dtype=wp_vec7)
->>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)
-True
->>> T_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7)
->>> state = robot.state(q=q, T_world_base=T_world_base)
->>> state = robot.forward_kinematics(state)
->>> link_pose = state.T_world_link[:, hand_idx]
->>> expected = np.array([1.76371783, 2.0, 2.93915576, -0.24222432, 0.71524162, 0.29626278, -0.58478125], dtype=np.float32)
->>> expected = wp.from_numpy(expected, dtype=wp_vec7)
->>> np.allclose(se3_to_matrix(link_pose).numpy(), se3_to_matrix(expected).numpy(), atol=1e-4)
-True
Parameters
-
stateRobotStaterequired
-
-
-
use_sequentialOptional[bool]= None
-
-
Returns
RobotState
-
-
-
method[source]
-
Robot.forward_kinematics_via_matrix_numpy(
-
q: Float[np.ndarray, '... num_dofs'],
T_world_base: Optional[Float[np.ndarray, '... 4 4']] = None,
device: Optional[str] = None
) -> Float[np.ndarray, '... num_links 4 4']
-
-

Compute forward kinematics as 4x4 matrices for NumPy arrays, without an autograd round trip.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)
->>> robot.forward_kinematics_via_matrix_numpy(q).shape
-(1, 13, 4, 4)
Parameters
-
qFloat[np.ndarray, '... num_dofs']required
-
-
-
T_world_baseOptional[Float[np.ndarray, '... 4 4']]= None
-
-
-
deviceOptional[str]= None
-
-
Returns
Float[np.ndarray, '... num_links 4 4']
-
-
-
method[source]
-
Robot.forward_kinematics_numpy(
-
q: Float[np.ndarray, '... num_dofs'],
T_world_base: Optional[Float[np.ndarray, '... 7']] = None,
device: Optional[str] = None
) -> Float[np.ndarray, '... num_links 7']
-
-

Compute world link poses as translation-first 7D poses for NumPy arrays.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)
->>> robot.forward_kinematics_numpy(q).shape
-(1, 13, 7)
Parameters
-
qFloat[np.ndarray, '... num_dofs']required
-
-
-
T_world_baseOptional[Float[np.ndarray, '... 7']]= None
-
-
-
deviceOptional[str]= None
-
-
Returns
Float[np.ndarray, '... num_links 7']
-
-
-
method[source]
-
Robot.compute_center_of_mass_numpy(
-
q: Float[np.ndarray, '... num_dofs'],
T_world_base: Optional[Float[np.ndarray, '... 7']] = None,
device: Optional[str] = None
) -> Float[np.ndarray, '... 3']
-
-

Compute the whole-body center of mass in world frame for NumPy arrays.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> q = np.zeros((1, robot.spec.num_actuated_joints), dtype=np.float32)
->>> np.allclose(robot.compute_center_of_mass_numpy(q)[0], [0.0232, 0.0061, 0.6062], atol=1e-4)
-True
Parameters
-
qFloat[np.ndarray, '... num_dofs']required
-
-
-
T_world_baseOptional[Float[np.ndarray, '... 7']]= None
-
-
-
deviceOptional[str]= None
-
-
Returns
Float[np.ndarray, '... 3']
-
-
-
method[source]
-
Robot.compute_motion_subspace(
-
state: RobotState
) -> RobotState
-
-

Store robot joint Jacobians in state for state.get_link_jacobian().

Base layouts:

  • Fixed base: joint columns only.
  • Floating base: prepend J_base, giving shape [batch, 6, 6 + num_dofs].

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> T_world_base = wp.from_numpy(np.array([1.0, 2.0, 3.0, 0.7071, 0.0, 0.7071, 0.0]), dtype=wp_vec7)
->>> q = wp.from_numpy(np.array([0.0, -1.2, 0.0, -2.0, 0.0, 1.0, 0.0, 0.0]), dtype=wp.float32)
->>> state = robot.state(q=q, T_world_base=T_world_base)
->>> state = robot.compute_motion_subspace(state)
->>> J = state.get_link_jacobian(robot.spec.link_names.index("panda_hand"), "body")
->>> np.allclose(J.numpy()[0, 0, :6], np.array([0.693, 0.7071, 0.1405, -0.54, 0.5207, 0.043], dtype=np.float32), atol=1e-4)
-True
->>> J = state.get_link_jacobian(robot.spec.link_names.index("panda_hand"), "spatial")
->>> np.allclose(J.numpy()[0, 0, 6:], np.array([0.0001, -3., 1.8641, 3.2647, -1.4346, 3.0467, -0.3974, 0.], dtype=np.float32), atol=1e-3)
-True
->>> np.allclose(J.numpy()[0, 0, :6], np.array([0.0001, 0., 1., -2., -3., 0.0001], dtype=np.float32), atol=1e-3)
-True
Parameters
-
stateRobotStaterequired
-
-
Returns
RobotState
-
-
-
method[source]
-
Robot.compute_center_of_mass(
-
state: RobotState
) -> RobotState
-
-

Compute the whole-body center of mass in world frame into state.com_world.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state = robot.compute_center_of_mass(robot.state())
->>> np.allclose(state.com_world.numpy()[0], [0.0232, 0.0061, 0.6062], atol=1e-4)
-True
Parameters
-
stateRobotStaterequired
-
-
Returns
RobotState
-
-
-
method[source]
-
Robot.transform_collision_spheres(
-
state: RobotState
) -> RobotState
-
-

Compute the collision sphere centers in world frame.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state = robot.state()
->>> robot.transform_collision_spheres(state) is state  # no collision spheres loaded
-True
Parameters
-
stateRobotStaterequired
-

The robot state.

-
Returns
RobotState

The robot state with updated collision sphere centers.

-
-
-
method[source]
-
Robot.transform_collision_capsules(
-
state: RobotState
) -> RobotState
-
-

Compute the per-link capsule segment endpoints (a, b) in world frame.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state = robot.state()
->>> robot.transform_collision_capsules(state) is state  # no link capsules loaded
-True
Parameters
-
stateRobotStaterequired
-
-
Returns
RobotState
-
-
-
method[source]
-
Robot.forward_kinematics_via_matrix_torch(
-
q: Float[torch.Tensor, '... num_dofs'],
T_world_base: Optional[Float[torch.Tensor, '... 4 4']] = None,
analytical_backward: bool = True,
record_cmd: bool = False
) -> Float[torch.Tensor, '... num_links 4 4']
-
-

Compute differentiable forward kinematics as 4x4 matrices for torch tensors.

Example

python
>>> import torch
->>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> T_world_link = robot.forward_kinematics_via_matrix_torch(torch.zeros(robot.spec.num_actuated_joints))
->>> T_world_link.shape
-torch.Size([13, 4, 4])
Parameters
-
qFloat[torch.Tensor, '... num_dofs']required
-
-
-
T_world_baseOptional[Float[torch.Tensor, '... 4 4']]= None
-
-
-
analytical_backwardbool= True
-
-
-
record_cmdbool= False
-
-
Returns
Float[torch.Tensor, '... num_links 4 4']
-
-
-
method[source]
-
Robot.map_to_full_joint_values_torch(
-
actuated_values: Float[torch.Tensor, '... num_actuated_joints']
) -> Float[torch.Tensor, '... num_joints']
-
-

Expand actuated joint values to all joints (mimic joints follow their controlling joint).

Example

python
>>> import torch
->>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> robot.map_to_full_joint_values_torch(torch.zeros(robot.spec.num_actuated_joints)).shape
-torch.Size([12])
Parameters
-
actuated_valuesFloat[torch.Tensor, '... num_actuated_joints']required
-
-
Returns
Float[torch.Tensor, '... num_joints']
-
-
-
property[source]
-
Robot.zero_q: wp.array
- -
- -
-
-
property[source]
-
Robot.midrange_q: wp.array
- -
- -
-
-
property[source]
-
Robot.num_actuated_joints: int
- -
- -
-
-
method[source]
-
Robot.sample_q(
-
num_samples: int = 1,
rng: Optional[np.random.Generator] = None,
device: wp_device_type = None
) -> wp.array
-
-

Sample joint positions uniformly within the actuated joint limits.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> robot.sample_q(num_samples=3, rng=np.random.default_rng(0)).shape
-(3, 8)
Parameters
-
num_samplesint= 1
-
-
-
rngOptional[np.random.Generator]= None
-
-
-
devicewp_device_type= None
-
-
Returns
wp.array
-
-
-
- -
robokit.robo.RobotSpec(
-
name: str,
robot_description: str,
format: Literal['urdf', 'mjcf'],
joint_names: List[str],
nonfixed_joint_names: List[str],
actuated_joint_names: List[str],
joint_types: Int[np.ndarray, num_joints],
joint_axes: Float[np.ndarray, 'num_joints 3'],
joint_twists: Float[np.ndarray, 'num_joints 6'],
actuated_joint_indices: Int[np.ndarray, num_joints],
parent_joint_indices: Int[np.ndarray, num_joints],
parent_joint_transforms: Float[np.ndarray, 'num_joints 7'],
mimic_actuated_joint_indices: Int[np.ndarray, num_joints],
mimic_multipliers: Float[np.ndarray, num_joints],
mimic_offsets: Float[np.ndarray, num_joints],
joint_limits: Float[np.ndarray, 'num_joints 2'],
joint_velocity_limits: Float[np.ndarray, num_joints],
actuated_joint_limits: Float[np.ndarray, 'num_actuated_joints 2'],
actuated_joint_velocity_limits: Float[np.ndarray, num_actuated_joints],
link_names: List[str],
link_parent_joint_indices: Int[np.ndarray, num_links],
base_link_name: str,
ee_link_names: List[str],
link_visual_geometries: Dict[str, trimesh.Scene],
link_collision_geometries: Dict[str, trimesh.Scene],
local_collision_sphere_centers: Float[np.ndarray, 'num_collision_spheres 3'],
collision_sphere_radii: Float[np.ndarray, num_collision_spheres],
collision_spheres_link_indices: Int[np.ndarray, num_collision_spheres],
self_collision_ignored_pairs: Int[np.ndarray, 'num_ignored_pairs 2'],
link_masses: Float[np.ndarray, num_links],
link_local_com_positions: Float[np.ndarray, 'num_links 3'],
loaded_link_capsule_endpoints: Optional[Float[np.ndarray, 'num_links 2 3']] = None,
loaded_link_capsule_radii: Optional[Float[np.ndarray, num_links]] = None,
self_collision_link_buffers: Dict[str, float] = dict()
)
-
-

Robot specification.

Examples

python
>>> spec = RobotSpec.parse("tests/fixtures/wx250s.urdf")
->>> spec.num_actuated_joints
-8
->>> spec.num_links
-14
Parameters
-
namestrrequired
-
-
-
robot_descriptionstrrequired
-
-
-
formatLiteral['urdf', 'mjcf']required
-
-
-
joint_namesList[str]required
-
-
-
nonfixed_joint_namesList[str]required
-
-
-
actuated_joint_namesList[str]required
-
-
-
joint_typesInt[np.ndarray, num_joints]required
-
-
-
joint_axesFloat[np.ndarray, 'num_joints 3']required
-
-
-
joint_twistsFloat[np.ndarray, 'num_joints 6']required
-
-
-
actuated_joint_indicesInt[np.ndarray, num_joints]required
-
-
-
parent_joint_indicesInt[np.ndarray, num_joints]required
-
-
-
parent_joint_transformsFloat[np.ndarray, 'num_joints 7']required
-
-
-
mimic_actuated_joint_indicesInt[np.ndarray, num_joints]required
-
-
-
mimic_multipliersFloat[np.ndarray, num_joints]required
-
-
-
mimic_offsetsFloat[np.ndarray, num_joints]required
-
-
-
joint_limitsFloat[np.ndarray, 'num_joints 2']required
-
-
-
joint_velocity_limitsFloat[np.ndarray, num_joints]required
-
-
-
actuated_joint_limitsFloat[np.ndarray, 'num_actuated_joints 2']required
-
-
-
actuated_joint_velocity_limitsFloat[np.ndarray, num_actuated_joints]required
-
-
-
link_namesList[str]required
-
-
-
link_parent_joint_indicesInt[np.ndarray, num_links]required
-
-
-
base_link_namestrrequired
-
-
-
ee_link_namesList[str]required
-
-
-
link_visual_geometriesDict[str, trimesh.Scene]required
-
-
-
link_collision_geometriesDict[str, trimesh.Scene]required
-
-
-
local_collision_sphere_centersFloat[np.ndarray, 'num_collision_spheres 3']required
-
-
-
collision_sphere_radiiFloat[np.ndarray, num_collision_spheres]required
-
-
-
collision_spheres_link_indicesInt[np.ndarray, num_collision_spheres]required
-
-
-
self_collision_ignored_pairsInt[np.ndarray, 'num_ignored_pairs 2']required
-
-
-
link_massesFloat[np.ndarray, num_links]required
-
-
-
link_local_com_positionsFloat[np.ndarray, 'num_links 3']required
-
-
-
loaded_link_capsule_endpointsOptional[Float[np.ndarray, 'num_links 2 3']]= None
-
-
-
loaded_link_capsule_radiiOptional[Float[np.ndarray, num_links]]= None
-
-
-
self_collision_link_buffersDict[str, float]= dict()
-
-
Members
-
-
attribute[source]
-
RobotSpec.name: str
- -
-

Name of the robot.

-
-
-
attribute[source]
-
RobotSpec.robot_description: str
- -
-

Robot description

-
-
-
attribute[source]
-
RobotSpec.format: Literal['urdf', 'mjcf']
- -
-

Format of the robot description.

-
-
-
attribute[source]
-
RobotSpec.joint_names: List[str]
- -
-

Names of all joints, including actuated, mimic and fixed joints.

-
-
-
attribute[source]
-
RobotSpec.nonfixed_joint_names: List[str]
- -
-

Names of non-fixed joints, including actuated and mimic joints.

-
-
-
attribute[source]
-
RobotSpec.actuated_joint_names: List[str]
- -
-

Names of actuated joints.

-
-
-
attribute[source]
-
RobotSpec.joint_types: Int[np.ndarray, num_joints]
- -
-

Types of all joints, see JointType.

-
-
-
attribute[source]
-
RobotSpec.joint_axes: Float[np.ndarray, 'num_joints 3']
- -
-

Axes of all joints, [x, y, z].

-
-
-
attribute[source]
-
RobotSpec.joint_twists: Float[np.ndarray, 'num_joints 6']
- -
-

Twists of all joints, [linear (x, y, z), angular (x, y, z)].

-
-
-
attribute[source]
-
RobotSpec.actuated_joint_indices: Int[np.ndarray, num_joints]
- -
-

Indices of actuated joints, -1 for mimic and non-actuated joints.

-
-
-
attribute[source]
-
RobotSpec.parent_joint_indices: Int[np.ndarray, num_joints]
- -
-

Indices of parent joints, -1 for joints attached to the base link.

-
-
-
attribute[source]
-
RobotSpec.parent_joint_transforms: Float[np.ndarray, 'num_joints 7']
- -
-

Transforms of parent joints, [pos (x, y, z), quat (w, x, y, z)].

-
-
-
attribute[source]
-
RobotSpec.mimic_actuated_joint_indices: Int[np.ndarray, num_joints]
- -
-

Indices of mimicked actuated joints, -1 for non-mimic joints.

-
-
-
attribute[source]
-
RobotSpec.mimic_multipliers: Float[np.ndarray, num_joints]
- -
-

Multipliers of mimicked actuated joints, 1.0 for non-mimic joints.

-
-
-
attribute[source]
-
RobotSpec.mimic_offsets: Float[np.ndarray, num_joints]
- -
-

Offsets of mimicked actuated joints, 0.0 for non-mimic joints.

-
-
-
attribute[source]
-
RobotSpec.joint_limits: Float[np.ndarray, 'num_joints 2']
- -
-

Limits of all joints, [lower, upper].

-
-
-
attribute[source]
-
RobotSpec.joint_velocity_limits: Float[np.ndarray, num_joints]
- -
-

Velocity limits of all joints.

-
-
-
attribute[source]
-
RobotSpec.actuated_joint_limits: Float[np.ndarray, 'num_actuated_joints 2']
- -
-

Limits of actuated joints, [lower, upper].

-
-
-
attribute[source]
-
RobotSpec.actuated_joint_velocity_limits: Float[np.ndarray, num_actuated_joints]
- -
-

Velocity limits of actuated joints.

-
-
-
attribute[source]
-
RobotSpec.local_collision_sphere_centers: Float[np.ndarray, 'num_collision_spheres 3']
- -
-

Collision sphere centers in link-local coordinates.

-
-
-
attribute[source]
-
RobotSpec.collision_sphere_radii: Float[np.ndarray, num_collision_spheres]
- -
-

Collision sphere radii.

-
-
-
attribute[source]
-
RobotSpec.self_collision_ignored_pairs: Int[np.ndarray, 'num_ignored_pairs 2']
- -
-

Load ignored self-collision link pairs verbatim from self_collision_ignore_path, or return none.

-
-
-
method[source]
-
RobotSpec.parse(
-
robot_description_or_path: Union[str, Path, yourdfpy.URDF],
load_meshes: bool = False,
mesh_dir: Optional[Union[str, Path]] = None,
load_collision_spheres: bool = False,
collision_spheres_path: Optional[Union[str, Path]] = None,
load_link_capsules: bool = False,
link_capsules_path: Optional[Union[str, Path]] = None,
self_collision_ignore_path: Optional[Union[str, Path]] = None,
base_link_name: Optional[str] = None,
ee_link_names: Optional[Union[Sequence[str], str]] = None,
keep_mjcf_world_link: bool = False
) -> RobotSpec
-
-
Parameters
-
robot_description_or_pathUnion[str, Path, yourdfpy.URDF]required
-
-
-
load_meshesbool= False
-
-
-
mesh_dirOptional[Union[str, Path]]= None
-
-
-
load_collision_spheresbool= False
-
-
-
collision_spheres_pathOptional[Union[str, Path]]= None
-
-
-
load_link_capsulesbool= False
-
-
-
link_capsules_pathOptional[Union[str, Path]]= None
-
-
-
self_collision_ignore_pathOptional[Union[str, Path]]= None
-
-
-
base_link_nameOptional[str]= None
-
-
-
ee_link_namesOptional[Union[Sequence[str], str]]= None
-
-
-
keep_mjcf_world_linkbool= False
-
-
Returns
RobotSpec
-
-
-
method[source]
-
RobotSpec.parse_urdf(
-
robot_description_or_path: Union[str, Path, yourdfpy.URDF],
load_meshes: bool = False,
mesh_dir: Optional[Union[str, Path]] = None,
load_collision_spheres: bool = False,
collision_spheres_path: Optional[Union[str, Path]] = None,
load_link_capsules: bool = False,
link_capsules_path: Optional[Union[str, Path]] = None,
base_link_name: Optional[str] = None,
ee_link_names: Optional[Union[Sequence[str], str]] = None
) -> RobotSpec
-
-
Parameters
-
robot_description_or_pathUnion[str, Path, yourdfpy.URDF]required
-
-
-
load_meshesbool= False
-
-
-
mesh_dirOptional[Union[str, Path]]= None
-
-
-
load_collision_spheresbool= False
-
-
-
collision_spheres_pathOptional[Union[str, Path]]= None
-
-
-
load_link_capsulesbool= False
-
-
-
link_capsules_pathOptional[Union[str, Path]]= None
-
-
-
base_link_nameOptional[str]= None
-
-
-
ee_link_namesOptional[Union[Sequence[str], str]]= None
-
-
Returns
RobotSpec
-
-
-
method[source]
-
RobotSpec.parse_mjcf(
-
robot_description_or_path: Union[str, Path],
load_meshes: bool = False,
load_collision_spheres: bool = False,
collision_spheres_path: Optional[Union[str, Path]] = None,
load_link_capsules: bool = False,
link_capsules_path: Optional[Union[str, Path]] = None,
base_link_name: Optional[str] = None,
ee_link_names: Optional[Union[Sequence[str], str]] = None,
keep_world_link: bool = False
) -> RobotSpec
-
-

Parse an MJCF robot: hinge/slide joints, equality mimics; the world body stays if kept or a root has joints. A hinge with an anchor (jnt_pos) turns at a synthetic <body>_anchor link, then a fixed joint shifts back.

Parameters
-
robot_description_or_pathUnion[str, Path]required
-
-
-
load_meshesbool= False
-
-
-
load_collision_spheresbool= False
-
-
-
collision_spheres_pathOptional[Union[str, Path]]= None
-
-
-
load_link_capsulesbool= False
-
-
-
link_capsules_pathOptional[Union[str, Path]]= None
-
-
-
base_link_nameOptional[str]= None
-
-
-
ee_link_namesOptional[Union[Sequence[str], str]]= None
-
-
-
keep_world_linkbool= False
-
-
Returns
RobotSpec
-
-
-
property[source]
-
RobotSpec.num_joints: int
- -
- -
-
-
property[source]
-
RobotSpec.num_actuated_joints: int
- -
- -
-
-
property[source]
-
RobotSpec.num_nonfixed_joints: int
- -
- -
-
-
property[source]
-
RobotSpec.zero_q: Float[np.ndarray, num_actuated_joints]
- -
- -
-
-
property[source]
-
RobotSpec.midrange_q: Float[np.ndarray, num_actuated_joints]
- -
- -
-
-
property[source]
-
RobotSpec.parent_joint_transforms_matrix: Float[np.ndarray, 'num_joints 4 4']
- -
-

Transforms of parent joints as 4x4 matrices.

-
-
-
property[source]
-
RobotSpec.has_mimic_joints: bool
- -
- -
-
-
property[source]
-
RobotSpec.mimic_joint_names: List[str]
- -
-

Names of mimic joints.

-
-
-
property[source]
-
RobotSpec.total_mass: float
- -
- -
-
-
property[source]
-
RobotSpec.has_collision_spheres: bool
- -
- -
-
-
property[source]
-
RobotSpec.local_collision_sphere_radii: Float[np.ndarray, num_collision_spheres]
- -
- -
-
-
property[source]
-
RobotSpec.topological_order_joint_indices: Int[np.ndarray, num_joints]
- -
- -
-
-
property[source]
-
RobotSpec.kinematic_tree_str: str
- -
- -
-
-
property[source]
-
RobotSpec.joints_to_actuated_mapping: Float[np.ndarray, 'num_joints num_actuated_joints']
- -
-

Mapping from all joints to actuated joints.

-
-
-
method[source]
-
RobotSpec.get_tensors(
-
device: Optional[str] = None
) -> RobotSpecTensors
-
-

Cached Warp spec tensors for device (build on miss).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> spec = RobotSpec.parse(load_robot_description("panda_description"))
->>> spec.get_tensors() is spec.get_tensors()
-True
Parameters
-
deviceOptional[str]= None
-
-
Returns
RobotSpecTensors
-
-
-
method[source]
-
RobotSpec.get_tensors_torch(
-
device: Optional[Union[str, torch.device]] = None
) -> TorchRobotSpecTensors
-
-

Cached torch spec tensors for device (build on miss).

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> spec = RobotSpec.parse(load_robot_description("panda_description"))
->>> spec.get_tensors_torch() is spec.get_tensors_torch()
-True
Parameters
-
deviceOptional[Union[str, torch.device]]= None
-
-
Returns
TorchRobotSpecTensors
-
-
-
- -
robokit.robo.RobotState(
-
robot: Robot,
q: wp.array,
T_world_base: Optional[wp.array] = None
)
Bases: Var
-
-
Parameters
-
robotRobotrequired
-
-
-
qwp.arrayrequired
-
-
-
T_world_baseOptional[wp.array]= None
-
-
Members
-
-
methodinherited from Var[source]
-
RobotState.difference(
-
other: Self,
out: Optional[ArrayLike] = None
) -> ArrayLike
-
-

(batch, tangent_dim) velocities that integrate moves each element by to reach other's.

Parameters
-
otherSelfrequired
-
-
-
outOptional[ArrayLike]= None
-
-
Returns
ArrayLike
-
-
-
attribute[source]
-
RobotState.spec: RobotSpec
- -
- -
-
-
attribute[source]
-
RobotState.q: wp.array
- -
- -
-
-
attribute[source]
-
RobotState.T_world_base: wp.array
- -
- -
-
-
attribute[source]
-
RobotState.has_floating_base: bool
- -
- -
-
-
attribute[source]
-
RobotState.is_fk_computed: bool
- -
- -
-
-
attribute[source]
-
RobotState.is_motion_subspace_computed: bool
- -
- -
-
-
attribute[source]
-
RobotState.is_collision_spheres_computed: bool
- -
- -
-
-
attribute[source]
-
RobotState.is_capsules_computed: bool
- -
- -
-
-
attribute[source]
-
RobotState.is_com_computed: bool
- -
- -
-
-
property[source]
-
RobotState.T_world_joint: wp.array
- -
- -
-
-
property[source]
-
RobotState.X_local: wp.array
- -
- -
-
-
property[source]
-
RobotState.S_world: wp.array
- -
- -
-
-
property[source]
-
RobotState.com_world: wp.array
- -
- -
-
-
property[source]
-
RobotState.collision_sphere_centers_world: wp.array
- -
- -
-
-
property[source]
-
RobotState.is_trajectory: bool
- -
- -
-
-
property[source]
-
RobotState.shape: Tuple[int, ...]
- -
- -
-
-
property[source]
-
RobotState.batch_size: int
- -
- -
-
-
property[source]
-
RobotState.num_elements: int
- -
- -
-
-
property[source]
-
RobotState.device: wp_device_type
- -
- -
-
-
property[source]
-
RobotState.tangent_dim: int
- -
- -
-
-
method[source]
-
RobotState.invalidate()
- -
- -
-
-
method[source]
-
RobotState.precompute()
- -
- -
-
-
method[source]
-
RobotState.integrate(
-
velocity: ArrayLike,
out: Optional[RobotState] = None,
tangent_mask: Optional[wp.array] = None,
weight_decay: float = 0.0,
out_velocity: Optional[ArrayLike] = None
) -> RobotState
-
-

Integrate the state by a tangent-space velocity, optionally reporting the move the limits let through.

Parameters
-
velocityArrayLikerequired
-
-
-
outOptional[RobotState]= None
-
-
-
tangent_maskOptional[wp.array]= None
-
-
-
weight_decayfloat= 0.0
-
-
-
out_velocityOptional[ArrayLike]= None
-
-
Returns
RobotState
-
-
-
method[source]
-
RobotState.clamp_q(
-
tangent_mask: Optional[wp.array] = None,
record_tape: bool = True
) -> RobotState
-
-

Clamp joints while preserving masked coordinates; record_tape=False excludes projection from tape.

Parameters
-
tangent_maskOptional[wp.array]= None
-
-
-
record_tapebool= True
-
-
Returns
RobotState
-
-
-
method[source]
-
RobotState.clone() -> RobotState
- -
-
Returns
RobotState
-
-
-
method[source]
-
RobotState.view(
-
batch_size: int,
offset: int = 0
) -> RobotState
-
-

Elements offset to offset + batch_size of every buffer, sharing storage.

Parameters
-
batch_sizeintrequired
-
-
-
offsetint= 0
-
-
Returns
RobotState
-
-
-
method[source]
-
RobotState.flatten() -> RobotState
- -
-

Zero-copy view folding the frame axis into the batch axis so per-pose kernels run unchanged.

Returns
RobotState
-
-
-
method[source]
-
RobotState.gather(
-
indices: ArrayLike,
out: Optional[RobotState] = None,
q_only: bool = True
) -> RobotState
-
-
Parameters
-
indicesArrayLikerequired
-
-
-
outOptional[RobotState]= None
-
-
-
q_onlybool= True
-
-
Returns
RobotState
-
-
-
method[source]
-
RobotState.accept(
-
accept_mask: ArrayLike,
proposed: RobotState
) -> RobotState
-
-

Optimized accept: copies q, and the forward kinematics this state already had (1 kernel).

Parameters
-
accept_maskArrayLikerequired
-
-
-
proposedRobotStaterequired
-
-
Returns
RobotState
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-sim-mpc/index.html b/docs/robokit/api-sim-mpc/index.html deleted file mode 100644 index 83f3848..0000000 --- a/docs/robokit/api-sim-mpc/index.html +++ /dev/null @@ -1,2947 +0,0 @@ - - - - - - Sim MPC · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Sim MPC

-
-
- -
robokit.helpers.sim_mpc.SimMPC(
-
config: SimMPCConfig,
sim: Sim,
ctrl_ref: np.ndarray
)
Bases: Task
-
-

Receding-horizon MPPI over simulated rollouts, for config.batch_size instances.

Lifecycle

  1. __init__ resizes sim into the rollout and validation worlds and captures their graphs on the first plan.
  2. plan(data, t0) refines every instance's plan from its state and returns the next ctrl_steps commands.
  3. The caller executes them on its own simulator (or execute does on one), then plans again at t0 + ctrl_steps.

Example

python
>>> import mujoco
->>> from robokit.helpers.sim_mpc import SimMPCConfig
->>> from robokit.sim import MjWarpSim
->>> from robokit.terms import SensorTask
->>> xml = (
-...     '<mujoco><option timestep="0.01"/><worldbody><body><joint name="x" type="slide" damping="5"/>'
-...     '<geom size="0.05" mass="1"/></body></worldbody><actuator><position joint="x" kp="50"/></actuator>'
-...     '<sensor><jointpos name="x" joint="x"/></sensor></mujoco>'
-... )
->>> model = mujoco.MjModel.from_xml_string(xml)
->>> config = SimMPCConfig(num_samples=32, horizon_steps=20, node_steps=10, ctrl_steps=10, max_iterations=2)
->>> config = config.add(SensorTask(np.full((60, 1), 0.3), {"x": 100.0}))
->>> mpc = SimMPC(config, MjWarpSim(model, 1), np.zeros((60, 1)))
->>> commands, infos = mpc.plan(mujoco.MjData(model), 0)  # execute these, then plan again at step 10
->>> commands.shape, mpc.sims["rollout"].nworld
-((10, 1, 1), 31)
->>> (rollout,), (plans,) = mpc.execute(MjWarpSim(model, 1), 40)  # or run the loop on a simulator
->>> rollout["qpos"].shape, len(plans)
-((40, 1), 4)
->>> # "auto" picked 4x on the CPU (2x on an RTX 3090): every rollout's first quarter steps at 10 ms, the rest at 40 ms
->>> mpc.stages  # xdoctest: +IGNORE_WANT
-[SimMPCStage(iters=2, dt=[(0.25, None), (1.0, 0.04)])]
Parameters
-
configSimMPCConfigrequired
-

The settings, with the cost terms (config.add), the node noise (ctrl_std) and command bounds.

-
-
simSimrequired
-

The planning simulator, e.g. MjWarpSim(model, 1); for scenes that differ, one scene per instance.

-
-
ctrl_refnp.ndarrayrequired
-

The reference commands the plans offset, (T, nu) or (batch_size, T, nu).

-
Members
-
-
attributeinherited from Task[source]
-
SimMPC.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SimMPC.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
SimMPC.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
SimMPC.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
SimMPC.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
SimMPC.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
SimMPC.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
SimMPC.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
SimMPC.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SimMPC.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SimMPC.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SimMPC.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
SimMPC.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
method[source]
-
SimMPC.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each node row's rollout cost: draws in the rollout worlds, moved plans in the validation worlds.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
method[source]
-
SimMPC.plan(
-
data: Any,
t0: int
) -> Tuple[wp.array, List[dict]]
-
-

Refine every instance's plan from its state at sim step t0; return its next ctrl_steps commands.

Parameters
-
dataAnyrequired
-

Each instance's time, qpos, qvel, act and qacc_warmstart, (batch_size, ...) arrays: e.g. the executing simulator's data, or a mujoco.MjData for one instance.

-
-
t0intrequired
-

The state's sim step, which indexes ctrl_ref and the costs' references.

-
Returns
Tuple[wp.array, List[dict]]

The commands, (ctrl_steps, batch_size, nu) before any control_map, in a buffer the next call reuses, and each instance's plan info (t0, iterations, plan_cost, best_cost, ...).

-
-
-
method[source]
-
SimMPC.execute(
-
sim: Sim,
num_steps: int,
callback: Optional[Callable[[List[dict]], None]] = None
) -> Tuple[List[Dict[str, np.ndarray]], List[List[dict]]]
-
-

Run the planner in closed loop on sim, one world per instance, for num_steps sim steps: each control period plans from sim's state, then steps sim through the commands, mapped by the config's control_map and clipped to the controls MuJoCo applies, and calls callback with every instance's plan info.

Parameters
-
simSimrequired
-
-
-
num_stepsintrequired
-
-
-
callbackOptional[Callable[[List[dict]], None]]= None
-
-
Returns
Tuple[List[Dict[str, np.ndarray]], List[List[dict]]]

Each instance's rows, time, qpos, qvel, ctrl and sensordata (after the step), each (num_steps, ...), and its plan info per control period.

-
-
-
- -
robokit.helpers.sim_mpc.SimMPCConfig(
-
terms: List[Tuple[Task, float, Optional[float]]] = list(),
ctrl_std: Any = 0.1,
ctrl_range: Optional[np.ndarray] = None,
qpos_std: Any = 0.0,
qvel_std: Any = 0.0,
control_map: Optional[Callable[[Sim, wp.array], None]] = None,
batch_size: int = 1,
num_samples: int = 512,
num_replicas: int = 1,
horizon_steps: int = 300,
node_steps: int = 50,
ctrl_steps: int = 100,
max_iterations: int = 12,
init_iterations: int = 0,
stages: Optional[List[SimMPCStage]] = None,
min_improvement: float = 0.005,
patience: int = 2,
std_growth: float = 4.0,
noise_decay: float = 1.0,
interpolation: Union[Literal['linear', 'cubic', 'zero'], np.ndarray] = 'linear',
draw_first_node: bool = False,
wide_ratio: float = 0.0,
wide_scale: float = 6.0,
std_range: Optional[Tuple[float, float]] = None,
min_std: float = 0.001,
std_gamma: float = 0.5,
elite_ratio: float = 0.2,
best_draw_margin: float = 4.0,
settle_steps: int = 0,
terminal_scale: float = 10.0,
seed: int = 0,
cuda_graph_mode: Literal['none', 'step'] = 'step',
planner: Literal['mppi', 'ilqr'] = 'mppi',
ilqr: Optional[Any] = None
)
-
-

SimMPC's per-task settings; times are in sim steps.

Example

python
>>> config = SimMPCConfig(num_samples=64, horizon_steps=30)
->>> config.num_samples, config.node_steps
-(64, 50)
->>> SimMPCConfig(stages=[SimMPCStage(3, dt=0.04), SimMPCStage(1)]).max_iterations  # 3 coarse iterations, 1 fine
-4
Parameters
-
termsList[Tuple[Task, float, Optional[float]]]= list()
-
-
-
ctrl_stdAny= 0.1
-
-
-
ctrl_rangeOptional[np.ndarray]= None
-
-
-
qpos_stdAny= 0.0
-
-
-
qvel_stdAny= 0.0
-
-
-
control_mapOptional[Callable[[Sim, wp.array], None]]= None
-
-
-
batch_sizeint= 1
-
-
-
num_samplesint= 512
-
-
-
num_replicasint= 1
-
-
-
horizon_stepsint= 300
-
-
-
node_stepsint= 50
-
-
-
ctrl_stepsint= 100
-
-
-
max_iterationsint= 12
-
-
-
init_iterationsint= 0
-
-
-
stagesOptional[List[SimMPCStage]]= None
-
-
-
min_improvementfloat= 0.005
-
-
-
patienceint= 2
-
-
-
std_growthfloat= 4.0
-
-
-
noise_decayfloat= 1.0
-
-
-
interpolationUnion[Literal['linear', 'cubic', 'zero'], np.ndarray]= 'linear'
-
-
-
draw_first_nodebool= False
-
-
-
wide_ratiofloat= 0.0
-
-
-
wide_scalefloat= 6.0
-
-
-
std_rangeOptional[Tuple[float, float]]= None
-
-
-
min_stdfloat= 0.001
-
-
-
std_gammafloat= 0.5
-
-
-
elite_ratiofloat= 0.2
-
-
-
best_draw_marginfloat= 4.0
-
-
-
settle_stepsint= 0
-
-
-
terminal_scalefloat= 10.0
-
-
-
seedint= 0
-
-
-
cuda_graph_modeLiteral['none', 'step']= 'step'
-
-
-
plannerLiteral['mppi', 'ilqr']= 'mppi'
-
-
-
ilqrOptional[Any]= None
-
-
Members
-
-
attribute[source]
-
SimMPCConfig.terms: List[Tuple[Task, float, Optional[float]]] = field(default_factory=list)
- -
-

The cost terms with their running and terminal scales, added with add.

-
-
-
attribute[source]
-
SimMPCConfig.ctrl_std: Any = 0.1
- -
-

Node noise per command at the first free node, one value or one per command.

-
-
-
attribute[source]
-
SimMPCConfig.ctrl_range: Optional[np.ndarray] = None
- -
-

(nu, 2) bounds of the commands; None: the actuator ranges MuJoCo clamps to.

-
-
-
attribute[source]
-
SimMPCConfig.qpos_std: Any = 0.0
- -
-

Each replica's start noise on qpos, one value or one per coordinate.

-
-
-
attribute[source]
-
SimMPCConfig.qvel_std: Any = 0.0
- -
-

Each replica's start noise on qvel, one value or one per dof.

-
-
-
attribute[source]
-
SimMPCConfig.control_map: Optional[Callable[[Sim, wp.array], None]] = None
- -
-

control_map(sim, clock) turns the commands in sim.data.ctrl into actuator controls before every step.

-
-
-
attribute[source]
-
SimMPCConfig.batch_size: int = 1
- -
-

Instances planned at once; they share the model and the config.

-
-
-
attribute[source]
-
SimMPCConfig.num_samples: int = 512
- -
-

Draws per iteration, one of them reserved to score the moved plan. A sim step costs about the same up to some hundreds of worlds (about 512 on an RTX 3090) and grows past them, so fill that many before adding iterations.

-
-
-
attribute[source]
-
SimMPCConfig.num_replicas: int = 1
- -
-

Worlds per draw, which average their costs (e.g. over qpos_std noise).

-
-
-
attribute[source]
-
SimMPCConfig.horizon_steps: int = 300
- -
-

Steps each rollout simulates and scores.

-
-
-
attribute[source]
-
SimMPCConfig.node_steps: int = 50
- -
-

Steps between nodes, the points the control offsets are interpolated through.

-
-
-
attribute[source]
-
SimMPCConfig.ctrl_steps: int = 100
- -
-

Steps executed per plan; a multiple of node_steps keeps shifted nodes exact.

-
-
-
attribute[source]
-
SimMPCConfig.max_iterations: int = 12
- -
-

Sampling iterations per plan, at most; with stages, the sum of their iters.

-
-
-
attribute[source]
-
SimMPCConfig.init_iterations: int = 0
- -
-

If positive, the first plan's iterations instead of max_iterations: the stages' last ones, the first stage run longer or cut.

-
-
-
attribute[source]
-
SimMPCConfig.stages: Optional[List[SimMPCStage]] = None
- -
-

Coarse to fine: the stages each plan's iterations run in order; the moved plans are scored at the simulator's timestep. None: the first rollouts pick [SimMPCStage(max_iterations, [(0.25, None), (1.0, k * timestep)])] for the largest k of 4 and 2 whose draws end within 11% of their spread of the fine ones, else one fine stage.

-
-
-
attribute[source]
-
SimMPCConfig.min_improvement: float = 0.005
- -
-

Stop once the best draw beats the plan by under this, patience times running.

-
-
-
attribute[source]
-
SimMPCConfig.patience: int = 2
- -
-

Iterations under min_improvement in a row that stop the plan.

-
-
-
attribute[source]
-
SimMPCConfig.std_growth: float = 4.0
- -
-

Node noise grows from ctrl_std at the first free node to this multiple at the last.

-
-
-
attribute[source]
-
SimMPCConfig.noise_decay: float = 1.0
- -
-

Iteration i scales the node noise by noise_decay**i.

-
-
-
attribute[source]
-
SimMPCConfig.interpolation: Union[Literal['linear', 'cubic', 'zero'], np.ndarray] = 'linear'
- -
-

Node interpolation, or a (steps, num_nodes) basis of each step's node weights; "zero" also draws the first node.

-
-
-
attribute[source]
-
SimMPCConfig.draw_first_node: bool = False
- -
-

Draw the first node for any interpolation, so a plan can change the command it executes now (predictive sampling, CEM).

-
-
-
attribute[source]
-
SimMPCConfig.wide_ratio: float = 0.0
- -
-

Share of each plan's first-round draws taken at wide_scale times the noise, as predictive sampling explores.

-
-
-
attribute[source]
-
SimMPCConfig.wide_scale: float = 6.0
- -
- -
-
-
attribute[source]
-
SimMPCConfig.std_range: Optional[Tuple[float, float]] = None
- -
-

If set, a plan of one iteration starts from the last plan's refit noise, as CEM carries its spread: one scale of the configured noise (root mean square over the drawn nodes), clipped to this range.

-
-
-
attribute[source]
-
SimMPCConfig.min_std: float = 0.001
- -
-

Floor of the node noise.

-
-
-
attribute[source]
-
SimMPCConfig.std_gamma: float = 0.5
- -
-

Share of the draws' weighted spread each iteration moves the node noise toward.

-
-
-
attribute[source]
-
SimMPCConfig.elite_ratio: float = 0.2
- -
-

Share of the cheapest draws whose cost spread is the temperature and whose weighted mean is the moved plan.

-
-
-
attribute[source]
-
SimMPCConfig.best_draw_margin: float = 4.0
- -
-

Execute the best draw instead of the moved plan when the moved plan costs this many temperatures more.

-
-
-
attribute[source]
-
SimMPCConfig.settle_steps: int = 0
- -
-

Unscored zero-control steps before each rollout.

-
-
-
attribute[source]
-
SimMPCConfig.terminal_scale: float = 10.0
- -
-

Cost scale at the horizon's last step, unless add sets a term's own.

-
-
-
attribute[source]
-
SimMPCConfig.seed: int = 0
- -
-

Seed of the node draws and the replicas' initial-state noise.

-
-
-
attribute[source]
-
SimMPCConfig.cuda_graph_mode: Literal['none', 'step'] = 'step'
- -
-

"step" replays one captured graph per sim step; "none" launches every kernel.

-
-
-
attribute[source]
-
SimMPCConfig.planner: Literal['mppi', 'ilqr'] = 'mppi'
- -
-

"ilqr": ILQROptimizer refines commands held for node_steps, max_iterations times a plan, instead of nodes.

-
-
-
attribute[source]
-
SimMPCConfig.ilqr: Optional[Any] = None
- -
-

"ilqr"'s ILQROptimizerConfig, but max_iter; None: damped (robot costs seldom penalize controls) and cautious.

-
-
-
method[source]
-
SimMPCConfig.add(
-
term: Task,
running_scale: float = 1.0,
terminal_scale: Optional[float] = None
) -> SimMPCConfig
-
-

Add a cost term, scaled by running_scale per step and by terminal_scale (default: the config's) at the horizon's last step; running_scale=0 makes a terminal-only cost.

Parameters
-
termTaskrequired
-
-
-
running_scalefloat= 1.0
-
-
-
terminal_scaleOptional[float]= None
-
-
Returns
SimMPCConfig
-
-
-
- -
robokit.helpers.sim_mpc.CartesianControl(
-
model: mujoco.MjModel,
body: str,
position_ref: Sequence[float] = (0, 0, 0),
q_wxyz_ref: Sequence[float] = (1, 0, 0, 0),
position_gain: Sequence[float] = (0, 0, 0),
rotation_gain: Sequence[float] = (0, 0, 0),
damping: float = 0.001
)
-
-

A SimMPC control map: world-frame body twists (the first six commands) to joint velocities by damped least squares, with feedback toward position_ref and q_wxyz_ref; needs scalar joint actuators.

Example

python
>>> import mujoco
->>> model = mujoco.MjModel.from_xml_string('<mujoco><worldbody><body name="b"><joint name="j" type="slide"/>'
-... '<geom size="0.1"/></body></worldbody><actuator><velocity joint="j"/></actuator></mujoco>')
->>> control = CartesianControl(model, "b", position_gain=[0, 0, 1])
->>> control.dofs.shape
-(1,)
Parameters
-
modelmujoco.MjModelrequired
-
-
-
bodystrrequired
-
-
-
position_refSequence[float]= (0, 0, 0)
-
-
-
q_wxyz_refSequence[float]= (1, 0, 0, 0)
-
-
-
position_gainSequence[float]= (0, 0, 0)
-
-
-
rotation_gainSequence[float]= (0, 0, 0)
-
-
-
dampingfloat= 0.001
-
-
-
-
-
function[source]
-
robokit.helpers.sim_mpc.sim_context(
-
sim: Sim
) -> Dict[Context, Any]
-
-

The SimContext values of a simulator's worlds, with its mjm's layout, except CLOCK, NUM_INSTANCES and WORLDS_PER_INSTANCE.

Parameters
-
simSimrequired
-
-
Returns
Dict[Context, Any]
-
-
- -
robokit.sim.Sim
-
Bases: Protocol
-
-

What MjWarpSim and newton.NewtonSim offer: device work only, also in a capture on Warp's current stream.

Members
-
-
attribute[source]
-
Sim.mjm: Any
- -
-

The mujoco.MjModel whose layout data follows: bodies, joints, sensors (for several scenes, their merge).

-
-
-
attribute[source]
-
Sim.nworld: int
- -
- -
-
-
attribute[source]
-
Sim.substeps: int
- -
- -
-
-
attribute[source]
-
Sim.stream: Optional[wp.Stream]
- -
-

The CUDA stream it launches on (None on the CPU); other GPU work on it stays ordered without host syncs.

-
-
-
attribute[source]
-
Sim.data: Any
- -
-

Warp arrays named and laid out as in mujoco.MjData, with a leading world axis (nworld, ...).

-
-
-
attribute[source]
-
Sim.model: Any
- -
-

mujoco.MjModel's fields (NewtonSim: none), a row per world copied from the shared row on first access.

-
-
-
method[source]
-
Sim.step()
- -
-

Advance substeps physics steps; data.substep_sensordata[k]: sensordata after substep k.

-
-
-
method[source]
-
Sim.forward()
- -
-

Recompute the derived quantities (xpos, sensordata, ...) from the current state.

-
-
-
method[source]
-
Sim.reset(
-
mask: wp.array
)
-
-

Return the worlds where mask is set to the initial state.

Parameters
-
maskwp.arrayrequired
-
-
-
-
-
method[source]
-
Sim.resized(
-
nworld: int
) -> Sim
-
-

A new simulator of the same scenes and settings with nworld worlds.

Parameters
-
nworldintrequired
-
-
Returns
Sim
-
-
-
- -
robokit.sim.MjWarpSim(
-
model: Union[mujoco.MjModel, Sequence[mujoco.MjSpec]],
nworld: Union[int, Sequence[int]],
data: Optional[mujoco.MjData] = None,
substeps: int = 1,
njmax: Optional[int] = None,
nconmax: Optional[int] = None,
key: Optional[str] = None,
device = None
)
-
-

Step nworld worlds of model, or nworld[i] of each scene model[i], substeps physics steps per step().

Example

python
>>> import mujoco, numpy as np, warp as wp
->>> from robokit.sim import MjWarpSim
->>> xml = '<mujoco><worldbody><geom type="plane" size="1 1 .1"/>'
->>> xml += '<body pos="0 0 .5"><freejoint/><geom size=".1"/></body></worldbody></mujoco>'
->>> sim = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=8, substeps=4)
->>> sim.model.geom_friction.shape  # one row per world, ready to randomize
-(8, 2)
->>> sim.opt.iterations = 5  # from the next step on
->>> sim.step()
->>> bool((sim.data.qpos.numpy()[:, 2] < 0.5).all()), sim.data.substep_sensordata.shape
-(True, (4, 8, 0))
->>> sim.reset(wp.array(np.arange(8) < 4))  # the first four worlds back to the start
->>> z = sim.data.qpos.numpy()[:, 2]
->>> float(z[0]), bool(z[7] < 0.5)
-(0.5, True)
->>> big = mujoco.MjSpec.from_string(xml.replace('size=".1"', 'size=".2"'))
->>> mixed = MjWarpSim([mujoco.MjSpec.from_string(xml), big], nworld=[3, 5])  # worlds 3 to 7: the big ball
->>> (mixed.model.geom_size.numpy()[:, 1, 0] > 0.15).tolist()
-[False, False, False, True, True, True, True, True]
->>> pos = mixed.model.geom_pos.numpy()
->>> pos[0, 0, 2] = -1.0  # world 0's floor, a static geom, a meter lower ...
->>> mixed.model.geom_pos.assign(pos)
->>> mixed.reset(wp.array(np.arange(8) == 0))  # ... from its next reset
->>> mixed.data.geom_xpos.numpy()[:2, 0, 2].tolist()
-[-1.0, 0.0]
Parameters
-
modelUnion[mujoco.MjModel, Sequence[mujoco.MjSpec]]required
-

A mujoco.MjModel, or mujoco.MjSpec scenes that may differ in geoms, meshes, inertias, sites, pairs.

-
-
nworldUnion[int, Sequence[int]]required
-

The worlds, or each scene's; each world gets its scene's values.

-
-
dataOptional[mujoco.MjData]= None
-

The state reset() restores, else keyframe key's, else the defaults; several scenes: their defaults.

-
-
substepsint= 1
-
-
-
njmaxOptional[int]= None
-
-
-
nconmaxOptional[int]= None
-
-
-
keyOptional[str]= None
-
-
-
device= None
-

The Warp device; on a GPU each call runs as one cached CUDA graph.

-
Members
-
-
method[source]
-
MjWarpSim.resized(
-
nworld: int
) -> MjWarpSim
-
-

A new simulator of this one's scenes and settings with nworld worlds, split evenly over several scenes.

Parameters
-
nworldintrequired
-
-
Returns
MjWarpSim
-
-
-
method[source]
-
MjWarpSim.build_coarse_spec(
-
spec: mujoco.MjSpec,
config: CoarseConfig
) -> mujoco.MjSpec
-
-

A copy of spec with config's cheaper geometry and physics, e.g. for planning or early RL training.

Example

python
>>> spec = mujoco.MjSpec.from_string(
-...     '<mujoco><worldbody><body name="d"><freejoint/><geom name="a" size="0.1"/><geom size="0.1"/></body>'
-...     '<geom name="b" size="0.1" pos="1 0 0"/><geom name="c" size="0.1" pos="0 0 -0.21"/></worldbody>'
-...     '<contact><pair geom1="a" geom2="b"/><pair geom1="a" geom2="c"/></contact></mujoco>'
-... )
->>> coarse = MjWarpSim.build_coarse_spec(spec, CoarseConfig(qpos_ref=np.array([[0, 0, 0, 1, 0, 0, 0]])))
->>> coarse.compile().npair  # only a-c comes near
-1
->>> config = CoarseConfig(collide="a|c|d", condim=1, condim_geoms="d", timestep=0.01, pyramidal=True)
->>> model = MjWarpSim.build_coarse_spec(spec, config).compile()
->>> model.geom_contype.tolist(), model.geom_condim.tolist()  # b, c, a, d's unnamed: b no longer collides
-([0, 1, 1, 1], [3, 3, 3, 1])
->>> model.opt.timestep, model.opt.cone
-(0.01, 0)
->>> config = CoarseConfig(min_timeconst=0.01, min_impedance_width=0.002)
->>> model = MjWarpSim.build_coarse_spec(spec, config).compile()
->>> model.geom_solref[:, 0].tolist(), model.geom_solimp[:, 2].tolist()  # from 0.02 and 0.001 by default
-([0.02, 0.02, 0.02, 0.02], [0.002, 0.002, 0.002, 0.002])
->>> config = CoarseConfig(iterations=2, ls_iterations=4, integrator="implicitfast")
->>> opt = MjWarpSim.build_coarse_spec(spec, config).option
->>> opt.iterations, opt.ls_iterations, opt.integrator == mujoco.mjtIntegrator.mjINT_IMPLICITFAST
-(2, 4, True)
Parameters
-
specmujoco.MjSpecrequired
-
-
-
configCoarseConfigrequired
-
-
Returns
mujoco.MjSpec
-
-
-
method[source]
-
MjWarpSim.set_const()
- -
-

Recompute constants derived from masses and inertias, per world, after randomizing them or body_ipos.

-
-
-
method[source]
-
MjWarpSim.build_entity(
-
prefix: str,
soft_joint_pos_limit_factor: float = 1.0
) -> Entity
-
-

The robokit.sim.mjentity.Entity named prefix*, its default pose the initial qpos.

Example

python
>>> xml = '<mujoco><worldbody><body name="r/base" pos="0 0 .5"><freejoint name="r/root"/><geom size=".1"/>'
->>> xml += '<body><joint name="r/a"/><geom size=".1"/></body></body></worldbody></mujoco>'
->>> robot = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).build_entity("r/")
->>> robot.joint_names, robot.data.default_root_state[:3].tolist()
-(['a'], [0.0, 0.0, 0.5])
Parameters
-
prefixstrrequired
-
-
-
soft_joint_pos_limit_factorfloat= 1.0
-
-
Returns
Entity
-
-
-
method[source]
-
MjWarpSim.build_contact_sensor(
-
name: str,
track_air_time: bool = False
) -> ContactSensor
-
-

A robokit.sim.mjsensor.ContactSensor of the contact sensors named {name}_{primary}_{found or force}.

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom name="ball" size=".1"/></body></worldbody><sensor>'
->>> xml += '<contact name="touch_ball_found" geom1="ball" data="found"/></sensor></mujoco>'
->>> MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).build_contact_sensor("touch").primary_names
-['ball']
Parameters
-
namestrrequired
-
-
-
track_air_timebool= False
-
-
Returns
ContactSensor
-
-
-
method[source]
-
MjWarpSim.get_sensor(
-
name: str
) -> Any
-
-

(nworld, dim): sensor name's readings, a zero-copy torch view of data.sensordata.

Example

python
>>> xml = '<mujoco><worldbody><body name="b" pos="0 0 .5"><freejoint/><geom size=".1"/></body></worldbody>'
->>> xml += '<sensor><framepos name="p" objtype="body" objname="b"/></sensor></mujoco>'
->>> MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2).get_sensor("p").tolist()
-[[0.0, 0.0, 0.5], [0.0, 0.0, 0.5]]
Parameters
-
namestrrequired
-
-
Returns
Any
-
-
-
method[source]
-
MjWarpSim.compute_rays(
-
render_context: Any,
rays: Any = {}
)
-
-

Refit render_context's BVH to the current poses, then cast rays (mjw.rays arguments) in every world.

Example

python
>>> mjm = mujoco.MjModel.from_xml_string('<mujoco><worldbody><geom type="box" pos="0 0 -.5" size="1 1 .5"/>'
-...     '</worldbody></mujoco>')
->>> rc = mjw.create_render_context(mjm, 2, cam_res=[], render_rgb=[], render_depth=[], render_seg=[])
->>> dist, down = wp.zeros((2, 1), dtype=float), wp.array([[[0, 0, -1]]] * 2, dtype=wp.vec3)  # from z = 1 m
->>> MjWarpSim(mjm, nworld=2).compute_rays(rc, pnt=wp.array([[[0, 0, 1]]] * 2, dtype=wp.vec3), vec=down,
-...     geomgroup=wp.types.vector(6, wp.float32)(-1, -1, -1, -1, -1, -1), flg_static=True,
-...     bodyexclude=wp.array([-1], dtype=int), dist=dist, geomid=wp.zeros((2, 1), dtype=int),
-...     normal=wp.zeros((2, 1), dtype=wp.vec3))
->>> dist.numpy().tolist()
-[[1.0], [1.0]]
Parameters
-
render_contextAnyrequired
-
-
-
raysAny= {}
-
-
-
-
-
method[source]
-
MjWarpSim.set_torch_stream()
- -
-

Run torch on Warp's stream, so torch and the simulator stay ordered without host syncs.

Example

python
>>> import torch
->>> xml = '<mujoco><worldbody><body><freejoint/><geom size=".1"/></body></worldbody></mujoco>'
->>> (sim := MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=2)).set_torch_stream()
->>> torch.cuda.current_stream().cuda_stream == sim.stream.cuda_stream
-True
-
-
-
method[source]
-
MjWarpSim.set_random(
-
field: str,
index: Tuple[Any, ...],
low: Union[float, Sequence[float]],
high: Union[float, Sequence[float]],
log: bool = False,
add: bool = False,
rng: Optional[np.random.Generator] = None
)
-
-

Set (add: offset) model.<field>[:, *index] to one uniform draw per world from low to high.

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=".1"/></body></worldbody></mujoco>'
->>> sim = MjWarpSim(mujoco.MjModel.from_xml_string(xml), nworld=8)
->>> sim.set_random("geom_friction", (0, 0), 0.5, 1.0)  # sliding friction
->>> friction = sim.model.geom_friction.numpy()[:, 0, 0]
->>> bool(((friction >= 0.5) & (friction <= 1.0)).all()), len(set(friction.tolist()))
-(True, 8)
->>> sim.set_random("body_ipos", (1,), (-0.01, -0.01, 0.0), (0.01, 0.01, 0.0), add=True)  # center of mass
->>> float(abs(sim.model.body_ipos.numpy()[:, 1, 2]).max())
-0.0
Parameters
-
fieldstrrequired
-

After body_mass, body_inertia, body_ipos or body_iquat, it runs set_const().

-
-
indexTuple[Any, ...]required
-
-
-
lowUnion[float, Sequence[float]]required
-

Lower bound, broadcast to the trailing axes.

-
-
highUnion[float, Sequence[float]]required
-

Upper bound, broadcast to the trailing axes.

-
-
logbool= False
-

Draw log-uniformly.

-
-
addbool= False
-
-
-
rngOptional[np.random.Generator]= None
-
-
-
-
-
method[source]
-
MjWarpSim.step()
- -
-

Advance substeps physics steps into substep_sensordata; derived fields then lag qpos by a substep.

-
-
-
method[source]
-
MjWarpSim.kinematics()
- -
-

Recompute xpos, xmat, site_xpos, ... from qpos, e.g. after writing it, as mj_kinematics.

-
-
-
method[source]
-
MjWarpSim.com_pos()
- -
-

Recompute subtree_com (subtree centers of mass), cinert and cdof from the positions, as mj_comPos.

-
-
-
method[source]
-
MjWarpSim.forward()
- -
-

Recompute every derived quantity, accelerations and sensordata included, as mj_forward.

-
-
-
method[source]
-
MjWarpSim.reset(
-
mask: wp.array
)
-
-

Return the worlds where mask is set to their initial state, static geoms to their current rows.

Parameters
-
maskwp.arrayrequired
-

(nworld,), bool or int; read on the device, with no host syncs.

-
-
-
-
method[source]
-
MjWarpSim.set_scene(
-
mask: wp.array,
scene: wp.array
)
-
-

Give the worlds where mask is set scene scene[w]'s model rows; their static geoms move at reset().

Example

python
>>> xml = '<mujoco><worldbody><body><freejoint/><geom size=".1"/></body></worldbody></mujoco>'
->>> scenes = [mujoco.MjSpec.from_string(xml), mujoco.MjSpec.from_string(xml.replace(".1", ".2"))]
->>> sim = MjWarpSim(scenes, nworld=[2, 2])
->>> sim.set_scene(wp.array([True, False, False, False]), wp.array([1, 0, 0, 0], dtype=int))
->>> (sim.model.geom_size.numpy()[:, 0, 0] > 0.15).tolist()  # world 0: the big ball
-[True, False, True, True]
Parameters
-
maskwp.arrayrequired
-

(nworld,), read on the device, with no host syncs.

-
-
scenewp.arrayrequired
-

(nworld,), int.

-
-
-
-
- -
robokit.terms.SimContext
-
Bases: Context
-
-

Values a planner gives its terms for one world set (sim_context); arrays are refilled every step.

-
-
- -
robokit.terms.StateTask(
-
qpos_ref: np.ndarray,
qvel_ref: np.ndarray,
dof_weight: np.ndarray,
vel_weight: float = 0.0,
penetration_groups: Optional[Tuple[np.ndarray, np.ndarray]] = None,
penetration_scale: float = 0.0,
margin: float = 0.0,
contacts: Sequence[Tuple[np.ndarray, np.ndarray, np.ndarray, float]] = (),
squared: bool = False,
freeze_reference: bool = False,
pose_tolerance: float = 0.0
)
Bases: SimResidualTask
-
-

Per step, the weighted qpos error norm plus vel_weight times the qvel error norm, and optional contact terms; its residuals cover the errors, while the contact terms (penetration, missing contacts) are cost-only, so SimMPC sees them and ILQROptimizer does not.

Example

python
>>> import copy, mujoco
->>> from robokit.helpers.sim_mpc import sim_context
->>> from robokit.sim import MjWarpSim
->>> model = mujoco.MjModel.from_xml_string(
-...     '<mujoco><worldbody><body><freejoint/><geom size="0.1"/></body></worldbody></mujoco>'
-... )
->>> data = mujoco.MjData(model)
->>> data.qpos[0] = 0.05  # 5 cm off the reference in x
->>> context = sim_context(MjWarpSim(model, 1, data)) | {
-...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-... }
->>> qpos_ref, qvel_ref, out = np.tile(model.qpos0, (2, 1)), np.zeros((2, model.nv)), wp.zeros(2, dtype=float)
->>> for i, tolerance in enumerate([0.0, 0.01]):
-...     term = copy.copy(StateTask(qpos_ref, qvel_ref, np.ones(model.nv), pose_tolerance=tolerance))
-...     term.resolve(None, context)
-...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])
->>> assert np.allclose(out.numpy(), [0.05, 0.04])
Parameters
-
qpos_refnp.ndarrayrequired
-
-
-
qvel_refnp.ndarrayrequired
-
-
-
dof_weightnp.ndarrayrequired
-
-
-
vel_weightfloat= 0.0
-
-
-
penetration_groupsOptional[Tuple[np.ndarray, np.ndarray]]= None
-
-
-
penetration_scalefloat= 0.0
-
-
-
marginfloat= 0.0
-
-
-
contactsSequence[Tuple[np.ndarray, np.ndarray, np.ndarray, float]]= ()
-
-
-
squaredbool= False
-
-
-
freeze_referencebool= False
-
-
-
pose_tolerancefloat= 0.0
-
-
Members
-
-
attributeinherited from Task[source]
-
StateTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
StateTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
StateTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
StateTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
StateTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
StateTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
StateTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
StateTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
StateTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
StateTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
StateTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
StateTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
StateTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
StateTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
StateTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
StateTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from SimResidualTask[source]
-
StateTask.residual_dim: int
- -
- -
-
-
methodinherited from SimResidualTask[source]
-
StateTask.compute_weighted_residual(
-
var_values: Optional[VarValues],
out_residual: wp.array,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
StateTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
StateTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
StateTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
StateTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Build the device references, contact groups and buffers for the context's worlds.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
StateTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
- -
robokit.terms.SensorTask(
-
sensor_ref: np.ndarray,
weight: Union[Dict[str, Union[float, Sequence[float]]], np.ndarray],
norm: bool = False,
residual: Literal['linear', 'angle', 'quaternion', 'yaw', 'yaw_unwrapped', 'heading'] = 'linear',
hinge: Optional[float] = None,
freeze_reference: bool = False,
relative: Optional[str] = None
)
Bases: SimResidualTask
-
-

Per step, sum_s w_s * ||sensordata_s - sensor_ref[k]_s||^2 over the sensors in weight (norm: unsquared).

Example

python
>>> context = {  # what SimMPC gives one world at sim step 0
-...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device="cpu"),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-...     SimContext.SENSORDATA: wp.array([[0.5, 0.5, 0.0, 0.0]], dtype=float, device="cpu"),
-...     SimContext.SENSORS: [("x", 0, 1), ("p", 1, 3)],
-... }
->>> ref, weight = np.zeros((10, 4)), {"x": 2.0, "p": [1.0, 0.0, 0.0]}
->>> out = wp.zeros(2, dtype=float, device="cpu")
->>> for i, norm in enumerate([False, True]):
-...     term = SensorTask(ref, weight, norm=norm)
-...     term.resolve(None, context)
-...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])
->>> assert np.allclose(out.numpy(), [2 * 0.5**2 + 1 * 0.5**2, 2 * 0.5 + 1 * 0.5])
Parameters
-
sensor_refnp.ndarrayrequired
-
-
-
weightUnion[Dict[str, Union[float, Sequence[float]]], np.ndarray]required
-
-
-
normbool= False
-
-
-
residualLiteral['linear', 'angle', 'quaternion', 'yaw', 'yaw_unwrapped', 'heading']= 'linear'
-
-
-
hingeOptional[float]= None
-
-
-
freeze_referencebool= False
-
-
-
relativeOptional[str]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
SensorTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SensorTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
SensorTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
SensorTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
SensorTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
SensorTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
SensorTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
SensorTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
SensorTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SensorTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SensorTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SensorTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
SensorTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from SimResidualTask[source]
-
SensorTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each world's 0.5 |r|^2.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
SensorTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
SensorTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
SensorTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from SimResidualTask[source]
-
SensorTask.residual_dim: int
- -
- -
-
-
methodinherited from SimResidualTask[source]
-
SensorTask.compute_weighted_residual(
-
var_values: Optional[VarValues],
out_residual: wp.array,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SensorTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SensorTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SensorTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
SensorTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Look up the weighted sensors and build the device weights and reference.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
- -
robokit.terms.ControlTask(
-
weight: Union[float, Sequence[float]],
ctrl_ref: Optional[np.ndarray] = None,
norm: bool = False
)
Bases: SimResidualTask
-
-

Per step, sum(weight * (ctrl - ctrl_ref[k])**2), or with norm its unsquared norm; ctrl_ref defaults to 0.

Example

python
>>> context = {
-...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device="cpu"),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-...     SimContext.CTRL: wp.array([[1.0, 2.0]], dtype=float, device="cpu"),
-... }
->>> out = wp.zeros(2, dtype=float, device="cpu")
->>> for i, term in enumerate([ControlTask([0.5, 1.0]), ControlTask(2.0, np.ones((10, 2)), norm=True)]):
-...     term.resolve(None, context)
-...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])
->>> out.numpy().tolist()
-[4.5, 2.0]
Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
ctrl_refOptional[np.ndarray]= None
-
-
-
normbool= False
-
-
Members
-
-
attributeinherited from Task[source]
-
ControlTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ControlTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
ControlTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
ControlTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
ControlTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
ControlTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
ControlTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
ControlTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
ControlTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ControlTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ControlTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ControlTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
ControlTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from SimResidualTask[source]
-
ControlTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each world's 0.5 |r|^2.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
ControlTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
ControlTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
ControlTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from SimResidualTask[source]
-
ControlTask.residual_dim: int
- -
- -
-
-
methodinherited from SimResidualTask[source]
-
ControlTask.compute_weighted_residual(
-
var_values: Optional[VarValues],
out_residual: wp.array,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ControlTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ControlTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ControlTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
ControlTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Broadcast the weight to every control and build the device reference.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
- -
robokit.terms.AlignTask(
-
origin: str,
sensor: str,
target_ref: np.ndarray,
weight: float,
components: Sequence[int] = (0, 1),
freeze_reference: bool = False
)
Bases: SimResidualTask
-
-

Per step, weight * (1 + u.v / (|u||v|)) with u = sensor - origin and v = target_ref[k] - origin.

Example

python
>>> context = {
-...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device="cpu"),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-...     SimContext.SENSORDATA: wp.array([[0.0, 0.0, 0.0, 1.0, 0.0, 0.0]], dtype=float, device="cpu"),
-...     SimContext.SENSORS: [("o", 0, 3), ("s", 3, 3)],
-... }
->>> term, out = AlignTask("o", "s", np.tile([0.0, 1.0, 0.0], (10, 1)), weight=2.0), wp.zeros(1, device="cpu")
->>> term.resolve(None, context)
->>> term.compute_weighted_cost(None, out_cost=out)
->>> assert np.isclose(out.numpy()[0], 2.0)  # u = (1, 0) is perpendicular to v = (0, 1)
Parameters
-
originstrrequired
-
-
-
sensorstrrequired
-
-
-
target_refnp.ndarrayrequired
-
-
-
weightfloatrequired
-
-
-
componentsSequence[int]= (0, 1)
-
-
-
freeze_referencebool= False
-
-
Members
-
-
attributeinherited from Task[source]
-
AlignTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
AlignTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
AlignTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
AlignTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
AlignTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
AlignTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
AlignTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
AlignTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
AlignTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
AlignTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
AlignTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
AlignTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
AlignTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from SimResidualTask[source]
-
AlignTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each world's 0.5 |r|^2.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
AlignTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
AlignTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
AlignTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from SimResidualTask[source]
-
AlignTask.residual_dim: int
- -
- -
-
-
methodinherited from SimResidualTask[source]
-
AlignTask.compute_weighted_residual(
-
var_values: Optional[VarValues],
out_residual: wp.array,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
AlignTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
AlignTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
AlignTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
AlignTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Look up both sensors and build the device target.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
- -
robokit.terms.ContactTask(
-
geoms: Sequence[str],
target: np.ndarray,
radius: np.ndarray,
allowed: Optional[np.ndarray] = None,
weight: float = 1.0,
penalty: float = 0.0,
margin: float = 0.0,
box: Optional[Sequence[float]] = None,
height: Optional[Sequence[float]] = None
)
Bases: Task
-
-

Reward geoms' contacts inside their target discs; penalize touches outside every allowed disc.

box, half widths (x, y), replaces each target disc with that axis-aligned box around the target; height, (low, high), rewards only contacts at those heights.

Example

python
>>> context = {  # one contact of geom 1 at (0, 0), 0.25 apart, at sim step 1
-...     SimContext.CLOCK: wp.array([1, 0, 1], dtype=int, device="cpu"),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-...     SimContext.GEOMS: ["floor", "foot"],
-...     SimContext.CONTACTS: tuple(
-...         wp.array(x, dtype=t, device="cpu")
-...         for x, t in [([1], int), ([0], int), ([[0, 1]], wp.vec2i), ([0.25], float), ([[0, 0, 0]], wp.vec3)]
-...     ),
-... }
->>> far, allowed = np.ones((1, 1, 2)), np.array([[[[0.0, 0.0, 0.1]]]])  # a disc (x, y, r) around the foot
->>> terms = [
-...     ContactTask(["foot"], np.zeros((1, 1, 2)), np.full((1, 2, 1), 0.1), weight=2.0),  # radius over time
-...     ContactTask(["foot"], far, np.zeros((1, 1)), penalty=0.5, margin=0.3),
-...     ContactTask(["foot"], far, np.zeros((1, 1)), allowed, penalty=0.5, margin=0.3),
-...     ContactTask(["foot"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0)),  # (0, 0) is in the box
-...     ContactTask(["foot"], far, np.zeros((1, 1)), weight=2.0, box=(1.0, 1.0), height=(0.1, 1.0)),  # too low
-... ]
->>> out = wp.zeros(5, dtype=float, device="cpu")
->>> for i, term in enumerate(terms):
-...     term.resolve(None, context)
-...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])
->>> assert np.allclose(out.numpy(), [-2.0 * 0.75, 0.5, 0.0, -2.0 * 0.75, 0.0])
Parameters
-
geomsSequence[str]required
-
-
-
targetnp.ndarrayrequired
-
-
-
radiusnp.ndarrayrequired
-
-
-
allowedOptional[np.ndarray]= None
-
-
-
weightfloat= 1.0
-
-
-
penaltyfloat= 0.0
-
-
-
marginfloat= 0.0
-
-
-
boxOptional[Sequence[float]]= None
-
-
-
heightOptional[Sequence[float]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
ContactTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ContactTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
ContactTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
ContactTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
ContactTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
ContactTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
ContactTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
ContactTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
ContactTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ContactTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ContactTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ContactTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
ContactTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
method[source]
-
ContactTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Look up the geoms and build the device targets and discs.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
ContactTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
- -
robokit.terms.GraspTask(
-
gripper: Union[str, int],
obj: Union[str, int],
offset: np.ndarray,
weight: np.ndarray,
tolerance: Union[float, np.ndarray] = 0.0,
object_frame: bool = True
)
Bases: SimResidualTask
-
-

Per step, weight[k] times the gripper's distance to body obj plus offset[k], less tolerance, at least 0.

Example

python
>>> context = {  # the hand at (0.1, 0, 0.2), a box at the origin turned 90 degrees about z
-...     SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device="cpu"),
-...     SimContext.NUM_INSTANCES: 1,
-...     SimContext.WORLDS_PER_INSTANCE: 1,
-...     SimContext.BODIES: ["world", "hand", "box"],
-...     SimContext.BODY_POSITION: wp.array([[[0, 0, 0], [0.1, 0, 0.2], [0, 0, 0]]], dtype=wp.vec3, device="cpu"),
-...     SimContext.BODY_ROTATION: wp.array(
-...         [[np.eye(3), np.eye(3), [[0, -1, 0], [1, 0, 0], [0, 0, 1]]]], dtype=wp.mat33, device="cpu"
-...     ),
-... }
->>> offset, out = np.tile([0.0, -0.1, 0.2], (2, 1)), wp.zeros(2, dtype=float, device="cpu")
->>> terms = [GraspTask("hand", "box", offset, np.ones(2)), GraspTask(1, 2, offset, np.ones(2), 0.01, False)]
->>> for i, term in enumerate(terms):  # in the box's frame the hand is on target
-...     term.resolve(None, context)
-...     term.compute_weighted_cost(None, out_cost=out[i : i + 1])
->>> assert np.allclose(out.numpy(), [0.0, np.hypot(0.1, 0.1) - 0.01], atol=1e-6)
Parameters
-
gripperUnion[str, int]required
-
-
-
objUnion[str, int]required
-
-
-
offsetnp.ndarrayrequired
-
-
-
weightnp.ndarrayrequired
-
-
-
toleranceUnion[float, np.ndarray]= 0.0
-
-
-
object_framebool= True
-
-
Members
-
-
attributeinherited from Task[source]
-
GraspTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
GraspTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
GraspTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
GraspTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
GraspTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
GraspTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
GraspTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
GraspTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
GraspTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
GraspTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
GraspTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
GraspTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
GraspTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from SimResidualTask[source]
-
GraspTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each world's 0.5 |r|^2.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
GraspTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
GraspTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
GraspTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from SimResidualTask[source]
-
GraspTask.residual_dim: int
- -
- -
-
-
methodinherited from SimResidualTask[source]
-
GraspTask.compute_weighted_residual(
-
var_values: Optional[VarValues],
out_residual: wp.array,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
GraspTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
GraspTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
GraspTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
GraspTask.resolve(
-
var_values: Optional[VarValues],
context: Mapping[Context, Any]
)
-
-

Look up both bodies and build the device schedule.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
contextMapping[Context, Any]required
-
-
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/api-terms/index.html b/docs/robokit/api-terms/index.html deleted file mode 100644 index c09fdb0..0000000 --- a/docs/robokit/api-terms/index.html +++ /dev/null @@ -1,10435 +0,0 @@ - - - - - - Terms · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/API
- -
-

Terms

-
-
- -
robokit.terms.Task
-
Bases: abc.ABC
-
-

Base of every cost term: names its variable (var_key) and cost row (cost_name).

Members
-
-
attribute[source]
-
Task.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attribute[source]
-
Task.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attribute[source]
-
Task.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attribute[source]
-
Task.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attribute[source]
-
Task.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attribute[source]
-
Task.weight: Any = 1.0
- -
- -
-
-
property[source]
-
Task.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
property[source]
-
Task.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
method[source]
-
Task.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
Task.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
method[source]
-
Task.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
property[source]
-
Task.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
property[source]
-
Task.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
method[source]
-
Task.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
method[source]
-
Task.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
- -
robokit.terms.ResidualTask
-
Bases: Task
-
-

Term consumed as a weighted residual and optional Jacobian.

Members
-
-
attributeinherited from Task[source]
-
ResidualTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ResidualTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
ResidualTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
ResidualTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
ResidualTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
ResidualTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
ResidualTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
ResidualTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
ResidualTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
ResidualTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ResidualTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ResidualTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ResidualTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
ResidualTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
ResidualTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attribute[source]
-
ResidualTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attribute[source]
-
ResidualTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
method[source]
-
ResidualTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
ResidualTask.residual_dim: int
- -
-

Dimension of the residual vector.

-
-
-
method[source]
-
ResidualTask.compute_weighted_residual(
-
var_values: VarValues,
args: Any = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
ResidualTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
ResidualTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
ResidualTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
- -
robokit.terms.GradientTask
-
Bases: Task
-
-

Per-batch scalar cost and gradient, used by GDOptimizer/LBFGSOptimizer in analytic-gradient mode.

Members
-
-
attributeinherited from Task[source]
-
GradientTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
GradientTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
GradientTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
GradientTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
GradientTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
GradientTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
GradientTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
GradientTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
GradientTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
GradientTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
GradientTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
GradientTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
GradientTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
GradientTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
GradientTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
method[source]
-
GradientTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
args: Any = (),
out_cost: wp.array,
out_gradient: Optional[wp.array] = None,
kwargs: Any = {}
)
-
-

Accumulate this term's weighted cost and optional direct gradient.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
argsAny= ()
-
-
-
out_costwp.arrayrequired
-

Shared per-batch cost buffer.

-
-
out_gradientOptional[wp.array]= None
-

Optional shared gradient buffer. If omitted, only cost is accumulated.

-
-
kwargsAny= {}
-
-
-
-
-
- -
robokit.terms.SparseTask
-
Bases: ResidualTask
-
-

Residual task with an explicitly stored sparse Jacobian.

Members
-
-
attributeinherited from Task[source]
-
SparseTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SparseTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
SparseTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
SparseTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
SparseTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
SparseTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
SparseTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
SparseTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
SparseTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
SparseTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SparseTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SparseTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SparseTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
SparseTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
SparseTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
SparseTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
SparseTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
SparseTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from ResidualTask[source]
-
SparseTask.residual_dim: int
- -
-

Dimension of the residual vector.

-
-
-
methodinherited from ResidualTask[source]
-
SparseTask.compute_weighted_residual(
-
var_values: VarValues,
args: Any = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SparseTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SparseTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
attribute[source]
-
SparseTask.use_mask: bool = False
- -
- -
-
-
attribute[source]
-
SparseTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
method[source]
-
SparseTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: Any = (),
offset: int = 0,
kwargs: Any = {}
) -> SparsityPattern
-
-

Sparsity pattern of the Jacobian matrix.

Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
SparseTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: Any = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-

Compute the non-zero values of the weighted Jacobian matrix according to the sparsity pattern.

Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
SparseTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
method[source]
-
SparseTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
method[source]
-
SparseTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
- -
robokit.terms.EagerTask
-
Bases: ResidualTask
-
-

Task with per-iteration work outside a captured CUDA graph.

Members
-
-
attributeinherited from Task[source]
-
EagerTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
EagerTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
EagerTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
EagerTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
EagerTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
EagerTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
EagerTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
EagerTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
EagerTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap each Context placeholder, alone or in a tuple, for its value; subclasses then build for the variable.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> task = Step(dt=(Inputs.STEP, 2.0))
->>> task.resolve(None, {Inputs.STEP: 0.5})  # the base swaps placeholders only
->>> task.dt
-(0.5, 2.0)
Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
EagerTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
EagerTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
EagerTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
EagerTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
EagerTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
EagerTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
EagerTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
EagerTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
EagerTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
propertyinherited from ResidualTask[source]
-
EagerTask.residual_dim: int
- -
-

Dimension of the residual vector.

-
-
-
methodinherited from ResidualTask[source]
-
EagerTask.compute_weighted_residual(
-
var_values: VarValues,
args: Any = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
EagerTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
EagerTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
EagerTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
EagerTask.prepare(
-
var_values: VarValues,
proposed: bool,
iter_idx: int
)
-
-

Prepare eager state before a Warp reduction.

Parameters
-
var_valuesVarValuesrequired
-

Current or proposed optimization variables.

-
-
proposedboolrequired
-

Whether this is a line-search proposal.

-
-
iter_idxintrequired
-

Solver iteration.

-
-
-
-
method[source]
-
EagerTask.on_step(
-
accept_mask: wp.array,
iter_idx: int,
costs: wp.array
) -> bool
-
-

Update eager state after accepting or rejecting a step.

Parameters
-
accept_maskwp.arrayrequired
-

Per-batch accepted-step mask.

-
-
iter_idxintrequired
-

Solver iteration.

-
-
costswp.arrayrequired
-

Per-batch costs.

-
Returns
bool

Whether the solver should stop early.

-
-
-
- -
robokit.terms.RobotTask
-
Bases: Task
-
-

Serial preparation shared by terms that consume a robot state.

Members
-
-
attributeinherited from Task[source]
-
RobotTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
RobotTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
RobotTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
RobotTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
RobotTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
RobotTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
RobotTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
RobotTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
RobotTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
RobotTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
RobotTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attribute[source]
-
RobotTask.robot: Optional[Robot]
- -
- -
-
-
attribute[source]
-
RobotTask.var_key: Enum
- -
- -
-
-
attribute[source]
-
RobotTask.precompute_collision_geometry: str = ''
- -
- -
-
-
method[source]
-
RobotTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
RobotTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
RobotTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
- -
robokit.terms.TrajectoryTask(
-
dense_task: ResidualTask,
num_frames: Optional[int] = None,
frame_indices: Optional[Union[Sequence[int], Context]] = None,
name: str = ''
)
Bases: RobotTask, SparseTask, GradientTask
-
-

Apply independent per-pose tasks to trajectory frames, with one dense tangent block per selected frame.

Parameters
-
dense_taskResidualTaskrequired
-

Per-pose residual task.

-
-
num_framesOptional[int]= None
-

Number of trajectory frames, or omitted so the trajectory optimizer sets it.

-
-
frame_indicesOptional[Union[Sequence[int], Context]]= None
-

Frames to include. Defaults to all frames.

-
-
namestr= ''
-

Optional planner input name (start, goal, target, path_goal, or path_target).

-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
TrajectoryTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
methodinherited from RobotTask[source]
-
TrajectoryTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
TrajectoryTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
TrajectoryTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
methodinherited from RobotTask[source]
-
TrajectoryTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
TrajectoryTask.dense_task: ResidualTask
- -
- -
-
-
attribute[source]
-
TrajectoryTask.device: Optional[wp_device_type]
- -
- -
-
-
property[source]
-
TrajectoryTask.active: bool
- -
- -
-
-
method[source]
-
TrajectoryTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build for the trajectory in var_values; a built per-pose task keeps its identity and live targets.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
TrajectoryTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectoryTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

A terminal cost whose dense task writes the trajectory layout itself (fill_terminal) takes one launch.

Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetintrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
-
-
method[source]
-
TrajectoryTask.compute_weighted_residual(
-
var_values: VarValues,
args: Any = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: Any = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: Any = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: Any = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.FrameTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[Union[int, Sequence[int], Context]] = None,
T_world_target: Optional[Union[wp.array, np.ndarray, Sequence[wp.array], Context]] = None,
position_weight: Union[float, Sequence[float], np.ndarray, Mapping[str, float]] = 1.0,
orientation_weight: Union[float, Sequence[float], np.ndarray, Mapping[str, float]] = 1.0,
residual_mode: Literal['log', 'distance'] = 'log',
trajectory_frames: int = 1,
name: str = ''
)
Bases: RobotTask, ResidualTask
-
-

Match world-frame link targets; "distance" scores translation/angle thresholds, while "log" uses log residuals.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("ur10_description"))
->>> target_link_index = robot.spec.link_names.index("ee_link")
->>> state = robot.state(q=robot.spec.zero_q)
->>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index)
->>> frame_task = FrameTask(robot, target_link_index, target_link_pose, position_weight=1.0, orientation_weight=1.0)
->>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32, device="cpu")
->>> state = robot.state(q=random_q)
->>> robot.forward_kinematics(state)
->>> robot.compute_motion_subspace(state)
->>> weighted_residual = frame_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))
->>> weighted_jacobian = frame_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))
->>> assert np.allclose(weighted_residual.numpy()[0, :3], np.array([0.5839, -0.0795, -0.1784], dtype=np.float32), atol=1e-3)
->>> assert np.allclose(weighted_jacobian.numpy()[0, :, 0], np.array([-1.1628, 0.1626, -0.167, -0.0765, 0.3698, 0.9521], dtype=np.float32), atol=1e-3)
Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[Union[int, Sequence[int], Context]]= None
-
-
-
T_world_targetOptional[Union[wp.array, np.ndarray, Sequence[wp.array], Context]]= None
-
-
-
position_weightUnion[float, Sequence[float], np.ndarray, Mapping[str, float]]= 1.0
-
-
-
orientation_weightUnion[float, Sequence[float], np.ndarray, Mapping[str, float]]= 1.0
-
-
-
residual_modeLiteral['log', 'distance']= 'log'
-
-
-
trajectory_framesint= 1
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
FrameTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
FrameTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
FrameTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
FrameTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
FrameTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
FrameTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
FrameTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
FrameTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
FrameTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
FrameTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
FrameTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
FrameTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
FrameTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
FrameTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
FrameTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
FrameTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
FrameTask.residual_mode: Literal['log', 'distance']
- -
- -
-
-
attribute[source]
-
FrameTask.robot: Optional[Robot]
- -
- -
-
-
method[source]
-
FrameTask.set_target(
-
target: Union[wp.array, np.ndarray, Sequence[wp.array]]
)
-
-

Update target poses in-place. Batch size must match the original.

Parameters
-
targetUnion[wp.array, np.ndarray, Sequence[wp.array]]required
-
-
-
-
-
property[source]
-
FrameTask.active: bool
- -
- -
-
-
method[source]
-
FrameTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Complete a stub with the helper's links and target buffer (not copied); named weights pick those links.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
FrameTask.weights_for(
-
frame_names: Sequence[str]
) -> Tuple[np.ndarray, np.ndarray]
-
-

Resolve scalar, ordered, or named template weights for the selected frames.

python
>>> task = FrameTask(position_weight={"tool": 2.0}, orientation_weight=3.0)
->>> task.weights_for(["tool"])[0].tolist()
-[2.0]
Parameters
-
frame_namesSequence[str]required
-
-
Returns
Tuple[np.ndarray, np.ndarray]
-
-
-
method[source]
-
FrameTask.set_frames(
-
robot: Robot,
frame_index: Union[int, Sequence[int]],
T_world_target: Union[wp.array, np.ndarray, Sequence[wp.array]]
)
-
-

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

Parameters
-
robotRobotrequired
-
-
-
frame_indexUnion[int, Sequence[int]]required
-
-
-
T_world_targetUnion[wp.array, np.ndarray, Sequence[wp.array]]required
-
-
-
-
-
property[source]
-
FrameTask.residual_dim: int
- -
- -
-
-
method[source]
-
FrameTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
FrameTask.fill_terminal(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write terminal pose residuals and optional sparse Jacobian values in one launch.

Layouts:

  • var_values: flattened poses, trajectory_frames per trajectory.
  • Jacobian: TrajectoryTask's single-frame, row-major values, one per actuated joint.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetintrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
-
-
method[source]
-
FrameTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.PositionTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[Union[int, Sequence[int], Context]] = None,
T_world_target: Optional[Union[wp.array, np.ndarray, Context]] = None,
weight: Union[float, Sequence[float]] = 20.0,
fixed_target: bool = False,
name: str = ''
)
Bases: RobotTask, ResidualTask
-
-

Match the world positions of one or more link frames.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("ur10_description"))
->>> target_link_index = robot.link_names.index("ee_link")
->>> state = robot.state(q=robot.zero_q)
->>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index).reshape((1, 1))
->>> position_task = PositionTask(robot, target_link_index, target_link_pose, weight=1.0)
->>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32)
->>> state = robot.state(q=random_q)
->>> robot.forward_kinematics(state)
->>> robot.compute_motion_subspace(state)
->>> weighted_residual = position_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))
->>> weighted_jacobian = position_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))
->>> weighted_residual.numpy().shape[1] == 3
-True
->>> weighted_jacobian.numpy().shape[1] == 3
-True
Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[Union[int, Sequence[int], Context]]= None
-
-
-
T_world_targetOptional[Union[wp.array, np.ndarray, Context]]= None
-
-
-
weightUnion[float, Sequence[float]]= 20.0
-
-
-
fixed_targetbool= False
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
PositionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
PositionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
PositionTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
PositionTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
PositionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
PositionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
PositionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
PositionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
PositionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
PositionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
PositionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
PositionTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
PositionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
PositionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
PositionTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
PositionTask.robot: Optional[Robot]
- -
- -
-
-
method[source]
-
PositionTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
PositionTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update residual weights in-place. Accepts scalar or per-frame sequence.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
PositionTask.set_frames(
-
robot: Robot,
frame_index: Union[int, Sequence[int]],
T_world_target: Union[wp.array, np.ndarray]
)
-
-

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

Parameters
-
robotRobotrequired
-
-
-
frame_indexUnion[int, Sequence[int]]required
-
-
-
T_world_targetUnion[wp.array, np.ndarray]required
-
-
-
-
-
method[source]
-
PositionTask.set_target(
-
T_world_target: Union[wp.array, np.ndarray]
)
-
-

Update target poses in-place. Batch size must match the original.

Parameters
-
T_world_targetUnion[wp.array, np.ndarray]required
-
-
-
-
-
method[source]
-
PositionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Complete a stub with the helper's links and target buffer, which it reads directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
property[source]
-
PositionTask.residual_dim: int
- -
- -
-
-
method[source]
-
PositionTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
PositionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.RotationTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[Union[int, Sequence[int], Context]] = None,
T_world_target: Optional[Union[wp.array, np.ndarray, Context]] = None,
weight: Union[float, Sequence[float], np.ndarray, Mapping[str, float]] = 10.0,
fixed_target: bool = False,
name: str = ''
)
Bases: RobotTask, ResidualTask
-
-

Match the world rotations of one or more link frames.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("ur10_description"))
->>> target_link_index = robot.link_names.index("ee_link")
->>> state = robot.state(q=robot.zero_q)
->>> target_link_pose = robot.forward_kinematics(state).get_T_world_link(target_link_index).reshape((1, 1))
->>> rotation_task = RotationTask(robot, target_link_index, target_link_pose, weight=1.0)
->>> random_q = wp.from_numpy(np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32)
->>> state = robot.state(q=random_q)
->>> robot.forward_kinematics(state)
->>> robot.compute_motion_subspace(state)
->>> weighted_residual = rotation_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))
->>> weighted_jacobian = rotation_task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))
->>> weighted_residual.numpy().shape[1] == 3
-True
->>> weighted_jacobian.numpy().shape[1] == 3
-True
Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[Union[int, Sequence[int], Context]]= None
-
-
-
T_world_targetOptional[Union[wp.array, np.ndarray, Context]]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray, Mapping[str, float]]= 10.0
-
-
-
fixed_targetbool= False
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
RotationTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
RotationTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
RotationTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
RotationTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
RotationTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
RotationTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
RotationTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
RotationTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
RotationTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
RotationTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
RotationTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
RotationTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
RotationTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
RotationTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
RotationTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
RotationTask.robot: Optional[Robot]
- -
- -
-
-
method[source]
-
RotationTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
RotationTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update residual weights in-place. Accepts scalar or per-frame sequence.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
RotationTask.set_frames(
-
robot: Robot,
frame_index: Union[int, Sequence[int]],
T_world_target: Union[wp.array, np.ndarray]
)
-
-

Give a config-time stub its robot, link indices, and targets, keeping the configured weights.

Parameters
-
robotRobotrequired
-
-
-
frame_indexUnion[int, Sequence[int]]required
-
-
-
T_world_targetUnion[wp.array, np.ndarray]required
-
-
-
-
-
method[source]
-
RotationTask.set_target(
-
T_world_target: Union[wp.array, np.ndarray]
)
-
-

Update target poses in-place. Batch size must match the original.

Parameters
-
T_world_targetUnion[wp.array, np.ndarray]required
-
-
-
-
-
method[source]
-
RotationTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Complete a stub with the helper's links and target buffer (not copied); named weights zero unlisted links.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
property[source]
-
RotationTask.residual_dim: int
- -
- -
-
-
method[source]
-
RotationTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
RotationTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.FrameVectorTask(
-
robot: Optional[Robot] = None,
origin_link_indices: Optional[Union[Sequence[int], Context]] = None,
task_link_indices: Optional[Union[Sequence[int], Context]] = None,
targets: Optional[Union[np.ndarray, wp.array, Context]] = None,
weight: Union[float, Sequence[float], np.ndarray, Mapping[Any, float]] = 1.0,
target_indices: Optional[Sequence[int]] = None,
scale: Union[float, Sequence[float], np.ndarray] = 1.0,
huber_delta: Optional[float] = None,
huber_on_norm: bool = False,
direction_only: bool = False,
soft_gate_start_distance: Optional[float] = None,
soft_gate_full_distance: Optional[float] = None,
soft_gate_pair_mask: Optional[List[bool]] = None,
direction_metric: Literal['length_scaled', 'cosine'] = 'length_scaled',
name: str = '',
weight_mode: Literal['residual', 'cost', 'normalized'] = 'residual',
target_names: Optional[Union[Sequence[str], Context]] = None,
target_links: Optional[Union[Mapping[str, str], Context]] = None,
soft_gate_targets: Optional[Union[Sequence[int], Context]] = None
)
Bases: RobotTask, ResidualTask
-
-

Drive point-pair deltas to target vectors; weight_mode "cost" takes sqrt, "normalized" divides by sqrt(rows).

Direction metrics:

  • Default: robot-length-scaled vector error.
  • `direction_only=True with direction_metric="cosine": 1 - dot(normalized_robot, normalized_target)`.

Named weights pick their rows when the task is built:

  • A target name tracks that target's row of targets, ordered by target_names, from the world origin to its link in target_links.
  • (origin link, task link, origin target, task target) reads the pair row origin * len(target_names) + task of a pair buffer.
Parameters
-
robotOptional[Robot]= None
-
-
-
origin_link_indicesOptional[Union[Sequence[int], Context]]= None
-
-
-
task_link_indicesOptional[Union[Sequence[int], Context]]= None
-
-
-
targetsOptional[Union[np.ndarray, wp.array, Context]]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray, Mapping[Any, float]]= 1.0
-
-
-
target_indicesOptional[Sequence[int]]= None
-
-
-
scaleUnion[float, Sequence[float], np.ndarray]= 1.0
-
-
-
huber_deltaOptional[float]= None
-
-
-
huber_on_normbool= False
-
-
-
direction_onlybool= False
-
-
-
soft_gate_start_distanceOptional[float]= None
-
-
-
soft_gate_full_distanceOptional[float]= None
-
-
-
soft_gate_pair_maskOptional[List[bool]]= None
-
-
-
direction_metricLiteral['length_scaled', 'cosine']= 'length_scaled'
-
-
-
namestr= ''
-
-
-
weight_modeLiteral['residual', 'cost', 'normalized']= 'residual'
-
-
-
target_namesOptional[Union[Sequence[str], Context]]= None
-
-
-
target_linksOptional[Union[Mapping[str, str], Context]]= None
-
-
-
soft_gate_targetsOptional[Union[Sequence[int], Context]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
FrameVectorTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
FrameVectorTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
FrameVectorTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
FrameVectorTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
FrameVectorTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
FrameVectorTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
FrameVectorTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
FrameVectorTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
FrameVectorTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
FrameVectorTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
FrameVectorTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
FrameVectorTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
FrameVectorTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
FrameVectorTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
FrameVectorTask.robot: Optional[Robot]
- -
- -
-
-
attribute[source]
-
FrameVectorTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
FrameVectorTask.targets_wp: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
FrameVectorTask.weights_wp: Optional[wp.array]
- -
- -
-
-
method[source]
-
FrameVectorTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
FrameVectorTask.active: bool
- -
- -
-
-
method[source]
-
FrameVectorTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Attach the robot and helper links/targets, reading Warp buffers in place; named weights pick the rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
property[source]
-
FrameVectorTask.residual_dim: int
- -
- -
-
-
method[source]
-
FrameVectorTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
FrameVectorTask.set_targets(
-
targets: Union[np.ndarray, wp.array],
weight: Optional[np.ndarray] = None
)
-
-

Update targets (and optionally weights) in place; shapes must match the built buffers.

Parameters
-
targetsUnion[np.ndarray, wp.array]required
-
-
-
weightOptional[np.ndarray]= None
-
-
-
-
-
method[source]
-
FrameVectorTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
FrameVectorTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
col_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
col_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.ComPositionTask(
-
robot: Optional[Robot] = None,
target_com_position: Optional[np.ndarray] = None,
weight: Union[float, Sequence[float]] = 1.0
)
Bases: RobotTask, ResidualTask
-
-

Penalize world-frame CoM target error using mass-weighted link CoM positions and their analytic Jacobians.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("g1_description"))
->>> task = ComPositionTask(robot=robot, target_com_position=np.zeros(3), weight=1.0)
->>> task.residual_dim
-3
Parameters
-
robotOptional[Robot]= None
-
-
-
target_com_positionOptional[np.ndarray]= None
-
-
-
weightUnion[float, Sequence[float]]= 1.0
-
-
Members
-
-
attributeinherited from Task[source]
-
ComPositionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ComPositionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
ComPositionTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
ComPositionTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
ComPositionTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
ComPositionTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
ComPositionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
ComPositionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
ComPositionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ComPositionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ComPositionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ComPositionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
ComPositionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
ComPositionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
ComPositionTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
ComPositionTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
ComPositionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ComPositionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
ComPositionTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
ComPositionTask.robot: Optional[Robot]
- -
- -
-
-
method[source]
-
ComPositionTask.set_target(
-
target: np.ndarray
)
-
-

Update CoM targets while retaining allocated buffers and captured graphs.

Example

python
>>> task = ComPositionTask(target_com_position=np.zeros(3))
->>> task.set_target(np.array([0.1, 0.0, 0.8]))
->>> task.target_com_position.shape
-(3,)
Parameters
-
targetnp.ndarrayrequired
-
-
-
-
-
method[source]
-
ComPositionTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update the three CoM residual weights in place.

Example

python
>>> task = ComPositionTask(target_com_position=np.zeros(3))
->>> task.set_weight([1.0, 1.0, 0.0])
->>> task.weight
-[1.0, 1.0, 0.0]
Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
ComPositionTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
ComPositionTask.residual_dim: int
- -
- -
-
-
method[source]
-
ComPositionTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
ComPositionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.PositionLimit(
-
robot: Optional[Robot] = None,
weight: Optional[Union[float, Sequence[float]]] = None,
residual_mode: Literal['abs', 'sqrt_abs', 'exp_barrier'] = 'abs',
residual_eps: float = 1e-06,
mask: Optional[Union[np.ndarray, Mapping[str, float]]] = None,
base_axis: Optional[int] = None,
base_bounds: Tuple[float, float] = (0.3, 0.76),
base_weight: float = 50.0,
include_joints: bool = True,
joint_limits: Optional[Union[np.ndarray, Context]] = None,
warmup_frames: int = 0,
activation: float = 0.0,
name: str = '',
frame: Optional[Union[wp.array, Context]] = None
)
Bases: RobotTask, ResidualTask, GradientTask
-
-

Penalize joint and optional floating-base translation limit violations.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("ur10_description"))
->>> joint_var = robot.spec.actuated_joint_limits[:, 0] - 0.1
->>> state = robot.state(q=wp.from_numpy(joint_var[None].astype(np.float32), dtype=wp.float32))
->>> position_limit = PositionLimit(robot=robot)
->>> weighted_residual = position_limit.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))
->>> np.allclose(weighted_residual.numpy()[0], np.array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1], dtype=np.float32))
-True
->>> weighted_jacobian = position_limit.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state}))
->>> np.allclose(np.diag(weighted_jacobian.numpy()[0]), np.array([-1.0, -1.0, -1.0, -1.0, -1.0, -1.0], dtype=np.float32))
-True
Parameters
-
robotOptional[Robot]= None
-
-
-
weightOptional[Union[float, Sequence[float]]]= None
-
-
-
residual_modeLiteral['abs', 'sqrt_abs', 'exp_barrier']= 'abs'
-
-
-
residual_epsfloat= 1e-06
-
-
-
maskOptional[Union[np.ndarray, Mapping[str, float]]]= None
-
-
-
base_axisOptional[int]= None
-
-
-
base_boundsTuple[float, float]= (0.3, 0.76)
-
-
-
base_weightfloat= 50.0
-
-
-
include_jointsbool= True
-
-
-
joint_limitsOptional[Union[np.ndarray, Context]]= None
-
-
-
warmup_framesint= 0
-
-
-
activationfloat= 0.0
-
-
-
namestr= ''
-
-
-
frameOptional[Union[wp.array, Context]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
PositionLimit.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
PositionLimit.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
PositionLimit.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
PositionLimit.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
PositionLimit.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
PositionLimit.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
PositionLimit.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
PositionLimit.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
PositionLimit.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
PositionLimit.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
PositionLimit.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
PositionLimit.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
PositionLimit.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
PositionLimit.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
PositionLimit.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
PositionLimit.robot: Optional[Robot]
- -
- -
-
-
attribute[source]
-
PositionLimit.dof_mask: Optional[wp.array]
- -
- -
-
-
method[source]
-
PositionLimit.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot; a base bound needs a floating base, e.g. IK with enable_T_world_base=True.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
PositionLimit.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
PositionLimit.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
PositionLimit.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update residual weights in-place. Accepts a scalar or per-joint sequence.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
property[source]
-
PositionLimit.residual_dim: int
- -
- -
-
-
method[source]
-
PositionLimit.compute_weighted_residual(
-
var_values: VarValues,
out_residual: wp.array = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualwp.array= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
PositionLimit.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: wp.array = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianwp.array= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
PositionLimit.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None
)
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
-
-
- -
robokit.terms.AxisLimitTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[int] = None,
local_axis: Tuple[float, float, float] = (0.0, 0.0, 1.0),
world_axis: Tuple[float, float, float] = (0.0, 0.0, 1.0),
min_angle: Optional[float] = None,
max_angle: Optional[float] = None,
weight: float = 1.0
)
Bases: RobotTask, ResidualTask
-
-

Limit the angle between a frame-local axis and a world-frame axis.

Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[int]= None
-
-
-
local_axisTuple[float, float, float]= (0.0, 0.0, 1.0)
-
-
-
world_axisTuple[float, float, float]= (0.0, 0.0, 1.0)
-
-
-
min_angleOptional[float]= None
-
-
-
max_angleOptional[float]= None
-
-
-
weightfloat= 1.0
-
-
Members
-
-
attributeinherited from Task[source]
-
AxisLimitTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
AxisLimitTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
AxisLimitTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
AxisLimitTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
propertyinherited from Task[source]
-
AxisLimitTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
AxisLimitTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
AxisLimitTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
AxisLimitTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
AxisLimitTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
AxisLimitTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
AxisLimitTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
AxisLimitTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
AxisLimitTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
AxisLimitTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
AxisLimitTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
AxisLimitTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
AxisLimitTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
AxisLimitTask.precompute_collision_geometry: str = ''
- -
- -
-
-
method[source]
-
AxisLimitTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
AxisLimitTask.set_weight(
-
weight: float
)
-
-
Parameters
-
weightfloatrequired
-
-
-
-
-
property[source]
-
AxisLimitTask.residual_dim: int
- -
- -
-
-
method[source]
-
AxisLimitTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
AxisLimitTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.VelocityLimitTask(
-
robot: Optional[Robot] = None,
dt: Union[float, Context] = 1.0,
prev_state_var: Optional[Union[RobotState, Context]] = None,
velocity_limits: Optional[Union[np.ndarray, Context]] = None,
weight: Optional[Union[float, Sequence[float]]] = None,
name: str = ''
)
Bases: ResidualTask
-
-

Penalize joint velocity limit violations relative to a previous state.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state_prev = robot.state(q=robot.spec.zero_q)
->>> state_curr = robot.state(q=robot.spec.zero_q + 0.5)
->>> vel_task = VelocityLimitTask(robot=robot, dt=0.1, weight=1.0)
->>> # Residual should be positive if velocity exceeds limits
Parameters
-
robotOptional[Robot]= None
-
-
-
dtUnion[float, Context]= 1.0
-
-
-
prev_state_varOptional[Union[RobotState, Context]]= None
-
-
-
velocity_limitsOptional[Union[np.ndarray, Context]]= None
-
-
-
weightOptional[Union[float, Sequence[float]]]= None
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
VelocityLimitTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
VelocityLimitTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
VelocityLimitTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
propertyinherited from Task[source]
-
VelocityLimitTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
VelocityLimitTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
VelocityLimitTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
VelocityLimitTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
VelocityLimitTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
VelocityLimitTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
VelocityLimitTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
VelocityLimitTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
VelocityLimitTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
VelocityLimitTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attribute[source]
-
VelocityLimitTask.robot: Optional[Robot]
- -
- -
-
-
method[source]
-
VelocityLimitTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot; a previous state from the helper is its buffer, read directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
VelocityLimitTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
VelocityLimitTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update residual weights in-place. Accepts a scalar or per-joint sequence.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
VelocityLimitTask.set_prev_state(
-
prev_state: RobotState
)
-
-
Parameters
-
prev_stateRobotStaterequired
-
-
-
-
-
method[source]
-
VelocityLimitTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
VelocityLimitTask.residual_dim: int
- -
- -
-
-
method[source]
-
VelocityLimitTask.compute_weighted_residual(
-
var_values: VarValues,
prev_state_var: Optional[Union[RobotState, Context]] = None,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
prev_state_varOptional[Union[RobotState, Context]]= None
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
VelocityLimitTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
prev_state_var: Optional[Union[RobotState, Context]] = None,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
prev_state_varOptional[Union[RobotState, Context]]= None
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.SceneCollisionTask(
-
robot: Optional[Robot] = None,
scene: Optional[Union[WarpScene, Context]] = None,
geometry: Optional[BaseGeom] = None,
scene_indices: Optional[Union[wp.array, Context]] = None,
use_link_bounding_sphere_filter: bool = False,
weight: Union[float, Sequence[float]] = 1.0,
margin: Optional[float] = 0.02,
sphere_indices: Optional[Sequence[int]] = None,
residual_mode: Literal['abs', 'sqrt_abs'] = 'abs',
residual_eps: float = 1e-06,
penalty: Literal['smooth', 'plain', 'surface_distance'] = 'smooth',
skip_trajectory_endpoints: bool = True,
movable_only: bool = False,
name: str = ''
)
Bases: RobotTask, ResidualTask, GradientTask
-
-

Penalize robot collision spheres that approach scene geometry.

Parameters
-
robotOptional[Robot]= None
-
-
-
sceneOptional[Union[WarpScene, Context]]= None
-
-
-
geometryOptional[BaseGeom]= None
-
-
-
scene_indicesOptional[Union[wp.array, Context]]= None
-
-
-
use_link_bounding_sphere_filterbool= False
-
-
-
weightUnion[float, Sequence[float]]= 1.0
-
-
-
marginOptional[float]= 0.02
-
-
-
sphere_indicesOptional[Sequence[int]]= None
-
-
-
residual_modeLiteral['abs', 'sqrt_abs']= 'abs'
-
-
-
residual_epsfloat= 1e-06
-
-
-
penaltyLiteral['smooth', 'plain', 'surface_distance']= 'smooth'
-
-
-
skip_trajectory_endpointsbool= True
-
-
-
movable_onlybool= False
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
SceneCollisionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SceneCollisionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
SceneCollisionTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
SceneCollisionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
SceneCollisionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
SceneCollisionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SceneCollisionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SceneCollisionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SceneCollisionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
SceneCollisionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
SceneCollisionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
SceneCollisionTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
SceneCollisionTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
SceneCollisionTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
SceneCollisionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SceneCollisionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
property[source]
-
SceneCollisionTask.active: bool
- -
-

Whether the term adds cost: nonzero weight and a scene with geometry, or a helper's scene to come.

-
-
-
method[source]
-
SceneCollisionTask.set_robot(
-
robot: Robot
)
-
-

Build a config-time stub, with fresh query buffers.

Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
SceneCollisionTask.set_scene_indices(
-
scene_indices: wp.array
)
-
-

Copy a per-query device scene mapping into stable query buffers.

Parameters
-
scene_indiceswp.arrayrequired
-
-
-
-
-
property[source]
-
SceneCollisionTask.residual_dim: int
- -
- -
-
-
method[source]
-
SceneCollisionTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SceneCollisionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SceneCollisionTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None,
cost_form: Literal['squared_sum', 'sum_squared'] = 'squared_sum'
)
-
-

Compute collision cost and optional direct gradient.

Lifecycle

  1. Prepare trajectory-shaped collision buffers and kinematics.
  2. Query the scene SDF for every selected sphere.
  3. Accumulate the selected cost form and optional gradient.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
cost_formLiteral['squared_sum', 'sum_squared']= 'squared_sum'
-
-
-
-
-
- -
robokit.terms.SceneDistanceTask(
-
robot: Optional[Robot] = None,
warp_meshes: Optional[WarpScene] = None,
num_contact_points: int = 0,
weight: Optional[Union[float, Sequence[float]]] = None,
residual_mode: Literal['abs', 'sqrt_abs'] = 'abs',
residual_eps: float = 1e-06,
points_var_key: Optional[Enum] = None,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None
)
Bases: RobotTask, ResidualTask, GradientTask
-
-

Minimize hand contact-point distance to a scene surface.

Parameters
-
robotOptional[Robot]= None
-
-
-
warp_meshesOptional[WarpScene]= None
-
-
-
num_contact_pointsint= 0
-
-
-
weightOptional[Union[float, Sequence[float]]]= None
-
-
-
residual_modeLiteral['abs', 'sqrt_abs']= 'abs'
-
-
-
residual_epsfloat= 1e-06
-
-
-
points_var_keyOptional[Enum]= None
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
SceneDistanceTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SceneDistanceTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
SceneDistanceTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
SceneDistanceTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
propertyinherited from Task[source]
-
SceneDistanceTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
SceneDistanceTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
SceneDistanceTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
SceneDistanceTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SceneDistanceTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SceneDistanceTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SceneDistanceTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
SceneDistanceTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
SceneDistanceTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
SceneDistanceTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
SceneDistanceTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
SceneDistanceTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SceneDistanceTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
SceneDistanceTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
SceneDistanceTask.residual_weight: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
SceneDistanceTask.last_query: Optional[tuple]
- -
- -
-
-
method[source]
-
SceneDistanceTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
SceneDistanceTask.residual_dim: int
- -
- -
-
-
method[source]
-
SceneDistanceTask.compute_weighted_residual(
-
var_values: VarValues,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SceneDistanceTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None,
precomputed_contact_points_world: Optional[wp.array] = None,
precomputed_signed_dists: Optional[wp.array] = None,
precomputed_closest_points: Optional[wp.array] = None,
precomputed_normals: Optional[wp.array] = None
)
-
-

Compute cost and optional gradient.

Lifecycle

  1. Transform local contact points or reuse supplied world points.
  2. Query or reuse closest points, signed distances, and normals.
  3. Compute residuals and accumulate cost and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
precomputed_contact_points_worldOptional[wp.array]= None
-
-
-
precomputed_signed_distsOptional[wp.array]= None
-
-
-
precomputed_closest_pointsOptional[wp.array]= None
-
-
-
precomputed_normalsOptional[wp.array]= None
-
-
-
-
-
method[source]
-
SceneDistanceTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.SelfCollisionTask(
-
robot: Optional[Robot] = None,
weight: float = 1.0,
margin: float = 0.02,
representation: Literal['sphere', 'capsule', 'link_sphere'] = 'sphere',
link_sphere_radius: Union[float, Literal['auto']] = 'auto',
link_sphere_center: Literal['bounding', 'origin'] = 'bounding',
residual_mode: Literal['abs', 'sqrt_abs'] = 'abs',
residual_eps: float = 1e-06,
filter_adjacent_links: bool = True,
max_active_pairs: int = 50,
name: str = ''
)
Bases: RobotTask, ResidualTask, GradientTask
-
-

Penalize the most active robot self-collision pairs.

Parameters
-
robotOptional[Robot]= None
-
-
-
weightfloat= 1.0
-
-
-
marginfloat= 0.02
-
-
-
representationLiteral['sphere', 'capsule', 'link_sphere']= 'sphere'
-
-
-
link_sphere_radiusUnion[float, Literal['auto']]= 'auto'
-
-
-
link_sphere_centerLiteral['bounding', 'origin']= 'bounding'
-
-
-
residual_modeLiteral['abs', 'sqrt_abs']= 'abs'
-
-
-
residual_epsfloat= 1e-06
-
-
-
filter_adjacent_linksbool= True
-
-
-
max_active_pairsint= 50
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
SelfCollisionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from RobotTask[source]
-
SelfCollisionTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
SelfCollisionTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
SelfCollisionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
SelfCollisionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
SelfCollisionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SelfCollisionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SelfCollisionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SelfCollisionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
SelfCollisionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
SelfCollisionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
SelfCollisionTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
SelfCollisionTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
SelfCollisionTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
SelfCollisionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SelfCollisionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
method[source]
-
SelfCollisionTask.set_robot(
-
robot: Robot
)
-
-

Build a config-time stub's collision pairs with the configured settings.

Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
SelfCollisionTask.residual_dim: int
- -
- -
-
-
method[source]
-
SelfCollisionTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-

Compute self-collision residuals.

Lifecycle

  1. Prepare world collision geometry.
  2. Select the most active broad-phase link pairs.
  3. Evaluate the closest sphere or capsule pair for each slot.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SelfCollisionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-

Compute the analytic self-collision Jacobian.

Lifecycle

  1. Prepare kinematics and motion subspaces.
  2. Reuse the residual's active-pair selection when available.
  3. Differentiate the selected sphere or capsule distances.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SelfCollisionTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None
)
-
-

Compute fused link-sphere cost and optional gradient.

Lifecycle

  1. Prepare link spheres and motion subspaces.
  2. Allocate a scratch gradient for cost-only evaluations.
  3. Accumulate every active link-pair contribution.
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
-
-
- -
robokit.terms.SmoothnessTask(
-
robot: Optional[Robot] = None,
prev_var: Optional[Union[RobotState, Context]] = None,
weight: Union[float, Sequence[float]] = 1.0,
base_weight: Optional[Union[float, Sequence[float]]] = None,
name: str = '',
warmup_frames: int = 0,
frame: Optional[Union[wp.array, Context]] = None
)
Bases: ResidualTask, GradientTask
-
-

Penalize change from a previous joint and optional base state.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state_prev = robot.state(q=robot.spec.zero_q)
->>> state_curr = robot.state(q=robot.spec.zero_q + 0.1)
->>> smooth_task = SmoothnessTask(robot=robot, weight=0.5)
->>> values = VarValues({VarKey.ROBOT: state_curr})
->>> cost = wp.zeros(1, device=state_curr.q.device)
->>> gradient = wp.zeros((1, state_curr.tangent_dim), device=state_curr.q.device)
->>> smooth_task.compute_weighted_cost_and_gradient(values, state_prev, out_cost=cost, out_gradient=gradient)
->>> np.allclose(gradient.numpy(), 0.025)
-True
Parameters
-
robotOptional[Robot]= None
-
-
-
prev_varOptional[Union[RobotState, Context]]= None
-
-
-
weightUnion[float, Sequence[float]]= 1.0
-
-
-
base_weightOptional[Union[float, Sequence[float]]]= None
-
-
-
namestr= ''
-
-
-
warmup_framesint= 0
-
-
-
frameOptional[Union[wp.array, Context]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
SmoothnessTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
SmoothnessTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
SmoothnessTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
propertyinherited from Task[source]
-
SmoothnessTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
SmoothnessTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
SmoothnessTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
SmoothnessTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
SmoothnessTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
SmoothnessTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
SmoothnessTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
SmoothnessTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
SmoothnessTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attribute[source]
-
SmoothnessTask.robot: Optional[Robot]
- -
- -
-
-
property[source]
-
SmoothnessTask.active: bool
- -
- -
-
-
method[source]
-
SmoothnessTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot; a previous state from the helper is its buffer, read directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
SmoothnessTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
SmoothnessTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update joint-block residual weights in-place. Base-block weights are preserved.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
SmoothnessTask.set_prev_state(
-
prev_state: RobotState
)
-
-
Parameters
-
prev_stateRobotStaterequired
-
-
-
-
-
method[source]
-
SmoothnessTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
SmoothnessTask.residual_dim: int
- -
- -
-
-
method[source]
-
SmoothnessTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
prev_var: Optional[RobotState] = None,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None
)
-
-

Accumulate half the squared residual norm and its direct gradient.

Parameters
-
var_valuesVarValuesrequired
-
-
-
prev_varOptional[RobotState]= None
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
-
-
method[source]
-
SmoothnessTask.compute_weighted_residual(
-
var_values: VarValues,
prev_var: Optional[RobotState] = None,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
prev_varOptional[RobotState]= None
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
SmoothnessTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
prev_var: Optional[RobotState] = None,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
prev_varOptional[RobotState]= None
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.ConfigurationTask(
-
robot: Optional[Robot] = None,
rest_q: Optional[Union[np.ndarray, wp.array, Literal['midrange'], Context]] = None,
T_world_base_rest: Optional[Union[wp.array, np.ndarray, Context]] = None,
weight: Union[float, Sequence[float], np.ndarray] = 1.0,
base_weight: Optional[Union[float, Sequence[float], np.ndarray]] = None,
include_joints: bool = True,
var_key: Enum = VarKey.ROBOT,
name: str = '',
mask: Optional[Union[np.ndarray, Context]] = None
)
Bases: ResidualTask
-
-

Bias joints/base toward rest; `rest_q="midrange"` uses joint-limit midpoints as the rest state.

Supported variables:

  • RobotState: joints and optional floating base.
  • VectorVar: joint-only block, sized by rest_q with no robot.
  • SE3Var: pose-only block, including model-offset regularization.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> rest_q = robot.spec.midrange_q
->>> configuration_task = ConfigurationTask(robot=robot, rest_q=rest_q, weight=0.1)
->>> q_init = wp.from_numpy(rest_q + 0.1, dtype=wp.float32)
->>> state = robot.state(q=q_init)
->>> residual = configuration_task.compute_weighted_residual(VarValues({VarKey.ROBOT: state}))
->>> # Residual should be ~0.1 * weight
Parameters
-
robotOptional[Robot]= None
-
-
-
rest_qOptional[Union[np.ndarray, wp.array, Literal['midrange'], Context]]= None
-
-
-
T_world_base_restOptional[Union[wp.array, np.ndarray, Context]]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray]= 1.0
-
-
-
base_weightOptional[Union[float, Sequence[float], np.ndarray]]= None
-
-
-
include_jointsbool= True
-
-
-
var_keyEnum= VarKey.ROBOT
-
-
-
namestr= ''
-
-
-
maskOptional[Union[np.ndarray, Context]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
ConfigurationTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ConfigurationTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
propertyinherited from Task[source]
-
ConfigurationTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
ConfigurationTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ConfigurationTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ConfigurationTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ConfigurationTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
ConfigurationTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
ConfigurationTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
ConfigurationTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ConfigurationTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attribute[source]
-
ConfigurationTask.rest_q_arg: Optional[Union[np.ndarray, wp.array, Literal['midrange'], Context]]
- -
- -
-
-
attribute[source]
-
ConfigurationTask.T_world_base_rest: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
ConfigurationTask.robot: Optional[Robot]
- -
- -
-
-
property[source]
-
ConfigurationTask.active: bool
- -
- -
-
-
method[source]
-
ConfigurationTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot; Warp rest values from the helper are its buffers, read directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
ConfigurationTask.set_robot(
-
robot: Optional[Robot] = None
)
-
-
Parameters
-
robotOptional[Robot]= None
-
-
-
-
-
method[source]
-
ConfigurationTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
ConfigurationTask.set_weight(
-
weight: Union[float, Sequence[float]]
)
-
-

Update joint-block residual weights in-place. Base-block weights are preserved.

Parameters
-
weightUnion[float, Sequence[float]]required
-
-
-
-
-
method[source]
-
ConfigurationTask.set_target(
-
rest_q: Optional[Union[wp.array, np.ndarray]] = None,
T_world_base_rest: Optional[Union[wp.array, np.ndarray]] = None
)
-
-

Update the rest references; a config-time stub keeps NumPy references until its buffers are built.

Parameters
-
rest_qOptional[Union[wp.array, np.ndarray]]= None
-
-
-
T_world_base_restOptional[Union[wp.array, np.ndarray]]= None
-
-
-
-
-
property[source]
-
ConfigurationTask.residual_dim: int
- -
- -
-
-
method[source]
-
ConfigurationTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
ConfigurationTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.ManipulabilityTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[Union[int, Context]] = None,
weight: float = 0.01,
epsilon: float = 1e-06
)
Bases: RobotTask, ResidualTask
-
-

Maximize Yoshikawa sqrt(det(J @ J.T)) at frame_index, using the end-effector translational Jacobian.

Analytic derivative columns:

  • Fixed-base joints: computed normally.
  • Floating base: left zero.

Example

python
>>> import numpy as np
->>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> from robokit.opt.var_values import VarKey, VarValues
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("ur10_description"))
->>> frame_index = robot.spec.link_names.index("ee_link")
->>> random_q = wp.from_numpy(
-...     np.array([[-0.5, 0.3, -0.2, 0.4, -0.1, 0.25]], dtype=np.float32), dtype=wp.float32
-... )
->>> state = robot.state(q=random_q)
->>> task = ManipulabilityTask(robot, frame_index, weight=0.01)
->>> task.compute_weighted_residual(VarValues({VarKey.ROBOT: state})).numpy().shape[1] == 1
-True
->>> task.compute_weighted_jacobian(VarValues({VarKey.ROBOT: state})).numpy().shape[1] == 1
-True
Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[Union[int, Context]]= None
-
-
-
weightfloat= 0.01
-
-
-
epsilonfloat= 1e-06
-
-
Members
-
-
attributeinherited from Task[source]
-
ManipulabilityTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ManipulabilityTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
ManipulabilityTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
ManipulabilityTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
propertyinherited from Task[source]
-
ManipulabilityTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
ManipulabilityTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from RobotTask[source]
-
ManipulabilityTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
ManipulabilityTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ManipulabilityTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ManipulabilityTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ManipulabilityTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
ManipulabilityTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
ManipulabilityTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
ManipulabilityTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
ManipulabilityTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
ManipulabilityTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ManipulabilityTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
ManipulabilityTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
ManipulabilityTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
ManipulabilityTask.robot: Optional[Robot]
- -
- -
-
-
attribute[source]
-
ManipulabilityTask.weight_wp: Optional[wp.array]
- -
- -
-
-
method[source]
-
ManipulabilityTask.set_weight(
-
weight: float
)
-
-

Update the manipulability weight in-place (live-tunable, CUDA-graph safe).

Parameters
-
weightfloatrequired
-
-
-
-
-
property[source]
-
ManipulabilityTask.residual_dim: int
- -
- -
-
-
method[source]
-
ManipulabilityTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
ManipulabilityTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.ForceClosureTask(
-
robot: Optional[Robot] = None,
num_contact_points: int = 0,
warp_meshes: Optional[WarpScene] = None,
weight: Optional[Union[float, Sequence[float]]] = None,
contact_force_weights: Optional[Sequence[float]] = None,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
points_var_key: Optional[Enum] = None,
distance_task: Optional[SceneDistanceTask] = None,
_device: Optional[wp_device_type] = None,
_cached_batch_size: int = 0,
_residual_weight_np: Optional[np.ndarray] = None,
residual_weight: Optional[wp.array] = None,
contact_force_weights_wp: Optional[wp.array] = None,
_signed_dists: Optional[wp.array] = None,
_sdf_query_normals: Optional[wp.array] = None,
_sdf_normals: Optional[wp.array] = None,
_sdf_closest_points: Optional[wp.array] = None,
_normal_jacobians: Optional[wp.array] = None,
_contact_points_world: Optional[wp.array] = None,
_direct_residual_buf: Optional[wp.array] = None
)
Bases: RobotTask, ResidualTask, GradientTask
-
-

Force closure task: contacts from var.contact_point_centers_world, normals from the SDF of warp_meshes.

Parameters
-
robotOptional[Robot]= None
-
-
-
num_contact_pointsint= 0
-
-
-
warp_meshesOptional[WarpScene]= None
-
-
-
weightOptional[Union[float, Sequence[float]]]= None
-
-
-
contact_force_weightsOptional[Sequence[float]]= None
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
points_var_keyOptional[Enum]= None
-
-
-
distance_taskOptional[SceneDistanceTask]= None
-
-
-
_deviceOptional[wp_device_type]= None
-
-
-
_cached_batch_sizeint= 0
-
-
-
_residual_weight_npOptional[np.ndarray]= None
-
-
-
residual_weightOptional[wp.array]= None
-
-
-
contact_force_weights_wpOptional[wp.array]= None
-
-
-
_signed_distsOptional[wp.array]= None
-
-
-
_sdf_query_normalsOptional[wp.array]= None
-
-
-
_sdf_normalsOptional[wp.array]= None
-
-
-
_sdf_closest_pointsOptional[wp.array]= None
-
-
-
_normal_jacobiansOptional[wp.array]= None
-
-
-
_contact_points_worldOptional[wp.array]= None
-
-
-
_direct_residual_bufOptional[wp.array]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
ForceClosureTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
ForceClosureTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
ForceClosureTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
ForceClosureTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
propertyinherited from Task[source]
-
ForceClosureTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
methodinherited from RobotTask[source]
-
ForceClosureTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Swap placeholders, then take the robot of the state this task reads.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
methodinherited from Task[source]
-
ForceClosureTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
ForceClosureTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
ForceClosureTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
ForceClosureTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
ForceClosureTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
ForceClosureTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
ForceClosureTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
ForceClosureTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
ForceClosureTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
ForceClosureTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
ForceClosureTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
ForceClosureTask.robot: Optional[Robot] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.num_contact_points: int = 0
- -
- -
-
-
attribute[source]
-
ForceClosureTask.warp_meshes: Optional[WarpScene] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.weight: Optional[Union[float, Sequence[float]]] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.contact_force_weights: Optional[Sequence[float]] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.local_contact_points: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.points_var_key: Optional[Enum] = None
- -
-

Read the contact points from this variable instead of the stored array.

-
-
-
attribute[source]
-
ForceClosureTask.distance_task: Optional[SceneDistanceTask] = None
- -
-

A SceneDistanceTask on the same contacts, listed before this term: its scene query serves both.

-
-
-
attribute[source]
-
ForceClosureTask.residual_weight: Optional[wp.array] = None
- -
- -
-
-
attribute[source]
-
ForceClosureTask.contact_force_weights_wp: Optional[wp.array] = None
- -
- -
-
-
property[source]
-
ForceClosureTask.parallel_safe: bool
- -
- -
-
-
method[source]
-
ForceClosureTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
property[source]
-
ForceClosureTask.residual_dim: int
- -
- -
-
-
method[source]
-
ForceClosureTask.compute_weighted_residual(
-
var_values: VarValues,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
ForceClosureTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
out_cost: wp.array,
out_gradient: Optional[wp.array] = None,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None
)
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
-
-
method[source]
-
ForceClosureTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
local_contact_points: Optional[wp.array] = None,
contact_points_link_indices: Optional[wp.array] = None,
scene_offsets: Optional[wp.array] = None,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_points_link_indicesOptional[wp.array]= None
-
-
-
scene_offsetsOptional[wp.array]= None
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.InteractionMeshTask(
-
robot: Optional[Robot] = None,
robot_link_indices: Optional[Union[np.ndarray, Context]] = None,
weight: float = 1.0,
name: str = ''
)
Bases: RobotTask, ResidualTask
-
-

Preserve interaction-mesh Laplacian coordinates from human to robot.

Example

python
>>> from robot_descriptions.loaders.yourdfpy import load_robot_description
->>> import numpy as np
->>> from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame
->>> from robokit.robo.robot import Robot
->>> robot = Robot.load(load_robot_description("panda_description"))
->>> state = robot.state(q=robot.zero_q)
->>> robot.forward_kinematics(state)
->>> links = [robot.link_names.index(n) for n in robot.link_names[1:5]]
->>> P = state.T_world_link.numpy()[0][links, :3]
->>> pts = np.vstack([P, P.mean(0) + np.array([[0.2, 0, 0], [0, 0.2, 0], [0, 0, 0.2]], np.float32)])
->>> task = InteractionMeshTask(robot, np.array(links, dtype=np.int32))
->>> T_world_object = np.array([0, 0, 0, 1, 0, 0, 0], np.float32)
->>> task.set_frame(*build_interaction_mesh_frame(P, pts[len(P):], T_world_object))
->>> task.residual_dim
-21
Parameters
-
robotOptional[Robot]= None
-

Robot model. May be assigned later by the solver.

-
-
robot_link_indicesOptional[Union[np.ndarray, Context]]= None
-

Robot link for each dynamic vertex.

-
-
weightfloat= 1.0
-

Residual multiplier.

-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
InteractionMeshTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
InteractionMeshTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
InteractionMeshTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
InteractionMeshTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
InteractionMeshTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
InteractionMeshTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
InteractionMeshTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
InteractionMeshTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
InteractionMeshTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
InteractionMeshTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
InteractionMeshTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
InteractionMeshTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
InteractionMeshTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
InteractionMeshTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attributeinherited from RobotTask[source]
-
InteractionMeshTask.precompute_collision_geometry: str = ''
- -
- -
-
-
attribute[source]
-
InteractionMeshTask.robot: Optional[Robot]
- -
- -
-
-
attribute[source]
-
InteractionMeshTask.device: Optional[wp_device_type]
- -
- -
-
-
method[source]
-
InteractionMeshTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
method[source]
-
InteractionMeshTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot and the helper's links, the first vertices of every frame.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
property[source]
-
InteractionMeshTask.residual_dim: int
- -
- -
-
-
method[source]
-
InteractionMeshTask.set_frame(
-
neighbor_offsets: np.ndarray,
neighbor_indices: np.ndarray,
neighbor_weights: np.ndarray,
reference_vertex_positions: np.ndarray,
target_laplacian: np.ndarray
)
-
-

Set adjacency, reference vertices, and target Laplacian for one frame.

Parameters
-
neighbor_offsetsnp.ndarrayrequired
-
-
-
neighbor_indicesnp.ndarrayrequired
-
-
-
neighbor_weightsnp.ndarrayrequired
-
-
-
reference_vertex_positionsnp.ndarrayrequired
-
-
-
target_laplaciannp.ndarrayrequired
-
-
-
-
-
method[source]
-
InteractionMeshTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
InteractionMeshTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
method[source]
-
InteractionMeshTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.CompositeTask(
-
tasks: Sequence[ResidualTask],
thresholds: Optional[Sequence[Optional[Union[float, Sequence[float]]]]] = None,
num_candidates: Union[int, Context] = 1
)
Bases: ResidualTask
-
-

Concatenate weighted residuals, with optional threshold-based selection scoring.

Modes:

  • Without thresholds: ordinary residual concatenation for optimization.
  • With thresholds: bounded children are constraints; children with None thresholds are scores.

Selection sequence:

  1. Require each constraint's absolute residuals to satisfy scalar, per-row or repeating bounds.
  2. Return score norm for valid rows and infinity otherwise, preserving ordinary squared costs on valid rows.
  3. Count valid rows per num_candidates group in valid_count; use stable selection to preserve ties.

Example

python
>>> from robokit.terms.dense.configuration_task import ConfigurationTask
->>> task = CompositeTask([ConfigurationTask()], thresholds=[None])
->>> task.residual_dim
-1
Parameters
-
tasksSequence[ResidualTask]required
-
-
-
thresholdsOptional[Sequence[Optional[Union[float, Sequence[float]]]]]= None
-
-
-
num_candidatesUnion[int, Context]= 1
-
-
Members
-
-
attributeinherited from Task[source]
-
CompositeTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
CompositeTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
attributeinherited from Task[source]
-
CompositeTask.name: str = ''
- -
-

Label a config gave this term, so config.task(name) finds it again.

-
-
-
attributeinherited from Task[source]
-
CompositeTask.robot: Any = None
- -
-

The robot a built task reads; None on a template.

-
-
-
attributeinherited from Task[source]
-
CompositeTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
CompositeTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
CompositeTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
CompositeTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
CompositeTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
CompositeTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
CompositeTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
CompositeTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
CompositeTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
attributeinherited from ResidualTask[source]
-
CompositeTask.device: Any = None
- -
-

Device of the task's Warp buffers; None before init_buffers.

-
-
-
methodinherited from ResidualTask[source]
-
CompositeTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
CompositeTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
CompositeTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
CompositeTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate this term into shared normal-equation buffers.

Lifecycle

  1. Prepare term state and reusable buffers.
  2. Evaluate residuals and, for a build step, the Jacobian.
  3. Reduce into cost, JᵀJ, and Jᵀr.
Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
costswp.arrayrequired
-

Shared per-batch cost buffer.

-
-
JtJOptional[wp.array]= None
-

Optional shared normal matrix. Omit for a cost-only step.

-
-
JtrOptional[wp.array]= None
-

Optional shared normal-vector buffer. Omit for a cost-only step.

-
-
-
-
attribute[source]
-
CompositeTask.valid_count: Optional[wp.array]
- -
- -
-
-
method[source]
-
CompositeTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build a copy of each unbuilt child, dropping one the context empties, and take the candidate count.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
property[source]
-
CompositeTask.residual_dim: int
- -
- -
-
-
method[source]
-
CompositeTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare every child task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
method[source]
-
CompositeTask.compute_weighted_residual(
-
var_values: VarValues,
out_residual: Optional[wp.array] = None,
row_offset: int = 0
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectoryPositionTask(
-
robot: Optional[Robot] = None,
frame_index: Optional[Union[int, Sequence[int], Context]] = None,
target_positions: Optional[Union[np.ndarray, wp.array, Context]] = None,
weight: Union[float, Sequence[float], np.ndarray, Mapping[str, float]] = 1.0,
target_point_indices: Optional[Union[Sequence[int], Context]] = None,
name: str = ''
)
Bases: RobotTask, SparseTask
-
-

Align robot-link positions to optionally indexed world-frame points.

Parameters
-
robotOptional[Robot]= None
-
-
-
frame_indexOptional[Union[int, Sequence[int], Context]]= None
-
-
-
target_positionsOptional[Union[np.ndarray, wp.array, Context]]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray, Mapping[str, float]]= 1.0
-
-
-
target_point_indicesOptional[Union[Sequence[int], Context]]= None
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryPositionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryPositionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryPositionTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryPositionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryPositionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryPositionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryPositionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectoryPositionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
TrajectoryPositionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryPositionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
TrajectoryPositionTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
TrajectoryPositionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryPositionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryPositionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryPositionTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryPositionTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryPositionTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryPositionTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryPositionTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
TrajectoryPositionTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
TrajectoryPositionTask.weights: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.target_positions: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.target_point_indices: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.frame_indices: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.ancestor_dof_indices: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.dof_offsets: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.nnz_starts: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryPositionTask.num_frames: int
- -
- -
-
-
property[source]
-
TrajectoryPositionTask.active: bool
- -
- -
-
-
method[source]
-
TrajectoryPositionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Fill a template with helper links and targets, reading a Warp target directly; unlisted links weigh zero.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryPositionTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
TrajectoryPositionTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectoryPositionTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryPositionTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryPositionTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectoryContactTask(
-
robot: Optional[Robot] = None,
contact_points: Optional[Union[np.ndarray, wp.array, Context]] = None,
contact_link_indices: Optional[Union[np.ndarray, Sequence[int], Context]] = None,
contact_mask: Optional[Union[np.ndarray, wp.array, Context]] = None,
contact_margin: float = 0.01,
weight: float = 1.0,
local_contact_points: Optional[Union[np.ndarray, wp.array, Context]] = None,
name: str = ''
)
Bases: RobotTask, SparseTask
-
-

Keep selected link points within a deadband of trajectory contacts: points, or segments along contact_axes.

Parameters
-
robotOptional[Robot]= None
-

Robot with FK support.

-
-
contact_pointsOptional[Union[np.ndarray, wp.array, Context]]= None
-

Shared [T, C, 3] or batched [B, T, C, 3] world targets.

-
-
contact_link_indicesOptional[Union[np.ndarray, Sequence[int], Context]]= None
-

Padded [T, C] robot link indices.

-
-
contact_maskOptional[Union[np.ndarray, wp.array, Context]]= None
-

Shared [T, C] or batched [B, T, C] validity mask.

-
-
contact_marginfloat= 0.01
-

Deadband margin; no penalty when distance is within this threshold.

-
-
weightfloat= 1.0
-

Residual weight.

-
-
local_contact_pointsOptional[Union[np.ndarray, wp.array, Context]]= None
-

Optional link-local points. Defaults to each link origin.

-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryContactTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryContactTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryContactTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryContactTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryContactTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryContactTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryContactTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectoryContactTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
TrajectoryContactTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryContactTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
TrajectoryContactTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
TrajectoryContactTask.init_buffers(
-
device: wp_device_type
)
-
-

Allocate Warp buffers on device; a task without any keeps none.

Parameters
-
devicewp_device_typerequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryContactTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryContactTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryContactTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryContactTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryContactTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryContactTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryContactTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryContactTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
TrajectoryContactTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
TrajectoryContactTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectoryContactTask.contact_points_wp: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryContactTask.local_contact_points_wp: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryContactTask.contact_axes_wp: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryContactTask.contact_mask_wp: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryContactTask.max_ancestor_dofs: int
- -
- -
-
-
property[source]
-
TrajectoryContactTask.active: bool
- -
- -
-
-
method[source]
-
TrajectoryContactTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the helper's contact links; its Warp contact buffers are read directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryContactTask.set_contacts(
-
contact_points: wp.array,
contact_mask: wp.array,
local_contact_points: Optional[wp.array] = None,
contact_axes: Optional[wp.array] = None
)
-
-

Copy batched runtime contact data into graph-stable device buffers; omitted points and axes are zero. A nonzero axis makes its contact the segment from the point along it: the link point may sit anywhere on it, e.g. a straight move at its own pace.

Parameters
-
contact_pointswp.arrayrequired
-
-
-
contact_maskwp.arrayrequired
-
-
-
local_contact_pointsOptional[wp.array]= None
-
-
-
contact_axesOptional[wp.array]= None
-
-
-
-
-
property[source]
-
TrajectoryContactTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectoryContactTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryContactTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryContactTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectoryCollisionTask(
-
robot: Optional[Robot] = None,
scene: Optional[Union[WarpScene, Context]] = None,
num_frames: Optional[int] = None,
weight: Union[float, Sequence[float]] = 20.0,
margin: Union[float, Sequence[float], np.ndarray] = 0.1,
max_dist: float = 1000000.0,
sphere_indices: Optional[Union[Sequence[int], np.ndarray, Context]] = None,
scene_indices: Optional[Union[wp.array, Context]] = None,
active_actuated_indices: Optional[Union[Sequence[int], np.ndarray]] = None,
sweep_steps: int = 0,
penalty: Literal['smooth', 'plain', 'surface_distance'] = 'plain',
geometry: Optional[BaseGeom] = None,
frame_sphere_mask: Optional[Union[np.ndarray, wp.array, Context]] = None,
speed_dt: Optional[Union[wp.array, Context]] = None,
free_goal_frame: bool = False,
name: str = '',
goal_radius: float = 0.0,
goal_distance: Optional[Union[wp.array, Context]] = None
)
Bases: RobotTask, SparseTask, GradientTask
-
-

Evaluate trajectory-sphere costs against geometry, else every scene geometry; one row block per geometry.

Swept-segment evaluation:

  1. Linearly interpolate sphere centers at sweep_steps samples between waypoints.
  2. Differentiate the largest residual through both endpoints.
  3. Include the final segment even if free_goal_frame disables the standalone goal waypoint.
Parameters
-
robotOptional[Robot]= None
-
-
-
sceneOptional[Union[WarpScene, Context]]= None
-
-
-
num_framesOptional[int]= None
-
-
-
weightUnion[float, Sequence[float]]= 20.0
-
-
-
marginUnion[float, Sequence[float], np.ndarray]= 0.1
-
-
-
max_distfloat= 1000000.0
-
-
-
sphere_indicesOptional[Union[Sequence[int], np.ndarray, Context]]= None
-
-
-
scene_indicesOptional[Union[wp.array, Context]]= None
-
-
-
active_actuated_indicesOptional[Union[Sequence[int], np.ndarray]]= None
-
-
-
sweep_stepsint= 0
-
-
-
penaltyLiteral['smooth', 'plain', 'surface_distance']= 'plain'
-
-
-
geometryOptional[BaseGeom]= None
-
-
-
frame_sphere_maskOptional[Union[np.ndarray, wp.array, Context]]= None
-
-
-
speed_dtOptional[Union[wp.array, Context]]= None
-
-
-
free_goal_framebool= False
-
-
-
namestr= ''
-
-
-
goal_radiusfloat= 0.0
-
-
-
goal_distanceOptional[Union[wp.array, Context]]= None
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryCollisionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryCollisionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryCollisionTask.var_key: Enum
- -
- -
-
-
attributeinherited from RobotTask[source]
-
TrajectoryCollisionTask.robot: Optional[Robot]
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryCollisionTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryCollisionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryCollisionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryCollisionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryCollisionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectoryCollisionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
TrajectoryCollisionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryCollisionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryCollisionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryCollisionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryCollisionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryCollisionTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryCollisionTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryCollisionTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryCollisionTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
TrajectoryCollisionTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
TrajectoryCollisionTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectoryCollisionTask.frame_sphere_mask: Optional[wp.array]
- -
- -
-
-
property[source]
-
TrajectoryCollisionTask.active: bool
- -
-

Whether the term adds cost: nonzero weight, a scene, and at least one selected sphere.

-
-
-
method[source]
-
TrajectoryCollisionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build for the robot and horizon in var_values, sharing a Warp frame_sphere_mask, unless inactive.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.init_buffers(
-
device: wp_device_type
)
-
-

Build stable scene/sparsity parameters; query caches grow on first use.

Lifecycle

  1. Upload selected sphere and actuated-column indices.
  2. Build the actuated-column joint CSR mapping.
  3. Allocate scene/margin arrays and invalidate lazy query caches.
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.accumulate_max_penetration(
-
out: wp.array
)
-
-

Max-accumulate penetration from the most recent Jacobian query cache, over every geometry.

Runs over the batch the cache holds: out may be longer (a score task sized for every draw).

Parameters
-
outwp.arrayrequired
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.set_frame_sphere_mask(
-
frame_sphere_mask: wp.array
)
-
-

Set the active (batch, frame, selected sphere) collision rows.

Parameters
-
frame_sphere_maskwp.arrayrequired
-
-
-
-
-
property[source]
-
TrajectoryCollisionTask.residual_dim: int
- -
-

One block of rows per geometry; an empty scene keeps one block of zeros.

-
-
-
method[source]
-
TrajectoryCollisionTask.set_scene_indices(
-
scene_indices: wp.array
)
-
-

Set scenes shaped (batch,) or per-frame scenes shaped (batch, frames).

Parameters
-
scene_indiceswp.arrayrequired
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.compute_weighted_cost_and_gradient(
-
var_values: VarValues,
args: object = (),
out_cost: wp.array,
out_gradient: Optional[wp.array] = None,
kwargs: object = {}
)
-
-

Compute sparse cost and optional gradient with one scene query.

Lifecycle

  1. Use the base cost-only path when no gradient is requested.
  2. Compute Jacobian values and cache their scene query.
  3. Rebuild residuals from the cache and reduce cost and gradient.
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_costwp.arrayrequired
-
-
-
out_gradientOptional[wp.array]= None
-
-
-
kwargsobject= {}
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Fill residuals and sparse values from one shared scene query.

Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetintrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
-
-
method[source]
-
TrajectoryCollisionTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-

Compute trajectory collision residuals.

Lifecycle

  1. Prepare forward kinematics and stable runtime buffers.
  2. Run each geometry's primitive, mesh, volume, or hybrid query kernel.
  3. Evaluate every frame and selected sphere.
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryCollisionTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryCollisionTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
query_penetration: bool = True,
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-

Compute sparse trajectory collision Jacobian values.

Lifecycle

  1. Prepare kinematics, motion subspaces, and runtime-sized caches.
  2. Query each geometry and cache its sphere centers and SDF normals.
  3. Assemble active joint and optional floating-base columns.
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
query_penetrationbool= True
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectorySelfCollisionTask(
-
robot: Optional[Robot] = None,
num_frames: Optional[int] = None,
weight: float = 10.0,
margin: float = 0.02,
penalty: Literal['squared', 'max_linear'] = 'squared',
name: str = ''
)
Bases: RobotTask, SparseTask, GradientTask
-
-

Penalize self-collisions between robot collision spheres at all frames.

Parameters
-
robotOptional[Robot]= None
-
-
-
num_framesOptional[int]= None
-
-
-
weightfloat= 10.0
-
-
-
marginfloat= 0.02
-
-
-
penaltyLiteral['squared', 'max_linear']= 'squared'
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectorySelfCollisionTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectorySelfCollisionTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
TrajectorySelfCollisionTask.var_key: Enum
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectorySelfCollisionTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
TrajectorySelfCollisionTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectorySelfCollisionTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectorySelfCollisionTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectorySelfCollisionTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectorySelfCollisionTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
TrajectorySelfCollisionTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectorySelfCollisionTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
TrajectorySelfCollisionTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
TrajectorySelfCollisionTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectorySelfCollisionTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectorySelfCollisionTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectorySelfCollisionTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectorySelfCollisionTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectorySelfCollisionTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
methodinherited from SparseTask[source]
-
TrajectorySelfCollisionTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
methodinherited from RobotTask[source]
-
TrajectorySelfCollisionTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
TrajectorySelfCollisionTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectorySelfCollisionTask.sphere_mask: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySelfCollisionTask.pair_mask: Optional[wp.array]
- -
- -
-
-
method[source]
-
TrajectorySelfCollisionTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot and horizon of the trajectory var_values holds.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectorySelfCollisionTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
TrajectorySelfCollisionTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectorySelfCollisionTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectorySelfCollisionTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectorySelfCollisionTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectorySmoothnessTask(
-
robot: Optional[Robot] = None,
num_frames: Optional[int] = None,
weight: Union[float, Sequence[float], np.ndarray] = 1.0,
order: int = 1,
dt: Union[float, Context] = 1.0,
reference_q: Optional[Union[np.ndarray, Context]] = None,
base_weight: Optional[Union[float, Sequence[float], np.ndarray]] = None,
smooth_boundary: bool = True,
virtual_hold_frames: Union[int, Context] = 0,
history: Optional[Union[Tuple[wp.array, wp.array], Context]] = None,
name: str = ''
)
Bases: SparseTask, GradientTask
-
-

Penalize joint differences and optional floating-base motion.

Configuration options:

  • robot/num_frames omitted: resolve takes them from the trajectory it reads.
  • smooth_boundary=False: disable the first and last finite-difference rows.
  • history: an executed (q_history, history_valid) prefix, e.g. a helper's shared buffers.
Parameters
-
robotOptional[Robot]= None
-
-
-
num_framesOptional[int]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray]= 1.0
-
-
-
orderint= 1
-
-
-
dtUnion[float, Context]= 1.0
-
-
-
reference_qOptional[Union[np.ndarray, Context]]= None
-
-
-
base_weightOptional[Union[float, Sequence[float], np.ndarray]]= None
-
-
-
smooth_boundarybool= True
-
-
-
virtual_hold_framesUnion[int, Context]= 0
-
-
-
historyOptional[Union[Tuple[wp.array, wp.array], Context]]= None
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectorySmoothnessTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectorySmoothnessTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
TrajectorySmoothnessTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectorySmoothnessTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectorySmoothnessTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectorySmoothnessTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectorySmoothnessTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectorySmoothnessTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
TrajectorySmoothnessTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectorySmoothnessTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
TrajectorySmoothnessTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectorySmoothnessTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectorySmoothnessTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectorySmoothnessTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectorySmoothnessTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectorySmoothnessTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
methodinherited from SparseTask[source]
-
TrajectorySmoothnessTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attribute[source]
-
TrajectorySmoothnessTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.residual_weight: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.base_residual_weight: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.boundary_weight: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.coefficients: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.q_history: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.history_valid: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectorySmoothnessTask.reference_q: Optional[wp.array]
- -
- -
-
-
method[source]
-
TrajectorySmoothnessTask.compute_paths(
-
q: np.ndarray,
costs: np.ndarray,
times: np.ndarray,
weight: float = 0.08,
count: int = 1
) -> np.ndarray
-
-

Return [K,T,J] paths, preserving alternative initial pose hypotheses; each initial hypothesis retains a distinct branch, and the output contains at most count paths; periodic joints use angular distances and return continuous equivalent angles within supplied limits; if no continuous lift fits the limits, the original bounded path is retained.

python
>>> q = np.array([[[0.], [3.]], [[3.], [0.1]], [[0.2], [3.]]])
->>> TrajectorySmoothnessTask().compute_paths(q, np.array([[0., .1], [.1, 0.], [0., .1]]), np.arange(3.)).ravel().tolist()
-[0.0, 0.1, 0.2]
Parameters
-
qnp.ndarrayrequired
-
-
-
costsnp.ndarrayrequired
-
-
-
timesnp.ndarrayrequired
-
-
-
weightfloat= 0.08
-
-
-
countint= 1
-
-
Returns
np.ndarray
-
-
-
method[source]
-
TrajectorySmoothnessTask.compute_offset_candidates(
-
q: np.ndarray,
samples: int = 16
) -> np.ndarray
-
-

Sample constant joint shifts that preserve every frame's joint limits; full-turn joints need at most one revolution, and extra cubic samples retain small shifts.

Parameters
-
qnp.ndarrayrequired
-
-
-
samplesint= 16
-
-
Returns
np.ndarray
-
-
-
method[source]
-
TrajectorySmoothnessTask.init_buffers(
-
device: wp_device_type
)
-
-

Build finite-difference weights and history buffers.

Lifecycle

  1. Build joint and optional base weights.
  2. Build the requested difference stencil.
  3. Allocate history and reference trajectories.
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
TrajectorySmoothnessTask.active: bool
- -
- -
-
-
method[source]
-
TrajectorySmoothnessTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the robot and horizon of the trajectory var_values holds, and the helper's values.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectorySmoothnessTask.set_history(
-
q_history: Optional[wp.array],
num_candidates: int,
history_valid: bool
)
-
-

Set the fixed executed prefix. No-op at order=1, which never reads it.

Parameters
-
q_historyOptional[wp.array]required
-
-
-
num_candidatesintrequired
-
-
-
history_validboolrequired
-
-
-
-
-
property[source]
-
TrajectorySmoothnessTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectorySmoothnessTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectorySmoothnessTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectorySmoothnessTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectoryLimitTask(
-
robot: Optional[Robot] = None,
num_frames: Optional[int] = None,
order: Union[int, Sequence[int]] = 1,
lower: Optional[Union[float, np.ndarray]] = None,
upper: Optional[Union[float, np.ndarray, Tuple[Any, ...], Context]] = None,
weight: Union[float, Sequence[float], np.ndarray] = 1.0,
dt: Union[float, wp.array, Context] = 1.0,
stencil: Literal['central', 'forward'] = 'central',
dt_power: Optional[Sequence[float]] = None,
activation: Sequence[float] = (0.0, 0.0, 0.0, 0.0),
normalize: bool = False,
name: str = ''
)
Bases: SparseTask, GradientTask
-
-

Penalize bound violations with `weight * max(lower - derivative, derivative - upper, 0)`.

Derivative orders:

  • 0: position.
  • 1: velocity.
  • 2: acceleration.
  • 3: jerk.

Difference schemes:

  • `central`: retimer's five-point derivatives with held endpoints; multiple orders share one task and launch.
  • `forward`: consecutive finite differences without padded endpoints; one order only.

Broadcast layouts:

  • Bounds/weights: broadcast over joints, with a leading order axis when `order` is a sequence.
  • Scalar dt: shared by all plans.
  • Warp-vector dt: one per plan, repeated in instance-major order for candidate batches.

Time scaling:

  • Default: divide each derivative by dt raised to its order.
  • Explicit `dt_power`: override the exponent per order.
  • `timing = (frame_segment, segments, time_weight): a bound row's step is its plan's exp(VarKey.SEGMENT_STEP)` for its frame's segment, a Jacobian column (zero-width bounds keep `dt); time_weight` > 0 costs each second.

Unbuilt templates (resolve):

  • `upper` may hold one entry per order; unset bounds default to the robot's position and velocity limits.
  • `lower defaults to the robot's lower position limit and to -upper` for derivatives.
  • `activation` keeps that fraction of each range away from both bounds, indexed by order.
  • `normalize` divides the weights by the bounds.

Example

python
>>> task = TrajectoryLimitTask(robot, 33, order=3, lower=-500.0, upper=500.0)  # doctest: +SKIP
Parameters
-
robotOptional[Robot]= None
-
-
-
num_framesOptional[int]= None
-
-
-
orderUnion[int, Sequence[int]]= 1
-
-
-
lowerOptional[Union[float, np.ndarray]]= None
-
-
-
upperOptional[Union[float, np.ndarray, Tuple[Any, ...], Context]]= None
-
-
-
weightUnion[float, Sequence[float], np.ndarray]= 1.0
-
-
-
dtUnion[float, wp.array, Context]= 1.0
-
-
-
stencilLiteral['central', 'forward']= 'central'
-
-
-
dt_powerOptional[Sequence[float]]= None
-
-
-
activationSequence[float]= (0.0, 0.0, 0.0, 0.0)
-
-
-
normalizebool= False
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryLimitTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryLimitTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from Task[source]
-
TrajectoryLimitTask.var_key: Enum = VarKey.ROBOT
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryLimitTask.active: bool
- -
-

Whether the term adds cost; helpers skip templates whose weights are all zero (None weighs 1).

-
-
-
propertyinherited from Task[source]
-
TrajectoryLimitTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryLimitTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryLimitTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryLimitTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectoryLimitTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from Task[source]
-
TrajectoryLimitTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare shared state before this term is evaluated.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryLimitTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryLimitTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryLimitTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryLimitTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryLimitTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryLimitTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryLimitTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attribute[source]
-
TrajectoryLimitTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectoryLimitTask.timing: Optional[Tuple[wp.array, int, float]]
- -
- -
-
-
method[source]
-
TrajectoryLimitTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build a template's robot, horizon, step and bounds from the trajectory var_values holds.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryLimitTask.fuse(
-
tasks: Sequence[Any],
dt: Any,
keep: Sequence[Any] = ()
) -> List[Any]
-
-

Fuse central bounds at dt and all-frame abs position limits into one launch, skipping tasks in keep.

Parameters
-
tasksSequence[Any]required
-
-
-
dtAnyrequired
-
-
-
keepSequence[Any]= ()
-
-
Returns
List[Any]
-
-
-
method[source]
-
TrajectoryLimitTask.init_buffers(
-
device: wp_device_type
)
-
-
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
method[source]
-
TrajectoryLimitTask.set_dt(
-
dt: Union[float, wp.array]
)
-
-

Set a positive scalar time step or a float32 Warp vector with one entry per plan.

Parameters
-
dtUnion[float, wp.array]required
-
-
-
-
-
property[source]
-
TrajectoryLimitTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectoryLimitTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryLimitTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write the residual and, when asked, the Jacobian values in one launch.

Parameters
-
var_valuesVarValuesrequired
-
-
-
out_residualwp.arrayrequired
-
-
-
row_offsetintrequired
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
-
-
method[source]
-
TrajectoryLimitTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryLimitTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
- -
robokit.terms.TrajectoryRetargetingTask(
-
robot: Optional[Robot] = None,
target_keypoints: Optional[Union[np.ndarray, wp.array, Context]] = None,
robot_link_indices: Optional[Union[List[int], Context]] = None,
target_joint_indices: Optional[Union[List[int], Context]] = None,
pair_indices: Optional[Union[Sequence[Sequence[int]], np.ndarray, Context]] = None,
position_weight: float = 1.0,
angle_weight: float = 1.0,
target_scale: Union[float, wp.array, Context] = 1.0,
name: str = ''
)
Bases: RobotTask, SparseTask
-
-

Pairwise position and direction residuals for trajectory retargeting.

Parameters
-
robotOptional[Robot]= None
-
-
-
target_keypointsOptional[Union[np.ndarray, wp.array, Context]]= None
-
-
-
robot_link_indicesOptional[Union[List[int], Context]]= None
-
-
-
target_joint_indicesOptional[Union[List[int], Context]]= None
-
-
-
pair_indicesOptional[Union[Sequence[Sequence[int]], np.ndarray, Context]]= None
-
-
-
position_weightfloat= 1.0
-
-
-
angle_weightfloat= 1.0
-
-
-
target_scaleUnion[float, wp.array, Context]= 1.0
-
-
-
namestr= ''
-
-
Members
-
-
attributeinherited from Task[source]
-
TrajectoryRetargetingTask.SUPPORTS_CUDA_GRAPH: bool = True
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryRetargetingTask.SUPPORTS_AUTODIFF: bool = True
- -
-

False when the residual kernels have no usable tape adjoint; autodiff then folds in the analytic JᵀR.

-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryRetargetingTask.var_key: Enum
- -
- -
-
-
attributeinherited from Task[source]
-
TrajectoryRetargetingTask.weight: Any = 1.0
- -
- -
-
-
propertyinherited from Task[source]
-
TrajectoryRetargetingTask.parallel_safe: bool
- -
-

Whether the term may run on its own CUDA stream; one that reads another term's results runs all in order.

-
-
-
methodinherited from Task[source]
-
TrajectoryRetargetingTask.initial_vars(
-
num_candidates: int,
device: Any
) -> Dict[Enum, Var]
-
-

Variables this task adds beside the helper's, at their nominal values; usually none.

Parameters
-
num_candidatesintrequired
-
-
-
deviceAnyrequired
-
-
Returns
Dict[Enum, Var]
-
-
-
methodinherited from Task[source]
-
TrajectoryRetargetingTask.needs() -> set
- -
-

Return the Context members a template reads, including those of the tasks it wraps.

Example

python
>>> class Inputs(Context):
-...     STEP = 0
->>> class Step(Task):
-...     def __init__(self, dt):
-...         self.dt = dt
->>> Step(dt=(Inputs.STEP, 2.0)).needs() == {Inputs.STEP}
-True
Returns
set
-
-
-
propertyinherited from Task[source]
-
TrajectoryRetargetingTask.cost_name: str
- -
-

Return the snake-case task name used in cost reports.

-
-
-
propertyinherited from Task[source]
-
TrajectoryRetargetingTask.dense_task: Task
- -
-

Return the per-pose task this term applies, which is the term itself unless it wraps one.

-
-
-
methodinherited from RobotTask[source]
-
TrajectoryRetargetingTask.precompute(
-
var_values: VarValues,
need_gradient: bool = False
)
-
-

Prepare kinematics and geometry required by the task.

Parameters
-
var_valuesVarValuesrequired
-
-
-
need_gradientbool= False
-
-
-
-
-
methodinherited from Task[source]
-
TrajectoryRetargetingTask.compute_weighted_cost(
-
var_values: Optional[VarValues],
out_cost: wp.array
)
-
-

Add each row's weighted cost into out_cost, for a term without residuals (a simulated rollout, or one of its per-step costs); PopulationSolver calls it on every term that is not a ResidualTask.

Parameters
-
var_valuesOptional[VarValues]required
-
-
-
out_costwp.arrayrequired
-
-
-
-
-
attributeinherited from ResidualTask[source]
-
TrajectoryRetargetingTask.residual_weight: Optional[Union[float, Sequence[float], np.ndarray]]
- -
- -
-
-
methodinherited from ResidualTask[source]
-
TrajectoryRetargetingTask.compute_weighted_jacobian_analytic(
-
var_values: VarValues,
args: Any = (),
out_jacobian: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
out_jacobianOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from ResidualTask[source]
-
TrajectoryRetargetingTask.compute_weighted_jacobian(
-
var_values: VarValues,
args: Any = (),
kwargs: Any = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsAny= ()
-
-
-
kwargsAny= {}
-
-
Returns
wp.array
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryRetargetingTask.accumulate_normal_equations(
-
var_values: VarValues,
costs: wp.array,
JtJ: Optional[wp.array] = None,
Jtr: Optional[wp.array] = None
)
-
-

Accumulate normal equations directly from existing sparse rows.

Parameters
-
var_valuesVarValuesrequired
-
-
-
costswp.arrayrequired
-
-
-
JtJOptional[wp.array]= None
-
-
-
JtrOptional[wp.array]= None
-
-
-
-
-
attributeinherited from SparseTask[source]
-
TrajectoryRetargetingTask.use_mask: bool = False
- -
- -
-
-
attributeinherited from SparseTask[source]
-
TrajectoryRetargetingTask.frame_mask: Optional[wp.array] = None
- -
- -
-
-
methodinherited from SparseTask[source]
-
TrajectoryRetargetingTask.fill_residual_and_jacobian(
-
var_values: VarValues,
out_residual: wp.array,
row_offset: int,
out_jacobian: Optional[wp.array] = None,
nnz_offset: int = 0
)
-
-

Write residuals and optional sparse Jacobian values into shared buffers.

Parameters
-
var_valuesVarValuesrequired
-

Optimization variables.

-
-
out_residualwp.arrayrequired
-

Shared residual buffer.

-
-
row_offsetintrequired
-

First residual row for this task.

-
-
out_jacobianOptional[wp.array]= None
-

Optional shared sparse-value buffer.

-
-
nnz_offsetint= 0
-

First sparse entry for this task.

-
-
-
-
methodinherited from SparseTask[source]
-
TrajectoryRetargetingTask.set_valid_lengths(
-
lengths: Union[np.ndarray, wp.array]
)
-
-

Set the valid trajectory length for each batch element.

Parameters
-
lengthsUnion[np.ndarray, wp.array]required
-

Per-batch valid frame counts.

-
-
-
-
attributeinherited from RobotTask[source]
-
TrajectoryRetargetingTask.precompute_collision_geometry: str = ''
- -
- -
-
-
methodinherited from RobotTask[source]
-
TrajectoryRetargetingTask.set_robot(
-
robot: Robot
)
-
-
Parameters
-
robotRobotrequired
-
-
-
-
-
attribute[source]
-
TrajectoryRetargetingTask.device: Optional[wp_device_type]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.target_keypoints: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.target_scales: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.target_joint_indices: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.pair_rows: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.pair_cols: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.num_unique_dofs: int
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.all_ancestor_dof_indices: Optional[wp.array]
- -
- -
-
-
attribute[source]
-
TrajectoryRetargetingTask.num_frames: int
- -
- -
-
-
property[source]
-
TrajectoryRetargetingTask.active: bool
- -
- -
-
-
method[source]
-
TrajectoryRetargetingTask.resolve(
-
var_values: VarValues,
context: Mapping[Context, Any]
)
-
-

Build from the helper's points, links, pairs and scales; Warp points and scales are read directly.

Parameters
-
var_valuesVarValuesrequired
-
-
-
contextMapping[Context, Any]required
-
-
-
-
-
method[source]
-
TrajectoryRetargetingTask.init_buffers(
-
device: wp_device_type
)
-
-

Build target, pair, and sparse ancestor buffers.

Lifecycle

  1. Upload targets and pair indices.
  2. Build selected-link ancestor masks.
  3. Collect the active actuated columns.
Parameters
-
devicewp_device_typerequired
-
-
-
-
-
property[source]
-
TrajectoryRetargetingTask.residual_dim: int
- -
- -
-
-
method[source]
-
TrajectoryRetargetingTask.compute_weighted_residual(
-
var_values: VarValues,
args: object = (),
out_residual: Optional[wp.array] = None,
row_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_residualOptional[wp.array]= None
-
-
-
row_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
-
method[source]
-
TrajectoryRetargetingTask.compute_sparse_jacobian_pattern(
-
var_values: VarValues,
args: object = (),
offset: int = 0,
out_row_indices: Optional[wp.array] = None,
out_col_indices: Optional[wp.array] = None,
nnz_offset: int = 0,
kwargs: object = {}
) -> SparsityPattern
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
offsetint= 0
-
-
-
out_row_indicesOptional[wp.array]= None
-
-
-
out_col_indicesOptional[wp.array]= None
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
SparsityPattern
-
-
-
method[source]
-
TrajectoryRetargetingTask.compute_weighted_sparse_jacobian_values(
-
var_values: VarValues,
args: object = (),
out_jacobian_values: Optional[wp.array] = None,
offset: int = 0,
nnz_offset: int = 0,
kwargs: object = {}
) -> wp.array
-
-
Parameters
-
var_valuesVarValuesrequired
-
-
-
argsobject= ()
-
-
-
out_jacobian_valuesOptional[wp.array]= None
-
-
-
offsetint= 0
-
-
-
nnz_offsetint= 0
-
-
-
kwargsobject= {}
-
-
Returns
wp.array
-
-
- -
- -
-
- - - - - diff --git a/docs/robokit/conventions/index.html b/docs/robokit/conventions/index.html deleted file mode 100644 index 7b51d40..0000000 --- a/docs/robokit/conventions/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Conventions · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Conventions

-

SE(3) Representation

  • Quaternion: Scalar first ordering $(q_w, q_x, q_y, q_z)$ (follows MuJoCo).
  • 7D Pose: Translation first, rotation second: $(x, y, z, q_w, q_x, q_y, q_z)$ (follows MuJoCo's free-joint qpos).

Twist Representation

Matches Pinocchio / Pink.

  • 6D Twist: Translation first, rotation second.
  • Velocity: Defined in the Body Frame (local).
  • Integration: Right multiplication. $\mathbf{T}_{\text{new}} = \mathbf{T}_{\text{old}} \cdot \exp(\mathbf{v}_{\text{body}})$
  • Jacobian: Right perturbation. $\frac{\partial}{\partial \delta \boldsymbol{\xi}}$ where $\mathbf{T} \leftarrow \mathbf{T} \cdot \exp(\delta \boldsymbol{\xi})$.

Multi-Candidate Layout

Instance major order: output_idx = instance_idx * num_candidates + candidate_idx

Example (3 instances × 2 candidates): [i0s0, i0s1, i1s0, i1s1, i2s0, i2s1]

Utility functions:

FunctionPurposeExample
warp_utils.repeatExpand instances for candidates[i0, i1] → [i0, i0, i1, i1]
warp_utils.tileExpand candidates for instances[s0, s1] → [s0, s1, s0, s1]

Notation

Transformations

  • T_dst_src is a transform $\mathbf{T}_{\mathrm{dst}\leftarrow\mathrm{src}} \in SE(3)$ from the source to the destination frame: $\mathbf{p}^{\mathrm{dst}} = \mathbf{T}_{\mathrm{dst}\leftarrow\mathrm{src}}\, \mathbf{p}^{\mathrm{src}}$.
  • Components:
    • t_dst_src: Translation vector $(x, y, z)$
    • q_wxyz_dst_src: Rotation quaternion $(q_w, q_x, q_y, q_z)$
  • Without frames, robokit.xform names arguments q_wxyz (q_wxyz_1, q_wxyz_2 for pairs), rot_mat for rotation matrices, and tf_mat for transformation matrices.

Joint Positions

  • q denotes joint positions.
- -
- -
-
- - - - - diff --git a/docs/robokit/dev/index.html b/docs/robokit/dev/index.html deleted file mode 100644 index c8640e5..0000000 --- a/docs/robokit/dev/index.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - Development Guide · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Development
- -
-

Development Guide

-

Setup

Clone the repository and install the development environment with uv:

shell
git clone https://github.com/openrobokit/robokit
-cd robokit
-uv sync

PyTorch is optional. For examples that need it, pick the extra for your CUDA toolkit:

shell
uv sync --extra pt-cu126       # CUDA 12.6
-uv sync --extra pt-cu118       # CUDA 11.8
-uv sync --extra pt-cu128       # CUDA 12.8
-uv sync --extra pt-cpu         # CPU only

See Installation for other extras.

Git Workflow

Work on your own branch. Merge to main through a pull request with squash merge, then delete the branch. Run make ci before committing; it formats, lints, type-checks and runs all tests. It defaults to pt-cu126; use make ci PT=pt-cpu for CPU-only PyTorch.

Formatting, Linting, and Type Checking

  • Use ruff for formatting and linting:
shell
uvx ruff check
-uvx ruff format
  • Use pyright for type checking:
shell
uv run pyright

Warp's stubs cannot type every kernel expression. Put a needed Pyright ignore on that expression only; keep host code checked. In autograd wrappers, narrow optional gradient buffers only where they are always allocated.

Function Naming

Start function names with one of these verbs:

  • solve: run an iterative optimization; may fail.
  • compute: direct evaluation; always succeeds.
  • build: construct objects, buffers, or kernels.
  • get: cached lookup (build on miss).
  • set / clear: mutate or drop state.

Warp kernels and functions additionally:

  • Suffix by type: *_kernel for @wp.kernel, *_func for @wp.func.
  • Verbs also include transform / integrate / accept.
  • Variant tags before the suffix, fixed order: representation (matrix), algorithm (sequential / local / accum), then backward.

Variable Naming

Use the public notation: T_dst_src, t_dst_src, q_wxyz_dst_src, and q for joint positions.

  • Keep wxyz in quaternion parameter names to indicate ordering.
  • Avoid pose, tf, or similar terms, except in robokit.xform, whose conversions take tf_mat and pose7.
  • Use T_dst_src for batched transformations, not Ts_dst_src.

Comments and Docstrings

Use the full-width separator for sections. Use the short form for class sections and long phases inside a function.

python
# --- kernels ----------------------------------------------------------------
-# --- build solver ---

Use lowercase fragments for section labels and short code comments:

python
# skip the normal/closest math (~2x faster)

Write full-sentence comments with normal capitalization and punctuation. Keep proper names, acronyms and identifiers as they are. Spell out words in section labels.

Use Google-style docstrings (Args: / Returns: / Raises: sections) with single-backtick inline code.

Testing

Run pytest and documentation tests:

shell
uv run pytest
-uv run xdoctest robokit
-uv run scripts/test_docs.py

Markdown Examples

Each Python fence runs on its own. Include imports, small sample inputs and assertions. Wrap setup and checks in # docs: hide / # docs: endhide to hide them from the short view:

text
# docs: hide
-values = [1, 2, 3]
-# docs: endhide
-total = sum(values)
-# docs: hide
-assert total == 6
-# docs: endhide

The website shows the short view; Full and Copy use the complete code. scripts/test_docs.py runs every fence with xdoctest. Hide # xdoctest: +SKIP in examples that download assets, and # xdoctest: +REQUIRES(...) in optional ones: ROBOKIT_CUDA_DOCS=1 for CUDA, ROBOKIT_BODY_MODELS for body models, ROBOKIT_PARAHOME_DOCS=1 for ParaHome. To test the website's copies, run uv run scripts/test_docs.py <robokit-website>/_page/docs/robokit.

Doctest

Give every public function a doctest:

python
def quaternion_multiply(
-    q_wxyz_1: Float[torch.Tensor, "... 4"], q_wxyz_2: Float[torch.Tensor, "... 4"]
-) -> Float[torch.Tensor, "... 4"]:
-    """
-    Multiply two quaternions.
-
-    Example:
-        >>> q1 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834])
-        >>> q2 = torch.tensor([0.9238795, 0.0, 0.0, 0.3826834])
-        >>> expected = torch.tensor([0.7071068, 0.0, 0.0, 0.7071068])
-        >>> torch.allclose(quaternion_multiply(q1, q2), expected, atol=1e-6)
-        True
-    """
-    return _quaternion_multiply(q_wxyz_1, q_wxyz_2)

Pytest

Tests use local fixtures. Hugging Face calls are blocked.

To test MANO PKL conversion and CPU engine parity with local body models:

shell
ROBOKIT_BODY_MODELS="$HOME/.robokit/body_models" CUDA_VISIBLE_DEVICES='' \
-uv run pytest tests/assets/test_body_models.py tests/smplx/test_mano_engine.py -q --no-cov

Group test cases into one class. Compare results across implementations:

python
class TestQuaternionToMatrix:
-    @pytest.fixture(autouse=True)
-    def setup(self):
-        """Initialize Warp before each test."""
-        wp.init()
-
-    def _test_consistency(self, quat_torch: torch.Tensor):
-        """Helper function to test consistency between implementations."""
-        quat_np = quat_torch.numpy(force=True)
-
-        result_warp = quaternion_to_matrix_warp(quat_torch)
-        result_numpy = torch.as_tensor(
-            quaternion_to_matrix_numpy(quat_np), device=result_warp.device, dtype=result_warp.dtype
-        )
-
-        torch.testing.assert_close(result_warp, result_numpy, atol=1e-6, rtol=1e-6)
-
-        return result_warp
-
-    def test_identity_quaternion(self):
-        """Test identity quaternion conversion."""
-        quat = torch.tensor([1.0, 0.0, 0.0, 0.0])
-        result = self._test_consistency(quat)
-        expected = torch.eye(3)
-        assert result.shape == (3, 3)
-        torch.testing.assert_close(result, expected, atol=1e-6, rtol=1e-6)

Documentation Assets

README and docs images load from https://openrobokit.com/assets/docs/robokit/assets/<path>, so the repository stays light; the task previews are under built-in-tasks/. Pages link them by relative path. Gallery recordings stay in the website repository. Update assets here, then run make import PROJECT=robokit SRC=/path/to/robokit in the website checkout, with SRC pointing at this branch or worktree. Do not keep copies in the website source.

Asset Authoring

Robot descriptions, datasets and collision configs live at openrobokit/robokit. Import an asset module to use its path symbols. See Built-in Robots & Datasets for loading assets and fetch().

Layout

text
~/.robokit/
-├── assets/                              # extension-preserving runtime paths
-│   └── <pinned-commit>/
-│       ├── robots/
-│       │   ├── robot_description/       # URDFs and meshes
-│       │   │   ├── arms/
-│       │   │   ├── end_effectors/
-│       │   │   ├── humanoids/
-│       │   │   └── assembly/
-│       │   ├── robot_mj_description/    # MJCFs and MuJoCo assets
-│       │   ├── collision_spheres/
-│       │   ├── contact_points/
-│       │   ├── contact_avoid_points/
-│       │   └── self_collision/
-│       ├── datasets/                   # one folder per source
-│       │   └── <name>/                 # clips, metadata, objects/ when provided
-│       ├── policies/
-│       └── calibration/
-├── body_models/                         # user-provided, never fetched from HF
-│   ├── mano/
-│   └── smplx/
-├── hf_cache/                            # Hugging Face blobs and snapshots
-│   └── datasets--openrobokit--robokit/
-│       ├── blobs/
-│       └── snapshots/
-└── hf_repo/                             # writable authoring checkout

Robot files are type-major. One robot's URDF, collision spheres and contact points sit in different robots/ subdirs under the same robot name.

Each dataset source gets a lowercase datasets/<name>/ folder for its clips and object meshes. Its access module lives in robokit.assets.datasets.

Robot asset naming

  • RoboKit-generated files use <model>_<side>[_<modifier>...]; directories use <model>_<side>.
    • Common modifiers, in order: glb, floating_base, no_mimic.
  • Python modules stay side-neutral. Side-specific symbols end in _RIGHT or _LEFT. Add no unsuffixed aliases.
  • Variant-specific symbols use a prefix, such as ARM_URDF_PATH and ARM_REST_Q.
  • REST_Q maps every actuated joint name to its rest position.
  • Arms, humanoids and end effectors expose MOUNT_LINK_NAME and MOUNT_COORD_SPEC, with _RIGHT and _LEFT on bilateral models. The link's frame is the mounting frame. The spec gives its outward and right axes and an optional mount_point_xyz, all in that frame.
  • End effectors also expose EE_COORD_SPEC, a HandCoordinateSpec or GripperCoordinateSpec. Their MOUNT_COORD_SPEC, including mount_point_xyz, is derived from it.
  • Display names use <Model> Right or <Model> Left; side-neutral assets omit the side.

Self-collision ignore sets

scripts/geom/self_collision/generate_ignore.py writes ignore.<backend>.{yml,srdf} for one robot. Run it per model and backend, into the writable checkout. capsule needs only the URDF/MJCF; sphere also needs collision spheres that cover the whole model:

shell
uv run scripts/geom/self_collision/generate_ignore.py <urdf> --backend capsule \
-    --out-dir ~/.robokit/hf_repo/robots/self_collision/<robot> --out-stem ignore
-uv run scripts/geom/self_collision/generate_ignore.py <urdf> --backend sphere --spheres <yaml> \
-    --out-dir ~/.robokit/hf_repo/robots/self_collision/<robot> --out-stem ignore

Expose each file as SPHERE_/CAPSULE_SELF_COLLISION_IGNORE_PATH, with an MJ_ prefix for MJCF variants. The fcl backend is not shipped.

Publishing Assets

Keep upstream license files and copyright notices beside copied assets, including those of each assembly component.

Create the writable checkout, edit robokit_assets/, then commit and push:

shell
uv run python -c "from robokit.assets import checkout; checkout()"
-cd robokit_assets
-git add -A && git commit -m "add <asset>" && git push
-git rev-parse HEAD

Keep the type-major layout above. In the same RoboKit change, expose the path in src/robokit/assets/<kind>/<name>.py. Set the pinned commit in src/robokit/assets/__init__.py to the printed hash.

Note

checkout() clones the writable checkout to ~/.robokit/hf_repo and links it as ./robokit_assets. Binary assets use Git LFS. Before adding a new binary extension, run git lfs track "*.<ext>".

- -
- -
-
- - - - - diff --git a/docs/robokit/geom/index.html b/docs/robokit/geom/index.html deleted file mode 100644 index 4a60f7f..0000000 --- a/docs/robokit/geom/index.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - Geometry · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Geometry

-

robokit.geom runs batched SDF queries against scenes of mixed geometry types. Each query point gets its signed distance (negative inside), the surface normal and the closest surface point. Collision terms, motion planning and grasp optimization build on it.

Overview

text
BoxGeom / SphereGeom / PlaneGeom / CapsuleGeom / MeshGeom / VolumeGeom
-    |  scene.add(geom)
-    v
-WarpScene.query_sdf(points, scene_offsets)
-    1. route each point to its scene
-    2. launch one Warp kernel per geom, aggregated through the min
-    3. return signed distances (+ normals, closest points)

Example usage:

python
geom = BoxGeom(half_extents, scene_offsets, poses=poses)  # store raw inputs (CPU)
-scene = WarpScene(num_scenes=1, device=device).add(geom)  # allocate GPU arrays of the geom
-geom.update(poses=new_poses)  # in-place copy

update copies in place and never reallocates. A query captured in a CUDA graph keeps working after the scene moves.

Geom Types

GeomElementsSDF
BoxGeomhalf extentsanalytical
SphereGeomradiianalytical
PlaneGeomlocal z=0 halfspaces, posedanalytical
CapsuleGeomradii + half heightsanalytical
MeshGeomtriangle meshesmesh BVH or baked grid
VolumeGeompre-baked SdfVolume gridstrilinear grid sample

Every geom takes scene_offsets, which assign its elements to scenes. poses and scales are optional. Set capacity to add elements later without reallocating.

Query

python
sdf, normals, closest = scene.query_sdf(points, scene_offsets)  # min aggregate over all geoms
-sdf = scene.query_sdf(points, scene_offsets, distance_only=True)  # query the whole scene, but skip normals/closest
-sdf, _, _ = geom.query_sdf(points, scene_offsets)  # this geom only
  • Batching: one WarpScene holds num_scenes independent scenes. scene_offsets or per-point scene_indices map each query point to its scene.
  • Masking: query_mask skips masked points.
  • Gradients: query_sdf_torch(points, offsets, poses={geom: T}) is differentiable in the points and any pose or scale overrides.

Mesh Level-of-Detail

A baked SDF grid speeds up mesh queries. MeshGeom(enable_sdf=True, sdf_voxel_size=0.01) bakes one per mesh and caches it under ~/.robokit/sdf_cache. Queries then cascade:

text
outside the padded AABB -> AABB distance + padding
-inside the grid         -> O(1) grid sample
-near the surface        -> exact mesh BVH
- -
- -
-
- - - - - diff --git a/docs/robokit/hand-retargeting/index.html b/docs/robokit/hand-retargeting/index.html deleted file mode 100644 index d55297b..0000000 --- a/docs/robokit/hand-retargeting/index.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - Hand Retargeting · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Hand Retargeting

-
An XHand on an xArm7 replaying a captured hand motionHand-object retargeting across three datasets
An XHand on an xArm7 replaying a captured hand motion.Hand-object retargeting across three datasets.

robokit.helpers.hand_retargeting maps ordered hand points to robot states. Online retargeting solves one frame at a time. Offline retargeting solves a whole trajectory. Complete programs are in src/robokit/examples/hand_retargeting.

How Retargeting Works

flowchart LR - POINTS[Ordered target points] --> ONLINE[HandRetargeterOnline] - POINTS --> OFFLINE[HandRetargeterOffline] - ONLINE --> ONLINE_SOLVE["solve()"] - OFFLINE --> SOLVE["solve()"] - OFFLINE --> CONTACT["solve_with_contact()"] - ONLINE_SOLVE --> STATE[Base transform and joints] - SOLVE --> STATE - CONTACT --> STATE

Presets

Each robot preset is a module with one hand spec and a config per workflow.

python
from robokit.helpers.hand_retargeting.presets import shadow
-
-spec = shadow.spec
-online_config = shadow.online
-online_wrist_config = shadow.online_wrist
-offline_config = shadow.offline

Order points as spec.target_names. The MANO layout is not assumed.

WorkflowNumPy inputOutput
Online(K, 3) or (B, K, 3)(B, 7 + Q)
Offline(T, K, 3) or (B, T, K, 3)(T, 7 + Q) or (B, T, 7 + Q)

B is batch size, T frame count, K is len(spec.target_names), and Q actuated joints. Each output row is the base transform (x, y, z, qw, qx, qy, qz) followed by the joints.

Online Retargeting

A preset's costs are tasks in config.terms; change one by name:

python
from copy import deepcopy
-
-config = deepcopy(shadow.online)
-config.task("smoothness").weight = 0.1
-config.task("rest").weight = 0.01

Offline configs work the same way. contact_config() and refine_config() derive the contact and refinement problems from a tracking config.

Online retargeting follows __init__ → warmup → solve → reset, one frame per solve; the caller owns the loop. Each frame after the first is smoothed against the previous solution.

python
from robokit.helpers.hand_retargeting import HandRetargeterOnline
-
-retargeter = HandRetargeterOnline(
-    config=shadow.online,
-    robot=robot,
-    spec=shadow.spec,
-    device=device,
-)
-retargeter.warmup(batch_size=1)
-
-for points in stream:
-    qpos = retargeter.solve_numpy(target_points=points)
-
-retargeter.reset()

See 01_online.py, 05_online_batch.py, and 03_batch.py.

Wrist Tracking

Pass an online_wrist preset to HandRetargeterOnline to track the wrist pose and finger joints together. Floating hands take world points and return the base transform in the world frame:

python
from robokit.helpers.hand_retargeting import HandRetargeterOnline
-
-retargeter = HandRetargeterOnline(shadow.online_wrist, robot, shadow.spec, device=device)
-retargeter.warmup(batch_size=1)
-for points in stream:
-    qpos = retargeter.solve_numpy(points)
-retargeter.reset()

Wrist presets set reference_origin="wrist"; the default is "world". Inputs and outputs stay in world coordinates either way, including init_state and compute_costs(state). Fixed-base arm rigs take points and states in the robot base frame.

Offline Retargeting

solve_numpy() warms up for its input shape. The Warp API needs warmup(batch_size=B, num_frames=T) before solve().

python
from robokit.helpers.hand_retargeting import HandRetargeterOffline
-
-retargeter = HandRetargeterOffline(
-    config=shadow.offline,
-    robot=robot,
-    spec=shadow.spec,
-    device=device,
-)
-qpos = retargeter.solve_numpy(
-    target_points=points,
-    root_quat_wxyz=root_quat_wxyz,
-)

Pass root_quat_wxyz when a task reads the root pose; the default root_rotation task does. Split long trajectories into chunks yourself.

See 02_offline.py and 04_arm.py.

Contact and Collision

Contact solves take one contact point and mask per spec.contact_target_names entry. Wrap a tracking config with contact_config(). Use refine_config() to keep the result near init_state.

python
from robokit.helpers.hand_retargeting import contact_config
-
-retargeter = HandRetargeterOffline(
-    config=contact_config(shadow.offline),
-    robot=robot,
-    spec=shadow.spec,
-    scene=scene,
-    device=device,
-)
-qpos = retargeter.solve_with_contact_numpy(
-    target_points=points,
-    contact_points=contact_points,
-    contact_mask=contact_mask,
-    init_state=init_state,
-    local_contact_points=local_contact_points,
-)

Pass init_state to start from a trajectory; the refinement keeps the result near it.

Pass a WarpScene for scene collision; config.task("collision").weight sets its cost. Self-collision uses the robot's collision spheres and the skip pairs from Robot.load(self_collision_ignore_path=...).

See 06_contact.py. 07_batch_contact.py retargets every right-hand DexYCB capture and writes one NPZ per capture: uv run src/robokit/examples/hand_retargeting/07_batch_contact.py --output-dir PATH.

- -
- -
-
- - - - - diff --git a/docs/robokit/hand_eye_calibration/index.html b/docs/robokit/hand_eye_calibration/index.html deleted file mode 100644 index 1421c9f..0000000 --- a/docs/robokit/hand_eye_calibration/index.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - Hand-Eye Calibration · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Hand-Eye Calibration

-

Initial, predicted, and ground-truth camera extrinsics overlaid on a ManiSkill capture

robokit.helpers.hand_eye_calibration solves the camera extrinsic (OpenCV T_camera_base) from robot masks and/or depth maps. It renders the robot with nvdiffrast at N known joint positions q and aligns the renders to your images. No calibration board is needed.

Overview

flowchart TD - subgraph Inputs - OBS["masks/depths"] - Q["q"] - INIT["initial guess"] - end - Q -- FK --> POSES["link poses"] - INIT -- sample around it --> CANDIDATES["candidates"] - subgraph SOLVE["HandEyeCalibrator.solve: render + LM per level (mask and/or depth term)"] - L0["coarse, blurred · many candidates · search the basin"] - L1["fine · 1 candidate · polish the best"] - L0 --> L1 - end - OBS --> SOLVE - POSES --> SOLVE - CANDIDATES --> SOLVE - SOLVE --> OUT["T_camera_base"]

Quick start

From src/robokit/examples/hand_eye_calibration/01_sim_rgb.py (fixed camera, masks only):

python
from robokit.helpers.hand_eye_calibration import HandEyeCalibrator, presets
-
-hec = HandEyeCalibrator(presets.rgb, robot, camera_intrinsic=intrinsic, height=H, width=W)
-predicted = hec.solve(initial, target_masks=masks, q=q)

masks are [N, H, W] float robot silhouettes. q is [N, num_dofs] in robot.spec.actuated_joint_names order. initial is a rough [4, 4] guess; the default config handles up to ~35 cm / 45 deg of error.

Common variants

Mounted camera. For a camera on a moving mount, such as a wrist camera, pass per-sample T_mount_base. The solver then returns T_camera_mount. See src/robokit/examples/hand_eye_calibration/02_sim_mounted.py:

python
predicted = hec.solve(initial, target_masks=masks, q=q, T_mount_base=T_mount_base)

Depth. Use presets.rgbd to add depth on the fine levels, or presets.depth for depth only. For depth only, omit masks and pass robot-only depth, with 0 marking invalid pixels. See src/robokit/examples/hand_eye_calibration/03_sim_depth.py:

python
from robokit.helpers.hand_eye_calibration import HandEyeCalibrator, presets
-
-hec = HandEyeCalibrator(presets.depth, robot, camera_intrinsic=intrinsic, height=H, width=W)
-predicted = hec.solve(initial, target_depths=depths, q=q)

For a custom schedule, set use_depth per PyramidLevel. Set depth_weight on the mask task in config.terms.

Model offsets. Encoder zero offsets and an unknown mount also shift the rendered robot. To solve for them with the extrinsic, swap the pyramid's mask task for MaskAlignmentOffsetTask: offset_joints frees joint zeros, and offset_link frees the transform a link hangs from. See 05_sim_offsets.py with --offset joints or --offset mount:

python
from dataclasses import replace
-import warp as wp
-from robokit.opt.var_values import VarKey
-from robokit.helpers.hand_eye_calibration.mask_alignment_task import MaskAlignmentOffsetTask
-from robokit.terms.dense.configuration_task import ConfigurationTask
-
-rest = ConfigurationTask(rest_q=robot.spec.zero_q, weight=150.0, var_key=VarKey.QPOS_OFFSET)
-mask_term = MaskAlignmentOffsetTask(offset_joints=list(range(robot.num_actuated_joints)))
-hec = HandEyeCalibrator(replace(presets.rgb, terms=[mask_term, rest]), robot, intrinsic, H, W)
-predicted = hec.solve(initial, target_masks=masks, q=q)
-delta_q = wp.to_torch(hec.last_var.get(VarKey.QPOS_OFFSET).x)[0]  # radians, add to measured q

config.terms holds every cost term, mask alignment included.

Set offset_link_dofs to free only the mount's translation or rotation. Weakly observable dofs, such as roll about a round wrist flange, drift; the ConfigurationTask holds them near nominal.

Real hardware. src/robokit/examples/hand_eye_calibration/04_real_xarm.py runs the full pipeline on an xArm + RealSense. It captures images at several joint configurations, segments the arm with SAM2, takes an initial guess dragged in viser, then solves. For larger initial errors, raise candidate_noise_t/r, num_candidates and iterations, as the example does.

Unknown frame qpos. Fit q from silhouette views of one frame.

PresetOptimized variables
presets.rgbCamera; q is supplied
presets.rgb_qposQpos; camera is fixed
presets.rgb_qpos_cameraQpos and camera

Pass target_masks[V,H,W] and an optional initial q[J]. Read the result from last_q[J]. Omit q to search the full joint limits.

Frame and trajectory comparison.

Joint trajectories (experimental). QposTrajectoryCalibrator fits a smooth last_q[T,J] from masks[T,V,H,W] and timestamps[T]. Use presets.rgb_qpos_trajectory for fixed cameras, or presets.rgb_qpos_trajectory_camera to also refine static cameras.

Both APIs also take image keypoints through keypoint_links and target_keypoints. NaNs mark missing points.

Trajectory example · Benchmark.

- -
- -
-
- - - - - diff --git a/docs/robokit/humanoid-retargeting/index.html b/docs/robokit/humanoid-retargeting/index.html deleted file mode 100644 index 44a2172..0000000 --- a/docs/robokit/humanoid-retargeting/index.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - Humanoid Retargeting · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Humanoid Retargeting

-
Two-feet jump retargeted to a G1 humanoidA cha-cha dance retargeted to a G1 humanoid
Two-feet jump retargeted to a G1 humanoid.A cha-cha dance retargeted to a G1 humanoid.

robokit.helpers.humanoid_retargeting maps human motion onto a floating-base humanoid. Online retargeting solves one frame at a time. Offline retargeting solves a whole trajectory at once.

The snippets assume robot, device, motion, and human_heights exist. Complete examples are in src/robokit/examples/humanoid_retargeting.

How Retargeting Works

Each solve scales human joint transforms to robot-link targets by the robot-to-human height ratio. It then optimizes the floating base and joints and returns the best state.

flowchart TD - INPUT[Input<br/><br/>Human joint transforms<br/>Optional human heights] - - subgraph SOLVING[Solving] - direction TB - MAP[1. Scale to robot link targets] - OPT[2. Optimize base and joints] - PACK[3. Pack the best state] - MAP --> OPT --> PACK - end - - OUT[Return base pose and joint positions] - - INPUT --> MAP - PACK --> OUT

Poses are 7D (x, y, z, qw, qx, qy, qz). The joint axis follows retargeter.human_joint_names.

WorkflowNumPy inputOutput
Online(B, J, 7) per frame(B, 7 + Q)
Offline(B, T, J, 7)(B, T, 7 + Q)

B is batch size, T frame count, J human joints, and Q robot joints. Each output row is the base pose followed by joint positions. human_heights has shape (B,). Omit it to use the preset's assumed height.

Presets

A preset is a HumanoidRetargeterOnlineConfig for one robot and one human motion source. Presets exist for the G1, GR3, H1-2, and BHL robots.

python
from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned  # G1, aligned SMPL-X
-from robokit.helpers.humanoid_retargeting.presets.g1_smplh import g1_smplh  # G1, SMPL-H interaction
-from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline  # G1 offline optimizer

Derive a variant with dataclasses.replace(...); do not mutate a preset. Costs are tasks in config.terms. Some task weights take a dict keyed by link or joint name.

Online Retargeting

Online retargeting follows __init__ → warmup → solve → reset. The caller owns the frame loop:

python
from robokit.helpers.humanoid_retargeting import HumanoidRetargeterOnline
-from robokit.helpers.humanoid_retargeting.presets.g1_aligned import g1_aligned
-
-retargeter = HumanoidRetargeterOnline(g1_aligned, robot=robot, device=device)
-retargeter.warmup(batch_size=1)
-
-for T_world_human in motion:  # one (J, 7) frame per iteration
-    qpos = retargeter.solve_numpy(T_world_human[None], human_heights)[0]
-
-retargeter.reset()

Omit robot to load it from the config. The first solve captures the CUDA graph. Before a timed loop, run one throwaway solve and call reset(). solve() is the Warp API.

Call reset() between clips. reset(T_world_base=...) also seeds the floating base. Use it when the first frame is far from the origin; see 08_terrain.py.

See 01_online.py.

Online Batches

Call warmup(batch_size=B) and pass one (B, J, 7) frame per iteration. Streams advance in lockstep. Repeat the last frame of shorter streams. The batch size is fixed after warmup; create a new retargeter to change it.

See 06_online_batch.py.

Collision Avoidance

Weight the collision task and pass your own WarpScene:

python
from copy import deepcopy
-
-from robokit.geom import PlaneGeom, WarpScene
-
-config = deepcopy(g1_aligned)
-config.task("collision").weight = 1000.0
-scene = WarpScene(1, device).add(PlaneGeom(np.array([0, 1], dtype=np.int32)))
-retargeter = HumanoidRetargeterOnline(config, scene=scene, device=device)

The collision task needs a scene. The self_collision task does not. Both need robot collision spheres; a robot loaded from the config has them. Move obstacles with geom.update(...). The scene layout is fixed after warmup.

See 02_collision.py and 03_self_collision.py.

Contact-aware Retargeting

Contact-aware retargeting keeps the human joints' layout relative to points on a moving object. It needs an interaction preset such as g1_smplh, a scene with the object as its only mesh, and batch_size=1. Set the first target before warmup. Update it before each solve:

python
from robokit.helpers.humanoid_retargeting import build_interaction_mesh_frame
-
-retargeter = HumanoidRetargeterOnline(g1_smplh, robot=robot, scene=scene, device=device)
-retargeter.interaction_task.set_frame(
-    *build_interaction_mesh_frame(human_points[0], object_points, T_world_object_vec7[0])
-)
-retargeter.warmup(batch_size=1)
-
-for i, T_world_human in enumerate(motion):
-    retargeter.interaction_task.set_frame(
-        *build_interaction_mesh_frame(human_points[i], object_points, T_world_object_vec7[i])
-    )
-    qpos = retargeter.solve_numpy(T_world_human[None])[0]

Move the scene object with object_geom.update(...). Move the interaction target with set_frame(...). The first target fixes the vertex count.

See 07_contact.py.

Offline Retargeting

Offline retargeting optimizes all frames jointly. Pass an online mapping config for the targets and an offline config for the tasks:

python
from robokit.helpers.humanoid_retargeting import HumanoidRetargeterOffline
-from robokit.helpers.humanoid_retargeting.presets.g1_offline import g1_offline
-from robokit.helpers.humanoid_retargeting.presets.g1_offline_mapping import g1_offline_mapping
-
-retargeter = HumanoidRetargeterOffline(g1_offline_mapping, g1_offline, device=device)
-qpos = retargeter.solve_numpy(motion[None], human_heights=human_heights)[0]  # (T, 7 + Q)

The mapping config must not set interaction or correspondence options. Its tasks apply online only; its velocity limits and output clamp also apply offline. For offline self-collision, add a TrajectorySelfCollisionTask to the offline tasks. solve_numpy(...) warms up for its input shape. The Warp path needs warmup(batch_size=B, num_frames=T) before solve().

See 04_offline.py.

Batch Clips

Pad shorter clips by repeating their last frame. Pass the real lengths:

python
lengths = np.array([len(m) for m in motions], dtype=np.int32)
-num_frames = int(lengths.max())
-padded = np.stack([np.concatenate([m, np.repeat(m[-1:], num_frames - len(m), axis=0)]) for m in motions])
-
-qpos = retargeter.solve_numpy(padded, valid_lengths=lengths, human_heights=human_heights)
-first_clip = qpos[0, : lengths[0]]

See 05_batch.py.

- -
- -
-
- - - - - diff --git a/docs/robokit/ik/index.html b/docs/robokit/ik/index.html deleted file mode 100644 index 5e9843f..0000000 --- a/docs/robokit/ik/index.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - IK · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

IK

-
An arm tracking a dragged targetA humanoid tracking hand targets while balancing
An arm tracking a dragged target.A humanoid tracking hand targets while balancing.

robokit.helpers.ik solves inverse kinematics. It handles multiple target links, floating bases, joint limits, smoothness, and collision avoidance.

The snippets assume robot, device, and targets are defined. Runnable examples are in src/robokit/examples/ik.

How IK Works

Each solve takes target link poses and an optional initial state:

  1. Sample candidate states near the initial state.
  2. Optimize pose errors and other costs (Levenberg-Marquardt by default).
  3. Return the best candidates as a RobotState.
flowchart TD - INPUT[Input<br/><br/>Target link poses<br/>Optional initial state] - - subgraph SOLVING[Solving] - direction TB - SAMPLE[1. Sample candidates] - OPT[2. Optimize costs] - PICK[3. Select the best] - SAMPLE --> OPT --> PICK - end - - STATE[Return RobotState] - - INPUT --> SAMPLE - PICK --> STATE

Basic IK

An IKSolver takes a configuration, a robot, and target_links: one or more link names or indices. presets.basic has position, rotation, and joint-limit terms.

Pass the target as a translation-first 7D pose:

python
from robokit.helpers.ik import IKSolver, presets
-
-ik = IKSolver(presets.basic, robot=robot, target_links="panda_hand", device=device)
-
-T_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0]  # x, y, z, qw, qx, qy, qz
-state = ik.solve_numpy(T_world_target)
-q = state.q.numpy()[0]

The first solve builds the solver for its batch size. Call ik.warmup(batch_size=1) to build it before a control loop. Create a new IK to change the batch size.

solve() takes Warp arrays.

Tracking IK

presets.smooth adds a smoothness term. Pass the previous result as both init_state and prev_state when solving a moving target:

python
ik = IKSolver(presets.smooth, robot=robot, target_links="panda_hand", device=device)
-
-state = None
-for T_world_target in target_trajectory:
-    state = ik.solve_numpy(T_world_target, init_state=state, prev_state=state)

init_state centers new samples on the previous answer. prev_state feeds temporal terms. The solver keeps the previous answer if it scores better.

Custom Terms

Build an IKSolverConfig when a preset does not contain the terms you need:

python
from robokit.helpers.ik import IKContext, IKSolver, IKSolverConfig
-from robokit.opt.sampler import RobertsSamplerConfig
-from robokit.terms.dense.position_limit import PositionLimit
-from robokit.terms.dense.position_task import PositionTask
-from robokit.terms.dense.rotation_task import RotationTask
-from robokit.terms.dense.smoothness_task import SmoothnessTask
-
-config = (
-    IKSolverConfig(sampler=RobertsSamplerConfig(scale=1.0, keep_first=True))
-    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=20.0))
-    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))
-    .add(PositionLimit(weight=50.0))
-    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=1.0))
-)
-ik = IKSolver(config, robot=robot, target_links="panda_hand", device=device)

Arguments the solver fills hold IKContext members, such as TARGET (the poses passed to solve), PREVIOUS_STATE (its prev_state), and SCENE (the solver's scene). Use add_score() to rank candidates without changing the optimization.

CompositeTask(tasks, thresholds=[...]) mixes constraints and scores. A numeric threshold makes a child a constraint; None makes it a score. Candidates that pass every constraint rank first.

Batch IK

Add a leading batch dimension to solve several targets in one call:

python
from robokit.helpers.ik import IKSolver, presets
-
-ik = IKSolver(presets.smooth, robot=robot, target_links="panda_hand", device=device)
-state = ik.solve_numpy(T_world_target_batch)
-q_batch = state.q.numpy()

The output shape is (batch * ik.num_solutions, dofs). Presets return one solution per target. A custom final stage can keep more, in instance-major order.

Pass several link names to solve them together. Target row i belongs to links[i]:

python
links = ["yumi_link_7_r", "yumi_link_7_l"]
-ik = IKSolver(presets.single_candidate, robot=robot, target_links=links, device=device)
-
-# T_world_target: shape (2, 7), or (batch, 2, 7)
-state = ik.solve_numpy(T_world_target)

Pass per-link weights to PositionTask or RotationTask, such as weight=[20.0, 5.0].

Floating Base

Set enable_T_world_base=True to optimize the base pose with the joints. A zero in base_active_mask locks that DOF. This config allows planar base motion and locks z, roll, and pitch:

python
config = (
-    IKSolverConfig(
-        enable_T_world_base=True,
-        sampler=RobertsSamplerConfig(scale=1.0, keep_first=True),
-        base_init_sample_range=(1.0, 1.0, 0.0),
-        base_active_mask=[1.0, 1.0, 0.0, 0.0, 0.0, 1.0],
-    )
-    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))
-    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=5.0))
-    .add(PositionLimit(weight=50.0))
-    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=0.1, base_weight=0.5))
-)
-ik = IKSolver(config, robot=robot, target_links="panda_hand", device=device)
-
-state = ik.solve_numpy(T_world_target, init_state=state, prev_state=state)
-T_world_base = state.T_world_base.numpy()[0]

base_init_sample_range sets the per-axis translation noise around the initial base pose.

Collision Avoidance

Load the robot with collision spheres, then add scene and self-collision terms:

python
from robokit.terms.dense.scene_collision_task import SceneCollisionTask
-from robokit.terms.dense.self_collision_task import SelfCollisionTask
-
-config = (
-    IKSolverConfig(sampler=RobertsSamplerConfig(scale=1.0, keep_first=True), solver=presets.smooth.solver)
-    .add(PositionTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=20.0))
-    .add(RotationTask(frame_index=IKContext.TARGET_LINKS, T_world_target=IKContext.TARGET, weight=10.0))
-    .add(PositionLimit(weight=50.0))
-    .add(SmoothnessTask(prev_var=IKContext.PREVIOUS_STATE, weight=1.0))
-    .add(SceneCollisionTask(scene=IKContext.SCENE, weight=100.0, margin=0.02))
-    .add(SelfCollisionTask(robot, representation="sphere", weight=5.0, margin=0.01))
-)
-ik = IKSolver(config, robot=robot, target_links="panda_hand", device=device, scene=scene)

The margin keeps collision spheres away from obstacles or one another. The scene layout is fixed after the solver is built. Update existing geometry poses in place; create a new IK only when the layout changes.

Runtime Changes

Each term gets a name such as position_task_0. Use it to change a supported term's weight without rebuilding the solver:

python
ik.set_weight("position_task_0", 20.0 * proximity_factor(state))
-ik.set_weight("rotation_task_0", [0.0, 1.5])  # one weight per target link

set_active_joint_mask() and set_active_base_mask() lock DOFs at runtime. Changing links, terms, solver stages, collision margins, or scene layout needs a new IK.

- -
- -
-
- - - - - diff --git a/docs/robokit/index.html b/docs/robokit/index.html deleted file mode 100644 index e291e89..0000000 --- a/docs/robokit/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - RoboKit docs · OpenRoboKit - - - - -Continue to the documentation - diff --git a/docs/robokit/install/index.html b/docs/robokit/install/index.html deleted file mode 100644 index 0b73af8..0000000 --- a/docs/robokit/install/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Installation · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Installation

-

RoboKit needs Python 3.8 or newer.

shell
uv add robokit
shell
pip install robokit

From source

shell
uv add git+https://github.com/openrobokit/robokit
shell
pip install git+https://github.com/openrobokit/robokit

To work on RoboKit itself, follow the Development Guide.

Extras

ExtraWhat it adds
mjMJCF loading (assembly needs mujoco 3.3.4+, Python 3.9+).
mjwarpMuJoCo Warp for SimMPC (Python 3.10+).
pt-cu126, pt-cu118, pt-cu128, pt-cpuPyTorch for your CUDA toolkit.

The mask-alignment term and camera calibration also need nvdiffrast built for your exact PyTorch and CUDA, such as pip install "nvdiffrast==0.3.3+pt2.11.0cu126" --extra-index-url https://jianglongye.github.io/torch_packages_builder.

- -
- -
-
- - - - - diff --git a/docs/robokit/motion-planning/index.html b/docs/robokit/motion-planning/index.html deleted file mode 100644 index 1d9f6a5..0000000 --- a/docs/robokit/motion-planning/index.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - Motion Planning · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Motion Planning

-
Planning around a shelfA G1 humanoid squatting and reaching around a raised box
Planning around a shelf.A humanoid reaching around a box while balancing.

robokit.helpers.motion_plan plans a collision-free joint trajectory from a start state to a goal pose or joint state. Offline planning solves one motion. Batch planning solves several at once. Online planning updates a trajectory while the robot moves.

The snippets assume robot, scene, device, and start_q are defined. Runnable examples and visualizations are in src/robokit/examples/motion_plan.

How Planning Works

MotionPlanner runs four steps:

  1. For a pose goal, IK finds goal joint states. A joint goal skips IK.
  2. The planner samples initial trajectories from the start to those goals.
  3. GradientTrajectoryOptimizer or MppiTrajectoryOptimizer refines them for the goal, collisions, joint limits, and smoothness.
  4. solve_online() returns the trajectory. solve_offline() first retimes it, if the last stage sets retime.

The trajectory candidate count must be divisible by the IK goal count.

flowchart TD - MP[MotionPlanner] - IK[IKSolver] - SAMPLE[Sample initial trajectories] - OPT[GradientTrajectoryOptimizer<br/>or<br/>MppiTrajectoryOptimizer] - ONLINE[Return trajectory] - OFFLINE[Optional retime] - RESULT[Return trajectory] - - MP -->|goal pose| IK - IK --> SAMPLE - MP -->|goal joint state| SAMPLE - SAMPLE --> OPT - OPT -->|solve_online| ONLINE - OPT -->|solve_offline| OFFLINE - OFFLINE --> RESULT

Basic Example

Plan to a hand pose past a box, then sample the plan at 50 Hz:

python
import numpy as np
-import warp as wp
-from robokit.assets.robots.arms import franka_panda
-from robokit.geom import BoxGeom, WarpScene
-from robokit.helpers.motion_plan import MotionPlanner, presets
-from robokit.robo import Robot
-
-device = "cuda:0" if wp.is_cuda_available() else "cpu"
-robot = Robot.load(
-    franka_panda.URDF_PATH, load_collision_spheres=True, collision_spheres_path=franka_panda.COLLISION_SPHERE_PATH
-)
-
-# A box with half extents (0.04, 0.25, 0.2) m standing in front of the arm.
-T_world_box = np.eye(4, dtype=np.float32)[None]
-T_world_box[0, :3, 3] = (0.45, 0.0, 0.2)
-box = BoxGeom(
-    np.array([[0.04, 0.25, 0.2]], np.float32),
-    np.array([0, 1], np.int32),
-    poses=wp.array(T_world_box, dtype=wp.mat44, device=device),
-)
-scene = WarpScene(1, device).add(box)
-planner = MotionPlanner(presets.offline_pose_lbfgs, robot, "panda_hand", scene=scene, device=device)
-
-start_q = robot.spec.midrange_q.astype(np.float32)
-T_world_goal = np.array([0.45, 0.35, 0.25, 0.0, 1.0, 0.0, 0.0], np.float32)  # x, y, z, qw, qx, qy, qz
-result = planner.solve_offline_numpy([start_q, {"panda_hand": T_world_goal}])
-
-q_traj = result.q_traj[0]  # planned joint trajectory, (frames, dofs)
-motion_time = result.motion_time[0]  # seconds, at the robot's velocity, acceleration and jerk limits
-q_control = result.interpolate(0.02)[0]  # one joint sample every 0.02 s, (samples, dofs)

The scene layout and batch size are fixed once the planner allocates its buffers. Move obstacles with box.update(...); build a new planner only when the layout or batch size changes.

Offline Planning

solve_offline_numpy() and solve_offline_torch() take a list of waypoints. The first is the start; the last is the goal. Each waypoint is a joint array q or a dict {link_name: T_world_target} of 7D poses or 4x4 matrices. Inputs may have a leading batch dimension; see Batch Planning.

Joint Goals

A joint goal skips goal IK. Use a joint preset:

python
planner = MotionPlanner(presets.offline_joint_lbfgs, robot, "panda_hand", device=device)
-result = planner.solve_offline_numpy([start_q, target_q])

Waypoints

Waypoints between start and goal can be joint arrays or poses:

python
T_world_mid = np.array([0.5, 0.0, 0.5, 0.0, 1.0, 0.0, 0.0], np.float32)
-result = planner.solve_offline_numpy([start_q, {"panda_hand": T_world_mid}, target_q])
-q_mid = result.q_traj[:, result.waypoint_indices[1]]

The planner then:

  1. Solves IK for each pose waypoint, seeded from its neighbors.
  2. Optimizes one trajectory with every waypoint locked on a frame; the robot passes through without stopping.
  3. Gives each segment frames by the time it needs (resplit_waypoints=False splits them evenly).
  4. Retimes the whole trajectory.

waypoint_indices gives each waypoint's frame. Pose waypoints name the planner's target links; planner.ik solves their IK alone. 10_waypoints.py compares one global optimization with per-segment ones, and 12_interpolated_waypoints.py shows resplitting.

Three options take one entry per segment, waypoint i to i + 1:

  • segment_check_collision=False ignores the scene there, e.g. for the final grasp approach of [start_q, pre_grasp_q, grasp_q] with (True, False).
  • segment_fixed_duration fixes a segment's time in seconds; None segments are retimed. The durations must fit in num_timesteps.
  • segment_locked=True keeps a segment on the straight line between its waypoints, e.g. a 1.5 s hold while a gripper closes: segment_fixed_duration=(None, 1.5), segment_locked=(False, True).

To plan for some joints only, such as one arm of a bimanual robot, call set_active_joint_mask before the first solve.

Speed and Control Rate

Offline plans are retimed to the fastest motion within the robot's velocity limits and the planner's acceleration_limit and jerk_limit. RetimeConfig.speed_scale runs slower: 0.5 takes twice as long. result.interpolate(dt, speed_scale) samples the plan every dt seconds and keeps each waypoint as a sample. Its speed_scale slows the plan further without replanning. 11_interpolated_speed.py sets both with Viser sliders.

Batch Planning

Batch planning solves several start-goal pairs in one call. Starts and goals get a leading batch dimension. scene_indices[i] picks the collision scene for query i; queries and scenes need not match in number.

Here four queries use two scenes:

text
query:          0  1  2  3
-scene_indices:  0  0  1  1

The call is the same:

python
# start_q_batch: shape (4, dofs)
-# T_world_target_batch: shape (4, 7)
-scene_indices = np.array([0, 0, 1, 1], dtype=np.int32)
-
-# Here scene is a WarpScene containing scene 0 and scene 1.
-planner = MotionPlanner(presets.offline_pose_lm, robot, "panda_hand", scene=scene, device=device)
-result = planner.solve_offline_numpy([start_q_batch, {"panda_hand": T_world_target_batch}], scene_indices=scene_indices)
-
-q_traj_batch = result.q_traj

For a shared scene, use a one-scene WarpScene and fill scene_indices with zeros. A scene can mix boxes, meshes, and other geometry.

Online Planning

Online planning runs in a control loop. Each step plans from the current state and moves the robot to the next trajectory frame. Goals and obstacle poses may change before any solve.

MPPI keeps its trajectory between solves. Solve goal IK when the pose target changes and pass the result as target_q.

python
planner = MotionPlanner(presets.online_pose_mppi, robot, "panda_hand", scene=scene, device=device)
-
-current = robot.state(q=wp.array(start_q[None], dtype=wp.float32, device=device))
-T_world_target_wp = wp.array(
-    [[0.60, 0.0, 0.40, 0.0, 1.0, 0.0, 0.0]],
-    dtype=wp_vec7,
-    device=device,
-)
-target_q_wp = wp.clone(
-    planner.ik.solve(T_world_target_wp.reshape((1, 1)), init_state=current, rest_state=current).q[:1]
-)
-
-online_state = None
-for _ in range(20):
-    trajectory, online_state = planner.solve_online(
-        current,
-        T_world_target=T_world_target_wp,
-        target_q=target_q_wp,
-        online_state=online_state,
-    )
-    wp.copy(current.q, trajectory.q[:, 1])
-    current.invalidate()

For L-BFGS, use presets.online_pose_lbfgs. It solves pose IK itself, so target_q is optional.

To move obstacles, call geom.update(...) before the next solve. In tight loops, allocate input Warp arrays once, outside the loop.

Customization

Objectives

Each optimizer stage holds a list of tasks with their weights, margins and limits. Edit a copy of a preset:

python
from copy import deepcopy
-from robokit.helpers.motion_plan import presets
-
-stage = deepcopy(presets.offline_pose_lm.stages[0])
-stage.task("collision").weight = 1000.0
-stage.task("collision").margin = 0.03
-stage.task("position_limit").dense_task.weight = 200.0

For a new objective, list only the tasks you want. Arguments set to a MotionPlanContext member, such as ctx.TARGET or ctx.START_Q, are filled in for each query:

python
from robokit.helpers.motion_plan import GradientTrajectoryOptimizerConfig, MotionPlanContext as ctx
-from robokit.terms.dense.frame_task import FrameTask
-from robokit.terms.sparse.trajectory_smoothness_task import TrajectorySmoothnessTask
-from robokit.terms.trajectory_task import TrajectoryTask
-
-target = FrameTask(
-    frame_index=ctx.TARGET_LINKS, T_world_target=ctx.TARGET, position_weight=400.0, orientation_weight=200.0
-)
-stage = GradientTrajectoryOptimizerConfig(
-    terms=[
-        TrajectoryTask(target, frame_indices=[-1], name="target"),
-        TrajectorySmoothnessTask(weight=5.0),
-    ]
-)

Goal IK has its own task list, config.goal_ik.terms.

Point clouds and depth

SdfVolume.from_mesh, from_points, and from_depth build collision grids. Points mark occupied cells. Depth also marks free space, given the camera intrinsics and T_world_camera (OpenCV axes: right, down, forward), so later depth can clear old points. Unknown space is free; pass unknown_is_occupied=True to block it.

python
workspace_min = np.array([-0.2, -0.2, 0.2])
-workspace_max = np.array([0.2, 0.2, 1.0])
-volume = SdfVolume.from_points(points, workspace_min, workspace_max)
-scene = WarpScene(1, "cuda:0").add(VolumeGeom([volume], np.array([0, 1], dtype=np.int32)))
-volume.update(depth=depth, intrinsics=intrinsics, T_world_camera=T_world_camera)

Pass scene to the planner and call volume.update as observations arrive; reset=True forgets old ones. Bounds, device and resolution are fixed; to change them, create a new volume and call VolumeGeom.update. Bounds crop observations; they are not walls. Pass device Warp arrays to avoid uploads. Points alone cannot mark free space, so add calibrated depth when you can.

Humanoids

presets.humanoid_offline_lbfgs, humanoid_online_lbfgs and humanoid_online_mppi plan both hands of a floating-base humanoid with its feet planted. Their feet_position, feet_rotation, balance and posture terms are stubs. Fill them in once the standing pose is known, through config.goal_ik.task(name) and config.stages[0].task(name); examples 08 and 09 show how. Floating-base results also include T_world_base_traj.

- -
- -
-
- - - - - diff --git a/docs/robokit/opt-gd/index.html b/docs/robokit/opt-gd/index.html deleted file mode 100644 index 19f85db..0000000 --- a/docs/robokit/opt-gd/index.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - GDOptimizer · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Optimizers
- -
-

GDOptimizer

-

Implements batched gradient descent, Adam, and AdamW on manifold-valued variables. Source: src/robokit/opt/gd_optimizer.py.

GD

$$\begin{array}{l} -\textbf{input}: x_0 \text{ (initial var)},\ c \text{ (scalar cost)},\ \eta \text{ (learning\_rate)},\ T \text{ (max\_iter)} \\[1mm] -\textbf{for}\ t = 1, \dots, T\ \textbf{do} \\ -\hspace{5mm} g_t \leftarrow \nabla c(x_{t-1}) \\ -\hspace{5mm} x_t \leftarrow x_{t-1} \oplus (-\eta\, g_t) \\ -\textbf{return}\ x_T -\end{array}$$

Adam / AdamW

AdamW is Adam with weight_decay > 0. In GD and Adam, gradient_clip clamps each entry of $g_t$, and weight_decay adds the decoupled decay below.

$m$ and $v$ are moving averages of $g$ and $g^2$, with decay rates $\beta_1$ and $\beta_2$. Both start at zero, so early estimates lean toward zero. $\widehat{m}_t$ and $\widehat{v}_t$ correct this by dividing by $1-\beta_1^t$ and $1-\beta_2^t$.

$$\begin{array}{l} -\textbf{input}: x_0 \text{ (initial var)},\ c \text{ (scalar cost)},\ \eta \text{ (learning\_rate)}, \\ -\hspace{13mm} \beta_1, \beta_2, \epsilon,\ \lambda \text{ (weight\_decay)},\ T \text{ (max\_iter)} \\[1mm] -\textbf{initialize}: m_0 \leftarrow 0,\ v_0 \leftarrow 0 \\[1mm] -\textbf{for}\ t = 1, \dots, T\ \textbf{do} \\ -\hspace{5mm} g_t \leftarrow \nabla c(x_{t-1}) \\ -\hspace{5mm} m_t \leftarrow \beta_1 m_{t-1} + (1 - \beta_1)\, g_t,\qquad -v_t \leftarrow \beta_2 v_{t-1} + (1 - \beta_2)\, g_t^2 \\ -\hspace{5mm} \widehat{m}_t \leftarrow m_t / (1 - \beta_1^t),\qquad -\widehat{v}_t \leftarrow v_t / (1 - \beta_2^t) \\ -\hspace{5mm} \delta_t \leftarrow -\eta\, \widehat{m}_t / (\sqrt{\widehat{v}_t} + \epsilon) \\ -\hspace{5mm} \textbf{if}\ \lambda > 0 \\ -\hspace{10mm} \delta_t \leftarrow \delta_t - \eta \lambda\, x_{t-1} -\quad \text{(decoupled weight decay)} \\ -\hspace{5mm} x_t \leftarrow x_{t-1} \oplus \delta_t \\ -\textbf{return}\ x_T -\end{array}$$

- -
- -
-
- - - - - diff --git a/docs/robokit/opt-lbfgs/index.html b/docs/robokit/opt-lbfgs/index.html deleted file mode 100644 index 2903a23..0000000 --- a/docs/robokit/opt-lbfgs/index.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - LBFGSOptimizer · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Optimizers
- -
-

LBFGSOptimizer

-

Implements batched L-BFGS on manifold-valued variables. Source: src/robokit/opt/lbfgs_optimizer.py.

Overview

For the variable $\mathbf{x}$, each iteration computes the cost $c(\mathbf{x})$ and gradient $\mathbf{g}=\nabla c(\mathbf{x})$. $\mathbf{g}$ and the history give a descent direction $\mathbf{d}$. With no history, $\mathbf{d}$ follows $-\mathbf{g}$. A line search picks a step size $\alpha^*$, and $\mathbf{x}$ moves by $\alpha^*\mathbf{d}$.

flowchart TB - I[Initial variable x] --> E["Cost c(x) and gradient g"] - E --> D["Descent direction d<br/><i>computed using g and history</i>"] - D --> L["Line-search step size α*"] - L --> U[Update x] - U -- Next iteration --> E

Descent direction

The direction $\mathbf{d}$ comes from the gradient $\mathbf{g}$ and a short history of steps. Iteration $t$, from $\mathbf{x}_t$ to $\mathbf{x}_{t+1}$, adds one history pair:

  • $\mathbf{s}_t = \alpha_t^* \mathbf{d}_t$: the tangent step applied to $\mathbf{x}_t$.
  • $\mathbf{y}_t = \mathbf{g}_{t+1} - \mathbf{g}_t$: the gradient change from $\mathbf{s}_t$. To first order,

$$\mathbf{g}(\mathbf{x}_t+\mathbf{s}_t) -\approx \mathbf{g}(\mathbf{x}_t)+J_{\mathbf{g}}(\mathbf{x}_t)\mathbf{s}_t.$$

The gradient Jacobian is the cost Hessian, $J_{\mathbf{g}}(\mathbf{x})=H(\mathbf{x})=\nabla^2 c(\mathbf{x})$, so $\mathbf{y}_t\approx H(\mathbf{x}_t)\mathbf{s}_t$.

Newton's method uses $\mathbf{d}=-H(\mathbf{x})^{-1}\mathbf{g}$. L-BFGS replaces the exact inverse with an approximation $A$:

$$A\approx H(\mathbf{x})^{-1}, -\qquad -\mathbf{d}=-A\mathbf{g}.$$

Below, $i$ indexes the history pairs, oldest first. $A_i$ is the approximation after $i$ pairs, with $A_0=\gamma I$. BFGS adds pair $i$ by

$$A_{i+1}=V_iA_iV_i^\top+\rho_i \mathbf{s}_i \mathbf{s}_i^\top, -\qquad -V_i=I-\rho_i \mathbf{s}_i \mathbf{y}_i^\top, -\qquad -\rho_i=\frac{1}{\mathbf{y}_i^\top \mathbf{s}_i}.$$

A pair is used only when $\mathbf{y}_i^\top\mathbf{s}_i>0$; otherwise it is dropped. The update enforces $A_{i+1}\mathbf{y}_i=\mathbf{s}_i$ and keeps $A_{i+1}$ symmetric positive definite.

Why does the update work?
  1. Why does it enforce $A_{i+1}\mathbf{y}_i=\mathbf{s}_i$?

Since $\rho_i(\mathbf{y}_i^\top \mathbf{s}_i)=1$, $V_i^\top \mathbf{y}_i=\mathbf{y}_i-\rho_i\mathbf{y}_i (\mathbf{y}_i^\top \mathbf{s}_i)=\mathbf{0}$. Substituting into the update gives

$$A_{i+1}\mathbf{y}_i -=V_iA_iV_i^\top \mathbf{y}_i -+\rho_i\mathbf{s}_i(\mathbf{y}_i^\top \mathbf{s}_i) -=\mathbf{0}+\rho_i\mathbf{s}_i(\mathbf{y}_i^\top \mathbf{s}_i) -=\mathbf{s}_i.$$

  1. Why does it stay symmetric positive definite?

Let $A_i$ be symmetric positive definite. Then $V_iA_iV_i^\top$ and $\rho_i\mathbf{s}_i\mathbf{s}_i^\top$ are symmetric. If $\mathbf{y}_i^\top\mathbf{s}_i>0$, then $\rho_i>0$, and for any nonzero $\mathbf{z}$,

$$\mathbf{z}^\top A_{i+1}\mathbf{z} -=(V_i^\top \mathbf{z})^\top A_i(V_i^\top \mathbf{z}) -+\rho_i(\mathbf{s}_i^\top \mathbf{z})^2>0.$$

So $A_{i+1}$ stays symmetric positive definite.

After all pairs, $A$ approximates $H(\mathbf{x})^{-1}$ and gives $\mathbf{d}=-A\mathbf{g}$. L-BFGS never builds the $n\times n$ matrix $A$. A two-loop recursion over $m$ history pairs computes $A\mathbf{g}$ in $O(mn)$ memory and $O(mn)$ operations, where $m\ll n$.

Normalization. By default, normalize_direction=False keeps the direction's length. Set it to True to scale the direction to unit length before the line search.

How does the matrix update become two loops?

The direction needs $A_m\mathbf{g}$, where $m$ is the number of history pairs. Expanding $A_m\mathbf{g}$ with the BFGS update gives

$$\begin{aligned} -A_m\mathbf{g} -&=V_{m-1}A_{m-1}(V_{m-1}^\top\mathbf{g}) -+\rho_{m-1}\mathbf{s}_{m-1} -(\mathbf{s}_{m-1}^\top\mathbf{g}) \\ -&=V_{m-1}\Big[ -V_{m-2}A_{m-2}(V_{m-2}^\top V_{m-1}^\top\mathbf{g}) -+\rho_{m-2}\mathbf{s}_{m-2} -(\mathbf{s}_{m-2}^\top V_{m-1}^\top\mathbf{g}) -\Big] \\ -&\quad+\rho_{m-1}\mathbf{s}_{m-1} -(\mathbf{s}_{m-1}^\top\mathbf{g}) \\ -&=\cdots \\ -&=V_{m-1}\cdots V_0A_0 -(V_0^\top\cdots V_{m-1}^\top\mathbf{g}) \\ -&\quad+\cdots+\rho_{m-1}\mathbf{s}_{m-1} -(\mathbf{s}_{m-1}^\top\mathbf{g}). -\end{aligned}$$

The first loop computes the product $V_0^\top\cdots V_{m-1}^\top\mathbf{g}$. Define $\mathbf{q}_0=V_0^\top\cdots V_{m-1}^\top\mathbf{g}$. Each step goes from $\mathbf{q}_{i+1}$ to $\mathbf{q}_i$:

$$\mathbf{q}_i -=V_i^\top\mathbf{q}_{i+1} -=\mathbf{q}_{i+1} --\rho_i\mathbf{y}_i(\mathbf{s}_i^\top\mathbf{q}_{i+1}).$$

Starting from $\mathbf{q}_m=\mathbf{g}$, the loop runs backward from $i=m-1$ to $i=0$ and yields $\mathbf{q}_0$.

The second loop evaluates the remaining terms, starting from $A_0\mathbf{q}_0$. Define $\mathbf{r}_0=A_0\mathbf{q}_0=\gamma\mathbf{q}_0$. Each step goes from $\mathbf{r}_i$ to $\mathbf{r}_{i+1}$:

$$\mathbf{r}_{i+1} -=V_i\mathbf{r}_i -+\rho_i\mathbf{s}_i(\mathbf{s}_i^\top\mathbf{q}_{i+1}) -=\mathbf{r}_i+\rho_i\mathbf{s}_i -(\mathbf{s}_i^\top\mathbf{q}_{i+1}-\mathbf{y}_i^\top\mathbf{r}_i).$$

Starting from $\mathbf{r}_0$, the loop runs forward from $i=0$ to $i=m-1$ and yields $\mathbf{r}_m=A_m\mathbf{g}$.

Pseudocode:

$$\begin{array}{l} -\textbf{input}: \mathbf{g},\ \text{history},\ \gamma \\ -\textbf{initialize}: \mathbf{q}_m\leftarrow\mathbf{g} \\ -\textbf{for }i=m-1,\ldots,0 \\ -\hspace{5mm} \mathbf{q}_i\leftarrow\mathbf{q}_{i+1} --\rho_i\mathbf{y}_i(\mathbf{s}_i^\top\mathbf{q}_{i+1}) \\ -\mathbf{r}_0\leftarrow\gamma\mathbf{q}_0 \\ -\textbf{for }i=0,\ldots,m-1 \\ -\hspace{5mm} \mathbf{r}_{i+1}\leftarrow\mathbf{r}_i -+\rho_i\mathbf{s}_i -(\mathbf{s}_i^\top\mathbf{q}_{i+1}-\mathbf{y}_i^\top\mathbf{r}_i) \\ -\textbf{return}: \mathbf{d}\leftarrow-\mathbf{r}_m -\end{array}$$

Initial scale. The start is $A_0=\gamma I$, with $\gamma$ fixed or adaptive. Barzilai-Borwein scaling picks $\gamma$ from the newest pair $(\mathbf{s}_{m-1},\mathbf{y}_{m-1})$, so $\gamma\mathbf{y}_{m-1}$ best fits $\mathbf{s}_{m-1}$:

$$\gamma -=\frac{\mathbf{s}_{m-1}^\top\mathbf{y}_{m-1}} -{\mathbf{y}_{m-1}^\top\mathbf{y}_{m-1}}.$$

The line search tries a fixed set of step sizes $\alpha_j$ at once and picks

$$\alpha^* -= -\begin{cases} -\displaystyle -\max_j\left\{ -\alpha_j -\;\middle|\; -c(\mathbf{x}\oplus\alpha_j\mathbf{d}) -\le c(\mathbf{x})+c_1\alpha_j\mathbf{g}^\top\mathbf{d} -\right\}, -& \text{if any candidate passes}, -\\[3mm] -0, -& \text{otherwise}. -\end{cases}$$

Since $A$ is positive definite, $\mathbf{g}^\top A\mathbf{g}>0, \mathbf{g}^\top\mathbf{d}<0$. The Armijo condition $c(\mathbf{x}\oplus\alpha_j\mathbf{d})\le c(\mathbf{x})+c_1\alpha_j\mathbf{g}^\top\mathbf{d}$ requires the actual decrease to be at least $c_1$ of the predicted first-order decrease. $c_1$ defaults to $10^{-4}$; a larger value requires more decrease.

- -
- -
-
- - - - - diff --git a/docs/robokit/opt-lm/index.html b/docs/robokit/opt-lm/index.html deleted file mode 100644 index 08de06e..0000000 --- a/docs/robokit/opt-lm/index.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - LMOptimizer · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Optimizers
- -
-

LMOptimizer

-

Implements batched Levenberg-Marquardt on manifold-valued variables. Source: src/robokit/opt/lm_optimizer.py.

Overview

For the variable $\mathbf{x}$, each iteration computes the residual vector $\mathbf{r}(\mathbf{x})$, the cost $c(\mathbf{x})=\frac12\|\mathbf{r}(\mathbf{x})\|^2$ and the residual Jacobian $J$. These give a damped step $\boldsymbol{\delta}$ and a candidate $\widehat{\mathbf{x}}=\mathbf{x}\oplus\boldsymbol{\delta}$. The step comes from a model of the cost near $\mathbf{x}$, so LM compares the actual cost drop with the predicted one. The comparison decides whether $\widehat{\mathbf{x}}$ replaces $\mathbf{x}$ and whether the damping $\lambda$ grows or shrinks.

flowchart TB - X[Variable x] --> E["Compute residual r, cost c, and Jacobian J"] - E --> S["Compute damped step δ"] - S --> C["Evaluate candidate x ⊕ δ and its cost"] - C --> A["Compare actual vs predicted drop<br/><i>keep or discard candidate, update λ</i>"] - A -- Next iteration --> E

LM step

Gauss-Newton. For the cost $c(\mathbf{x})=\frac12\|\mathbf{r}(\mathbf{x})\|^2$ and a tangent step $\boldsymbol{\delta}$, to first order $\mathbf{r}(\mathbf{x}\oplus\boldsymbol{\delta})\approx \mathbf{r}(\mathbf{x})+J\boldsymbol{\delta}$.

This gives the subproblem $\min_{\boldsymbol{\delta}}\; \frac12\|\mathbf{r}(\mathbf{x})+J\boldsymbol{\delta}\|^2$, with gradient $J^\top(\mathbf{r}(\mathbf{x})+J\boldsymbol{\delta})$. Setting it to zero gives the normal equations

$$J^\top J\boldsymbol{\delta}=-J^\top\mathbf{r}(\mathbf{x}).$$

Solving it for $\boldsymbol{\delta}$ gives the candidate $\widehat{\mathbf{x}}= \mathbf{x}\oplus\boldsymbol{\delta}$. This is a Newton-like step: $J^\top\mathbf{r}(\mathbf{x})=\nabla c(\mathbf{x})$ and $J^\top J\approx H(\mathbf{x})=\nabla^2c(\mathbf{x})$.

Levenberg-Marquardt. LM adds a penalty for large steps:

$$\min_{\boldsymbol{\delta}}\quad -\frac12\left\|\mathbf{r}(\mathbf{x})+J\boldsymbol{\delta}\right\|^2 -+\frac{\lambda}{2}\left\|\boldsymbol{\delta}\right\|^2.$$

This gives

$$\left(J^\top J+\lambda I\right)\boldsymbol{\delta} -=-J^\top\mathbf{r}(\mathbf{x}).$$

A larger $\lambda$ gives a smaller step. The default linear_solver="cholesky" solves this system exactly. "cg" uses matrix-free conjugate gradient and stops at a tolerance or an iteration cap.

linear_solver="torch_cholesky" factors the dense normal equations with PyTorch in float64. It needs PyTorch and runs eagerly. Use it for wide coupled systems where factorization dominates runtime.

Trust region

At the candidate $\widehat{\mathbf{x}}$, the actual reduction is $c(\mathbf{x})-c(\widehat{\mathbf{x}})$. The Gauss-Newton model predicts

$$\begin{aligned} -\Delta c_{\mathrm{pred}} -&=\frac12\|\mathbf{r}(\mathbf{x})\|^2 --\frac12\|\mathbf{r}(\mathbf{x})+J\boldsymbol{\delta}\|^2 \\ -&=-\mathbf{r}(\mathbf{x})^\top J\boldsymbol{\delta} --\frac12(J\boldsymbol{\delta})^\top(J\boldsymbol{\delta}). -\end{aligned}$$

For $\Delta c_{\mathrm{pred}}>0$, the gain ratio compares the two:

$$\rho=\frac{c(\mathbf{x})-c(\widehat{\mathbf{x}})} -{\Delta c_{\mathrm{pred}}+\epsilon}.$$

$\epsilon\ge0$ is a small stabilizer, $10^{-8}$ by default; $0$ gives the exact ratio. A $\rho$ near $1$ means the model was accurate. LM accepts the candidate exactly when

$$\boxed{\text{accept}\iff -\Delta c_{\mathrm{pred}}>0\ \land\ \rho\ge\rho_{\min}}.$$

The default is $\rho_{\min}=10^{-3}$. With damping factor $\nu>1$, acceptance keeps $\widehat{\mathbf{x}}$ and sets $\lambda\leftarrow\lambda/\nu$ for a larger next step. Rejection keeps $\mathbf{x}$ and sets $\lambda\leftarrow\lambda\nu$ for a smaller one.

Algorithm

$$\begin{array}{l} -\textbf{input}: \mathbf{x}_0,\quad -\lambda_0,\quad -\nu>1 \text{ (damping update factor)},\quad -\rho_{\min} \text{ (acceptance threshold)}, \\ -\hspace{13mm} -\epsilon \text{ (numerical stabilizer)},\quad -[\lambda_{\min},\lambda_{\max}],\quad -T \text{ (iterations)} \\[1mm] -\textbf{initialize}: \mathbf{x}\leftarrow\mathbf{x}_0,\ \lambda\leftarrow\lambda_0 \\[1mm] -\textbf{for}\ t=1,\dots,T\ \textbf{do} \\ -\hspace{5mm} \mathbf{r}\leftarrow\mathbf{r}(\mathbf{x}),\quad -J\leftarrow J(\mathbf{x}),\quad -c\leftarrow\tfrac12\|\mathbf{r}\|^2 \\ -\hspace{5mm} \text{solve } (J^\top J+\lambda I)\boldsymbol{\delta}=-J^\top\mathbf{r} -\quad \text{for } \boldsymbol{\delta} \\ -\hspace{5mm} \widehat{\mathbf{x}}\leftarrow\mathbf{x}\oplus\boldsymbol{\delta}, -\quad -\text{evaluate }c(\widehat{\mathbf{x}})=\tfrac12\|\mathbf{r}(\widehat{\mathbf{x}})\|^2 \\ -\hspace{5mm} \Delta c_{\mathrm{pred}}\leftarrow -\tfrac12\|\mathbf{r}\|^2-\tfrac12\|\mathbf{r}+J\boldsymbol{\delta}\|^2 \\ -\hspace{5mm} \textbf{if}\ \Delta c_{\mathrm{pred}}>0\quad\textbf{and}\quad -\dfrac{c-c(\widehat{\mathbf{x}})}{\Delta c_{\mathrm{pred}}+\epsilon}\ge\rho_{\min} \\ -\hspace{10mm} \mathbf{x}\leftarrow\widehat{\mathbf{x}},\quad -\lambda\leftarrow\lambda/\nu \\ -\hspace{5mm} \textbf{else} \\ -\hspace{10mm} \lambda\leftarrow\lambda\nu -\quad \text{($\mathbf{x}$ stays unchanged)} \\ -\hspace{5mm} \lambda\leftarrow -\operatorname{clip}(\lambda,\lambda_{\min},\lambda_{\max}) \\ -\textbf{return}\ \mathbf{x} -\end{array}$$

- -
- -
-
- - - - - diff --git a/docs/robokit/optimization/index.html b/docs/robokit/optimization/index.html deleted file mode 100644 index b96c2e8..0000000 --- a/docs/robokit/optimization/index.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - Optimization · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Optimization

-

robokit.opt solves batched nonlinear optimization problems on the GPU. Variables live on manifolds. Costs come from robokit.terms. IK, motion planning, retargeting, hand-eye calibration and grasp synthesis build on it.

Overview

A solver keeps a population of candidates per problem. An optimizer moves each candidate. A sampler draws tangent noise around them.

flowchart TD - subgraph Solver - PS[PopulationSolver] - end - subgraph Optimizers - OPT["(Sparse) LMOptimizer · LBFGSOptimizer · GDOptimizer"] - end - subgraph Samplers - SMP["RobertsSampler · GaussianSampler"] - end - subgraph Problem - TASKS["Tasks: ResidualTask · GradientTask"] - VAR["VarValues: container of multiple Var"] - end - PS -- builds --> OPT - PS -- builds --> SMP - PS -- costs --> TASKS - OPT -- residuals · Jacobians --> TASKS - OPT -- tangent steps --> VAR - SMP -- tangent noise --> VAR

One round over the population:

flowchart LR - subgraph Solver - direction LR - N["sample<br/><i>Sampler</i>"] --> U["optimize<br/><i>Optimizer</i>"] - U --> S["score<br/><i>Task</i>"] --> K[select] - K -.next round.-> N - end
  • sample: a sampler moves each candidate by the last scores, then draws new ones around it.
  • optimize: the optimizer moves every candidate toward lower cost.
  • score: the tasks cost every candidate.
  • select: keep the best candidates per problem.

Each method is a schedule over these four. Multi-candidate LM: optimize, score, select. MPPI: sample, score. ES: sample, score, select.

python
state = robot.state(q=q_init)  # a Var leaf
-task = FrameTask(robot, frame_index=ee, T_world_target=target)  # a Task
-
-optimizer = LBFGSOptimizer(terms=[task], device=state.q.device)
-values, costs = optimizer.solve(VarValues({VarKey.ROBOT: state}))  # one final cost per returned instance
-state = values.get(VarKey.ROBOT)
-
-values = VarValues({VarKey.ROBOT: state, Key.EE: ee_traj})  # co-optimize multiple Vars
-values, costs = LBFGSOptimizer(terms=[task, ee_task], device=state.q.device).solve(values)
-
-solver = PopulationSolver(terms=[[task]], config=cfg, device=state.q.device)
-best_values, best_costs = solver.solve(seed_values)  # B × num_candidates candidates in, the candidates

Variables

Var is an optimizable value on a manifold, such as joint angles or an SE(3) pose. VarValues maps keys to Var instances. Optimizers and tasks see it as one variable.

flowchart LR - OPT[Optimizer] -->|update| VV[VarValues] - OPT -->|evaluate| TASK[Tasks] - TASK -->|read| VV - TASK -->|results| OPT

Common methods:

  • integrate(delta, out=None) applies a tangent step. Joint angles add it; poses use T·exp(δ).
  • accept(mask, proposed) takes the proposed rows where mask is set and keeps the rest.
  • invalidate() marks the Var instances as changed and invalidates their caches.

VarValues lays out tangent columns in insertion order:

text
tangent columns: [   robot (T=7)   |   ee (T=6)   ]
-                     offset=0          offset=7

Subclass VarValues to give a group its own tangent or sampling rule. For example, one variable is optimized and the rest follow from it; the tangent then covers only the free one.

Tasks

Tasks come from robokit.terms. Both interfaces subclass Task:

TermContractConsumed by
ResidualTaskresidual vector r (+ Jacobian)LM; GD/LBFGS residual modes
GradientTaskper-batch scalar cost (+ gradient)GD/LBFGS

SparseTask is a ResidualTask with a sparse Jacobian. EagerTask is a ResidualTask with hooks for work outside captured CUDA graphs.

A task can implement both. SmoothnessTask(ResidualTask, GradientTask) gives residuals and gradients.

Optimizers

Optimizers come from robokit.opt. All three share one lifecycle:

python
class Optimizer:
-    def solve(self, var: VarValues) -> Tuple[VarValues, wp.array]:
-        """`reset` then `max_iter` × `step`, in place; returns `var` and one cost per candidate."""
-
-    def reset(self, var: VarValues) -> None: ...
-    def step(self, var: VarValues) -> None: ...
OptimizerMethod
LMOptimizerDamped Gauss–Newton (Cholesky or CG)
LBFGSOptimizerQuasi-Newton with line search
GDOptimizerGD, Adam, or AdamW

One optimization step:

  1. Changed VarValues invalidate their caches.
  2. The optimizer calls each task's precompute(), one at a time.
  3. Tasks compute costs and derivatives, in parallel when enabled.
  4. The optimizer updates the values, or accepts or rejects a proposal.

Samplers

A sampler owns one named variable and one method:

python
class Sampler:
-    var_key: str
-
-    def reset(self) -> None:
-        """Reopen the spread at the start of a solve."""
-
-    def sample(self, var: VarValues, scores: Optional[wp.array]) -> VarValues:
-        """Move each candidate by `scores` (its costs, None before any), then draw new ones around it.
-        The population handed in is the one that moves; the returned one is the one to score."""
SamplerDraws
RobertsSamplerA low-discrepancy spread; no move
GaussianSamplerNormals around a mean moved by the scores (MPPI, ES)
ContactSamplerA copy with fresh contacts; the better one stays (grasp)

Solvers

A solver runs sampler and optimizer configs as a schedule of stages:

python
class PopulationSolver:
-    def solve(self, var: VarValues) -> Tuple[VarValues, wp.array]:
-        """`batch × num_candidates[0]` candidates in; the best per problem and its cost out."""

Each iteration of solve:

  1. sample, per Stage.sample_every: each sampler moves its candidates by the last scores, then draws new ones.
  2. optimize: the stage's optimizer steps every candidate.
  3. score: the tasks, or the score term, cost every candidate.
  4. select, at each new stage: keep its best num_candidates per problem; its optimizer takes over.
python
from robokit.helpers.grasp import ContactSamplerConfig
-from robokit.opt.sampler import GaussianSamplerConfig, RobertsSamplerConfig
-
-roberts = RobertsSamplerConfig(scale=0.2)
-mppi = GaussianSamplerConfig(num_draws=64)
-contacts = ContactSamplerConfig()
-
-# multi-candidate LM: Roberts noise spreads 64 candidates at iteration 0, LM steps them, selects narrow 64 → 4 → 1
-PopulationSolverConfig(stages=[Stage(6, 64, sample_every=6), Stage(10, 4), Stage(0, 1)], samplers=[roberts])
-# MPPI: every iteration moves each candidate by its draws' scores and draws again; a last sample
-# after the final score moves it once more, and the solve ends on the moved candidates
-PopulationSolverConfig(stages=[Stage(6)], samplers=[mppi])
-# grasp LM: every 8 iterations each candidate is joined by a copy with fresh contacts, LM steps both,
-# and the next sample keeps the better; the final select picks one of the last pair
-PopulationSolverConfig(stages=[Stage(64, 1, lm, sample_every=8)], samplers=[contacts])
- -
- -
-
- - - - - diff --git a/docs/robokit/overview/index.html b/docs/robokit/overview/index.html deleted file mode 100644 index d0b30c4..0000000 --- a/docs/robokit/overview/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Overview · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Overview

-

RoboKit

RoboKit is a high-performance, general-purpose toolkit for versatile robotic tasks. It scales from one problem to thousands in parallel. It provides a library of cost terms and optimizers that compose freely. Built-in tasks such as IK, motion planning, and retargeting are validated on real robots.

Thousands of robots solving in parallel

Thousands of robots solving in parallel.

Benchmarks

RoboKit speedups: locomotion MPC 3.4× vs DIAL-MPC; IK 12× vs PyRoKi; motion planning 3.5× vs cuRobo; hand retargeting 27× vs PyRoKi; humanoid retargeting 4× vs GMR; physics retargeting 3.5× vs SPIDER; grasp synthesis 60× vs Dex1B; RL time to score 1.7× vs mjlab; rendering calibration 57× vs EasyHEC on the easy split.

Bars are wall-clock time on the same task, baseline normalized to full width. Check the paper for benchmark details.

Optimization/Learning with Simulation

NIST AssemblyRough TerrainPen Spinning
NIST Assembly RL A Franka puts six NIST board parts in place, one after another (3× speed).Rough Terrain RL A Go1 walks up and down stairs, following the green velocity command.Pen Spinning MPC A Sharpa hand spins a pen in its fingers.
Notebook OpeningBox CarryingClimbing
Notebook Opening MPC Two XHands open a hinged ARCTIC notebook.Box Carrying MPC A G1 lifts and carries a box.Climbing MPC A G1 climbs a box on hands and knees.

Optimization with Analytic Objectives

IK Multi-link targets, fixed or floating base.Motion Planning Collision-free trajectories, offline or online.Hand-Eye Calibration Camera pose from rendered robot masks.
Humanoid Retargeting Human motion capture to a humanoid.Hand Retargeting Human hand motion to a robot hand.Grasp Optimization Force-closure grasps for any hand or body.

How it works

RoboKit framework

ComponentRoleRead more
RobotLoad URDF or MJCF models and compute batched, differentiable kinematics.Robot
ObjectivesCost terms that define a task: pose matching, collision, limits, contacts.Terms
OptimizersSampling and gradient methods that minimize the objectives in parallel.Optimization
AccelerationFast geometry and rendering for contact-rich and calibration tasks.Geometry
DistillationTrain policies on solver outputs for even faster inference.

Installation

Requires Python 3.8 or newer:

shell
uv add robokit      # or: pip install robokit

PyTorch is optional. See Installation for source installs and extras.

Citation

bibtex
@inproceedings{ye2026robokit,
-  title     = {RoboKit: Accelerating Parallel Differentiable Optimization for Robot Learning},
-  author    = {Ye, Jianglong and Peng, Xuanbin and Mc Gartoll, Conor and Jing, Changwei and Wei, Lai and Chen, Jiali and Zou, Xueyan and Wang, Xiaolong},
-  booktitle = {Conference on Robot Learning (CoRL)},
-  year      = {2026}
-}
- -
- -
-
- - - - - diff --git a/docs/robokit/quickstart/index.html b/docs/robokit/quickstart/index.html deleted file mode 100644 index a81d9c7..0000000 --- a/docs/robokit/quickstart/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Quickstart · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Quickstart

-

Try it without installing

Run this to start the interactive IK gallery:

shell
uvx --from robokit python -m robokit.gallery.ik

Drag targets, switch robots, and adjust weights. Replace ik with any gallery below.

IK target tracking and robot switchingHumanoid tracking hand targets while balancingMotion planning around a shelf
ik Drag targets and tune IK weights.ik_legged Balance humanoids and quadrupeds.motion_plan Plan motions around obstacles.
Human motion retargeted to a G1 humanoidHumanoid moving a clothes stand with contact constraintsHand-object retargeting across DexMachina, GigaHands, and OakInk2
humanoid_retargeting Retarget human motion to humanoids.humanoid_retargeting_contact Retarget humanoids with object contacts.hand_retargeting_contact Retarget hands with object contacts.
XHand on an xArm7 replaying a captured hand motionKUKA iiwa arm moving through a smooth joint motionA ParaHome cutting-board clip retargeted whole-body
hand_retargeting Retarget hands onto any base, online or offline.robot_models Browse robots, collision spheres, and frames.full_body_retargeting Retarget whole-body human-object interaction.

Solve one IK problem

After installing, this is the whole program:

python
from robot_descriptions.loaders.yourdfpy import load_robot_description
-
-from robokit.helpers.ik import IKSolver, presets
-from robokit.robo import Robot
-
-robot = Robot.load(load_robot_description("panda_description"))
-ik = IKSolver(presets.basic, robot=robot, target_links="panda_hand")
-
-T_world_target = [0.5, 0.2, 0.5, 0.0, 0.0, 1.0, 0.0]  # x, y, z, qw, qx, qy, qz
-state = ik.solve_numpy(T_world_target)
-print(state.q.numpy()[0])  # joint positions

IK uses the GPU when one is visible, else the CPU.

More examples

Galleries are interactive demos. For code to copy, open a runnable script below. Paths are relative to src/robokit/examples.

DirectoryScripts
ik01_basic.py, 02_smooth.py, 03_batch.py, 04_torch.py, 05_bimanual.py, 06_mobile.py, 07_mimic_joints.py, 08_collision.py, 09_self_collision.py, 10_humanoid.py, 11_manipulability.py, 12_heterogeneous_collision.py
motion_plan01_online_mppi.py, 02_offline_lbfgs.py, 03_offline_batch.py, 04_online_lbfgs.py, 05_q_goal.py, 06_heterogeneous.py
humanoid_retargeting01_online.py, 02_collision.py, 03_self_collision.py, 04_offline.py, 05_batch.py, 06_online_batch.py, 07_contact.py, 08_terrain.py, 09_alignment.py, 10_full_body.py, 11_full_body_batch.py
hand_retargeting01_online.py, 02_offline.py, 03_batch.py, 04_arm.py, 05_online_batch.py, 06_contact.py, 07_batch_contact.py
hand_eye_calibration01_sim_rgb.py, 02_sim_mounted.py, 03_sim_depth.py, 04_real_xarm.py, 05_sim_offsets.py, 06_sim_qpos.py
grasp01_basic.py, 02_annealed_gd.py
geom01_basic.py, 02_robot.py, 03_heterogeneous_batch.py, 04_lod.py
opt01_rosenbrock.py, 02_solvers.py, 03_multi_candidate.py, 04_curve_fit.py, 05_mpc_pendulum.py, 06_mpc_navigation.py, 07_ilqr_pendulum.py
sim_mpc01_sharpa_oakink.py, 02_xhand_arctic.py, 03_g1_climb.py, 04_g1_carry.py, 05_g1_amass.py, 06_leap_cube.py, 07_sharpa_pen.py, 08_sharpa_coin.py, 09_sharpa_cap.py, 10_wuji_cube.py, 11_h1_jog.py, 12_go2_jump.py, 13_fr3_push.py, 14_fr3_balance.py, 15_batch.py, 16_demo_repair.py, 18_g1_flip.py

Example usage:

shell
uv run src/robokit/examples/ik/01_basic.py
- -
- -
-
- - - - - diff --git a/docs/robokit/ref-assets/index.html b/docs/robokit/ref-assets/index.html deleted file mode 100644 index 98723a1..0000000 --- a/docs/robokit/ref-assets/index.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - Built-in Robots & Datasets · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Built-in Robots & Datasets

-

Robot descriptions and datasets live in the HuggingFace dataset openrobokit/robokit.

Assets are under their own licenses; see license files and outstanding gaps.

Consuming

Import a named asset module and use its static Path symbols. Required files are downloaded and cached automatically. Use fetch() for paths without static symbols:

python
from robokit.assets import fetch
-from robokit.assets.robots.humanoids import unitree_g1
-
-unitree_g1.URDF_PATH
-unitree_g1.COLLISION_SPHERE_PATH
-fetch(["datasets/sfu/**"]) / "datasets/sfu/0005/x.npz"
Note

Files are pinned to one dataset commit and cached under ~/.robokit/, so imports work offline.

Self-collision ignore sets

Each robot lists the link pairs that always touch, so self-collision terms skip them. Each geometry representation has its own set. Match it to your SelfCollisionTask representation (sphere by default):

python
robot = Robot.load(
-    xhand.URDF_PATH_RIGHT,
-    load_collision_spheres=True,
-    collision_spheres_path=xhand.COLLISION_SPHERE_PATH_RIGHT,
-    self_collision_ignore_path=xhand.SPHERE_SELF_COLLISION_IGNORE_PATH_RIGHT,  # or CAPSULE_...
-)

MJCF variants have only MJ_CAPSULE_... sets. Robots without collision spheres have no sphere set.

For asset layout and authoring, see the Development Guide.

Robots

Licenses are upstream. — means unavailable or unspecified. A side, such as (right), means only that side is available.

Arms

- - - - - - - - - - - -
NameFormatSourceLicenseCollision spheresSelf-collision ignore
franka_pandaURDFManiSkillApache-2.0YAML (NVIDIA non-commercial)✓
MJCFMenagerieApache-2.0—✓
xarm6URDFUFACTORYBSD-3-ClauseYAML✓
xarm7URDFUFACTORY / SAPIENBSD-3-Clause + ——✓
MJCFMenagerieBSD-3-Clause—✓
yumiYAML——YAML✓

End effectors

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameFormatSourceLicenseCollision spheresSelf-collision ignore
ability_handURDFPSYONICMITYAML (right)✓ (right)
allegro_handURDFSimLabBSD-styleYAML (right)✓ (right)
arx_x5_gripperURDFRoboDojoMITYAML✓
barrett_handURDFBarrett TechnologyBSD-styleYAML✓
dclaw_gripperURDFROBELApache-2.0YAML✓
inspire_handURDFInspire RobotsCC-BY-NC-SA-4.0YAML✓
leap_handURDFAnanye AgarwalMITYAML (right)✓ (right)
mano_handURDF (right)MANOMANOYAML (right)✓ (right)
orcahandURDF (right)ORCAMITYAML (right)✓ (right)
paxini_handURDFPaXini—YAML (right)✓ (right)
robotiq_2f85URDFa-priceBSDYAML✓
schunk_handURDFSCHUNKGPLv3YAML (right)✓ (right)
shadow_handURDFShadow RobotBSD-3-Clause + Apache-2.0YAML (right)✓ (right)
MJCF (right)Menagerie / DexGraspNetApache-2.0 + CC-BY-NC-4.0YAML (right)—
sharpa_handURDFSharpa RoboticsApache-2.0YAML✓
umi_gripperMJCFMenagerieMIT——
xhandURDFRobotEra—YAML (right)✓ (right)
MJCF (right)RobotEra——✓
wuji_hand (Hand 1)URDFWuji TechnologyMITYAML✓
MJCFWuji TechnologyMIT——
wuji_hand_2_2 (Hand 2.2)URDFWuji TechnologyMITYAML✓
MJCFWuji TechnologyMIT——
yam_gripperURDFI2RTMITYAML✓
MJCFI2RTMIT—✓

Humanoids

- - - - - - - - - - - - - - - - - -
NameFormatSourceLicenseCollision spheresSelf-collision ignore
berkeley_humanoid_liteURDFHybrid RoboticsCC-BY-SA-4.0YAML✓
booster_k1URDFBoosterBSD-3-ClauseYAML✓
booster_t1URDFBoosterBSD-3-ClauseYAML✓
engineai_pm01URDFEngineAIBSD-3-ClauseYAML✓
fourier_gr3URDFFourierGPLv3YAML✓
pal_talosURDFPAL Robotics / Stack of TasksLGPL-3.0YAML✓
pnd_adam_liteURDFPNDboticsBSD-3-ClauseYAML✓
tienkung_liteURDFX-HumanoidOpenAtom Open Hardware 1.0YAML✓
toddlerbot_2xcURDFToddlerBotMITYAML✓
unitree_g1URDFUnitreeBSD-3-ClauseYAML✓
unitree_h1URDFUnitreeBSD-3-ClauseYAML✓
unitree_h1_2URDFUnitreeBSD-3-ClauseYAML✓

Datasets

- - - - - - - - - - - - - - -
NameFormatSourceLicense
climbNPY, OBJOmniRetarget / HolosomaApache-2.0
dex_retargetingPKLdex-retargeting / DexYCBCC-BY-NC-4.0
dexmachinaNPZDexMachina / ARCTICARCTIC
dexycbNPZ, JSON, OBJDexYCBCC-BY-NC-4.0
gigahandsNPZGigaHandsCC-BY-NC-4.0
nist_assemblyXML, NPZAssembleNIST / UW LabMIT
oakink2NPZOakInk-v2CC-BY-SA-4.0
omomoPT, PKL, OBJOMOMO / InterMimic—
parahomePKL, JSON, OBJParaHomeCC-BY-NC-SA-4.0

User-provided body models

Download MANO or SMPL-X from its official website after accepting its license. Put the files you need under ~/.robokit/body_models/, or set ROBOKIT_BODY_MODELS to another folder:

  • mano/MANO_RIGHT.pkl or mano/MANO_LEFT.pkl
  • smplx/SMPLX_NEUTRAL.npz, smplx/SMPLX_MALE.npz, or smplx/SMPLX_FEMALE.npz
python
from robokit.smplx import load_mano, load_smplx
-
-hand = load_mano()  # or load_mano("/path/to/MANO_RIGHT.pkl")
-body = load_smplx()

NPZs load directly. PKLs convert once beside the originals, so the folder must be writable. RoboKit never downloads body models.

- -
- -
-
- - - - - diff --git a/docs/robokit/rl/index.html b/docs/robokit/rl/index.html deleted file mode 100644 index 0f85db8..0000000 --- a/docs/robokit/rl/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - RL · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

RL

-
A G1 tracking a LAFAN1 danceA Go1 following joystick commands
A G1 tracks a LAFAN1 dance.A Go1 follows joystick commands.

robokit.helpers.rl trains policies on batched GPU simulations, with features including PPO, CUDA-graphed updates, and coarse-to-fine physics.

This tutorial covers the main RL workflows. The examples' envs run on MuJoCo Warp (MjWarpSim); install it with the mj and mjwarp extras, and PyTorch with a pt-* extra. Complete runnable examples are in src/robokit/examples/rl.

How RL Works

Each PPO update follows three steps:

  1. Roll the actor out for horizon steps in every world of the env.
  2. Update the actor and the critic on that rollout over several epochs.
  3. Adapt the learning rate to the policy's KL divergence.
flowchart TD - INPUT[Input<br/><br/>Env of batched GPU worlds] - - subgraph TRAINING[Training] - direction TB - ROLL[1. Roll out the actor] - UPDATE[2. Update actor and critic] - ADAPT[3. Adapt the learning rate] - ROLL --> UPDATE --> ADAPT - ADAPT -->|repeat| ROLL - end - - ACTOR[Return the actor] - - INPUT --> ROLL - ADAPT --> ACTOR

The env's tensors stay on the GPU, so no step waits for the host. After a few warm-up updates, each update replays as one CUDA graph.

Environments

An env implements Env: n worlds, the actor's and the critic's observation sizes (obs_dims), the action bound, and the names of its reward terms. Its methods take and return GPU tensors:

MethodWhat it does
obs()Returns the actor's and the critic's observations.
step(action)Acts; returns the reward, terminated and truncated flags per world, and each reward term's mean.
reset(mask)Resets the masked worlds.
curriculum(step)Moves the curriculum to step env steps.

The examples wrap MjWarpSim worlds and read sim.data.torch.qpos, qvel and ctrl, zero-copy torch views.

Basic PPO

A PPO holds an actor and a critic. Each update(env) rolls out once and updates once; the caller owns the loop. This trains on a toy env where actions near zero pay:

python
from robokit.helpers.rl import ppo
-
-learner = ppo.PPO(env.obs_dims, len(env.bound), ppo.PPOConfig())
-for _ in range(10):
-    learner.update(env)
-
-score = ppo.evaluate(env, learner.actor, steps=100)  # each reward term's mean per step, and terminations

learner.actor(obs) returns the mean action. PPOConfig holds the PPO settings, such as horizon, epochs, minibatches, lr, kl, entropy, and hidden.

Coarse-to-Fine Training

A policy can train on cheaper physics first. Build the coarse env's scene with MjWarpSim.build_coarse_spec and a CoarseConfig, then let train mix it in: over the first half of the time, an update draws it with a chance falling to 0.

python
actor = learner.train(fine, minutes, coarse_env=coarse, coarse=0.5)

Examples

ExampleTask
01_joystick.pyA Go1 or G1 tracks twist commands.
02_rough_joystick.pyA Go1 or G1 tracks twist commands on rough terrain.
03_lift.pyA Yam arm carries a cube to random targets.
04_go1_getup.pyA Go1 stands up from a random pose.
05_panda_pick.pyA Panda picks up a cube and brings it to a target.
06_leap_reorient.pyA LEAP hand turns a cube to goal after goal.
07_aloha_handover.pyTwo ALOHA arms pass a box between grippers.
08_g1_tracking.pyA G1 tracks a LAFAN1 dance.
09_go1_handstand.pyA Go1 balances on its front feet.
10_h1_gait.pyAn H1 walks at a commanded step rate and swing height.
11_aloha_peg.pyTwo ALOHA arms push a peg into a socket.
12_panda_cabinet.pyA Panda pulls a drawer open.
13_cartpole.pyA cart swings up and balances a pole.
14_nist_assembly.pyA Panda inserts pegs and meshes gears on the NIST assembly board.

Run one with uv run src/robokit/examples/rl/13_cartpole.py swingup --minutes 1.

- -
- -
-
- - - - - diff --git a/docs/robokit/robot/index.html b/docs/robokit/robot/index.html deleted file mode 100644 index fdcedd5..0000000 --- a/docs/robokit/robot/index.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - Robot · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Concepts
- -
-

Robot

-

robokit.robo computes differentiable kinematics. It splits the work among three classes:

TypeRoleHolds
RobotComputeKinematics methods; stateless
RobotSpecModel dataStructure, geometry, inertia; fixed after load
└─ RobotSpecTensorsDevice model dataRobotSpec on a device
RobotStateValuesBatched joint and base values, and results

Use Robot, robot.spec and RobotState. RobotSpecTensors is internal.

python
from robot_descriptions.loaders.yourdfpy import load_robot_description
-from robokit.robo import Robot
-
-# load a robot from a URDF file
-robot = Robot.load(load_robot_description("panda_description"))
-# access its actuated joint names
-joint_names = robot.spec.actuated_joint_names
-
-# create a state to store values
-state = robot.state()
-# compute forward kinematics for the current state
-state = robot.forward_kinematics(state)
-# access the world transforms of all links
-T_world_link = state.T_world_link

State

A RobotState holds one configuration, a batch of them, or a batch of trajectories:

python
state = robot.state(q)  # [num_dofs] or [batch, num_dofs]
-trajectory_state = robot.state(q_trajectory)  # [batch, num_frames, num_dofs]
-floating_base_state = robot.state(q, T_world_base=base)  # joint values plus a floating base

q follows robot.spec.actuated_joint_names and excludes mimic joints.

Computation

Robot methods write results into the passed state and return it:

MethodWrites
forward_kinematics(state)T_world_joint, T_world_link
compute_motion_subspace(state)S_world
└─ state.get_link_jacobian(link_idx, frame)body or spatial Jacobian
compute_center_of_mass(state)com_world
transform_collision_spheres(state)sphere and bounding-sphere world centers
transform_collision_capsules(state)link capsule world endpoints

Methods that need link transforms run forward kinematics first when the state lacks them. A fixed-base Jacobian has shape [..., 6, num_dofs]. A floating-base Jacobian adds six base columns in front.

Torch

The Torch interface takes plain tensors instead of a RobotState and supports gradients:

python
# q: torch.Tensor [..., num_dofs]
-T_world_link = robot.forward_kinematics_via_matrix_torch(q)  # torch.Tensor [..., num_links, 4, 4]
-
-# points_local: torch.Tensor [num_points, 3]
-points_world = robot.transform_link_points_torch(T_world_link, points_local, link_indices)
- -
- -
-
- - - - - diff --git a/docs/robokit/sim-mpc/index.html b/docs/robokit/sim-mpc/index.html deleted file mode 100644 index 0e89a26..0000000 --- a/docs/robokit/sim-mpc/index.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - Sim MPC · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
User Guide
- -
-

Sim MPC

-
A G1 lifting and carrying a boxA Sharpa hand spinning a pen
A G1 lifts and carries a box.A Sharpa hand spins a pen in its fingers.

robokit.helpers.sim_mpc is sampling MPC in simulation, with features including motion-capture tracking, legged gaits, hand-object manipulation, pushing, and batched scenes.

This tutorial covers the main SimMPC workflows. Rollouts run in MuJoCo Warp (MjWarpSim) or Newton (robokit.sim.newton.NewtonSim); install MuJoCo Warp with the mj and mjwarp extras. Complete runnable examples are in src/robokit/examples/sim_mpc.

How SimMPC Works

Each plan(data, t0) starts from the given state, then follows four steps:

  1. Sample control offsets around the current plan; draw zero is the plan itself.
  2. Roll every draw out in parallel worlds for horizon_steps and sum its costs.
  3. Move the plan toward the low-cost draws, until it stops improving or reaches max_iterations.
  4. Return the first ctrl_steps commands and shift the plan forward.
flowchart TD - INPUT[Input<br/><br/>Current state<br/>Sim step t0] - - subgraph PLANNING[Planning] - direction TB - SAMPLE[1. Sample control offsets] - ROLL[2. Roll out and score] - MOVE[3. Move the plan] - SAMPLE --> ROLL --> MOVE - MOVE -->|repeat| SAMPLE - end - - OUTPUT[Return the next commands] - - INPUT --> SAMPLE - MOVE --> OUTPUT

Controls are ctrl_ref plus offsets interpolated between nodes every node_steps sim steps. The sampler is robokit's MPPI, the one motion planning runs. SimMPC runs on the current Warp device; on a CUDA GPU every sim step replays a captured CUDA graph, and the CPU is much slower.

Basic SimMPC

A SimMPC combines a SimMPCConfig, a planning simulator, and ctrl_ref. This drives a cart on a slide joint from x = 0 to x = 0.3:

python
import mujoco
-import numpy as np
-from robokit.helpers.sim_mpc import SimMPC, SimMPCConfig
-from robokit.sim import MjWarpSim
-from robokit.terms import SensorTask
-
-model = mujoco.MjModel.from_xml_string("""
-<mujoco>
-  <option timestep="0.01"/>
-  <worldbody>
-    <body name="cart">
-      <joint name="x" type="slide" axis="1 0 0" damping="5"/>
-      <geom type="box" size="0.05 0.05 0.05" mass="1"/>
-    </body>
-  </worldbody>
-  <actuator><position joint="x" kp="50"/></actuator>
-  <sensor><jointpos name="x" joint="x"/></sensor>
-</mujoco>
-""")
-data = mujoco.MjData(model)
-mujoco.mj_forward(model, data)
-
-steps = 100
-config = SimMPCConfig(num_samples=64, horizon_steps=30, node_steps=10, ctrl_steps=10, max_iterations=4, ctrl_std=0.1)
-ctrl_ref = np.zeros((steps + config.horizon_steps, model.nu))  # a row for every step a horizon reaches
-sensor_ref = np.full((len(ctrl_ref), model.nsensordata), 0.3)
-config.add(SensorTask(sensor_ref, weight={"x": 100.0}))
-mpc = SimMPC(config, MjWarpSim(model, 1, data), ctrl_ref)  # plans on resized copies of this simulator
-(rollout,), (plans,) = mpc.execute(MjWarpSim(model, 1, data), steps)  # one rollout and one plan list per instance
-
-qpos = rollout["qpos"]  # (steps, nq), row k is the state at sim step k
-
-# or execute the commands yourself, here in MuJoCo on the CPU
-mpc = SimMPC(config, MjWarpSim(model, 1, data), ctrl_ref)
-for t0 in range(0, steps, config.ctrl_steps):
-    commands, infos = mpc.plan(data, t0)  # (ctrl_steps, batch_size, nu); the plan then shifts by ctrl_steps
-    for command in commands.numpy()[:, 0]:
-        data.ctrl[:] = command
-        mujoco.mj_step(model, data)

execute(sim, num_steps) runs the closed loop on sim and returns each instance's executed time, qpos, qvel, sensordata and ctrl at every sim step, plus one info dict per plan. plan(data, t0) takes a simulator's data or one mujoco.MjData; t0 indexes ctrl_ref and the references.

ctrl_std sets each actuator's sampling noise, and ctrl_range bounds the commands (default: the actuator ranges). SimMPC resizes the planning simulator into its worlds, so size its contact buffers up front: MjWarpSim(model, 1, data, nconmax=..., njmax=...).

Costs

A cost is a robokit.terms task that reads the simulator's arrays after each step. Row k of a reference array describes sim step k, matching the rows execute returns.

TermPer step
StateTask(qpos_ref, qvel_ref, dof_weight)Weighted qpos and qvel error to the reference.
SensorTask(sensor_ref, weight)Weighted error of the named sensors to the reference.
ControlTask(weight, ctrl_ref)Weighted squared deviation of the controls from ctrl_ref.
AlignTask(origin, sensor, target_ref, weight)Pushes an object toward a goal.
ContactTask(geoms, target, radius, allowed, weight, penalty, margin)Rewards contacts in target discs (or a box around each target, at a height); penalizes touches outside allowed ones.
GraspTask(gripper, obj, offset, weight)Distance from a gripper body to an object body.

config.add(term, running_scale=1.0, terminal_scale=None) scales a term at every step and at the horizon's last step; running_scale=0 makes it terminal-only.

Custom Costs

A new cost subclasses Task: its constructor stores SimContext placeholders, resolve swaps them for the simulator's arrays, and compute_weighted_cost launches Warp kernels. Terms read only SimContext values, so one can be checked without a simulator:

python
import numpy as np
-import warp as wp
-from robokit.terms import ControlTask, SimContext
-
-context = {
-    SimContext.CTRL: wp.array([[1.0, 2.0], [0.0, 1.0]], dtype=float, device="cpu"),
-    SimContext.CLOCK: wp.array([0, 0, 1], dtype=int, device="cpu"),
-    SimContext.NUM_INSTANCES: 1,
-    SimContext.WORLDS_PER_INSTANCE: 2,
-}
-term, out = ControlTask(weight=[0.5, 1.0]), wp.zeros(2, dtype=float, device="cpu")
-term.resolve(None, context)
-term.compute_weighted_cost(None, out_cost=out)  # each world's 0.5 * u0**2 + 1.0 * u1**2

Faster Planning

The planning simulator may be cheaper than the executed one if nq, nv, nu and nsensordata match:

  • MjWarpSim.build_coarse_spec(spec, CoarseConfig(max_hull_vertices, qpos_ref)) caps each mesh's convex hull and keeps only the contact pairs that come near along the motion.
  • config.stages runs SimMPCStage(iters, dt) stages in order. dt=[(0.25, None), (1.0, 0.04)] steps the first quarter of the horizon at the timestep and the rest at 40 ms. By default, SimMPC picks 4x or 2x steps when their rollouts stay close to fine ones.

Contacts exist only near a geom. To reward a foot before it lands, give the planning model geoms that detect far but push at the usual distance: margin="1" gap="0.999" before MuJoCo 3.10, and margin="0.001" gap="0.999" from 3.10.

Batch Planning

SimMPCConfig.batch_size plans several instances of one model at once, such as several clips of one scene. Give plan one state per instance; ctrl_ref and reference arrays take a leading instance axis, or are shared without one. Rollout worlds are instance-major.

Instances whose scenes differ, such as one hand with a different object each, plan on MjWarpSim(specs, [1] * batch_size). The scenes must share bodies, joints, actuators and sensors.

Control Maps

SimMPCConfig.control_map(sim, clock) turns sampled commands into actuator controls before every step. CartesianControl(model, body, ...) reads the first six commands as a world-frame twist of body and solves damped least squares for joint velocities; the scene needs velocity actuators on scalar joints.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-com-position/index.html b/docs/robokit/term-com-position/index.html deleted file mode 100644 index 0e37b28..0000000 --- a/docs/robokit/term-com-position/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - CoM Position Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

CoM Position Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/com_position_task.py.

Residual

For link mass $m_l$, current world-frame link center of mass $\mathbf{p}^{\mathrm{cur}}_{w,l}$, and total mass $M=\sum_l m_l$:

$$\mathbf{p}^{\mathrm{cur}}_{w,\mathrm{com}} -= -\frac{1}{M}\sum_l m_l\mathbf{p}^{\mathrm{cur}}_{w,l}.$$

The residual is the world-frame position error:

$$\mathbf{e} -= -\mathbf{p}^{\mathrm{tgt}}_w-\mathbf{p}^{\mathrm{cur}}_{w,\mathrm{com}} -\in\mathbb{R}^3.$$

Jacobian

For column $j$ of the link's world-frame motion subspace, $\frac{\partial\mathbf{p}^{\mathrm{cur}}_{w,l}}{\partial q_j}=\mathbf{v}_{w,l,j}+\boldsymbol{\omega}_{w,l,j}\times\mathbf{p}^{\mathrm{cur}}_{w,l}$.

The residual Jacobian is:

$$\mathbf{J}[\cdot,j] -= --\frac{1}{M}\sum_l m_l -\left( -\mathbf{v}_{w,l,j}+\boldsymbol{\omega}_{w,l,j}\times\mathbf{p}^{\mathrm{cur}}_{w,l} -\right).$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-configuration/index.html b/docs/robokit/term-configuration/index.html deleted file mode 100644 index a6507cc..0000000 --- a/docs/robokit/term-configuration/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Configuration Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Configuration Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/configuration_task.py.

Residual

For joint configuration $\mathbf{q}^{\mathrm{cur}}$ and rest configuration $\mathbf{q}^{\mathrm{rest}}$:

$$\mathbf{e}_q -= -\mathbf{q}^{\mathrm{cur}}-\mathbf{q}^{\mathrm{rest}}.$$

For an optional floating-base rest transform:

$$\Delta\mathbf{T} -= -\mathbf{T}^{\mathrm{cur}}_{w\leftarrow b} -\left(\mathbf{T}^{\mathrm{rest}}_{w\leftarrow b}\right)^{-1}, -\qquad -\mathbf{e}_b=\mathrm{Log}(\Delta\mathbf{T}).$$

Jacobian

The joint block is the identity matrix. For the base block:

$$\mathbf{J}_b -= -\mathbf{J}_{\log}(\Delta\mathbf{T}) -\mathrm{Ad}\!\left(\mathbf{T}^{\mathrm{rest}}_{w\leftarrow b}\right),$$

where $\mathbf{J}_{\log}$ is the Jacobian of the SE(3) log map.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-force-closure/index.html b/docs/robokit/term-force-closure/index.html deleted file mode 100644 index 06c56f5..0000000 --- a/docs/robokit/term-force-closure/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Force Closure Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Force Closure Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/force_closure_task.py.

Residual

For world-frame contact point $\mathbf{p}_{w,i}$ and object-surface normal $\mathbf{n}_{w,i}$, the residual is the summed contact wrench:

$$\mathbf{e} -= -\begin{bmatrix} -\sum_i\mathbf{n}_{w,i}\\ -\sum_i\mathbf{p}_{w,i}\times\mathbf{n}_{w,i} -\end{bmatrix} -\in\mathbb{R}^6.$$

WarpScene supplies unit surface normals and their position Jacobians. Mesh face normals are constant within a face. Derivatives jump where the closest face, voxel cell or object changes.

Jacobian

Let $\mathbf{N}_i = \partial\mathbf{n}_{w,i}/\partial\mathbf{p}_{w,i}$ and $\mathbf{v}_{i,j} = \partial\mathbf{p}_{w,i}/\partial q_j$. Then:

$$\mathbf{J}[\cdot,j] -= -\begin{bmatrix} -\sum_i\mathbf{N}_i\mathbf{v}_{i,j}\\ -\sum_i -\left(\mathbf{v}_{i,j}\times\mathbf{n}_{w,i} -+\mathbf{p}_{w,i}\times\mathbf{N}_i\mathbf{v}_{i,j}\right) -\end{bmatrix}.$$

For mesh face normals, $\mathbf{N}_i=0$. Optional contact-force weights scale each contact's force and torque. Residual weights scale the six outputs.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-frame-vector/index.html b/docs/robokit/term-frame-vector/index.html deleted file mode 100644 index 8b7e8a1..0000000 --- a/docs/robokit/term-frame-vector/index.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - Frame Vector Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Frame Vector Task

-

Unweighted residuals and Jacobians for:

  • src/robokit/terms/dense/frame_vector_task.py
  • src/robokit/terms/sparse/trajectory_retargeting_task.py

Residual

For pair $i$, let $\mathbf{p}^{\mathrm{cur}}_{w,o_i}$ and $\mathbf{p}^{\mathrm{cur}}_{w,k_i}$ be the world positions of its origin and task links. A negative origin index uses $\mathbf{p}^{\mathrm{cur}}_{w,o_i}=\mathbf{0}$. With scale $s_i$ and target displacement $\mathbf{d}^{\mathrm{tgt}}_{w,i}$:

$$\mathbf{d}^{\mathrm{cur}}_{w,i}=s_i(\mathbf{p}^{\mathrm{cur}}_{w,k_i}-\mathbf{p}^{\mathrm{cur}}_{w,o_i}), -\qquad -\mathbf{e}_i=\mathbf{d}^{\mathrm{cur}}_{w,i}-\mathbf{d}^{\mathrm{tgt}}_{w,i}.$$

With direction_only=True, the target is first replaced by:

$$\mathbf{d}^{\mathrm{tgt}}_{w,i} -\leftarrow -\frac{\mathbf{d}^{\mathrm{tgt}}_{w,i}}{\|\mathbf{d}^{\mathrm{tgt}}_{w,i}\|+10^{-6}} -\|\mathbf{d}^{\mathrm{cur}}_{w,i}\|.$$

Optional Huber and soft-gate settings transform and scale $\mathbf{e}_i$.

Jacobian

The vector derivative is:

$$\frac{\partial\mathbf{d}^{\mathrm{cur}}_{w,i}}{\partial q_j} -= -s_i\left( -\frac{\partial\mathbf{p}^{\mathrm{cur}}_{w,k_i}}{\partial q_j} -- -\frac{\partial\mathbf{p}^{\mathrm{cur}}_{w,o_i}}{\partial q_j} -\right).$$

In direction-only mode, with normalized displacements $\widehat{\mathbf{d}}^{\mathrm{tgt}}_{w,i}$ and $\widehat{\mathbf{d}}^{\mathrm{cur}}_{w,i}$:

$$\frac{\partial\mathbf{e}_i}{\partial q_j} -= -\left( -\mathbf{I}-\widehat{\mathbf{d}}^{\mathrm{tgt}}_{w,i}(\widehat{\mathbf{d}}^{\mathrm{cur}}_{w,i})^\top -\right) -\frac{\partial\mathbf{d}^{\mathrm{cur}}_{w,i}}{\partial q_j}.$$

Otherwise, $\partial\mathbf{e}_i/\partial q_j=\partial\mathbf{d}^{\mathrm{cur}}_{w,i}/\partial q_j$. The optional Huber derivative and soft-gate value multiply this column.

Trajectory Retargeting

For each frame and selected pair $(i,j)$, TrajectoryRetargetingTask uses the position residual

$$\mathbf{e}_{p,ij} -= -\alpha(\mathbf{p}^{\mathrm{tgt}}_{w,i}-\mathbf{p}^{\mathrm{tgt}}_{w,j}) --(\mathbf{p}^{\mathrm{cur}}_{w,i}-\mathbf{p}^{\mathrm{cur}}_{w,j}),$$

where $\alpha$ is target_scale. It also adds the direction residual

$$e_{d,ij} -= -1-(\widehat{\mathbf{d}}^{\mathrm{cur}}_{w,ij})^\top -\widehat{\mathbf{d}}^{\mathrm{tgt}}_{w,ij}.$$

The position Jacobian is $-\partial\mathbf{d}^{\mathrm{cur}}_{w,ij}/\partial q_k$. For the direction residual,

$$\frac{\partial e_{d,ij}}{\partial q_k} -= --\frac{ -(\widehat{\mathbf{d}}^{\mathrm{tgt}}_{w,ij} --((\widehat{\mathbf{d}}^{\mathrm{tgt}}_{w,ij})^\top\widehat{\mathbf{d}}^{\mathrm{cur}}_{w,ij}) -\widehat{\mathbf{d}}^{\mathrm{cur}}_{w,ij})^\top -}{\|\mathbf{d}^{\mathrm{cur}}_{w,ij}\|+10^{-6}} -\frac{\partial\mathbf{d}^{\mathrm{cur}}_{w,ij}}{\partial q_k}.$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-frame/index.html b/docs/robokit/term-frame/index.html deleted file mode 100644 index 4fd44f4..0000000 --- a/docs/robokit/term-frame/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Frame Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Frame Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/frame_task.py.

Residual

For the current and target link transforms:

$$\Delta\mathbf{T} -= -\left(\mathbf{T}^{\mathrm{cur}}_{w\leftarrow l}\right)^{-1} -\mathbf{T}^{\mathrm{tgt}}_{w\leftarrow l}$$

SE(3) log map:

$$\mathbf{e} -= -\mathrm{Log}\!\left(\Delta\mathbf{T}\right) -\in\mathbb{R}^6$$

Jacobian

$\mathbf{J}=\frac{\partial\mathbf{e}}{\partial\mathbf{q}}\in\mathbb{R}^{6\times n}$.

Express the world-frame motion subspace in the current link frame:

$$\mathbf{J}_{\mathrm{body}}^l -= -\mathrm{Ad}\!\left(\left(\mathbf{T}^{\mathrm{cur}}_{w\leftarrow l}\right)^{-1}\right)\mathbf{S}_w -\in\mathbb{R}^{6\times n}$$

Here, $\mathrm{Ad}$ maps world-frame twists to the link frame.

With $\boldsymbol{\tau}=\mathrm{Log}(\Delta\mathbf{T}^{-1})$ and $J_r$ the SE(3) right Jacobian:

$$\mathbf{J} -= --\,J_r^{-1}\!\left(\boldsymbol{\tau}\right)\, -\mathbf{J}_{\mathrm{body}}^l -\in\mathbb{R}^{6\times n}$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-interaction-mesh/index.html b/docs/robokit/term-interaction-mesh/index.html deleted file mode 100644 index 1954873..0000000 --- a/docs/robokit/term-interaction-mesh/index.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Interaction Mesh Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Interaction Mesh Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/interaction_mesh_task.py.

Residual

The interaction mesh contains robot-link vertices and fixed object vertices. For vertex $i$, its Laplacian coordinate is:

$$\mathbf{l}^{\mathrm{cur}}_{w,i} -= -\mathbf{p}^{\mathrm{cur}}_{w,i}- -\sum_{j\in\mathcal{N}(i)}w_{ij}\mathbf{p}^{\mathrm{cur}}_{w,j}.$$

Given the target Laplacian $\mathbf{l}^{\mathrm{tgt}}_{w,i}$ built from the human-object frame, the residual is:

$$\mathbf{e}_i -= -\mathbf{l}^{\mathrm{cur}}_{w,i}-\mathbf{l}^{\mathrm{tgt}}_{w,i} -\in\mathbb{R}^3.$$

Jacobian

The derivative of a fixed object vertex is zero. The Jacobian block for vertex $i$ is:

$$\mathbf{J}_i[\cdot,k] -= -\frac{\partial\mathbf{p}^{\mathrm{cur}}_{w,i}}{\partial q_k} -- -\sum_{j\in\mathcal{N}(i)}w_{ij} -\frac{\partial\mathbf{p}^{\mathrm{cur}}_{w,j}}{\partial q_k}.$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-manipulability/index.html b/docs/robokit/term-manipulability/index.html deleted file mode 100644 index 73c2be5..0000000 --- a/docs/robokit/term-manipulability/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - Manipulability Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Manipulability Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/manipulability_task.py.

Residual

Let $\mathbf{J}^p_w\in\mathbb{R}^{3\times n}$ be the world-frame position Jacobian of the target link. Its Yoshikawa manipulability is:

$$m -= -\sqrt{\det(\mathbf{J}^p_w(\mathbf{J}^p_w)^\top)}.$$

The residual is:

$$e=\frac{1}{m+\epsilon}.$$

Minimizing it moves the robot away from singular configurations.

Jacobian

For $\mathbf{A}=\mathbf{J}^p_w(\mathbf{J}^p_w)^\top$:

$$\frac{\partial e}{\partial q_j} -= --\frac{1}{(m+\epsilon)^2} -\frac{1}{2m} -\frac{\partial\det(\mathbf{A})}{\partial q_j}.$$

Every column of $\mathbf{J}^p_w$ is differentiated analytically. Floating-base columns are zero.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-mask-alignment/index.html b/docs/robokit/term-mask-alignment/index.html deleted file mode 100644 index d524944..0000000 --- a/docs/robokit/term-mask-alignment/index.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - Mask Alignment Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Mask Alignment Task

-

Residual and normal equations for src/robokit/helpers/hand_eye_calibration/mask_alignment_task.py.

Residual

For rendered mask value $M^{\mathrm{cur}}_{uv}$ and target mask value $M^{\mathrm{tgt}}_{uv}$ at pixel $(u,v)$:

$$e_{uv}=M^{\mathrm{cur}}_{uv}-M^{\mathrm{tgt}}_{uv}.$$

When depth is enabled, valid rendered and target depths add the Huber residual of $Z^{\mathrm{cur}}_{uv}-Z^{\mathrm{tgt}}_{uv}$.

Jacobian

A camera twist $\boldsymbol{\xi}\in\mathbb{R}^6$ moves the projected pixel $(u,v)$ across the rendered mask, so:

$$\frac{\partial e_{uv}}{\partial\boldsymbol{\xi}} -= -\begin{bmatrix} -\partial M^{\mathrm{cur}}/\partial u & \partial M^{\mathrm{cur}}/\partial v -\end{bmatrix} -\frac{\partial(u,v)}{\partial\boldsymbol{\xi}}.$$

$\partial(u,v)/\partial\boldsymbol{\xi}$ is how the projected pixel $(u,v)$ moves with the camera twist. Interior pixels use $\frac{\partial M^{\mathrm{cur}}}{\partial u}=\frac{M^{\mathrm{cur}}_{u+1,v}-M^{\mathrm{cur}}_{u-1,v}}{2}$ and $\frac{\partial M^{\mathrm{cur}}}{\partial v}=\frac{M^{\mathrm{cur}}_{u,v+1}-M^{\mathrm{cur}}_{u,v-1}}{2}$. The task sums $\mathbf{J}^\top\mathbf{J}$ and $\mathbf{J}^\top\mathbf{e}$ over pixels without storing $\mathbf{J}$.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-position-limit/index.html b/docs/robokit/term-position-limit/index.html deleted file mode 100644 index 909ea96..0000000 --- a/docs/robokit/term-position-limit/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Position Limit · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Position Limit

-

Unweighted residual and Jacobian for src/robokit/terms/dense/position_limit.py.

Residual

For joint position $q_i$ and bounds $[l_i,u_i]$, the default residual is its distance outside the interval:

$$e_i -= -\max(l_i-q_i,0)+\max(q_i-u_i,0).$$

sqrt_abs replaces each positive $e_i$ by $\sqrt{e_i+\epsilon}$.

For exp_barrier, $c_i=(l_i+u_i)/2$ is the interval center, $h_i=(u_i-l_i)/2$ is its half-range, and $v_i=\max(|(q_i-c_i)/h_i|-a,0)$ is the normalized violation. The residual is:

$$e_i=(q_i-c_i) -\left(1-\exp\left(-(\kappa v_i)^p\right)\right),$$

with fixed constants $a=0.8$, $\kappa=5$, and $p=4$.

An optional floating-base bound uses the same interval residual for one world-position axis.

Jacobian

For the default mode:

$$\frac{\partial e_i}{\partial q_i} -= -\begin{cases} --1, & q_i<l_i,\\ -0, & l_i\le q_i\le u_i,\\ -1, & q_i>u_i. -\end{cases}$$

sqrt_abs multiplies an active row by $1/(2\sqrt{e_i+\epsilon})$. exp_barrier differentiates its expression directly.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-position/index.html b/docs/robokit/term-position/index.html deleted file mode 100644 index b19ee23..0000000 --- a/docs/robokit/term-position/index.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - Position Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Position Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/position_task.py.

Residual

World-frame position error:

$$\mathbf{e} -= -\mathbf{p}^{\mathrm{tgt}}_w - \mathbf{p}^{\mathrm{cur}}_w -\in\mathbb{R}^3$$

where $\mathbf{p}^{\mathrm{cur}}_w$ and $\mathbf{p}^{\mathrm{tgt}}_w$ are the current and target world-frame positions.

Jacobian

$\mathbf{J}=\frac{\partial\mathbf{e}}{\partial\mathbf{q}}\in\mathbb{R}^{3\times n}$.

For column $j$ of $\mathbf{S}_w$:

$$\mathbf{J}[\cdot, j] -= --\left(\mathbf{v}_{w,j} + \boldsymbol{\omega}_{w,j} \times \mathbf{p}^{\mathrm{cur}}_w\right) -\in\mathbb{R}^3$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-rotation/index.html b/docs/robokit/term-rotation/index.html deleted file mode 100644 index dbdd702..0000000 --- a/docs/robokit/term-rotation/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Rotation Tasks · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Rotation Tasks

-

Unweighted residual and Jacobian for src/robokit/terms/dense/rotation_task.py.

RotationTask

Residual

World-frame rotation error:

$$\mathbf{q}_{\mathrm{err}} -= -\mathbf{q}^{\mathrm{cur}}_{w\leftarrow l} -\otimes -\left(\mathbf{q}^{\mathrm{tgt}}_{w\leftarrow l}\right)^{-1}, -\qquad -\mathbf{e}=\mathrm{AxisAngle}(\mathbf{q}_{\mathrm{err}}) -\in\mathbb{R}^3$$

Here, $\mathbf{q}^{\mathrm{cur}}_{w\leftarrow l}$ and $\mathbf{q}^{\mathrm{tgt}}_{w\leftarrow l}$ are the current and target link orientations, and $\mathrm{AxisAngle}$ converts a quaternion to axis-angle.

Jacobian

From the world-frame motion subspace $ \mathbf{S}_w= \begin{bmatrix} \mathbf{v}_w\\ \boldsymbol{\omega}_w \end{bmatrix} \in\mathbb{R}^{6\times n}, $ the exact derivative is:

$$\frac{\partial\mathbf{e}}{\partial\mathbf{q}} -= -\mathbf{J}_l^{-1}(\mathbf{e})\, -\boldsymbol{\omega}_w,$$

where $\mathbf{J}_l$ is the SO(3) left Jacobian. The implementation uses the zero-error approximation:

$$\mathbf{J} -= -\boldsymbol{\omega}_w -\in\mathbb{R}^{3\times n}$$

AxisLimitTask

Residual

The link-frame axis $\mathbf{a}_l\in\mathbb{R}^3$ is rotated into the world frame and compared with the world axis $\mathbf{b}_w\in\mathbb{R}^3$:

$$[0,\mathbf{a}_w] -= -\mathbf{q}^{\mathrm{cur}}_{w\leftarrow l} -\otimes[0,\mathbf{a}_l] -\otimes -\left(\mathbf{q}^{\mathrm{cur}}_{w\leftarrow l}\right)^{-1}, -\qquad -c=\mathbf{a}_w^\top\mathbf{b}_w.$$

For optional angle bounds $\theta_{\min}$ and $\theta_{\max}$, the residual is:

$$e= -\max\!\left(c-\cos\theta_{\min},0\right) -+ -\max\!\left(\cos\theta_{\max}-c,0\right),$$

where a missing bound contributes zero.

Jacobian

For angular-velocity column $\boldsymbol{\omega}_{w,j}$:

$$\frac{\partial c}{\partial q_j} -= -\mathbf{b}_w^\top -\left(\boldsymbol{\omega}_{w,j}\times\mathbf{a}_w\right).$$

Therefore:

$$J_j=\gamma\, -\mathbf{b}_w^\top -\left(\boldsymbol{\omega}_{w,j}\times\mathbf{a}_w\right),$$

where $\gamma=1$ for an active minimum-angle violation, $\gamma=-1$ for an active maximum-angle violation, and $\gamma=0$ otherwise.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-scene-collision/index.html b/docs/robokit/term-scene-collision/index.html deleted file mode 100644 index 9ad565e..0000000 --- a/docs/robokit/term-scene-collision/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Scene Collision Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Scene Collision Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/scene_collision_task.py and src/robokit/terms/sparse/trajectory_collision_task.py.

Residual

For collision sphere $i$ with world center $\mathbf{c}_{w,i}$ and radius $r_i$, its clearance from the scene is:

$$s_i=\mathrm{SDF}(\mathbf{c}_{w,i})-r_i.$$

Negative $s_i$ means the sphere penetrates the scene. The smooth penalty is:

$$e_i= -\begin{cases} -\frac{\mathtt{margin}}{2}-s_i, & s_i<0,\\ -\frac{(\mathtt{margin}-s_i)^2}{2(\mathtt{margin}+\epsilon)}, & 0\le s_i\le\mathtt{margin},\\ -0, & s_i>\mathtt{margin}, -\end{cases} -\qquad -\mathbf{e}\in\mathbb{R}^N,$$

The quadratic branch reaches zero smoothly at margin. $N$ is the number of selected spheres and $\epsilon=10^{-6}$.

plain uses $e_i=\max(\mathtt{margin}-s_i,0)$. surface_distance uses $e_i=|s_i|$ to pull the sphere toward contact.

Jacobian

For the world-frame motion-subspace column of the sphere's link:

$$\mathbf{S}_{w,j} -= -\begin{bmatrix} -\mathbf{v}_{w,j}\\ -\boldsymbol{\omega}_{w,j} -\end{bmatrix}, -\qquad -\frac{\partial\mathbf{c}_{w,i}}{\partial q_j} -= -\mathbf{v}_{w,j}+\boldsymbol{\omega}_{w,j}\times\mathbf{c}_{w,i}.$$

With the world-frame scene normal $\mathbf{n}_{w,i}$ from WarpScene:

$$J_{ij} -= -\frac{\partial e_i}{\partial s_i}\, -\mathbf{n}_{w,i}^\top -\left( -\mathbf{v}_{w,j}+\boldsymbol{\omega}_{w,j}\times\mathbf{c}_{w,i} -\right),$$

For smooth:

$$\frac{\partial e_i}{\partial s_i} -= -\begin{cases} --1, & s_i<0,\\ -\frac{s_i-\mathtt{margin}}{\mathtt{margin}+\epsilon}, & 0\le s_i\le\mathtt{margin},\\ -0, & s_i>\mathtt{margin}. -\end{cases}$$

For plain, the derivative is $-1$ below margin and $0$ otherwise; for surface_distance, it is $\operatorname{sign}(s_i)$.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-scene-distance/index.html b/docs/robokit/term-scene-distance/index.html deleted file mode 100644 index 3b57d1b..0000000 --- a/docs/robokit/term-scene-distance/index.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - Scene Distance Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Scene Distance Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/scene_distance_task.py.

Residual

For world-frame contact point $\mathbf{p}_{w,i}$, let $s_i=\mathrm{SDF}(\mathbf{p}_{w,i})$. The default residual is:

$$e_i=|s_i|.$$

It is zero on the scene surface and increases on either side.

sqrt_abs uses $e_i=\sqrt{|s_i|+\epsilon}$ for L1 regularization.

Jacobian

Let $\mathbf{n}_{w,i}$ be the world-frame scene normal WarpScene returns. The point derivative is $\frac{\partial\mathbf{p}_{w,i}}{\partial q_j}=\mathbf{v}_{w,j}+\boldsymbol{\omega}_{w,j}\times\mathbf{p}_{w,i}$. Then:

$$J_{ij} -= -\mathrm{sign}(s_i)\, -\mathbf{n}_{w,i}^\top -\frac{\partial\mathbf{p}_{w,i}}{\partial q_j}.$$

For sqrt_abs, this is multiplied by $1/(2\sqrt{|s_i|+\epsilon})$.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-self-collision/index.html b/docs/robokit/term-self-collision/index.html deleted file mode 100644 index a26458a..0000000 --- a/docs/robokit/term-self-collision/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Self Collision Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Self Collision Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/self_collision_task.py.

Residual

For an active pair of spheres with world-frame centers $\mathbf{c}_{w,i},\mathbf{c}_{w,j}$ and radii $r_i,r_j$, the surface distance is:

$$d_{ij} -= -\|\mathbf{c}_{w,i}-\mathbf{c}_{w,j}\|-r_i-r_j.$$

The residual is:

$$e_{ij}=\max\!\left(\mathtt{margin}-d_{ij},0\right).$$

Capsule mode uses the same residual at the closest points on the two capsule axes. The task keeps at most max_active_pairs active link pairs.

Jacobian

Let $\widehat{\mathbf{d}}_{w,ij}=(\mathbf{c}_{w,i}-\mathbf{c}_{w,j})/\|\mathbf{c}_{w,i}-\mathbf{c}_{w,j}\|$. For an active pair:

$$J_{ij,k} -= --\widehat{\mathbf{d}}_{w,ij}^\top -\left( -\frac{\partial\mathbf{c}_{w,i}}{\partial q_k} -- -\frac{\partial\mathbf{c}_{w,j}}{\partial q_k} -\right).$$

For sqrt_abs, this is multiplied by $1/(2\sqrt{e_{ij}+\epsilon})$.

- -
- -
-
- - - - - diff --git a/docs/robokit/term-smoothness/index.html b/docs/robokit/term-smoothness/index.html deleted file mode 100644 index bcf9669..0000000 --- a/docs/robokit/term-smoothness/index.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - Smoothness Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Smoothness Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/smoothness_task.py and src/robokit/terms/sparse/trajectory_smoothness_task.py.

Dense

SmoothnessTask compares one configuration with the previous one, given at construction.

Residual

$$\mathbf{e}_q -= -\mathbf{q}^{\mathrm{cur}}-\mathbf{q}^{\mathrm{prev}}.$$

For a floating base:

$$\Delta\mathbf{T} -= -\mathbf{T}^{\mathrm{cur}}_{w\leftarrow b} -\left(\mathbf{T}^{\mathrm{prev}}_{w\leftarrow b}\right)^{-1}, -\qquad -\mathbf{e}_b=\mathrm{Log}(\Delta\mathbf{T}).$$

Jacobian

The joint block is the identity. The base block is:

$$\mathbf{J}_b -= -\mathbf{J}_{\log}(\Delta\mathbf{T}) -\,\mathrm{Ad}\!\left(\mathbf{T}^{\mathrm{prev}}_{w\leftarrow b}\right).$$

Sparse

Residual

With $\tilde{\mathbf{q}}_t=\mathbf{q}^{\mathrm{cur}}_t-\mathbf{q}^{\mathrm{ref}}_t$, order $p$ takes the difference $p$ times:

$p$weights
1velocity$-1,\ 1$
2acceleration$1,\ -2,\ 1$
3jerk$-1,\ 3,\ -3,\ 1$

One residual per frame gap, num_frames - 1 in total. The one at $r$ uses frames $r-(p-1)$ through $r+1$:

$$\mathbf{e}_r -= -\frac{1}{\Delta t^{\,p}} -\sum_{j=0}^{p} -c_j\,\tilde{\mathbf{q}}_{r-(p-1)+j}.$$

$c_j$ is the $j$-th weight from the table above, $j=0\ldots p$.

Jacobian

The residual is linear in $\mathbf{q}$, so the Jacobian is constant:

$$\frac{\partial e_{r,i}}{\partial q^{\mathrm{cur}}_{r-(p-1)+j,\;i}} -= -\frac{c_j}{\Delta t^{\,p}}.$$

Each row has $p+1$ nonzeros, in the joint columns of the frames it spans. Base columns stay zero.

With base_weight, order=1 also smooths consecutive floating-base transforms:

$$\Delta\mathbf{T}_t -= -\left(\mathbf{T}_{w\leftarrow b,t}\right)^{-1} -\mathbf{T}_{w\leftarrow b,t+1}, -\qquad -\mathbf{e}_{b,t}=\frac{\mathrm{Log}(\Delta\mathbf{T}_t)}{\Delta t}.$$

Let $\mathbf{J}_{\log}^R$ be the right log-map Jacobian and $\mathbf{J}_{\log}^L=\mathbf{J}_{\log}^R\mathrm{Ad}(\Delta\mathbf{T}_t^{-1})$. Then

$$\frac{\partial\mathbf{e}_{b,t}}{\partial\boldsymbol{\xi}_t} -=-\frac{\mathbf{J}_{\log}^L}{\Delta t}, -\qquad -\frac{\partial\mathbf{e}_{b,t}}{\partial\boldsymbol{\xi}_{t+1}} -=\frac{\mathbf{J}_{\log}^R}{\Delta t}.$$

- -
- -
-
- - - - - diff --git a/docs/robokit/term-velocity-limit/index.html b/docs/robokit/term-velocity-limit/index.html deleted file mode 100644 index 82066e5..0000000 --- a/docs/robokit/term-velocity-limit/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Velocity Limit Task · RoboKit docs · OpenRoboKit - - - - - - - - - - - - - -
- - -
-
-
-
Reference/Terms
- -
-

Velocity Limit Task

-

Unweighted residual and Jacobian for src/robokit/terms/dense/velocity_limit_task.py.

Residual

For timestep $\Delta t$ and joint velocity limit $\bar{v}_i$:

$$\dot q_i -= -\frac{q_i^{\mathrm{cur}}-q_i^{\mathrm{prev}}}{\Delta t}, -\qquad -e_i=\max\!\left(|\dot q_i|-\bar v_i,0\right).$$

Jacobian

The only nonzero entry in row $i$ is:

$$\frac{\partial e_i}{\partial q_i^{\mathrm{cur}}} -= -\begin{cases} -\mathrm{sign}(\dot q_i)/\Delta t, & |\dot q_i|>\bar v_i,\\ -0, & |\dot q_i|\le\bar v_i. -\end{cases}$$

- -
- -
-
- - - - - diff --git a/scripts/__init__.py b/scripts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/scripts/apihtml.py b/scripts/apihtml.py new file mode 100644 index 0000000..967d8a4 --- /dev/null +++ b/scripts/apihtml.py @@ -0,0 +1,284 @@ +"""Reference blocks for the generated API pages, as HTML. + +A Python port of what assets/js/docs-api.js used to build in the browser. The +pages are static now, so the markup is produced here at build time; the model +comes from apimodel.py unchanged. + +One component does the work: a declaration card, carrying the kind and the +source link on its first line and the qualified name with a parameter per line +below. A published symbol gets one; so does every member, so a class and its +methods read the same way at two levels of indentation. +""" + +import re + +# every `
` the converter left behind +API_SLOT_RE = re.compile(r'
') + + +def esc(s) -> str: + """Escapes what the browser must not read as markup -- and nothing else, so + an apostrophe in a default value stays an apostrophe.""" + return ( + ("" if s is None else str(s)) + .replace("&", "&") + .replace("<", "<") + .replace(">", ">") + .replace('"', """) + ) + + +def _source(url: str) -> str: + return f'[source]' if url else "" + + +def _ret(r) -> str: + return r.get("type", "") if r else "" + + +def sig_body(params: list[dict], ret_type: str) -> str: + """`name: type = default,` -- one parameter per line, each token its own colour. + + A single annotated line runs off the column as soon as the generics arrive, + which is the whole reason for the per-line form. + """ + lines = [] + for i, p in enumerate(params): + sep = ': ' if p.get("type") else "" + eq = ' = ' if p.get("default") is not None else "" + comma = "" if i == len(params) - 1 else "," + lines.append( + f'
{esc(p.get("name"))}{sep}' + f'{esc(p.get("type"))}{eq}' + f'{esc(p.get("default"))}' + f'{comma}
' + ) + # the closing paren dedents back to the name, the way a formatter leaves it + arrow = " -> " if ret_type else "" + lines.append( + f'
){arrow}' + f'{esc(ret_type)}
' + ) + return f'
{"".join(lines)}
' + + +def card(d: dict) -> str: + """d: anchor, kind, source, prefix, name, params, ret_type, callable, type, bases, base.""" + params = d.get("params") or [] + open_paren = "" + if d.get("callable"): + open_paren = f'({"" if params else ")"}' + type_part = "" + if d.get("type"): + type_part = f': {esc(d["type"])}' + tail = "" + if d.get("callable") and not params and d.get("ret_type"): + tail = f' -> {esc(d["ret_type"])}' + body = sig_body(params, d.get("ret_type", "")) if d.get("callable") and params else "" + bases = ( + f'
Bases: {esc(d["bases"])}
' + if d.get("bases") + else "" + ) + anchor = f' id="{esc(d["anchor"])}"' if d.get("anchor") else "" + from_base = ( + f'inherited from {esc(d["base"])}' if d.get("base") else "" + ) + prefix = f'{esc(d["prefix"])}.' if d.get("prefix") else "" + return ( + f'
\n' + f'
{esc(d.get("kind"))}' + f'{from_base}{_source(d.get("source", ""))}
\n' + f'
{prefix}' + f'{esc(d.get("name"))}' + f"{open_paren}{type_part}{tail}
\n" + f" {body}{bases}\n" + f"
" + ) + + +def param_rows(params) -> str: + out = [] + for p in params or []: + type_part = f'{esc(p.get("type"))}' if p.get("type") else "" + default = ( + f'= {esc(p.get("default"))}' + if p.get("default") is not None + else "" + ) + req = 'required' if p.get("required") else "" + out.append( + f'
\n' + f'
{esc(p.get("name"))}' + f"{type_part}{default}{req}
\n" + f'
{p.get("doc") or ""}
\n' + f"
" + ) + return "".join(out) + + +def returns_row(ret) -> str: + if not ret or (not ret.get("type") and not ret.get("doc")): + return "" + type_part = ( + f'
{esc(ret["type"])}
' + if ret.get("type") + else "" + ) + return ( + f'
{type_part}' + f'
{ret.get("doc") or ""}
' + ) + + +def label(text: str, inner: str, anchor: str = "") -> str: + """Parameters, Returns and Members label a block rather than open a section + of their own, so nothing on the page shouts; the kind pill does the signposting.""" + if not inner: + return "" + at = f' id="{anchor}"' if anchor else "" + return f'
{text}
{inner}' + + +def body_block(parts: list[str]) -> str: + """A declaration is flush and everything belonging to it -- the docstring, its + parameters, its members -- is indented under it, once per level of nesting.""" + inner = "".join(p for p in parts if p) + return f'
{inner}
' if inner else "" + + +def members_html(sym: dict) -> str: + rows = [] + for m in sym.get("members") or []: + callable_ = m.get("kind") in ("method", "function") + # griffe models a property as an attribute, so its signature is `name: T` + type_ = "" if callable_ else ": ".join(str(m.get("signature", "")).split(": ")[1:]) + member_card = card( + { + "kind": m.get("kind"), + "base": m.get("base"), + "source": m.get("source"), + "prefix": sym.get("name"), + "name": m.get("name"), + "params": m.get("params"), + "ret_type": _ret(m.get("returns")), + "callable": callable_, + "type": type_, + } + ) + inner = body_block( + [ + f'
{m["doc"]}
' if m.get("doc") else "", + label("Parameters", param_rows(m.get("params"))), + label("Returns", returns_row(m.get("returns"))), + ] + ) + anchor = f'{sym.get("anchor")}-{esc(str(m.get("name", "")).lower())}' + rows.append( + f'
\n' + f" {member_card}\n" + f" {inner}\n" + f"
" + ) + joined = "".join(rows) + return f'
{joined}
' if joined else "" + + +def symbol_html(sym: dict) -> str: + sym_card = card( + { + "anchor": sym.get("anchor"), + "kind": sym.get("kind"), + "source": sym.get("source"), + "prefix": sym.get("module"), + "name": sym.get("name"), + "params": sym.get("params"), + "ret_type": _ret(sym.get("returns")), + "callable": sym.get("callable"), + "bases": sym.get("bases"), + } + ) + inner = body_block( + [ + f'
{sym["doc"]}
' if sym.get("doc") else "", + label("Parameters", param_rows(sym.get("params"))), + label("Returns", returns_row(sym.get("returns"))), + label("Members", members_html(sym), f'{sym.get("anchor")}-members'), + ] + ) + return f'
\n {sym_card}\n {inner}\n
' + + +def slots(body: str) -> list[str]: + """The `::: name` placeholders in a body, in the order the document used them.""" + return API_SLOT_RE.findall(body) + + +def hydrate(body: str, api: dict | None) -> str: + """Fill each `
` the converter left behind. Prose and + reference blocks interleave because the document interleaved them.""" + if not api: + return body + + def fill(m): + sym = api.get(m.group(1)) + return f'
{symbol_html(sym)}
' if sym else m.group(0) + + return API_SLOT_RE.sub(fill, body) + + +def toc(body: str, api: dict | None) -> list[dict]: + """The rail lists the published symbols, each carrying its members. A page can + hold thirty classes with thirty methods apiece, so the rail shows one symbol's + members at a time -- whichever the reader is currently inside.""" + out = [] + for sym in _listed(body, api): + out.append( + { + "text": sym.get("name"), + "href": f'#{sym.get("anchor")}', + # the class name is already the row above, so a member shows only its own + "members": [ + { + "text": f'{m.get("name")}' + + ("()" if m.get("kind") in ("method", "function") else ""), + "href": f'#{sym.get("anchor")}-{str(m.get("name", "")).lower()}', + } + for m in sym.get("members") or [] + ], + } + ) + return out + + +def _listed(body: str, api: dict | None) -> list[dict]: + if not api: + return [] + names = slots(body) or list(api.keys()) + return [api[n] for n in names if n in api] + + +def api_text(body: str, api: dict | None) -> str: + """The reference text, which search needs and the body HTML does not carry.""" + parts = [] + for s in _listed(body, api): + params = " ".join( + f'{p.get("name")} {p.get("type")} {p.get("doc")}' for p in s.get("params") or [] + ) + mem = " ".join( + f'{m.get("signature")} {m.get("doc")}' for m in s.get("members") or [] + ) + parts.append( + " ".join( + [ + str(s.get("name", "")), + str(s.get("module", "")), + str(s.get("kind", "")), + s.get("bases") or "", + s.get("doc") or "", + params, + mem, + ] + ) + ) + return " ".join(parts) diff --git a/scripts/apimodel.py b/scripts/apimodel.py new file mode 100644 index 0000000..ce10146 --- /dev/null +++ b/scripts/apimodel.py @@ -0,0 +1,297 @@ +# /// script +# requires-python = ">=3.10" +# dependencies = ["griffe>=2,<3", "pyyaml>=6,<7"] +# /// +"""griffe object -> the reference model scripts/apihtml.py renders. + +Nothing here round-trips through Markdown: griffe already knows each +parameter's type, default and description, so a page carries that structure +into the kit's data/docs file directly. Only the free prose of a docstring -- its text, +examples and admonitions -- goes through md2doc, because that part really is +Markdown. + +The importer calls `load_package` once, then `resolve` for each `:::` name a +document asked for. +""" + +import ast +import re +import sys +from pathlib import Path +from typing import NamedTuple + +from griffe import Alias, Class, Function, Module, Object, load +from md2doc import Converter + + +class Repo(NamedTuple): + """Where the package is read from, and where its [source] links point.""" + + src: Path # the import root, e.g. /src + github: str # repository URL, with a trailing slash + + +# sections that become structured fields rather than prose +STRUCTURED = ("parameters", "attributes", "returns") +VARIADIC = {"var_positional": "*", "var_keyword": "**"} + + +def text(value) -> str: + return "" if value is None else str(value) + + +def prose(obj: Object, conv: Converter, level: int = 2) -> str: + """A docstring's free prose as HTML: text, examples, admonitions, raises. + + The section titles are headings, not bold runs, so an Examples block sits at + the same weight as the Parameters the renderer draws around it. `level` is + 2 for a published symbol and 3 inside a member row. + """ + if not obj.docstring: + return "" + hn = "#" * level + out: list[str] = [] + for section in obj.docstring.parsed: + kind, value = section.kind.value, section.value + if kind in STRUCTURED: + continue + if kind == "text": + out.append(value) + elif kind in ("raises", "yields"): + items = [] + for item in value: + name = getattr(item, "name", "") + annotation = text(getattr(item, "annotation", "")) + label = f"`{name}`" if name else f"`{annotation}`" if annotation else "Value" + if name and annotation: + label += f" (`{annotation}`)" + items.append(f"- {label}: {item.description}") + out.append(f"{hn} {kind.title()}\n\n" + "\n".join(items)) + elif kind == "examples": + out.append(f"{hn} Examples") + for _, example in value: + out.append(f"```python\n{example}\n```") + elif kind == "admonition": + out.append(f"{hn} {value.annotation.replace('-', ' ').title()}") + description = value.description + out.append( + f"```python\n{description}\n```" + if description.lstrip().startswith(">>>") + else description + ) + if not out: + return "" + # A copied example imports what it reads from the module: its own names, and its imports as written. + conv.example_imports = {name: f"from {obj.module.path} import {name}" for name in obj.module.members} + for node in ast.parse(Path(obj.module.filepath).read_text()).body: + if isinstance(node, ast.Import) or (isinstance(node, ast.ImportFrom) and not node.level): + for alias in node.names: + conv.example_imports[alias.asname or alias.name.split(".")[0]] = ast.unparse( + type(node)(**{**vars(node), "names": [alias]}) + ) + try: + return conv.fragment("\n\n".join(out)) + finally: + conv.example_imports = {} + + +def docstring_map(obj: Object, kind: str) -> dict: + """`{name: (annotation, description)}` for one structured docstring section.""" + if not obj.docstring: + return {} + found = {} + for section in obj.docstring.parsed: + if section.kind.value != kind: + continue + for item in section.value: + found[getattr(item, "name", "")] = ( + text(getattr(item, "annotation", "")), + item.description, + ) + return found + + +def parameters(func: Function, conv: Converter, extra: dict | None = None) -> list[dict]: + """Signature parameters, each carrying its docstring description. + + `extra` covers the constructors: no class here documents its arguments on + `__init__`, so the Args block sits on the class docstring instead. + """ + docs = {**(extra or {}), **docstring_map(func, "parameters")} + out = [] + for param in func.parameters: + if param.name in ("self", "cls"): + continue + kind = getattr(param.kind, "value", str(param.kind)) + if kind == "keyword_only" and param.name == "*": + continue # the bare keyword-only marker carries no information + prefix = VARIADIC.get(kind, "") + doc_annotation, description = docs.get(param.name, ("", "")) + default = text(param.default) if param.default is not None else None + out.append( + { + "name": prefix + param.name, + "type": text(param.annotation) or doc_annotation, + "default": default, + "required": default is None and not prefix, + "doc": conv.fragment(description) if description else "", + } + ) + return out + + +def returns(func: Function, conv: Converter) -> dict | None: + annotation = text(func.returns) + doc_annotation, description = docstring_map(func, "returns").get("", ("", "")) + annotation = annotation or doc_annotation + if not annotation and not description: + return None + return {"type": annotation, "doc": conv.fragment(description) if description else ""} + + +def source(obj: Object, repo: Repo) -> str: + filepath = getattr(obj, "filepath", None) + if not filepath: + return "" + try: + relative = Path(filepath).resolve().relative_to(repo.src.resolve()) + except ValueError: + return "" + line = getattr(obj, "lineno", None) + return f"{repo.github}blob/main/src/{relative}" + (f"#L{line}" if line else "") + + +def members(cls: Class, repo: Repo, conv: Converter) -> list[dict]: + """Public attributes, properties and methods. + + Inherited members come first, in the order the base declares them, because + that is the order a dataclass config takes its arguments; anything the + class redeclares replaces the inherited entry in place. + """ + attribute_docs = docstring_map(cls, "attributes") + try: + inherited = dict(cls.inherited_members) + except Exception: + inherited = {} + ordered = {name: (m, True) for name, m in inherited.items()} + ordered.update({name: (m, False) for name, m in cls.members.items()}) + out = [] + for name, (member, is_inherited) in ordered.items(): + if name.startswith("_"): + continue + # an inherited member arrives as an alias into the base class, whose + # name is worth showing: it tells you where to look for the real docs + if isinstance(member, Alias): + try: + member = member.final_target + except Exception: + continue + owner = getattr(getattr(member, "parent", None), "name", "") + base = owner if is_inherited and owner and owner != cls.name else "" + if isinstance(member, Function): + is_property = "property" in member.labels + signature = str(member.signature()) + if is_property: + signature = f"{name}: {text(member.returns)}" if member.returns else name + out.append( + { + "kind": "property" if is_property else "method", + "base": base, + "name": name, + "signature": signature, + "source": source(member, repo), + "doc": prose(member, conv, 3), + "params": [] if is_property else parameters(member, conv), + "returns": None if is_property else returns(member, conv), + } + ) + elif member.is_attribute and member.annotation is not None: + # griffe models a @property as an attribute whose annotation is + # the getter's return type + is_property = "property" in member.labels + signature = f"{name}: {text(member.annotation)}" + if "class-attribute" in member.labels and member.value is not None: + signature += f" = {text(member.value)}" + description = ( + member.docstring.value + if member.docstring + else attribute_docs.get(name, ("", ""))[1] + ) + out.append( + { + "kind": "property" if is_property else "attribute", + "base": base, + "name": name, + "signature": signature, + "source": source(member, repo), + "doc": prose(member, conv, 3) if member.docstring else conv.fragment(description) if description else "", + "params": [], + "returns": None, + } + ) + return out + + +def symbol(public_name: str, module_name: str, obj: Object, repo: Repo, conv: Converter) -> dict: + """One published class or function, as the reference block needs it.""" + # a symbol published from its own module (geom.sample_farthest_points) + # would otherwise repeat its name in the qualified head + if module_name.endswith(f".{public_name}"): + module_name = module_name.rsplit(".", 1)[0] + entry = { + "kind": "class" if isinstance(obj, Class) else "function", + "name": public_name, + "module": module_name, + "source": source(obj, repo), + "anchor": re.sub(r"[^a-z0-9]+", "-", public_name.lower()).strip("-"), + "doc": prose(obj, conv), + } + if isinstance(obj, Class): + bases = ", ".join(text(base) for base in obj.bases) + if bases: + entry["bases"] = bases + init = obj.members.get("__init__") + entry["params"] = ( + parameters(init, conv, docstring_map(obj, "parameters")) + if isinstance(init, Function) + else [] + ) + # a dataclass has no __init__ to read, so the head keeps just the name + entry["callable"] = isinstance(init, Function) + entry["returns"] = None + entry["members"] = members(obj, repo, conv) + else: + entry["params"] = parameters(obj, conv) + entry["callable"] = True + entry["returns"] = returns(obj, conv) + entry["members"] = [] + return entry + + +def load_package(name: str, src: Path) -> Module: + """Load one package for reading, without importing it.""" + return load( + name, + search_paths=[src], + allow_inspection=False, + resolve_aliases=True, + resolve_external=False, + resolve_implicit=True, + docstring_parser="google", + ) + + +def resolve(package: Module, qualname: str, repo: Repo, conv: Converter) -> dict: + """Turn a `::: pkg.mod.Symbol` name into the model the renderer wants.""" + module_path, _, public_name = qualname.rpartition(".") + relative = re.sub(rf"^{package.name}\.?", "", module_path) + module = package[relative] if relative else package + if not isinstance(module, Module): + sys.exit(f"module not found: {module_path}") + if public_name not in module.members: + sys.exit(f"not found: {qualname}") + selected = module[public_name] + obj = selected.final_target if isinstance(selected, Alias) else selected + if not isinstance(obj, (Class, Function)): + sys.exit(f"unsupported API object: {qualname}") + return symbol(public_name, module_path, obj, repo, conv) diff --git a/scripts/assemble_landing_teaser.py b/scripts/assemble_landing_teaser.py new file mode 100644 index 0000000..2250c7e --- /dev/null +++ b/scripts/assemble_landing_teaser.py @@ -0,0 +1,187 @@ +#!/usr/bin/env python3 +"""Encode fresh Blender frames and hero cuts into the landing page's video and poster assets. + +uv run --no-project python scripts/assemble_landing_teaser.py + +Inputs: --renders //frame_XXXX.png from Blender, and +the RetargetingKit, GraspKit and RoboSkills clips, which supply their shots. +Outputs: the teaser and four matching kit previews under assets/{videos,images}/landing/. +Use --previews-only to refresh the cards from an existing teaser. +Use --kit graspkit to replace that shot and card while preserving the other kits. +Intermediate clips and render provenance stay in ignored output/landing-teaser/. +""" + +import argparse +import hashlib +import json +import struct +import subprocess +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent +OUT = ROOT / "output/landing-teaser" +MOVIE = ROOT / "assets/videos/landing/teaser.mp4" +POSTER = ROOT / "assets/images/landing/teaser.webp" +SIZE = 1600 # every shot matches, so the concat can copy streams +CLIPS = ( + ("RoboKit", "Motion planning", "motion_planning"), + ("RetargetingKit", "Scene interaction", "full-body-cutting"), + ("GraspKit", "Pick and place", "hero-place"), + ("RoboSkills", "Paper folding", "paper-folding"), +) +# Three shots are cut from their kit's hero clip rather than rendered: 4 s squared +# up around the action (a short crop is padded square), and the clip's ground +# lifted to the teaser's, so the page band shows through the multiply as it does +# for the renders. +HERO_CUTS = { + # The kitchen scene's broad floor shadow would still darken that ground out + # to the frame edge, so, like the renders' haze cut, faint shading fades to + # the ground: a pixel's darkest channel 16 levels under it goes, 40 under it + # stays whole. The shadow is smeared into the padding. + "full-body-cutting": dict(clip=ROOT / "assets/videos/retargetingkit/hero/full-body-cutting.mp4", + start=5, crop=(1200, 1080, 320, 0), ground=(233, 242, 247), flatten=True), + # Keep Ability -> Sharpa and Panda -> xArm -> Vega at the original speed. + # Start after Inspire has vanished and finish before Vega's return wipe. + # Fade the cropped torso into the ground instead of smearing it into padding. + "hero-place": dict(clip=ROOT / "assets/videos/graspkit/hero-place.mp4", + start=77 / 30, crop=(1440, 1080, 380, 0), ground=(231, 235, 228), + flatten=False, fade_bottom=80), + # The paper-folding teaser already sits on a near-white studio; its first + # 4 s keep both hands in a 1560px-wide crop, and flattening drops the floor + # line and contact shadow so only the hands and paper remain. The padding is + # plain ground: smearing would drag the faint shadow into vertical streaks. + "paper-folding": dict(clip=ROOT / "assets/videos/roboskills/teaser/paper-folding.mp4", + start=0, crop=(1560, 1080, 240, 0), ground=(248, 248, 246), flatten=True, + smear=False), +} + + +def ffmpeg(args: list[str]) -> None: + subprocess.run(["ffmpeg", "-y", "-hide_banner", "-loglevel", "error", "-xerror", *args], check=True) + + +def encode_hero_cut(cut: dict, output: Path) -> None: + w, h, x, y = cut["crop"] + r, g, b = cut["ground"] + pad = (w - h) // 2 + chain = ["scale=in_color_matrix=bt709:in_range=tv", "fps=30", "format=rgb24", f"crop={w}:{h}:{x}:{y}"] + if cut.get("fade_bottom"): + fade = f"clip((H-1-Y)/{cut['fade_bottom']},0,1)" + chain.append("geq=" + ":".join(f"{channel}='{channel}(X,Y)*{fade}+{ground}*(1-{fade})'" + for channel, ground in zip("rgb", (r, g, b)))) + if pad: + chain.append(f"pad={w}:{w}:0:{pad}:color=0x{r:02x}{g:02x}{b:02x}") + if not cut.get("fade_bottom") and cut.get("smear", True): + chain.append(f"fillborders=top={pad}:bottom={pad}:mode=smear") + chain.append(f"colorchannelmixer=rr={250 / r:.5f}:gg={250 / g:.5f}:bb={248 / b:.5f}") + if cut["flatten"]: + keep = ("st(0,max(max(250-r(X,Y),250-g(X,Y)),248-b(X,Y)));" + "st(1,clip((ld(0)-16)/24,0,1));st(1,ld(1)*ld(1)*(3-2*ld(1)))") + chain.append(f"geq=r='{keep};250-(250-r(X,Y))*ld(1)':g='{keep};250-(250-g(X,Y))*ld(1)'" + f":b='{keep};248-(248-b(X,Y))*ld(1)'") + chain.append(f"scale={SIZE}:{SIZE}:flags=lanczos:out_color_matrix=bt709:out_range=tv,format=yuv420p") + graph = f"[0:v]{','.join(chain)}[v]" + ffmpeg(["-threads", "2", "-ss", str(cut["start"]), "-i", str(cut["clip"]), + "-filter_complex_threads", "2", "-filter_complex", graph, "-map", "[v]", + "-frames:v", "120", "-an", "-c:v", "libx264", "-threads", "6", "-crf", "14", + "-preset", "medium", "-pix_fmt", "yuv420p", "-colorspace", "bt709", + "-color_primaries", "bt709", "-color_trc", "bt709", "-color_range", "tv", + "-movflags", "+faststart", str(output)]) + + +def export_previews(kit: str | None = None) -> None: + for i, (name, _, _) in enumerate(CLIPS): + if kit and name.lower() != kit: + continue + clip = MOVIE.with_name(f"{name.lower()}.mp4") + poster = POSTER.with_name(f"{name.lower()}.webp") + ffmpeg(["-threads", "2", "-ss", str(i * 4), "-i", str(MOVIE), "-t", "4", + "-vf", "scale=640:640", "-an", "-c:v", "libx264", "-threads", "2", + "-crf", "19", "-preset", "medium", "-movflags", "+faststart", str(clip)]) + ffmpeg(["-threads", "2", "-ss", "1", "-i", str(clip), "-frames:v", "1", + "-c:v", "libwebp", "-quality", "90", "-threads", "2", str(poster)]) + print(f"{name}: matching 4s preview and poster", flush=True) + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--renders", type=Path, help="Blender frames, one folder per shot; required unless --previews-only") + parser.add_argument("--previews-only", action="store_true") + parser.add_argument("--kit", choices=[name.lower() for name, _, _ in CLIPS]) + args = parser.parse_args() + if args.previews_only: + export_previews(args.kit) + return + OUT.mkdir(parents=True, exist_ok=True) + MOVIE.parent.mkdir(parents=True, exist_ok=True) + POSTER.parent.mkdir(parents=True, exist_ok=True) + shots = [] + provenance = [] + previous_version = hashlib.sha256(MOVIE.read_bytes()).hexdigest()[:10] if args.kit else None + for i, (name, task, stem) in enumerate(CLIPS): + output = OUT / f"{stem}.mp4" + if args.kit and name.lower() != args.kit: + ffmpeg(["-ss", str(i * 4), "-i", str(MOVIE), "-frames:v", "120", + "-map", "0:v", "-an", "-c", "copy", "-movflags", "+faststart", str(output)]) + shots.append(output) + provenance.append(dict(name=name, task=task, retained_from=previous_version, start=i * 4)) + print(f"{name}: retained original 4s shot without re-encoding", flush=True) + continue + if cut := HERO_CUTS.get(stem): + encode_hero_cut(cut, output) + shots.append(output) + provenance.append(dict(name=name, task=task, clip=str(cut["clip"].relative_to(ROOT)), start=cut["start"])) + print(f"{name}: {cut['start']}-{cut['start'] + 4}s of {cut['clip'].name}, squared to {SIZE}px", flush=True) + continue + if args.renders is None: + parser.error(f"--renders is required to encode {name}'s Blender shot") + frames = args.renders / stem + assert len(list(frames.glob("frame_*.png"))) == 120, f"Expected 120 rendered frames in {frames}" + meta = json.loads((frames / "render-meta.json").read_text()) + size = meta["size"] + assert size == SIZE, f"{SIZE}px renders required: {size}px" + for frame in range(120): + path = frames / f"frame_{frame:04d}.png" + with path.open("rb") as image: + header = image.read(24) + image.seek(-12, 2) + footer = image.read(12) + assert header[:8] == b"\x89PNG\r\n\x1a\n", f"Invalid PNG: {path}" + assert struct.unpack(">II", header[16:24]) == (size, size), f"Wrong frame size: {path}" + assert footer == b"\x00\x00\x00\x00IEND\xaeB`\x82", f"Incomplete frame: {path}" + # Remove low-opacity floor haze while retaining opaque meshes and stronger shadows. + graph = ( + f"color=c=0xFAFAF8:s={size}x{size}:r=30:d=4[bg];" + "[0:v]format=rgba,lut=a='max(0,(val-24)*255/231)'[fg];" + "[bg][fg]overlay=shortest=1:format=rgb," + "scale=out_color_matrix=bt709:out_range=tv,format=yuv420p[v]" + ) + ffmpeg(["-threads", "2", "-framerate", "30", "-i", str(frames / "frame_%04d.png"), + "-filter_complex_threads", "2", "-filter_complex", graph, "-map", "[v]", + "-frames:v", "120", "-an", "-c:v", "libx264", "-threads", "6", "-crf", "14", + "-preset", "medium", "-pix_fmt", "yuv420p", "-colorspace", "bt709", + "-color_primaries", "bt709", "-color_trc", "bt709", "-color_range", "tv", + "-movflags", "+faststart", str(output)]) + shots.append(output) + provenance.append(dict(name=name, task=task, render=meta)) + print(f"{name}: {size}×{size}, 120 frames, native render, CRF 14", flush=True) + concat = OUT / "shots.txt" + concat.write_text("".join(f"file '{shot.name}'\n" for shot in shots)) + movie = MOVIE + ffmpeg(["-f", "concat", "-safe", "0", "-i", str(concat), "-c", "copy", + "-movflags", "+faststart", str(movie)]) + if args.kit is None or args.kit == "robokit": + ffmpeg(["-threads", "2", "-ss", "1", "-i", str(movie), "-frames:v", "1", + "-c:v", "libwebp", "-quality", "95", "-threads", "2", str(POSTER)]) + export_previews(args.kit) + version = hashlib.sha256(movie.read_bytes()).hexdigest()[:10] + (OUT / "sources.json").write_text(json.dumps({ + "duration": 4 * len(CLIPS), "fps": 30, "shot_duration": 4, "clips": provenance, + "assembly": "Native-resolution render and squared hero cuts; direct cuts; one kit at a time; labels are HTML.", + }, indent=2) + "\n") + print(f"{movie.relative_to(ROOT)}: {4 * len(CLIPS)}s, {120 * len(CLIPS)} frames, {movie.stat().st_size / 1048576:.2f} MB", flush=True) + print(f"Poster: {POSTER.relative_to(ROOT)}; asset version: {version}", flush=True) + + +if __name__ == "__main__": + main() diff --git a/scripts/benchmark_graspkit_optimization.py b/scripts/benchmark_graspkit_optimization.py new file mode 100644 index 0000000..4a79764 --- /dev/null +++ b/scripts/benchmark_graspkit_optimization.py @@ -0,0 +1,85 @@ +"""Measure a warmed 1,024-grasp batch without modifying the GraspKit checkout.""" + +import argparse +import json +import math +import statistics +import time +from dataclasses import asdict +from pathlib import Path + +import numpy as np +import torch +import warp as wp + +from graspkit.assets.scene_descriptions import dex1b_v0_5_0 +from graspkit.configs.experiment_config import GraspOptimConfig +from graspkit.configs.robot.sharpa import sharpa_right +from graspkit.scene.scene_description import SceneDescription +from graspkit.stages.grasp_optim import WarpGraspOptimizer +from graspkit.stages.grasp_optim.warp_optimizer import LM_ITERS, LM_NUM_CANDIDATES + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--optimizer-backend", choices=("warp_gd", "warp_lm"), required=True) + parser.add_argument("--scene-geom-backend", choices=("mesh", "sdf_volume"), required=True) + args = parser.parse_args() + args.output.mkdir(parents=True, exist_ok=True) + torch.set_num_threads(4) + device = torch.device("cuda:0") + hardware = torch.cuda.get_device_name(device) + assert "RTX 4090" in hardware + registry = SceneDescription.load_scene_descriptions_msgpack(str(dex1b_v0_5_0.TABLETOP_MINI_PATH)) + ids = sorted(registry) + scenes = [registry[ids[i]] for i in np.linspace(0, len(ids) - 1, 32, dtype=int)] + for scene in scenes: + for mesh in scene.meshes.values(): + path = Path(mesh.collision_mesh_path) + if not path.is_absolute(): + mesh.collision_mesh_path = str(Path.home() / ".graspkit" / path) + assert Path(mesh.collision_mesh_path).is_file(), mesh.collision_mesh_path + cfg = GraspOptimConfig( + optimizer_backend=args.optimizer_backend, scene_geom_backend=args.scene_geom_backend, num_iters=6000, + num_contact_points=5, spen_threshold=0, + front_theta_lower=-math.pi, front_theta_upper=math.pi, + ) + optimizer = WarpGraspOptimizer(cfg, sharpa_right, device) + torch.manual_seed(42) + np.random.seed(42) + print(f"WARMUP: 32 scenes × 32 samples = 1024 grasps; {hardware}", flush=True) + optimizer.optimize(scenes, 32) + timings = [] + for repeat in range(3): + torch.manual_seed(42 + repeat) + np.random.seed(42 + repeat) + torch.cuda.synchronize() + wp.synchronize() + started = time.perf_counter() + grasps = optimizer.optimize(scenes, 32) + torch.cuda.synchronize() + wp.synchronize() + elapsed = time.perf_counter() - started + assert grasps.shape[:2] == (32, 32) and torch.isfinite(grasps).all() + timings.append(elapsed) + print(f"RUN {repeat + 1}: 1024 grasps in {elapsed:.6f} s", flush=True) + np.save(args.output / "grasps.npy", grasps.cpu().numpy()) + SceneDescription.save_scene_descriptions_msgpack({s.scene_id: s for s in scenes}, str(args.output / "scenes.msgpack")) + result = { + "batch": 1024, "scenes": 32, "samples_per_scene": 32, + "hardware": "RTX 4090", "device_name": hardware, + "seconds": statistics.median(timings), "runs_seconds": timings, + "scope": "warm optimize() call including initialization and GPU synchronization; asset loading, SDF baking, and JIT warmup excluded", + "solver_iterations": LM_ITERS if cfg.optimizer_backend == "warp_lm" else cfg.num_iters, + "candidates_per_grasp": LM_NUM_CANDIDATES if cfg.optimizer_backend == "warp_lm" else 1, + "config": asdict(cfg), "robot": "sharpa_right", "scene_ids": [s.scene_id for s in scenes], + "torch_version": torch.__version__, "warp_version": wp.__version__, + "graspkit_revision": json.loads((args.output / "source.json").read_text())["graspkit_revision"], + } + (args.output / "timing.json").write_text(json.dumps(result, indent=2) + "\n") + print(f"PASS: median {result['seconds']:.6f} s; 1024 finite grasps saved", flush=True) + + +if __name__ == "__main__": + main() diff --git a/scripts/benchmark_scale.py b/scripts/benchmark_scale.py new file mode 100644 index 0000000..1ab83ae --- /dev/null +++ b/scripts/benchmark_scale.py @@ -0,0 +1,425 @@ +"""Measure representative RoboKit batches; run in the RoboKit environment on a free GPU. + +CUDA_VISIBLE_DEVICES=7 OMP_NUM_THREADS=4 PYTHONPATH=/src \ + uv run --no-sync python /scripts/benchmark_scale.py --task ik \ + --source-root --asset-root ~/.robokit/assets --output results.json +""" + +import argparse +import gc +import hashlib +import json +import subprocess +import time +from collections.abc import Callable +from datetime import datetime, timezone +from pathlib import Path + +import numpy as np +import trimesh +import warp as wp +from robokit.geom import MeshGeom, WarpScene +from robokit.helpers.grasp import ContactSamplerConfig, ContactVar +from robokit.helpers.hand_retargeting import ( + HandRetargeterOnline, + HandRetargeterOnlineConfig, + HandSpec, +) +from robokit.helpers.humanoid_retargeting import ( + HumanoidRetargeterOnline, + HumanoidRetargeterOnlineConfig, + LinkMapping, +) +from robokit.helpers.ik import IKSolver +from robokit.helpers.ik import presets as ik_presets +from robokit.helpers.motion_plan import MotionPlanner +from robokit.helpers.motion_plan import presets as motion_presets +from robokit.lie.se3 import se3_identity +from robokit.opt.lm_optimizer import LMOptimizerConfig +from robokit.opt.population_solver import PopulationSolver, PopulationSolverConfig +from robokit.opt.var_values import VarValues +from robokit.robo import Robot +from robokit.terms.dense.force_closure_task import ForceClosureTask +from robokit.terms.dense.position_limit import PositionLimit +from robokit.terms.dense.scene_collision_task import SceneCollisionTask +from robokit.terms.dense.scene_distance_task import SceneDistanceTask +from robokit.utils.ee_coord_utils import MANOPTH_HAND_COORD_SPEC, HandCoordinateSpec +from robokit.utils.warp_utils import wp_vec7 + + +def workload( + task: str, batch: int, assets: Path, source: Path +) -> tuple[Callable, dict]: + from dataclasses import replace + + device = "cuda:0" + rng = np.random.default_rng(42) + if task in ("ik", "motion-planning"): + model = assets / "robots/robot_description/arms/franka_panda/panda_arm.urdf" + robot = Robot.load( + model, + load_meshes=True, + load_collision_spheres=task == "motion-planning", + collision_spheres_path=assets + / "robots/collision_spheres/franka_panda/arm.yaml" + if task == "motion-planning" + else None, + ) + rest = np.array([0, -0.4, 0, -1.8, 0, 1.5, 0.7], np.float32) + start_q = np.tile(rest, (batch, 1)) + goal_q = np.clip( + start_q + rng.uniform(-0.45, 0.45, start_q.shape), + *robot.spec.actuated_joint_limits.T, + ).astype(np.float32) + start = robot.state(q=wp.array(start_q, dtype=wp.float32, device=device)) + goal = robot.forward_kinematics( + robot.state(q=wp.array(goal_q, dtype=wp.float32, device=device)) + ) + poses = goal.T_world_link.numpy()[:, robot.spec.link_names.index("panda_link8")] + target = wp.array(poses[:, None], dtype=wp_vec7, device=device) + if task == "ik": + helper = IKSolver( + ik_presets.smooth, + robot=robot, + target_links="panda_link8", + device=device, + ) + helper.warmup(batch_size=batch) + return lambda _: helper.solve(target, prev_state=start), { + "model": "Franka Panda", + "workload": "IK smooth preset, reachable pose goals", + "unit": "batch solve", + } + obstacle = trimesh.creation.icosphere(subdivisions=2, radius=0.09) + obstacle.apply_translation([0.45, 0.0, 0.3]) + scene = WarpScene(1, device).add(MeshGeom([obstacle], np.array([0, 1]))) + config = replace( + motion_presets.offline_pose_lm, + ik_config=motion_presets.build_offline_ik_config(num_samples=64), + ) + helper = MotionPlanner(config, robot, "panda_link8", scene=scene, device=device) + helper.warmup(batch) + return lambda _: helper.solve_offline(start, T_world_target=target), { + "model": "Franka Panda", + "workload": "32-step collision-aware pose plan, 8 candidates, 50 LM iterations; goal IK and retiming included", + "unit": "batch solve", + "obstacle": "9 cm sphere at (0.45, 0, 0.3)", + } + + if task == "hand-retargeting": + model = ( + assets + / "robots/robot_description/end_effectors/shadow_hand/shadow_hand_right.urdf" + ) + robot = Robot.load(model) + names = ("wrist",) + tuple( + f"{finger}_{joint}" + for finger, joints in ( + ("thumb", ("cmc", "mcp", "ip", "tip")), + ("index", ("mcp", "pip", "dip", "tip")), + ("middle", ("mcp", "pip", "dip", "tip")), + ("ring", ("mcp", "pip", "dip", "tip")), + ("pinky", ("mcp", "pip", "dip", "tip")), + ) + for joint in joints + ) + links = { + "wrist": "palm", + **dict( + zip( + ( + f"{finger}_tip" + for finger in ("thumb", "index", "middle", "ring", "pinky") + ), + ("thtip", "fftip", "mftip", "rftip", "lftip"), + ) + ), + } + tips = names[4::4] + pairs = [("wrist", tip) for tip in tips] + [ + (a, b) for i, a in enumerate(tips) for b in tips[i + 1 :] + ] + spec = HandSpec( + floating_base=True, + target_names=names, + target_link_names=links, + target_chains=tuple(tuple(names[1 + 4 * i : 5 + 4 * i]) for i in range(5)), + root_target_name="wrist", + contact_target_names=tips, + target_coord_spec=MANOPTH_HAND_COORD_SPEC, + root_link_coord_spec=HandCoordinateSpec( + palm_forward_axis="-y", four_fingers_up_axis="-z" + ), + ) + config = HandRetargeterOnlineConfig( + vector_weights={(links[a], links[b], a, b): 1.0 for a, b in pairs}, + q_smoothness_weight=0.03, + regularization_weight=0.001, + solver=PopulationSolverConfig( + num_iters=10, + num_candidates=[1], + optimizer=LMOptimizerConfig(lm_lambda=0.01), + cuda_graph_mode="full", + ), + ) + helper = HandRetargeterOnline(config, robot, spec, device) + helper.warmup(batch) + with np.load(source / "tests/fixtures/hand_retargeting_golden.npz") as data: + frames = data["input_long_keypoints"][:25] + targets = [ + wp.array( + np.repeat(frame[None], batch, axis=0), dtype=wp.float32, device=device + ) + for frame in frames + ] + return lambda i: helper.solve(targets[i % len(targets)]), { + "model": "Shadow Hand", + "workload": "21-point hand stream, 15 vector objectives, 10 LM iterations", + "unit": "per frame", + } + + if task == "humanoid-retargeting": + model = assets / "robots/robot_description/humanoids/unitree_g1/g1_29dof.urdf" + robot = Robot.load(model) + names = ( + "pelvis", + "left_hip_roll_link", + "right_hip_roll_link", + "left_knee_link", + "right_knee_link", + "left_ankle_roll_link", + "right_ankle_roll_link", + "torso_link", + "left_shoulder_yaw_link", + "right_shoulder_yaw_link", + "left_elbow_link", + "right_elbow_link", + "left_wrist_yaw_link", + "right_wrist_yaw_link", + ) + config = HumanoidRetargeterOnlineConfig( + urdf_path=str(model), + human_root_name="pelvis", + human_height_assumption=1.32, + robot_height=1.32, + scale_table=dict.fromkeys(names, 1.0), + link_mapping={ + name: LinkMapping( + name, + 30.0, + 30.0, + np.zeros(3, np.float32), + np.array([1, 0, 0, 0], np.float32), + ) + for name in names + }, + smoothness_weight=25.0, + velocity_limit_weight=0.2, + solver=PopulationSolverConfig( + num_iters=9, + select_at=[6], + num_candidates=[4, 1], + optimizer=LMOptimizerConfig(lm_lambda=1.5), + cuda_graph_mode="full", + ), + ) + helper = HumanoidRetargeterOnline(config, robot=robot, device=device) + helper.warmup(batch) + q = np.clip( + np.sin(np.arange(25)[:, None] * 0.15 + rng.uniform(0, 6.28, (1, 29))) * 0.2, + *robot.spec.actuated_joint_limits.T, + ).astype(np.float32) + base = se3_identity((25,), device) + base_np = base.numpy() + base_np[:, 2] = 0.8 + state = robot.forward_kinematics( + robot.state( + q=wp.array(q, dtype=wp.float32, device=device), + T_world_base=wp.array(base_np, dtype=wp_vec7, device=device), + ) + ) + poses = state.T_world_link.numpy()[ + :, [robot.spec.link_names.index(name) for name in helper.human_joint_names] + ] + targets = [ + wp.array( + np.repeat(frame[None], batch, axis=0), dtype=wp_vec7, device=device + ) + for frame in poses + ] + return lambda i: helper.solve(targets[i % len(targets)]), { + "model": "Unitree G1", + "workload": "29 DOF, 14 pose targets, 9 LM iterations, 4 to 1 candidates; generated feasible motion", + "unit": "per frame", + } + + model = ( + assets + / "robots/robot_description/end_effectors/shadow_hand/shadow_hand_right.urdf" + ) + robot = Robot.load( + model, + load_meshes=True, + load_collision_spheres=True, + collision_spheres_path=assets + / "robots/collision_spheres/shadow_hand_right/collision_spheres.yaml", + ) + meshes = robot.spec.get_link_meshes("visual") + points, indices = [], [] + for link in ("thdistal", "ffdistal", "mfdistal", "rfdistal", "lfdistal"): + vertices = meshes[link].vertices + points.extend(vertices[np.linspace(0, len(vertices) - 1, 32, dtype=int)]) + indices.extend([robot.spec.link_names.index(link)] * 32) + rows = batch * 4 + contacts = ContactVar( + np.array(points, np.float32), + np.array(indices, np.int32), + rows, + 5, + 0.0, + seed=42, + device=device, + ) + base = np.tile(np.array([0.06, 0, 0.0, 1, 0, 0, 0], np.float32), (rows, 1)) + base[:, :3] += rng.normal(0, 0.015, (rows, 3)) + state = robot.state( + q=wp.array( + np.clip( + np.full((rows, robot.spec.num_actuated_joints), 0.2), + *robot.spec.actuated_joint_limits.T, + ).astype(np.float32), + device=device, + ), + T_world_base=wp.array(base, dtype=wp_vec7, device=device), + ) + state.clamp_q_on_integrate = True + initial = VarValues(robot=state, contacts=contacts) + scene = WarpScene(1, device).add( + MeshGeom( + [trimesh.creation.cylinder(radius=0.035, height=0.19)], np.array([0, 1]) + ) + ) + query = { + "robot": robot, + "warp_meshes": scene, + "num_contact_points": 5, + "points_var_key": "contacts", + } + distance = SceneDistanceTask(weight=100.0, residual_mode="abs", **query) + terms = [ + distance, + ForceClosureTask(weight=1.0, distance_task=distance, **query), + PositionLimit(robot=robot, weight=1.0), + SceneCollisionTask( + robot=robot, + scene=scene, + scene_indices=wp.zeros(1, dtype=wp.int32, device=device), + weight=100.0, + ), + ] + config = PopulationSolverConfig( + num_iters=64, + num_candidates=[4, 1], + select_at=[64], + samplers=[ContactSamplerConfig(seed=42)], + sample_at=range(0, 64, 8), + optimizer=LMOptimizerConfig(use_parallel_terms=False), + cuda_graph_mode="full", + ) + helper = PopulationSolver([terms, terms], config, device) + seeds = initial.clone() + reset_mask = wp.ones(rows, dtype=wp.int32, device=device) + + def solve_grasp(_: int): + initial.accept(reset_mask, seeds) + initial.invalidate() + return helper.solve(initial) + + return solve_grasp, { + "model": "Shadow Hand", + "workload": "Floating-hand mesh grasp, cylinder, 5 contacts, 64 LM iterations, 4 candidates; contact resampling every 8 iterations", + "unit": "batch solve", + "includes": "distance, force closure, joint limits, object collision; excludes arm planning and physics validation", + } + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--task", + choices=( + "ik", + "motion-planning", + "grasping-optimization", + "hand-retargeting", + "humanoid-retargeting", + ), + required=True, + ) + parser.add_argument("--batches", default="1,10,100,1000,2000") + parser.add_argument("--runs", type=int, default=20) + parser.add_argument("--warmup", type=int, default=5) + parser.add_argument("--asset-root", type=Path, required=True) + parser.add_argument("--source-root", type=Path, required=True) + parser.add_argument("--source-commit") + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args() + wp.init() + result = { + "task": args.task, + "gpu": wp.get_device("cuda:0").name, + "warp": wp.__version__, + "commit": args.source_commit + or subprocess.check_output( + ["git", "-C", str(args.source_root), "rev-parse", "HEAD"], text=True + ).strip(), + "date": datetime.now(timezone.utc).isoformat(), # noqa: UP017 (GPU environment uses Python 3.10) + "runs": args.runs, + "warmup": args.warmup, + "statistic": "median CUDA-synchronized wall time, seconds", + "scope": "solver call; excludes construction, warmup and host input preparation", + "script_sha256": hashlib.sha256(Path(__file__).read_bytes()).hexdigest(), + "steps": [], + } + for batch in map(int, args.batches.split(",")): + solve, details = workload(args.task, batch, args.asset_root, args.source_root) + for i in range(args.warmup): + solve(i) + wp.synchronize_device("cuda:0") + samples = [] + for i in range(args.runs): + wp.synchronize_device("cuda:0") + start = time.perf_counter() + output = solve(i + args.warmup) + wp.synchronize_device("cuda:0") + samples.append(time.perf_counter() - start) + values = ( + output.q.numpy() + if args.task == "ik" + else output[0].q.numpy() + if args.task == "motion-planning" + else output[0].get("robot").q.numpy() + if args.task == "grasping-optimization" + else output.numpy() + ) + assert values.shape[0] == batch and np.isfinite(values).all(), values.shape + step = { + "batch": batch, + "seconds": float(np.median(samples)), + "p95_seconds": float(np.percentile(samples, 95)), + "samples_seconds": samples, + **details, + } + result["steps"].append(step) + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(result, indent=2) + "\n") + print( + f"{args.task} batch={batch}: {step['seconds']:.6f} s (median, {args.runs} runs)", + flush=True, + ) + del solve, output + gc.collect() + + +if __name__ == "__main__": + main() diff --git a/scripts/build_docs.py b/scripts/build_docs.py new file mode 100644 index 0000000..5fa13a7 --- /dev/null +++ b/scripts/build_docs.py @@ -0,0 +1,417 @@ +# /// script +# requires-python = ">=3.10" +# /// +"""data/docs/*.js -> one static HTML page per document, plus a search index. + +The docs used to be a single-page app: a 48-line shell that fetched the whole +1.2 MB corpus and rendered whichever page the query string named. Every reader +paid for every page, deep links rendered nothing until the script ran, and the +Back button had to be emulated. + +So the rendering happens here instead. Each document becomes +`_page/docs///index.html`, complete with its sidebar, breadcrumb, rail and +prev/next links, and the browser is left with the things that genuinely need +one: syntax highlighting, copy buttons, the scroll-spy rail, and search. + +Search reads `data/search.json`, which is fetched only once someone actually +types -- 51 KB gzipped against the 115 KB the old page loaded every time. + + uv run scripts/build_docs.py +""" + +import html +import json +import re +import shutil +import subprocess +import sys +from pathlib import Path +from urllib.parse import parse_qs, urlsplit + +sys.path.insert(0, str(Path(__file__).resolve().parent)) + +import apihtml # noqa: E402 + +ROOT = Path(__file__).resolve().parent.parent +DATA = ROOT / "data" / "docs" +OUT = ROOT / "_page" / "docs" +INDEX = ROOT / "_page" / "data" / "search.json" + +SITE_JS = ROOT / "assets" / "js" / "site.js" +BRAND = "OpenRoboKit" +VERSION = "v0.1.0 · MIT" + + +def kit_names() -> dict[str, str]: + """Display names, read from the RK_NAMES literal the nav is built from. + + The browser and this renderer must call a kit the same thing, so site.js + stays the single authority and the build parses it rather than repeating it. + """ + block = re.search(r"window\.RK_NAMES = \{(.*?)\}", SITE_JS.read_text(), re.S) + if not block: + raise SystemExit(f"no RK_NAMES literal in {SITE_JS}") + names = dict(re.findall(r"(\w+):\s*'([^']+)'", block.group(1))) + if not names: + raise SystemExit(f"RK_NAMES in {SITE_JS} is empty") + return names + + +NAMES = kit_names() +KITS = list(NAMES) + +# kept verbatim from the old renderer so the chevron and tick do not shift +CHEV_SVG = ( + '' + '' +) +TICK_SVG = ( + '' + '' +) +FOLD_SVG = ( + '' + '' +) +RAIL_HEAD = """
+ + On this page +
""" + + +def esc(s) -> str: + return html.escape("" if s is None else str(s), quote=False) + + +def attr(s) -> str: + return html.escape("" if s is None else str(s), quote=True) + + +def text_of(fragment: str) -> str: + """What `.textContent` would have returned for a run of HTML.""" + return html.unescape(re.sub(r"<[^>]*>", " ", fragment)).strip() + + +def slug(s: str) -> str: + return re.sub(r"^-|-$", "", re.sub(r"[^a-z0-9]+", "-", str(s).lower())) + + +def load_docs() -> dict: + """Each kit owns one file under data/docs/, so two importers never touch the + same path. They are JS assignments with template literals, so node reads + them; sorted, because the sidebar order must not depend on the filesystem.""" + files = sorted(DATA.glob("*.js")) + if not files: + sys.exit(f"no documentation corpus in {DATA}") + reads = "".join( + f"new Function(fs.readFileSync({json.dumps(str(f))},'utf8'))();" for f in files + ) + script = ( + "const fs=require('fs');global.window={};" + reads + + "process.stdout.write(JSON.stringify(window.RK_DOCS));" + ) + try: + out = subprocess.run( + ["node", "-e", script], capture_output=True, text=True, check=True + ).stdout + except FileNotFoundError: + sys.exit("node is required to read the data/docs corpus") + except subprocess.CalledProcessError as e: + sys.exit(f"could not read {DATA}:\n{e.stderr}") + return json.loads(out) + + +def groups_of(doc: dict) -> list[dict]: + """The hand-written and generated pages are spliced in as separate blocks, so + one section can arrive as more than one group; the sidebar shows one heading.""" + merged: list[dict] = [] + for g in doc.get("groups") or []: + found = next((m for m in merged if m["name"] == g.get("name")), None) + if found: + found["items"] += list(g.get("items") or []) + else: + merged.append({"name": g.get("name"), "items": list(g.get("items") or [])}) + return merged + + +def pages_of(doc: dict) -> list[dict]: + out = [] + for g in groups_of(doc): + for it in g["items"]: + out.append({**it, "group": g["name"]}) + return out + + +def with_ids(body: str) -> str: + return re.sub( + r"

([\s\S]*?)

", + lambda m: f'

{m.group(1)}

', + body, + ) + + +def href_of(kit: str, page_id: str) -> str: + return f"/docs/{kit}/{page_id}/" + + +def static_body(body: str, kit: str) -> str: + """Adapt older imported HTML to static links and the shared copy control.""" + def link(match): + url = urlsplit(html.unescape(match.group(1))) + query = parse_qs(url.query) + project = (query.get("project") or query.get("kit") or [kit])[0] + target = href_of(project, query["id"][0]) if "id" in query else f"/docs/{project}/" + if url.fragment: + target += f"#{url.fragment}" + return f'href="{attr(target)}"' + + body = re.sub(r'href="(/docs/\?[^"]*)"', link, body) + body = body.replace('
', '
') + return re.sub( + r']*)?>[^<]*', + '', + body, + ) + + +# ---------------------------------------------------------------- fragments +def kitpick(kit: str) -> str: + rows = "".join( + f'\n' + f' {esc(NAMES[k])}{TICK_SVG if k == kit else ""}\n' + f" " + for k in KITS + ) + return ( + f'\n Project\n' + f' \n" + f'
\n' + f" {rows}\n" + f"
" + ) + + +def sidebar(kit: str, doc: dict, current: dict) -> str: + """Plain items, with sub-runs (Terms / Optimizers) as fold groups. + + A run starts folded unless it holds the page being read; from there the + reader owns it, and searching forces every run open while the query stands. + """ + out = [] + for g in groups_of(doc): + blocks: list = [] + run = None + for it in g["items"]: + active = " is-active" if it["id"] == current["id"] else "" + row = ( + f'{esc(it.get("nav"))}' + ) + if not it.get("sub"): + run = None + blocks.append(f'
{row}
') + continue + if not run or run["sub"] != it["sub"]: + run = { + "sub": it["sub"], + "key": f'{g["name"]}·{it["sub"]}', + "open": current.get("sub") == it["sub"], + "rows": [], + } + blocks.append(run) + run["rows"].append(row) + if not blocks: + continue + body = "".join( + b + if isinstance(b, str) + else ( + f'\n
\n' + f' {esc(b["sub"])}\n' + f" {FOLD_SVG}\n" + f"
\n" + f'
{"".join(b["rows"])}
' + ) + for b in blocks + ) + out.append( + f'

{esc(g["name"])}

' + f'
{body}
' + ) + return "".join(out) + + +def rail(toc: list[dict]) -> str: + """The reader has not scrolled yet, so no row is active and no members show.""" + if len(toc) < 2: + return "" + rows = "".join(f'{esc(h["text"])}' for h in toc) + return f'{RAIL_HEAD}
{rows}
' + + +def prevnext(kit: str, prev, nxt) -> str: + out = "" + if prev: + out += ( + f'← Previous' + f'{esc(prev.get("nav"))}' + ) + if nxt: + out += ( + f'' + ) + return out + + +def toc_of(body: str, item: dict) -> list[dict]: + if item.get("api"): + return apihtml.toc(item["body"], item["api"]) + return [ + {"text": text_of(m.group(2)), "href": f"#{m.group(1)}"} + for m in re.finditer(r'

([\s\S]*?)

', body) + ] + + +# ---------------------------------------------------------------- page +HEAD = """ + + + + + {title} + + + + + + + + + + + + + +""" + +SEARCH_BOX = """ """ + + +def page(kit: str, doc: dict, items: list[dict], i: int) -> str: + item = items[i] + body = static_body(apihtml.hydrate(with_ids(item["body"]), item.get("api")), kit) + toc = toc_of(body, item) + crumb = f'{esc(item["group"])}' + if item.get("sub"): + crumb += f'/{esc(item["sub"])}' + head = HEAD.format( + title=attr(f'{item.get("h")} · {NAMES[kit]} docs · {BRAND}'), + lede=attr(doc.get("lede", "")), + href=href_of(kit, item["id"]), + ) + return ( + head + + '
\n' + + ' \n\n" + + '
\n' + + '
\n' + + '
\n' + + f'
{crumb}
\n' + + ' \n' + + "
\n" + + f'

{esc(item.get("h"))}

\n' + + f'
{body}
\n' + + f'
{prevnext(kit, items[i - 1] if i else None, items[i + 1] if i + 1 < len(items) else None)}
\n' + + "
\n" + + f' \n' + + "
\n" + + "
\n" + + f" \n" + + ' \n' + + ' \n' + + "\n\n" + ) + + +REDIRECT = """ + + + + {title} + + + + +Continue to the documentation + +""" + +def main(): + global KITS + docs = load_docs() + # RoboSkills has a page in the nav but no docs yet; the project picker + # lists only kits with a corpus, so it never links to a missing /docs/ page. + KITS = [k for k in KITS if k in docs] + if OUT.exists(): + shutil.rmtree(OUT) + OUT.mkdir(parents=True) + INDEX.parent.mkdir(parents=True, exist_ok=True) + + index: dict[str, str] = {} + written = 0 + for kit in KITS: + doc = docs.get(kit) + if not doc: + continue + items = pages_of(doc) + if not items: + continue + for i, item in enumerate(items): + out = OUT / kit / item["id"] / "index.html" + out.parent.mkdir(parents=True, exist_ok=True) + out.write_text(page(kit, doc, items, i)) + searchable = " ".join( + [ + str(item.get("nav") or ""), + str(item.get("h") or ""), + str(item.get("sub") or ""), + text_of(item.get("body") or ""), + apihtml.api_text(item.get("body") or "", item.get("api")), + ] + ) + index[f'{kit}/{item["id"]}'] = re.sub(r"\s+", " ", searchable).strip().lower() + written += 1 + (OUT / kit / "index.html").write_text( + REDIRECT.format(to=href_of(kit, items[0]["id"]), title=f"{NAMES[kit]} docs · {BRAND}") + ) + + (OUT / "index.html").write_text( + REDIRECT.format(to=href_of(KITS[0], pages_of(docs[KITS[0]])[0]["id"]), title=f"Docs · {BRAND}") + ) + INDEX.write_text(json.dumps(index, ensure_ascii=False, separators=(",", ":"))) + print(f"wrote {written} pages under {OUT}") + print(f"wrote {INDEX} ({INDEX.stat().st_size // 1024} KB)") + + +if __name__ == "__main__": + main() diff --git a/scripts/check_site.py b/scripts/check_site.py new file mode 100644 index 0000000..25aa39d --- /dev/null +++ b/scripts/check_site.py @@ -0,0 +1,127 @@ +"""Build and validate the site without changing its source files.""" + +import hashlib +import json +import re +import subprocess +import sys +from html.parser import HTMLParser +from pathlib import Path +from urllib.parse import unquote, urljoin, urlsplit + +ROOT = Path(__file__).resolve().parent.parent +SITE = ROOT / "_page" +LOCAL = "https://site.invalid" +# The site is public. Private repos and paths, buckets, machine paths and SSH remotes must +# never reach it, whichever importer or page they arrive through. Written generically so +# this public file names none of them. +INTERNAL = re.compile(r"[-_]internal\b|s3://\w|git\+ssh://|git@github\.com:|/disk\d+/|/home/\w") +TEXT = {".html", ".js", ".json", ".css", ".svg", ".txt", ".xml", ".md"} + + +class Page(HTMLParser): + def __init__(self, text): + super().__init__() + self.ids = set() + self.links = [] + self.api_slots = [] + self.feed(text) + + def handle_starttag(self, tag, attrs): + attrs = dict(attrs) + if attrs.get("id"): + self.ids.add(attrs["id"]) + if attrs.get("data-api"): + self.api_slots.append(attrs["data-api"]) + for name in ("href", "src", "poster"): + if attrs.get(name): + self.links.append(attrs[name]) + + +def validate(site): + pages = { + path: Page(path.read_text(encoding="utf-8")) + for path in site.rglob("*.html") + } + errors = [] + if site / "index.html" not in pages: + errors.append("missing landing page") + for path, page in pages.items(): + rel = path.relative_to(site).as_posix() + if page.api_slots: + errors.append(f"{rel}: unresolved API reference blocks") + for link in page.links: + url = urlsplit(urljoin(f"{LOCAL}/{rel}", link)) + if f"{url.scheme}://{url.netloc}" != LOCAL: + continue + target = (site / unquote(url.path).lstrip("/")).resolve() + if not target.is_relative_to(site.resolve()): + errors.append(f"{rel}: link escapes site: {link}") + continue + if target.is_dir(): + target /= "index.html" + if not target.is_file(): + errors.append(f"{rel}: missing target {link}") + elif url.fragment and target in pages and target.is_relative_to(site / "docs"): + if unquote(url.fragment) not in pages[target].ids: + errors.append(f"{rel}: missing anchor {link}") + + index = json.loads((site / "data" / "search.json").read_text(encoding="utf-8")) + documents = { + path.parent.relative_to(site / "docs").as_posix(): page + for path, page in pages.items() + if path.is_relative_to(site / "docs") and "doc-body" in page.ids + } + if not documents: + errors.append("no rendered documentation pages") + if index.keys() != documents.keys(): + errors.append(f"search/page mismatch: {sorted(index.keys() ^ documents.keys())}") + for key, value in index.items(): + if not isinstance(value, str) or not value.strip(): + errors.append(f"empty search text: {key}") + for path in sorted(site.rglob("*")): + if path.suffix in TEXT and path.is_file(): + for hit in sorted(set(INTERNAL.findall(path.read_text(encoding="utf-8", errors="replace")))): + errors.append(f"{path.relative_to(site).as_posix()}: internal reference {hit!r}") + for name in ("data/docs", "scripts", "README.md", "Makefile", ".git", ".github"): + if (site / name).exists(): + errors.append(f"build input copied into site: {name}") + if errors: + raise ValueError("\n".join(sorted(set(errors)))) + print(f"Checked {len(pages)} HTML files and {len(documents)} search entries") + + +def manifest(root, paths): + return { + str(path.relative_to(root)): hashlib.sha256(path.read_bytes()).hexdigest() + if path.is_file() else None + for path in paths + } + + +def source_manifest(): + names = subprocess.check_output( + ["git", "ls-files", "-z", "--cached", "--others", "--exclude-standard"], + cwd=ROOT, + ).decode().split("\0") + return manifest(ROOT, [ROOT / name for name in names if name]) + + +def main(): + before = source_manifest() + subprocess.run(["make", "site"], cwd=ROOT, check=True) + validate(SITE) + first = manifest(SITE, SITE.rglob("*")) + subprocess.run(["make", "site"], cwd=ROOT, check=True) + if first != manifest(SITE, SITE.rglob("*")): + raise ValueError("site output differs between builds") + if before != source_manifest(): + raise ValueError("building changed source files") + print("Builds are identical; source files are unchanged") + + +if __name__ == "__main__": + try: + main() + except (ValueError, OSError, subprocess.CalledProcessError) as error: + sys.exit(str(error)) diff --git a/scripts/encode_graspkit_optimization.py b/scripts/encode_graspkit_optimization.py new file mode 100644 index 0000000..d955d9f --- /dev/null +++ b/scripts/encode_graspkit_optimization.py @@ -0,0 +1,93 @@ +"""Encode the original 400-grasp timeline with the hero's matte studio rendering.""" + +import argparse +import hashlib +import json +import subprocess +from pathlib import Path + +from PIL import Image, ImageChops, ImageFilter + + +def compose(path: Path) -> Image.Image: + foreground = Image.open(path).convert("RGBA") + width, height = foreground.size + alpha = foreground.getchannel("A") + # Match the hero: keep opaque geometry and nearby physical contact shadows. + core = alpha.point(lambda value: 255 if value >= 250 else 0).filter(ImageFilter.MaxFilter(5)) + contact = core.filter(ImageFilter.GaussianBlur(36 * height / 1080)) + weight = ImageChops.lighter(core, contact.point(lambda value: min(255, 2 * value))) + foreground.putalpha(ImageChops.multiply(alpha, weight)) + image = Image.new("RGBA", (width, height), "#E7EBE4") + image.alpha_composite(foreground) + return image.convert("RGB") + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--data", type=Path, required=True) + parser.add_argument("--frames", type=Path, required=True) + parser.add_argument("--out", type=Path, required=True) + parser.add_argument("--preview-only", action="store_true") + parser.add_argument("--still", type=Path, help="Composite one close-up before rendering the full video") + parser.add_argument("--camera-stop-seconds", type=float, default=4.0, help="Hold the settled scene after this time") + args = parser.parse_args() + args.out.mkdir(parents=True, exist_ok=True) + manifest = json.loads((args.data / "manifest.json").read_text()) + times = manifest["frame_seconds"][:75] + assert manifest["batch_size"] == 400 and round(times[-1], 2) == 3.09 + assert round(times[48], 2) == 2.00 + stop_frame = round(args.camera_stop_seconds * 24) + 1 + assert 87 <= stop_frame <= 255 + if args.still is not None: + compose(args.still).save(args.out / "close-up.png") + print("PREVIEW: featured grasp; website supplies the RoboKit timing badge", flush=True) + return + for index in (0, 86, 122, 158, 206, 254): + compose(args.frames / "tour" / f"frame_{min(index + 1, stop_frame):04d}.png").save(args.out / f"preview-{index:03d}.png") + if args.preview_only: + print("PREVIEW: six camera-tour frames; timer 0.00–3.09 s; 400 scenes", flush=True) + return + timeline = [ + args.frames / "tour" / f"frame_{min(index + 1, stop_frame):04d}.png" + for index in range(255) + ] + assert len(timeline) == 255 + video = args.out / "grasp-optim.mp4" + first = compose(timeline[0]) + command = [ + "ffmpeg", "-y", "-hide_banner", "-loglevel", "error", "-xerror", "-f", "rawvideo", "-pix_fmt", "rgb24", + "-s", f"{first.width}x{first.height}", "-r", "24", "-i", "-", "-an", "-c:v", "libx264", "-threads", "4", + "-crf", "16", "-preset", "medium", "-vf", "scale=out_color_matrix=bt709:out_range=tv,format=yuv420p", + "-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709", "-color_range", "tv", + "-movflags", "+faststart", str(video), + ] + with (args.out / "encode.log").open("w") as log: + process = subprocess.Popen(command, stdin=subprocess.PIPE, stderr=log) + last, image = None, None + for path in timeline: + if path != last: + image = compose(path).tobytes() + last = path + process.stdin.write(image) + process.stdin.close() + assert process.wait() == 0 + first.save(args.out / "grasp-optim.webp", quality=95) + result = { + "frames": 255, "fps": 24, "duration_seconds": 10.625, "cells": 400, "source_pose_frames": list(range(75)), + "source_frame_seconds": times, "lead_frames": 12, "settled_frames": 168, + "camera": "front view; zoom stops and holds after four seconds", "background": "#E7EBE4", + "camera_stop_seconds": args.camera_stop_seconds, + "camera_stop_source_frame": stop_frame, + "render_source_frames": [min(index + 1, stop_frame) for index in range(255)], + "featured_cell": json.loads((args.frames / "tour/render-meta-0.json").read_text())["featured_cell"], + "width": first.width, "height": first.height, "timer": "RoboKit badge on the website", + "version": hashlib.sha256(video.read_bytes()).hexdigest()[:10], "encoder": command, + } + (args.out / "validation.json").write_text(json.dumps(result, indent=2) + "\n") + print("ENCODED: 255 frames, 24 fps, 10.625 s; 400 original trajectories; timer ends at 3.09 s", flush=True) + print(f"VERSION {result['version']}", flush=True) + + +if __name__ == "__main__": + main() diff --git a/scripts/encode_graspkit_real_world.py b/scripts/encode_graspkit_real_world.py new file mode 100644 index 0000000..229aa6b --- /dev/null +++ b/scripts/encode_graspkit_real_world.py @@ -0,0 +1,61 @@ +"""Encode the original 1080p HDR robustness footage for browser playback. + +Run with uv run --no-project --with imageio-ffmpeg python