Gain Tuner Crash – Missing `_joints` Attribute**

I encountered an error while using the Gain Tuner extension after loading a manipulator.

  • When I clicked to use the tuner, Isaac Sim threw an AttributeError:

    AttributeError: 'GainTuner' object has no attribute '_joints'
    
  • The error points to this line in gains_tuner.py:

    for joint in self._joints.values():
    
  • It looks like _joints was never initialized before this method (compute_joints_acumulated_inertia) was called.

  • I already had a robot loaded, so the issue seems to be internal to the extension.

  • Please see the attached screenshot for the full trace.


Let me know if you’d like to include a version number or path details.

Thanks for the report and the screenshot, @Niranjan_Sujay.

The AttributeError: 'GainTuner' object has no attribute '_joints' was raised from compute_joints_acumulated_inertia() in the Gain Tuner extension. In the 5.x versions of the extension (for example isaacsim.robot_setup.gain_tuner 3.0.6 in Isaac Sim 5.1.0), _joints was only created at the very end of GainTuner.setup(). The deferred link-mass update that calls compute_joints_acumulated_inertia() only checked that a robot prim was bound. If setup() did not complete for the selected robot, the deferred call hit a half-initialized object and crashed on self._joints.

This was reworked in later releases and the problem no longer applies to the current release (Isaac Sim 6.2.0, isaacsim.robot_setup.gain_tuner 3.11.0):

  • compute_joints_accumulated_inertia() now returns early unless a robot, an articulation, and a link tree are all bound, so it can no longer run against a half-set-up tuner.
  • The deferred link-mass update also catches the “physics tensor not ready yet” case and logs a warning instead of raising.
  • Joint setup now reads the robot schema’s robotJoints / robotLinks relationships. If a DOF is not listed in the robot schema, you get a one-time warning naming the missing joints instead of a crash.

I checked this on Isaac Sim 6.2.0 (aarch64) with a UR10e asset. Calling the inertia computation on a freshly created GainTuner before setup() returns cleanly with no exception, and setup() followed by the inertia computation populates all 6 joints.

If you are still seeing this:

  1. Update to Isaac Sim 6.2.0 (download) and open the tuner from Tools > Robotics > Asset Editors > Gain Tuner.
  2. Make sure your robot has the Isaac Sim robot schema applied and a valid articulation root. See the Gain Tuner docs.
  3. If it still fails, please open a new topic with your Isaac Sim version, the robot asset, and the Kit log, and link back to this one.

Since this was fixed in later releases and there has been no follow-up here, I’m closing this topic. Feel free to open a new one if you run into anything else.