Skip to content

Add white appearance to DexForce H1 - #1341

Merged
yuecideng merged 2 commits into
codex/dexforce-h1from
codex/dexforce-h1-white
Dec 5, 2026
Merged

yuecideng merged 2 commits into
codex/dexforce-h1from
codex/dexforce-h1-white

Conversation

@yuecideng

@yuecideng yuecideng commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add a warm white shell finish (#E8E7E1) to the 31-joint DexforceH1 preset. The catalog lists yellow and white, with yellow as the default. Select white in a robot declaration with class_type: DexforceH1 and appearance: white, or use the preview CLI.

embodichain preview-robot --robot DexforceH1 --variant white

The white appearance derives its visual asset from the existing H1 archive. It replaces the shell base-color texture in 25 GLBs and uses the original URDF, joints, dark trim and visor. The derived asset is cached by the source content. The serialized preset retains the selected appearance and its source asset reference.

Stack

Layer 2 of 2 targets codex/dexforce-h1 and depends on the H1 preset PR #1335. The upstream H1 archive URL returned HTTP 404 during validation, so the local checks used the verified H1 cache from that PR.

Type of change

  • Enhancement (non-breaking change which improves an existing functionality)

Screenshots

Verified the white preset in a standalone 960 × 1200 DexSim OfflineRT capture with DLSS Ray Reconstruction Quality. The render shows the warm white shell alongside the original dark trim and visor.

White DexForce H1 rendered in its default pose with OfflineRT and DLSS

Validation

  • Built the H1 page with Sphinx and verified the desktop and mobile layouts and both render manifest checksums.

  • Passed 258 focused tests across the H1 preset, robot catalog and preview entry points. The H1 cases cover the authored shell, trim and visor colors, the canonical URDF bytes, cached path reuse, serialization and invalid selection.

  • Loaded yellow and white together with Default and Newton. Both exposed the same 31 joints and limits and matched joint states after stepping.

  • Ran Black 26.10.1, git diff --check and python docs/scripts/check_api_docs.py.

  • Reviewed robot, simulation and asset context. The existing catalog selection and source asset contracts cover the H1-only appearance option.

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.
  • I ran the public API documentation gate.
  • I verified appropriate behavioral coverage and reviewed the necessity of the added and extended tests.
  • I reviewed dependencies. The appearance uses the existing H1 asset and Pillow.

@yuecideng yuecideng added enhancement Improvements to existing capabilities; use feature for new capabilities. robot Robot runtime, presets, control groups, calibration and robot support. assets Robot and scene assets, meshes, materials, asset catalogs and downloads. labels Dec 5, 2026
@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5RetriggerView in Greptile

[Medium impact] The change affects the H1 appearance option in robot loading and preview workflows.

The PR still needs a fix because saving and reopening a white H1 loads yellow.

FindingsFix All in Codex

  1. P1 Saved white robots turn yellow ▶
Fix with agent prompt
### Issue 1
embodichain/extensions/robots/dexforce/h1/cfg.py:104-105
Saving a white H1 with `save_to_file()` and reopening it through `preview-robot --robot-config` loads yellow. `to_dict()` replaces the derived white `fpath` with the yellow source but does not include `class_type`. The preview reader therefore calls `RobotCfg.from_dict()`, which ignores `appearance`.

Preserve enough information for the file reader to restore white, and add a save-and-reload test through that reader.

---

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

Summary

Adds a warm white appearance to DexforceH1, with yellow kept as the default.

  • H1 robots can now use a warm white shell finish.

Reviews (2) · Last reviewed commit: "docs(robots): show the white DexForce H1..." · Reviewed by Greptile

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.

P1 Saved white robots turn yellow

Saving a white H1 with save_to_file() and reopening it through preview-robot --robot-config loads yellow. to_dict() replaces the derived white fpath with the yellow source but does not include class_type. The preview reader therefore calls RobotCfg.from_dict(), which ignores appearance.

Preserve enough information for the file reader to restore white, and add a save-and-reload test through that reader.

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 robots turn yellow**

Saving a white H1 with `save_to_file()` and reopening it through `preview-robot --robot-config` loads yellow. `to_dict()` replaces the derived white `fpath` with the yellow source but does not include `class_type`. The preview reader therefore calls `RobotCfg.from_dict()`, which ignores `appearance`.

Preserve enough information for the file reader to restore white, and add a save-and-reload test through that reader.

---

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

@yuecideng
yuecideng merged commit b7004e8 into codex/dexforce-h1 Dec 5, 2026
1 check passed
@yuecideng
yuecideng deleted the codex/dexforce-h1-white branch December 5, 2026 09:09
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. enhancement Improvements to existing capabilities; use feature for new 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