I am looking for the best way to reset the simulation to repeatedly perform a task

Isaac Sim Version

4.2.0

Operating System

Ubuntu 22.04

GPU Information

  • Model: A6000
  • Driver Version: 535.183.01

Topic Description

hello. I am using a robotic arm to pick and place and I want to extract image data during the pick and place process, so I need to have the robot repeat the pick and place motion.

So after one pick and place, I want to replace the object to its original position and return the arm to its original position.

For now, we just want to initialize it, but in the future, we want to change the code so that we can change the object and randomize the position of the object as well.

I tried using the reset, initialize_physics, and clear_instance functions of the world to do this, but they didn’t work the way I wanted.

The reset function didn’t initialize immediately after I used it, and it didn’t return to the original state until about 2 steps later. The initialize_physics function didn’t work either, and I tried to recreate the world object after using the clear_instance function, but I got an error saying that there were prims already created.

Any help on how to do this would be greatly appreciated!