Skip to content

Add the DexForce H1 humanoid preset - #1335

Open
yuecideng wants to merge 3 commits into
mainfrom
codex/dexforce-h1
Open

yuecideng wants to merge 3 commits into
mainfrom
codex/dexforce-h1

Conversation

@yuecideng

@yuecideng yuecideng commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Register the 31-joint DexForce H1 as DexforceH1 in the robot and asset catalogs. The preset exposes six joint groups and numerical FK/IK for both wrists.

The asset preparation script preserves the source joint and inertial data, converts capsule lengths for the DexSim importer, and applies W1 V030's yellow and dark plastic parameters to the H1 GLBs. The H1 page documents the preset, simulator defaults, and offline installation.

The default dexforce_h1/h1.zip archive URL currently returns HTTP 404. The offline preparation and cache paths are available for review while the archive is prepared for publication.

Type of change

  • New feature (non-breaking change which adds functionality)

Local policy reproduction

The local demo bundle is at ~/Downloads/h1_pick_and_carry_demo/h1_pick_and_carry/. Its h1_pick_and_carry.pt bundles the fitted task parameters and the existing TorchScript gait. From the bundle directory, python play.py --headless runs the reference MuJoCo demo after its requirements are installed.

For the EmbodiChain replay, use the local checkout that contains examples/sim/demo/h1_pick_and_carry/ and a Python environment with mujoco-usd-converter. The command below uses the local reference layout and DexUni's CPU rigid branch.

cd "$HOME/workspace/sources/EmbodiChain"
embodichain run-example sim/demo/h1_pick_and_carry \
  --demo-dir "$HOME/Downloads/h1_pick_and_carry_demo/h1_pick_and_carry" \
  --converter-python "$HOME/.cache/embodichain/partymimic/converter/bin/python" \
  --output-dir /tmp/h1-pick-carry --no-video

The local run released the box into the basket in 742 control steps (14.84 s). The demo workspace owns the replay runner and checkpoint.

Screenshots

OfflineRT capture of the default H1 pose with W1 V030 body plastics. The H1 model page includes the render settings and downloadable manifest.

DexForce H1 OfflineRT render in its default pose

Validation

  • Built the H1 documentation page with Sphinx and checked the figure at desktop and mobile widths in Chromium. The downloadable manifest matches the image SHA-256.
  • Passed 316 focused H1, CLI, robot registry, and asset tests. They cover catalog discovery, ordered wrist chains, authored limits, capsule conversion, configuration round trips, and the embedded GLB palette.
  • Rebuilt the H1 archive from the input URDF and verified a byte-for-byte match against the local cached archive.
  • Ran 30 headless preview steps with Default and Newton. Both loaded 31 independent joints.
  • Ran Black 26.10.1, the public API documentation checker, and git diff --check.

Checklist

  • I have run the black . command to format the code base.
  • I reviewed affected documentation and agent context, updated it where needed, or explained why no update was needed. The existing robot, simulation, and asset catalog contracts cover this preset.
  • Public API changes are reflected in the API docs (python docs/scripts/check_api_docs.py), if applicable.
  • I verified appropriate behavioral coverage and reviewed the necessity of the added and extended tests.
  • Dependencies have been reviewed. Archive preparation uses Pillow from the existing package dependencies.

Register the 31-joint humanoid, add a reproducible GLB asset preparation script with W1 plastics, and cover the catalog and source model contracts.
@yuecideng yuecideng added robot Robot runtime, presets, control groups, calibration and robot support. assets Robot and scene assets, meshes, materials, asset catalogs and downloads. feature New user-facing capabilities. labels Dec 4, 2026
@yuecideng
yuecideng marked this pull request as ready for review December 4, 2026 15:54
@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The reviewed changes appear safe to merge, with a non-blocking issue when reopening saved white H1 configs.

FindingsFix All in Codex

  1. P2 Saved white shell turns yellow ▶
Fix with agent prompt
### Issue 1
embodichain/extensions/robots/dexforce/h1/cfg.py:104-105
`DexforceH1Cfg.to_dict()` replaces the white model's `fpath` with the yellow source path, but does not save a `class_type` that selects the H1 loader. Opening the saved file with `preview-robot --robot-config` then uses `RobotCfg.from_dict()`, which ignores `appearance` and loads the yellow model.

Preserve the derived asset path for standalone loading, or save enough information to select the H1 loader.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds the 31-joint DexforceH1 preset, wrist FK/IK, asset preparation, and model documentation.

  • The DexForce H1 preset gives simulation callers six joint groups and two wrist chains.
  • The H1 asset tools prepare DexSim meshes and offer a cached white shell.

Reviews (2) · Last reviewed commit: "Add white appearance to DexForce H1 (#13..." · Reviewed by Greptile

@yuecideng yuecideng mentioned this pull request Dec 5, 2026
6 tasks done
Comment on lines +104 to +105
if self._appearance_source is not None:
fields["fpath"] = self._appearance_source

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Saved white shell turns yellow

DexforceH1Cfg.to_dict() replaces the white model's fpath with the yellow source path, but does not save a class_type that selects the H1 loader. Opening the saved file with preview-robot --robot-config then uses RobotCfg.from_dict(), which ignores appearance and loads the yellow model.

Preserve the derived asset path for standalone loading, or save enough information to select the H1 loader.

Prompt To Fix With AI
This is a comment left during a code review.
Path: embodichain/extensions/robots/dexforce/h1/cfg.py
Line: 104-105

Comment:
**Saved white shell turns yellow**

`DexforceH1Cfg.to_dict()` replaces the white model's `fpath` with the yellow source path, but does not save a `class_type` that selects the H1 loader. Opening the saved file with `preview-robot --robot-config` then uses `RobotCfg.from_dict()`, which ignores `appearance` and loads the yellow model.

Preserve the derived asset path for standalone loading, or save enough information to select the H1 loader.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Codex Fix in Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assets Robot and scene assets, meshes, materials, asset catalogs and downloads. feature New user-facing capabilities. robot Robot runtime, presets, control groups, calibration and robot support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant