Hello,
I think the example standalone_examples/api/omni.replicator.isaac/randomization_demo.py
from the domain randomization example needs to be modified on the while loop.
Due to world.step(render=True)
being in the if
, the simulation stop just after the world is created. world.step(render=True)
has to place at the top of the while loop.
........
........
frame_idx = 0
while simulation_app.is_running():
world.step(render=True)
if world.is_playing():
reset_inds = list()
if frame_idx % 200 == 0:
# triggers reset every 200 steps
reset_inds = np.arange(num_envs)
dr.physics_view.step_randomization(reset_inds)
# world.step(render=True)
frame_idx += 1
simulation_app.close()
Thanks