example in omni.isaac.cloner not working

Hi everyone,
I was in the process in migrating my code to the newest IsaacSim2023.1.0 release.
However, I found a runtime error when trying to use the GridCloner in the omni.isaac.cloner kit.
To make sure this was not caused by me, I run the example shipped with the new distribution and it gives me the exact same runtime error.
The relevant stack trace is the following:

Traceback (most recent call last):
  File "/home/myusername/.local/share/ov/pkg/isaac_sim-2023.1.0/standalone_examples/api/omni.isaac.cloner/", line 45, in <module>
  File "/home/myusername/.local/share/ov/pkg/isaac_sim-2023.1.0/exts/omni.isaac.cloner/omni/isaac/cloner/", line 158, in clone
    positions, orientations = self.get_clone_transforms(num_clones, position_offsets, orientation_offsets)
  File "/home/myusername/.local/share/ov/pkg/isaac_sim-2023.1.0/exts/omni.isaac.cloner/omni/isaac/cloner/", line 57, in get_clone_transforms
    if len(position_offsets) != len(prim_paths):
NameError: name 'prim_paths' is not defined

It appears there’s an issue with the cloner itself.

Actually the issue is very simple: the get_clone_transforms is missing prim_paths as input.
Simply adding to the function definition should solve the issue.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.