Replies: 4 comments
-
|
Thank you for posting this. The NaN or Inf errors you encounter when resetting a robot in Isaac Lab using joint positions sampled from your motion (which can be out of joint limits) arise because Isaac Lab enforces joint limits during reset. Always clip or validate joint positions before calling the reset function to ensure none are outside the specified joint limits. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Can anyone pls kindly help? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
|
Following up, yes, However, the NaN or Inf found in input tensor warning usually does not come directly from the low‑level joint limit clamp, but from values that later enter the RL pipeline (observations, rewards, losses, or logging to TensorBoard), so you can still get NaNs even if all joint positions are technically within limits. I'll move this post to our Discussions for follow up. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to reset the robot using my motion, which may potentially have joint pos not within joint limit but I can do this in IsaacGym, I don't know why in Isaaclab I will get errors, below is the function I use for reset
Error
with torch.cuda.amp.autocast(enabled=self.mixed_precision):
fps step: 3 fps step and policy inference: 3 fps total: 3 epoch: 1/30000 frames: 0
[2025-11-07 19:28:32,306][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,307][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,307][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,308][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,309][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,309][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,309][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,309][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,310][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,310][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
[2025-11-07 19:28:32,310][tensorboardX.x2num][WARNING] - NaN or Inf found in input tensor.
Error executing job with overrides: []
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions