[Bug Report] `joint_ordering="physx"` on Newton does not reproduce PhysX sibling order
Describe the bug
With joint_ordering="physx" / body_ordering="physx" on the Newton backend, the public joint and body order is
supposed to match the PhysX articulation view. It is emulated in
isaaclab/assets/articulation/ordering_resolvers.py (_get_physx_names_from_newton_usd_builder) by importing the
asset with Newton's joint_ordering="bfs".
The two traversals are both breadth-first, but they order siblings differently:
- PhysX visits the child links of a link in authored joint-prim order (stage traversal order). This does not depend on the joint type, the body-prim order or the prim names.
- Newton visits siblings in the order of
UsdPhysics.LoadUsdPhysicsFromRange'sarticulatedJoints, which is sorted by prim path.
The emulation is therefore correct only when siblings happen to be authored in path order. When they are not, the
joints are silently permuted and no error is raised. A policy trained on PhysX and run on Newton with the documented
"physx" convention then drives the wrong joints.
The official assets below were compared as live PhysX order vs. the Newton public order with both fields set to
"physx". The numbers count misplaced entries.
| asset | joints | bodies |
|---|---|---|
| Shadow Hand | 12/24 | 12/25 |
| Digit | 37/50 | 41/43 |
| Humanoid | 21/21 | 13/16 |
| Go2, G1, H1, ANYmal-D, Franka, Spot, Allegro, KUKA-Allegro, GR1-T2, UR10, Cartpole | 0 | 0 |
The assets that match do so only because their sibling joints happen to be authored in path order.
Steps to reproduce
Take a hub (fixed or floating base) whose sibling joints are authored in the order thumb_joint, index_joint,
middle_joint:
cfg = ArticulationCfg(prim_path="/World/Env_0/Robot", spawn=sim_utils.UsdFileCfg(usd_path=path),
actuators={}, joint_ordering="physx", body_ordering="physx")
# PhysX backend_joint_names: ('thumb_joint', 'index_joint', 'thumb_tip_joint', 'index_tip_joint')
# Newton joint_names with "physx": ('index_joint', 'thumb_joint', 'index_tip_joint', 'thumb_tip_joint')SHADOW_HAND_CFG with apply_articulation_ordering_preset(cfg, "physx") on Newton gives
rh_WRJ2, rh_WRJ1, rh_FFJ4, rh_LFJ5, rh_MFJ4, .... Live PhysX gives rh_WRJ2, rh_WRJ1, rh_FFJ4, rh_MFJ4, rh_RFJ4, rh_LFJ5, ....
System Info
- Commit: develop f2f11b3f60
- Isaac Sim Version: 6.1.0-rc.26
- Newton: 1.6.0
- OS: Ubuntu 24.04
- GPU: RTX PRO 5000 Blackwell
- CUDA: 13.0
- GPU Driver: 580.126.20
Additional context
The "mjwarp" emulation (DFS) matches live Newton, because both sides use the same importer.
Joint counts compare joint names without the per-axis suffix, because multi-DoF axes are spelled :0/:2 on PhysX and :0/:1 on Newton.
Checklist
- I have checked that there is no similar issue in the repo (required)
- I have checked that the issue is not in running Isaac Sim itself and is related to the repo
Acceptance Criteria
- On Newton,
"physx"ordering equals live PhysX order for assets whose siblings are not authored in path order. - A regression test uses an asset whose sibling joint order differs from its path order.
Source: isaac-sim/IsaacLab