I’m trying to work out how to get an Articulation instance in my extension.
I have two questions:
- What path do you specify for the articulation prim? Below is my project and the articulation root is attached to the “body” element. I get the error “failed to get articulation at /World/omeo/body”.
self.prim = Articulation(prim_path= "/World/omeo/body", name="mybot")
- I also get the error “DcGetArticulationRootBody: Function called while not simulating” and “Failed to create simulation view: No active physics scene found.”
I understand that I have to initialize the Articulation after the Play button has been pressed so I’m attempting to do this by listening to a stage event, however, that does not work. What is the best practice for initializing an Articulation?
if event.type == int(omni.timeline.TimelineEventType.PLAY):
self.prim.initialize()