How can I implement multiple viewers for different simulations? #2429
Unanswered
HoangGiang93
asked this question in
Asking for Help
Replies: 2 comments 5 replies
-
@vikashplus, I think you know how to do this? |
Beta Was this translation helpful? Give feedback.
4 replies
-
If not seen already: |
Beta Was this translation helpful? Give feedback.
1 reply
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 at Institute for Artificial Intelligence, University of Bremen, I use MuJoCo for my research.
My setup
MuJoCo version: 3.2.7
API: Python
OS: Ubuntu>=20.04
My question
I am attempting to implement multiple viewers, with each viewer operating in a separate process and linked to a distinct simulator. I've experimented with both multiprocessing and threading approaches. While
multiprocessing
allows each viewer to display correctly and independently, it fails to synchronize with theMjModel m
and dataMjData d
. On the other hand,threading
achieves synchronization with the model and data, but the viewers interfere with each other, especially when I try to open a menu in a viewer.MultiViewers.mp4
Minimal model and/or code that explain my question
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions