Using mediapy with MuJoCo (Visual Studio Code / Windows 10) #2399
-
IntroHi! I am an assistant prof at Imperial. My lab uses MuJoCo for my research on robotic manipulation (mainly on Linux or Mac machines). I'm currently trying to set things up on my Windows laptop and am running into issues. My setupMuJoCo - 3.2.7 My questionWhen I try and display renders with mediapy I get no visual output and the below terminal output (using the provided minimal example). I found a similar issue reported in (#817 (comment)) but it seems that the answer was that the issue was fixed in more recent versions of mujoco. I installed the latest version of mujoco this week and am still having the problem. FYI - the viewer works when launched with
Minimal model and/or code that explain my question
Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Perhaps others in the community can help with this. Unfortunately, like yourself, we (the dev team) use Linux and Mac but not Windows. Other than than GitHub Actions' Windows CI workflow (which indeed does not test for this corner of the codebase), is it very difficult for us to help with Windows-related issues... |
Beta Was this translation helpful? Give feedback.
-
I think I figured it out. Mediapy doesn't work with Visual Studio Code. I switched to Jupyter Lab and my original code gave me a blank image (but no errors). Adding a camera and stepping the simulation gives me a render of a UR5. Here's the working code:
|
Beta Was this translation helpful? Give feedback.
I think I figured it out. Mediapy doesn't work with Visual Studio Code. I switched to Jupyter Lab and my original code gave me a blank image (but no errors). Adding a camera and stepping the simulation gives me a render of a UR5.
Strangely, if you omit 'renderer=None; it will only render if you restart the kernel every time you run the code, otherwise the output is just black.
Here's the working code: