Repository navigation
Fix OVPhysX joint-wrench sensor frame transform - #7997
Conversation
OVPhysX, like PhysX, reports the incoming joint wrench in the child-side joint frame at the joint anchor. The OVPhysX sensor shifted and rotated it again by the child joint pose, so readings were wrong whenever that pose was not identity. Pass the reading through, as the PhysX sensor now does (isaac-sim#7967), and drop the unused USD frame buffers. Replace the circular frame-conversion check with the shared physical contract test, and let check_joint_wrench_frame take a device so the OVPhysX process device lock can select CPU or CUDA. Signed-off-by: Lynn <[email protected]>
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the OVPhysX joint-wrench correction that passes LINK_INCOMING_JOINT_FORCE through without a redundant child-frame transform, removes the associated USD frame buffers, and replaces the circular backend test with the shared analytic frame-contract check. The changed kernel, its launch site, sensor lifecycle, tests, and changelog fragments are consistent.
- Design and architecture: The change preserves the documented child-side joint-frame-at-anchor convention while removing backend-specific transform state that contradicted the OVPhysX tensor convention. Buffer creation, validation, and invalidation paths were removed together, leaving no partial lifecycle dependency.
- API: The sensor’s public force and torque shapes, units, and frame convention remain unchanged. Only private sensor buffers and private kernel parameters are removed. The shared test helper adds an optional
deviceparameter with a default, preserving existing call sites while allowing OVPhysX tests to honor its process-wide device lock. - Implementation: The removed kernel arguments match the sole updated launch site, and the remaining
UsdPhysicsimport and prim-query utilities are still used by articulation-root resolution. The new regression test uses the shared physical fixture and independently derived gravity-equilibrium expectations rather than reproducing the production transform. A minor residual integration risk is the helper forwardingdevice=Noneexplicitly for existing callers, but the supplied interface and context show no concrete incompatibility.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
|
|
thanks @Lynn-hh |
|
run-ci |
…ts (#8018) ## Description Completes the missing `develop` backports to `release/3.0.0` from the 48-hour audit window ending September 25, 2026 at 05:55 UTC. Of 30 merged source PRs, 25 were already present on release, three had no backport, and two had inferred draft backports. - #7978: report Newton reaction wrenches for fixed connections while preserving articulation control-joint ownership. - #7997: correct OVPhysX joint-wrench frames and move the shared analytic sensor contract into the test tree. - #7989: correct body-offset Jacobians in task-space actions without mutating backend buffers. - #8010 and #8009: backport the OVPhysX and PhysX test audits after their wrench prerequisite. All five source patches apply without conflicts in this order. This supersedes the now-closed inferred draft backports #8016 and #8017, which were generated without #7997 and adapted their sensor tests around the old release implementation. Source commit hashes are recorded in the commit message. ## Validation - Audited all 778 paths touched by the 30 source PRs. Remaining differences in those paths are existing release metadata, cloning documentation, a CLI test version example, and release-only renderer tests. - **55 focused checks passed:** 6 Jacobian/shared-contract unit tests, 14 Newton sensor tests, 9 OVPhysX sensor tests across CPU/GPU, 9 PhysX sensor tests, 14 changed shared-ordering cases, and 3 live PhysX OSC tracking/gravity cases. Seven PhysX ordering variants skipped in the direct invocation; the live PhysX checks ran separately with Kit. - Backend validation used Newton 1.6.0, Warp 1.17.0, OVPhysX 0.6.3, and the pinned Isaac Sim 6.1.0 installation. Package imports were verified to resolve to this backport checkout. - `uv run --no-sync isaaclab -f`, `git diff --check`, and the full `make -C docs current-docs` build with warnings as errors passed. - Additional renderer contract coverage: 53 passed; two live-render cases could not initialize the local native CRenderApi library despite installing the pinned `ov` extra. Full Docker/GPU CI is running on the PR head. - The broader shared ordering file has 14 OVPhysX failures on both this branch and unchanged release, with identical failing node IDs and no added failures. The changed cases listed above passed. ## Controller coverage review The live PhysX OSC tests remain in `source/isaaclab/test/controllers/test_operational_space.py`; its fixture uses `SimulationCfg`'s default `PhysxCfg`, and the file is included in CI. The existing absolute-pose tracking, gravity-compensation, and nullspace-centering cases passed against Isaac Sim 6.1.0. The test audit removes the duplicate asset-suite cases while retaining this controller-suite coverage. ## Existing release CI failures The latest [release run](https://github.com/isaac-sim/IsaacLab/actions/runs/36097576980) and [develop run](https://github.com/isaac-sim/IsaacLab/actions/runs/36099567240) fail the same five OvStage image comparisons in `rendering-correctness-kitless (ovstage)` and `ovrtx-cache-warm`: Cartpole on Newton and OVPhysX, plus Newton Franka cable, cloth, and soft. Cartpole is 2.03–2.04% different against a 1.50% threshold on both branches; cloth is 32.48% on both. These shared rendering failures predate this catch-up; this PR does not change rendering output or image thresholds. ## Checklist - [x] Contribution guidance followed and formatting checks passed - [x] Original package changelog fragments and documentation included - [x] File-by-file backport audit completed - [x] Warning-free documentation build completed - [ ] Full CI completed Targets `release/3.0.0`; no further backport is needed.
Description
Follow-up to #7967, which fixed this for PhysX. The OVPhysX joint-wrench sensor had the same extra frame transform.
OVPhysX reports
LINK_INCOMING_JOINT_FORCEin the child-side joint frame at the joint anchor, the same convention as PhysX.isaaclab_ov/sensors/joint_wrench/kernels.pytreated that reading as "body1's frame at body1's origin" and shifted/rotated it again by the child joint pose (localPos1/localRot1). Readings were therefore wrong whenever that pose was not identity.This PR mirrors the PhysX correction in #7967 and makes the physical contract explicit across all three backends:
test_joint_wrench_framelives insource/isaaclab/test/sensors/joint_wrench_contract.py. Newton, PhysX, and OVPhysX import it directly into their existing sensor suites and provide their existingsimfixtures, following the FrameView contract-test pattern.device_splitCI marker so CPU and CUDA cases run in separate processes instead of silently skipping one device.Measurement (OVPhysX 0.6.3, before this PR)
The setup is a 0.5 kg tool welded to an arm. The tool's COM is 0.15 m past the wrist anchor. I authored the child and parent frames of the weld as below and compared the tool's reading with the analytic wrench.
In every case the raw OVPhysX tensor already matches the analytic wrench, and only the extra transform makes the sensor output wrong. With a 90° rotation about x, the reported force even points the wrong way.
Type of change
incoming_joint_frameconvention is unchanged.Tests
Local validation with OVPhysX 0.6.3, running backends in separate processes (CUDA on an RTX 5090):
-k 'cpu or not cuda'): 12 passed, including the device-independent pre-init test.-k cuda): 11 passed.uv run --no-sync isaaclab -fpassed.The physical scenario count is unchanged; the existing per-backend frame tests now collect the same test function. Full PR CI remains pending.
Checklist
pre-commitchecks with./isaaclab.sh --formatCONTRIBUTORS.mdor my name already exists therecc @ooctipus