Skip to content

FrankaPanda/franka.usd: joint 4 rests outside its limits, and with the links' near-zero inertia, holding the rest pose makes joint 1 spin through its limits in PhysX #962

Backlog

Description

@pawelkikta

Description

Two faults in Isaac/Robots/FrankaRobotics/FrankaPanda/franka.usd of the Isaac Sim 6.1 asset library (https://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/6.1/Isaac/Robots/FrankaRobotics/FrankaPanda/franka.usd). Both values are authored in franka.usd itself. Each one alone does no visible harm in the test below; together, they do.

1. Joint 4 rests outside its limits

/panda/panda_link3/panda_joint4 has physics:lowerLimit = −176.0 and physics:upperLimit = −4.0 deg, and state:angular:physics:position = 0. At a reset, the joint starts at 0, and its limit pushes it to −4 deg. A controller that holds the file's rest pose sends joint 4 to 0 deg, so its drive (max force 87) presses the joint into its limit for as long as it holds the pose.

2. The links have almost no inertia

Every rigid body has physics:diagonalInertia of about 1e-6 kg m² and physics:centerOfMass = (0, 0, 0), on the joint:

Body Mass (kg) diagonalInertia (kg m²) Radius of gyration Size of the body
panda_link0 2.81 1.3e-6, 1.65e-6, 2.03e-6 0.9 mm 326 mm
panda_link1 2.36 1.87e-6, 1.44e-6, 0.91e-6 0.9 mm 327 mm
panda_link2 2.38 1.9e-6, 0.91e-6, 1.47e-6 0.9 mm 329 mm
panda_link3 2.65 1.29e-6, 1.5e-6, 1.43e-6 0.9 mm 309 mm
panda_link4 2.69 1.34e-6, 1.45e-6, 1.55e-6 0.9 mm 311 mm
panda_link5 2.98 3.26e-6, 2.71e-6, 1.15e-6 1.1 mm 378 mm
panda_link6 1.13 2.6e-7, 4.0e-7, 4.7e-7 0.7 mm 245 mm
panda_link7 0.41 6.3e-8, 6.3e-8, 1.06e-7 0.5 mm 186 mm
panda_hand 0.56 2.3e-7, 5.8e-8, 2.1e-7 0.7 mm 283 mm
panda_leftfinger, panda_rightfinger 0.014 4.2e-10, 3.9e-10, 1.3e-10 0.2 mm 72 mm

(Radius of gyration: sqrt(trace / (2 · mass)). Size: the diagonal of the body's bounding box.)

The same masses spread evenly through the collision shapes give several thousand times this inertia. The values look like inertias in a unit 1e3 to 1e4 times too small, or placeholders.

Together: joint 1 spins through its limits in PhysX

The attached franka_joint1_repro.py drives panda_joint1 from 0 to −83 deg, and then to 200 deg (its upper limit is 166 deg), with the file's drives (stiffness 400, damping 80 per deg, max force 87), at 240 Hz, for 3 s each. The other joints get one of two sets of targets: their positions after the reset, where the limit keeps joint 4 inside its range, or the file's rest positions, which send joint 4 to 0 deg, into its limit. --computed-inertia sets diagonalInertia = (0, 0, 0) and unsets centerOfMass, so that PhysX computes both from the colliders, with the same masses.

Other joints' targets Inertia joint 1 sent to −83 deg joint 1 sent to 200 deg
positions after reset as in the file −82.99 deg stops at 166.00 deg
positions after reset computed −83.00 deg stops at 166.00 deg
rest positions of the file (joint 4 sent to 0 deg) as in the file −482 deg after 3 s, still turning 489 deg after 3 s, still turning
rest positions of the file computed −83.00 deg stops at 166.00 deg

Between the first and the third row, the targets differ in joint 4: inside its range, or 0 deg against its limit. With joint 4 pressed into its limit and the file's inertias, joint 1 passes its target, passes both of its limits, and keeps turning. Fix either fault, and it does not happen.

python franka_joint1_repro.py <path or URL of franka.usd> [--rest-targets] [--computed-inertia]

Output of the third row (--rest-targets):

inertia: as in the file | other joints' targets: the file's rest positions (0)
panda_joint1 target -83 deg (limits -166 .. 166 deg)
  t = 0.25 s:   -27.32 deg
  t = 0.50 s:   -57.24 deg
  t = 0.75 s:   -86.41 deg
  t = 1.00 s:  -124.37 deg
  t = 1.25 s:  -186.50 deg
  t = 1.50 s:  -248.95 deg
  t = 1.75 s:  -307.92 deg
  t = 2.00 s:  -357.59 deg
  t = 2.25 s:  -398.98 deg
  t = 2.50 s:  -433.06 deg
  t = 2.75 s:  -460.63 deg
  t = 3.00 s:  -482.34 deg
panda_joint1 target 200 deg (limits -166 .. 166 deg)
  t = 0.25 s:    27.09 deg
  t = 0.50 s:    53.37 deg
  t = 0.75 s:    83.69 deg
  t = 1.00 s:   128.78 deg
  t = 1.25 s:   191.90 deg
  t = 1.50 s:   254.34 deg
  t = 1.75 s:   313.65 deg
  t = 2.00 s:   363.65 deg
  t = 2.25 s:   405.32 deg
  t = 2.50 s:   439.65 deg
  t = 2.75 s:   467.44 deg
  t = 3.00 s:   489.36 deg

A drive pressed into a limit is common in practice, for example a controller that sends the default joint positions. So the asset can fail this way in normal use.

Check the values without Isaac Sim

With usd-core only:

import math
from pxr import Usd, UsdPhysics

stage = Usd.Stage.Open("franka.usd")
for prim in stage.Traverse():
    if prim.HasAPI(UsdPhysics.RigidBodyAPI) and prim.HasAPI(UsdPhysics.MassAPI):
        api = UsdPhysics.MassAPI(prim)
        mass, moments = api.GetMassAttr().Get(), api.GetDiagonalInertiaAttr().Get()
        print(prim.GetName(), mass, moments, f"{math.sqrt(sum(moments) / (2 * mass)) * 1000:.1f} mm")
joint4 = stage.GetPrimAtPath("/panda/panda_link3/panda_joint4")
print([joint4.GetAttribute(a).Get() for a in
       ("physics:lowerLimit", "physics:upperLimit", "state:angular:physics:position")])

Suggested fix

  • Give joint 4 a rest position inside its limits (for example −90 deg or −4 deg).
  • Author each link's inertia and centre of mass from Franka's published inertial parameters (for example the inertial elements of franka_description), or leave both unset so that the engine computes them from the colliders.

Isaac Sim version

6.1.0

Operating System (OS)

Windows 11 Pro 10.0.26200

GPU Name

NVIDIA GeForce RTX 4090 Laptop GPU

GPU Driver and CUDA versions

Driver 610.47, CUDA 13.3

Logs

No error or warning: the engine accepts the values, and joint 1 turns past its limits without a message.

Additional information

Found with proofmass-check (https://github.com/proofmass/proofmass-check, open source), whose joint checks hold the file's rest pose. It now has a check that compares each body's inertia with its mass and the size of its colliders.

Activity

  1. PeterL-NV commented on Dec 1, 2026

    @PeterL-NV

    Hi, thanks for the detailed reports! I have passed this to our asset team for a fix.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions