Skip to content

Fix oversized stacking cubes under the Newton backend - #7476

Closed
rwiltz wants to merge 1 commit into
isaac-sim:developfrom
rwiltz:fix/newton-franka-stack-cube-scale
Closed

rwiltz wants to merge 1 commit into
isaac-sim:developfrom
rwiltz:fix/newton-franka-stack-cube-scale

Conversation

@rwiltz

@rwiltz rwiltz commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The shipped Props/Blocks/*_block.usd assets apply PhysicsRigidBodyAPI directly to a mesh prim whose size comes solely from an xformOp:scale of 0.025 on a mesh that spans 1.88 units. Newton body transforms carry only translation and rotation, so the world matrix written back for rendering resets that scale to 1 and the cubes draw at their full unscaled mesh size, larger than the table and the robot.

Spawn the cubes from an equivalent CuboidCfg under the newton_mjwarp physics preset instead. That encodes the size in the geometry and leaves the rigid-body prim at unit scale, so there is no scale for the transform sync to drop. The replacement matches the asset it stands in for: same 4.7 cm edge, 0.02 kg mass and friction, and the block collider was already a bounding cube.

The preset is attached to the spawn field rather than the whole cube entry because post_init runs before preset resolution and the SO-101 config mutates cube_N.init_state there. PhysX presets keep the original USD blocks, so their behavior is unchanged.

Description

Important

Confirm the pull request base before submitting. Target develop for all
contributions. The release/3.0.0-beta2 branch is a frozen stable landing
snapshot and is not used for ongoing maintenance.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

The shipped Props/Blocks/*_block.usd assets apply PhysicsRigidBodyAPI directly
to a mesh prim whose size comes solely from an xformOp:scale of 0.025 on a mesh
that spans 1.88 units. Newton body transforms carry only translation and
rotation, so the world matrix written back for rendering resets that scale to 1
and the cubes draw at their full unscaled mesh size, larger than the table and
the robot.

Spawn the cubes from an equivalent CuboidCfg under the newton_mjwarp physics
preset instead. That encodes the size in the geometry and leaves the rigid-body
prim at unit scale, so there is no scale for the transform sync to drop. The
replacement matches the asset it stands in for: same 4.7 cm edge, 0.02 kg mass
and friction, and the block collider was already a bounding cube.

The preset is attached to the spawn field rather than the whole cube entry
because __post_init__ runs before preset resolution and the SO-101 config
mutates cube_N.init_state there. PhysX presets keep the original USD blocks, so
their behavior is unchanged.
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 1, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

could you see if #7481 fixes it from the root?

kellyguo11 added a commit that referenced this pull request Sep 3, 2026
# Description

Newton's Kit/RTX Fabric synchronization rebuilt every rigid-body world
matrix from a Newton `transformf`, which contains translation and
rotation but no scale. The first render sync therefore overwrote
composed USD scale with unit scale, making scaled rigid assets appear
oversized.

This change captures each body's initialized Fabric world scale by
Newton body index and reapplies it when composing subsequent render
matrices. It fixes the synchronization contract at the backend boundary,
following the same root-fix approach used for OVRTX in #7010, and
removes the need for the task-specific asset substitution proposed in
#7476.

No new dependencies are required.

Related: #7010, #7476

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Screenshots

Not applicable; the regression test checks the rendering-side Fabric
world matrix directly.

## Validation

- Ruff format and lint passed for the changed Python files.
- `git diff --check` passed.
- The changelog gate passed against current `upstream/develop`.
- A Warp 1.16 CPU smoke test compiled and exercised the scale-capture
and transform-composition kernels.
- The Isaac Sim/CUDA regression test was not run locally because this
host is macOS/arm; it is marked for Isaac Sim CI.

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the full pre-commit checks with `uv run isaaclab -f`
(unsupported on this macOS/arm host)
- [x] No public API or documentation change is required
- [x] My changes generate no new warnings in the available local checks
- [x] I have added a regression test that proves the fix preserves
non-uniform authored scale across pose synchronization
- [x] I have added a changelog fragment under
`source/isaaclab_newton/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`
isaaclab-bot Bot pushed a commit that referenced this pull request Sep 3, 2026
# Description

Newton's Kit/RTX Fabric synchronization rebuilt every rigid-body world
matrix from a Newton `transformf`, which contains translation and
rotation but no scale. The first render sync therefore overwrote
composed USD scale with unit scale, making scaled rigid assets appear
oversized.

This change captures each body's initialized Fabric world scale by
Newton body index and reapplies it when composing subsequent render
matrices. It fixes the synchronization contract at the backend boundary,
following the same root-fix approach used for OVRTX in #7010, and
removes the need for the task-specific asset substitution proposed in
#7476.

No new dependencies are required.

Related: #7010, #7476

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Screenshots

Not applicable; the regression test checks the rendering-side Fabric
world matrix directly.

## Validation

- Ruff format and lint passed for the changed Python files.
- `git diff --check` passed.
- The changelog gate passed against current `upstream/develop`.
- A Warp 1.16 CPU smoke test compiled and exercised the scale-capture
and transform-composition kernels.
- The Isaac Sim/CUDA regression test was not run locally because this
host is macOS/arm; it is marked for Isaac Sim CI.

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the full pre-commit checks with `uv run isaaclab -f`
(unsupported on this macOS/arm host)
- [x] No public API or documentation change is required
- [x] My changes generate no new warnings in the available local checks
- [x] I have added a regression test that proves the fix preserves
non-uniform authored scale across pose synchronization
- [x] I have added a changelog fragment under
`source/isaaclab_newton/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`

(cherry picked from commit 0077d98)
@StafaH

StafaH commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Closing as this was fixed by #7481

@StafaH StafaH closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants