How to real-time render the Usd.Stage, recorded by Mujoco.usd.exporter? #3189
Unanswered
wkoa
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a researcher , I use MuJoCo for my research on robotic manipulation.
My setup
MuJoCo version is 3.3.7
API is Python
OS: Ubuntu 22.04 LTS
My question
It is possible to real-time render the Usd.stage created in Mujoco.usd.exporter?
`
def _initialize_usd_stage(self):
"""Initializes a USD stage to represent the mujoco scene."""
self.stage = Usd.Stage.CreateInMemory()
UsdGeom.SetStageUpAxis(self.stage, UsdGeom.Tokens.z)
self.stage.SetStartTimeCode(0)
# add as user input
self.stage.SetTimeCodesPerSecond(60.0)
`
I have tried to override the
stagebyimport omni.usd self.stage = omni.usd.get_context().get_stage()but it does not work.
Minimal model and/or code that explain my question
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
Model:
minimal XML
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions