Skip to content

Documents JointDrivePropertiesCfg.ensure_drives_exist - #5723

Merged
AntoineRichard merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/docs-ensure-drives-exist
May 21, 2026
Merged

AntoineRichard merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/docs-ensure-drives-exist

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Description

Documents the JointDrivePropertiesCfg.ensure_drives_exist flag introduced in #5251. Adds a troubleshooting entry and a how-to section so users hitting "my joints actuate in PhysX but do nothing in Newton with ImplicitActuatorCfg" can find the fix without having to read the schemas source.

Background

Newton's USD importer only materialises a solver actuator for a joint when the authored PhysicsDriveAPI reports a non-zero stiffness or damping. Many existing assets ship with both at 0, expecting an ImplicitActuatorCfg (or IdealPDActuatorCfg) to supply the gains at runtime. PhysX creates the actuator regardless and lets the runtime writes take effect; Newton drops the joint from the actuator set before the runtime writes can attach.

ensure_drives_exist=True on the spawn config writes a minimal placeholder stiffness (1e-3) to any drive whose authored stiffness and damping are both zero, so Newton creates the actuator. The actual gains still come from the actuator model at runtime.

Changes

  • docs/source/refs/troubleshooting.rst — new "Joints actuate in PhysX but not in a Newton-based backend" section, slotted with the other physics-stability entries. Includes symptom, cause, and a working code snippet.
  • docs/source/how-to/import_new_asset.rst — new "Ensuring joint drives exist on every joint" section with the labelled anchor import-new-asset-ensure-drives-exist so other pages can cross-reference the full explanation. Sits between the MJCF importer and Mesh importer sections since it applies to URDF- and MJCF-imported assets but not to mesh assets.
  • docs/source/how-to/write_articulation_cfg.rst — short cross-reference admonition next to the ImplicitActuatorCfg example, pointing readers to the anchor above.
  • source/isaaclab/changelog.d/antoiner-docs-ensure-drives-exist.skip — docs-only, no version bump.

Type of change

  • Documentation update

Checklist

  • 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 (docs-only)
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file (.skip fragment, docs-only)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

Add troubleshooting and how-to coverage for the case where joints
actuate under PhysX but appear unactuated under Newton-based backends
(MuJoCo Warp, XPBD, Featherstone, Semi-implicit) because the asset's
USD authored drive gains are zero. Setting ensure_drives_exist=True on
the spawn config stamps a 1e-3 placeholder onto zero-gain drives so
Newton's USD importer creates the actuator; the runtime ImplicitActuatorCfg
gains still take effect.

- Add a "Joints actuate in PhysX but not in a Newton-based backend"
  section to docs/source/refs/troubleshooting.rst with the symptom,
  cause, and code snippet.
- Add an "Ensuring joint drives exist on every joint" section to
  docs/source/how-to/import_new_asset.rst with a labelled anchor so
  other pages can cross-reference the full explanation.
- Add a short cross-reference note in docs/source/how-to/write_articulation_cfg.rst
  next to the ImplicitActuatorCfg example.
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels May 21, 2026
@AntoineRichard AntoineRichard changed the title docs: document JointDrivePropertiesCfg.ensure_drives_exist Documents JointDrivePropertiesCfg.ensure_drives_exist May 21, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📚 Documentation Review

Thank you for documenting the ensure_drives_exist flag, @AntoineRichard! This addresses a real pain point for users porting assets between PhysX and Newton backends.

✅ Strengths

  1. Excellent problem framing — The troubleshooting section clearly explains the symptom ("joints actuate in PhysX but not Newton"), the root cause (Newton drops zero-gain drives), and the fix. Users hitting this issue will find it immediately.

  2. Good cross-linking — The labeled anchor import-new-asset-ensure-drives-exist and the note in write_articulation_cfg.rst ensure users discover this regardless of their entry point.

  3. Concrete example — Referencing isaaclab_assets.CASSIE_CFG as a real-world use case helps users understand this is a common and intentional pattern.

  4. Proper scope explanation — Clarifying when to leave the flag at False (non-zero authored gains, IdealPDActuatorCfg with external torque) prevents over-application.

💡 Minor Suggestions (non-blocking)

  1. Troubleshooting code snippet: The example uses generic joint names [".*HAA", ".*HFE", ".*KFE"] which are specific to quadrupeds. Consider using [".*"] or adding a comment noting these are example patterns:

    joint_names_expr=[".*HAA", ".*HFE", ".*KFE"],  # example: quadruped leg joints
  2. Placeholder value visibility: Users debugging may want to know what placeholder value is written. The text mentions 1e-3 — this is good! Just confirming it's intentionally chosen to be small enough to not affect dynamics while being non-zero.

