[Python] I want to trigger an event on each frame when running an NVIDIA Omniverse replicator

Discussão em 'Python' iniciado por Stack, Fevereiro 14, 2025.

  1. Stack

    Stack Membro Participativo

    I want to perform an action on each frame when running a simulation on omniverse isaac sim. Lets take as exemple that I want to print 1 at each frame. So when I run this code, I expect the output to have ten 1s.

    Instead, I'm getting only the first and then a "resetting simulation timeline" message.

    import omni.replicator.core as rep

    with rep.new)layer ():
    with rep.trigger.on_frame (10):
    print (1)

    rep.orchestrator.run()

    Continue reading...

Compartilhe esta Página