Ive been battling with Replicator and skeleton joints all day. At first, I had combined trying to rotate a skeleton joint with a script that also randomized the camera position and lighting scenario. On its own, the camera and lighting script worked. When I added the joint change and tested by stepping with Replicator, Replicator would show the desired change for one step then take a while and crash.
I broke out the skeleton change to a separate script and it seemed to be fine. Then I started noticing the position of the joint was being reset back to (0,0,0) when modify.pose(rotation = (myvector)) was called. As I tried to troubleshoot that, the script completely stopped working and now wont update the joint rotation at all.
Any ideas on why this code may not be working? I have also set up a cube in the same script to check behavior. The cube in this script will rotate as requested but the joint still remains in place. Also, the cube position is not reset like the joint was when it was working. I feel like Im seeing very different results with this through the day but cant figure out what may have changed to cause these issues.
import omni.replicator.core as rep
def RandomizeArm():
arm = rep.get.prim_at_path("/{LOCATION OF MY JOINT WAY DOWN IN THE SCENE GRAPH}")
with arm:
rep.modify.pose(rotation = rep.distribution.uniform((0,0,0), (180, 180, 180)))
return arm.node
rep.randomizer.register(RandomizeArm)
def RandomizeCube():
cube = rep.get.prim_at_path("/Cube")
with cube:
rep.modify.pose(rotation = rep.distribution.uniform((0,0,0), (180, 180, 180)))
return cube.node
rep.randomizer.register(RandomizeCube)
with rep.trigger.on_frame():
rep.randomizer.RandomizeArm()
rep.randomizer.RandomizeCube()