Summary

This is a well-structured documentation addition that will save users significant debugging time. The technical content is accurate, the examples are runnable, and the placement across troubleshooting and how-to sections maximizes discoverability.

LGTM 👍

@greptile-apps

greptile-apps Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds documentation for the JointDrivePropertiesCfg.ensure_drives_exist flag introduced in #5251, covering the symptom, root cause, and fix for joints that actuate under PhysX but do nothing under Newton-based backends. All technical claims were verified against the source code (schemas_cfg.py, CASSIE_CFG), cross-references are valid, and RST heading levels and underline lengths are consistent with surrounding content.

  • docs/source/refs/troubleshooting.rst — new entry "Joints actuate in PhysX but not in a Newton-based backend" with a full code snippet showing the corrected ArticulationCfg.
  • docs/source/how-to/import_new_asset.rst — new anchored how-to section "Ensuring joint drives exist on every joint" (placed between MJCF and Mesh Importer sections) explaining the PhysX vs Newton importer difference and how the flag resolves it.
  • docs/source/how-to/write_articulation_cfg.rst — short .. note:: after the ImplicitActuatorCfg example cross-linking to the how-to anchor; source/isaaclab/changelog.d/antoiner-docs-ensure-drives-exist.skip correctly signals a docs-only fragment.

Confidence Score: 5/5

Docs-only change with no executable code modified; safe to merge.

All four files are RST documentation and a .skip fragment. The technical claims (placeholder value 1e-3, Newton vs PhysX importer behaviour, CASSIE_CFG as the reference example) were verified against the live source. Cross-references resolve correctly. RST heading characters and underline lengths are consistent with surrounding sections. No logic, runtime behaviour, or API surface is changed.

No files require special attention.

Important Files Changed

Filename Overview
docs/source/how-to/import_new_asset.rst Adds a new "Ensuring joint drives exist on every joint" how-to section with a labelled anchor; content verified accurate against CASSIE_CFG and schemas_cfg.py.
docs/source/how-to/write_articulation_cfg.rst Adds a short note after the ImplicitActuatorCfg example pointing to the import_new_asset anchor; cross-reference is valid and placement is appropriate.
docs/source/refs/troubleshooting.rst Adds a Newton-backend troubleshooting entry with a complete code snippet; heading level and underline length are correct and consistent with surrounding sections.
source/isaaclab/changelog.d/antoiner-docs-ensure-drives-exist.skip Correct use of the .skip convention for a docs-only change; no version bump needed.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[USD asset with PhysicsDriveAPI\nstiffness=0 AND damping=0] --> B{ensure_drives_exist?}
    B -- False --> C[PhysX: creates actuator anyway\nNewton: drops joint as passive]
    B -- True --> D[Write placeholder stiffness 1e-3\nto drives with both gains == 0]
    D --> E[PhysX: creates actuator\nNewton: creates actuator]
    E --> F[Actuator model runs at runtime\nImplicitActuatorCfg overwrites gains]
    C --> G[PhysX: ImplicitActuatorCfg gains apply\nNewton: joint appears unactuated]
Loading

Reviews (1): Last reviewed commit: "docs: document JointDrivePropertiesCfg.e..." | Re-trigger Greptile

@AntoineRichard
AntoineRichard merged commit 6486b76 into isaac-sim:develop May 21, 2026
39 checks passed
kellyguo11 added a commit that referenced this pull request May 22, 2026
…726) (#5741)

# Description

[#5723 Documents
JointDrivePropertiesCfg.ensure_drives_exist](#5723)

[#5726 Add windows docs for leapp
installation](#5726)

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

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


## Checklist

- [ ] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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 updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: frlai <[email protected]>
gains, so the runtime writes from ``ImplicitActuatorCfg.stiffness`` /
``damping`` always take effect. Newton's USD importer, by contrast, only
materialises a solver actuator when the authored drive reports a non-zero
stiffness or damping — a joint whose authored gains are both zero is treated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looking into this for some sim2sim related work; I don't think this is what is happening on the Newton parsing though. We add an actuation axis to the joint as soon as there is a driveAPI, regardless of whether that is zero or not
https://github.com/newton-physics/newton/blob/main/newton/_src/utils/import_usd.py#L1202

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

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants