Skip to content

feat(schemas): mass schema-fragment API (additive)#6

Draft
vidurv-nvidia wants to merge 3 commits into
vidurv/schema-frag-frameworkfrom
vidurv/schema-frag-mass
Draft

feat(schemas): mass schema-fragment API (additive)#6
vidurv-nvidia wants to merge 3 commits into
vidurv/schema-frag-frameworkfrom
vidurv/schema-frag-mass

Conversation

@vidurv-nvidia

@vidurv-nvidia vidurv-nvidia commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Description

Additive mass fragment family (pure UsdPhysics, no backend split)

  • core: MassFragment, MassCfg (physics:mass/density), apply_mass_properties (anchor MassAPI)
  • legacy MassPropertiesCfg kept as canonical (not deprecated); MassCfg added alongside.
  • spawner mass_props accepts a fragment list + bridge.

Status: authored, ruff + pre-commit clean. Not yet Isaac-Sim verified (CI pending). Stacked on the rigid-body framework branch.

Fixes # (N/A — part of the staged physics schema-fragment refactor; no tracked public issue)

Type of change

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

Screenshots

N/A — no user-facing visual changes.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks (ruff + ruff-format) on the changed files
  • I have made corresponding changes to the documentation (the public API reference is auto-generated via ./isaaclab.sh -d; not separately authored)
  • My changes generate no new warnings
  • I have added tests that prove my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • I have added my name to CONTRIBUTORS.md

Add the additive mass schema-fragment framework mirroring the rigid-body
pilot. Mass is a pure-UsdPhysics family with no backend split.

- Add MassFragment marker and MassCfg fragment (physics:mass /
  physics:density) in core schemas_cfg.
- Add apply_mass_properties writer applying UsdPhysics.MassAPI as the
  implicit anchor, then dispatching each fragment via its func.
- Widen the RigidObjectSpawnerCfg mass_props slot to accept a
  MassFragment or list, with transition bridges at the shapes, meshes,
  from_files, and mesh_converter spawn sites.
- Export the new public names and add a test plus changelog fragment.

The legacy MassPropertiesCfg and define_/modify_mass_properties remain
the canonical names and are left untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant