Repository navigation
Include joint armature in PhysX and OvPhysX mass matrices - #8424
Conversation
|
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (1). Other reviewed categories look good.
- PR description: The scope matches the diff; substantiate or remove the latency claim with revisions, command, hardware, backend, environment count, warmup, and baseline/candidate metrics.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The armature docstring uses nonstandard mixed-joint unit wording, creating terminology inconsistency; change it to “[kg·m² or kg, depending on joint type]”.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| """Add the joint armature to the joint diagonal of a view-sized mass matrix. | ||
|
|
||
| Args: | ||
| joint_armature: Joint armature [kg·m² or kg, per DoF type] in public joint order. Shape is |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Mixed joint unit phrasing deviates from guide
The contribution guide prescribes [... depending on joint type] for mixed joint quantities. [kg·m² or kg, per DoF type] introduces new vocabulary; use [kg·m² or kg, depending on joint type].
|
Thanks a lot for the PR @NeoZng! I'm checking with the newton team if this should not be addressed on their side. |
bcc126d to
f9faae3
Compare
|
why couldn't be this implemented at usecase side where user compose joint armature component into diagonal of mass matrix, user will have flexibility to inlcude joint amature factor or not. Check the last commit I pushed if that works, we can revert otherwise |
|
Yeah I'm not sure this is the right fix, why not have the solver fix it? They do use the armature in the solve. I'm not familiar enough with the controllers that might leverage that, but is there a reason not to include the armature in there? @ooctipus |
|
From the newton issue discussion newton-physics/newton#4621, it looks like newton team is implementing this fix. Holding the PR until the issue got an upate. |
|
run-ci |
The PhysX backend now adds the joint armature to the mass-matrix diagonal, and each mock view draws its armature at random, so the identity and the ordered articulation of test_ordering_reorders_public_dynamics_quantities had different diagonals. Write the same per-joint armature to both before the ordering is installed; the ordered mass matrix then also checks that the armature lands on the public joint order. Signed-off-by: Zeng Qingcheng <60593302+NeoZng@users.noreply.github.com>
|
run-ci |
|
eun-ci |
|
run-ci |
maxkra15
left a comment
There was a problem hiding this comment.
Mass-matrix/armature handling looks correct. Current-head Docker and ARM checks are green.
State in BaseArticulationData.mass_matrix that joint armature is on the joint diagonal, flag the PhysX and OvPhysX workaround for removal once PhysX#575 is fixed upstream, and drop a redundant cached-read assertion.
|
run-ci |
Description
PhysX and OvPhysX simulate joint armature but omit it from their native mass-matrix queries. Include it once in each backend's cached articulation mass matrix, using public joint order and leaving floating-base rows untouched. PhysX copies the native result into its own output buffer before adding armature.
The change is limited to
isaaclab_physxandisaaclab_ov. Existing controllers and tasks consume the corrected matrix. Newton already includes armature upstream and needs no additional correction.Related: #8423 and PhysX #575.
Type of change
Validation
git diff --checkpassed. Independent review found no actionable issues.GPU validation used a reused uv environment with this worktree's source imports verified: Isaac Sim 6.2.0, OvPhysX 0.7.0.74035321, Warp 1.17.0, Torch 2.11.0+cu130, RTX 5090. Existing dependency/native warnings were observed. A separate native SDK check also confirmed that OvPhysX 0.7 still omits armature before this correction.
Checklist
CONTRIBUTORS.md.