Repository navigation
Documents JointDrivePropertiesCfg.ensure_drives_exist - #5723
AntoineRichard merged 1 commit into
Conversation
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.
There was a problem hiding this comment.
📚 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
-
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.
-
Good cross-linking — The labeled anchor
import-new-asset-ensure-drives-existand the note inwrite_articulation_cfg.rstensure users discover this regardless of their entry point. -
Concrete example — Referencing
isaaclab_assets.CASSIE_CFGas a real-world use case helps users understand this is a common and intentional pattern. -
Proper scope explanation — Clarifying when to leave the flag at
False(non-zero authored gains,IdealPDActuatorCfgwith external torque) prevents over-application.
💡 Minor Suggestions (non-blocking)
-
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
-
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 SummaryThis PR adds documentation for the
Confidence Score: 5/5Docs-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
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]
Reviews (1): Last reviewed commit: "docs: document JointDrivePropertiesCfg.e..." | Re-trigger Greptile |
…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 |
There was a problem hiding this comment.
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
Description
Documents the
JointDrivePropertiesCfg.ensure_drives_existflag 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 withImplicitActuatorCfg" 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
PhysicsDriveAPIreports a non-zero stiffness or damping. Many existing assets ship with both at0, expecting anImplicitActuatorCfg(orIdealPDActuatorCfg) 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=Trueon 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 anchorimport-new-asset-ensure-drives-existso 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 theImplicitActuatorCfgexample, pointing readers to the anchor above.source/isaaclab/changelog.d/antoiner-docs-ensure-drives-exist.skip— docs-only, no version bump.Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfile (.skipfragment, docs-only)CONTRIBUTORS.mdor my name already exists there