How to attach MjSpec in a running passive viewer #2835
Unanswered
TDC-TangChaoBanLi
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a student, I use MuJoCo for my research on multi object assembly.
My setup
mujoco-python-3.3.5 WSL-ubuntu22.04
My question
I hope to add objects with physical collision during the simulation and view them in real-time with a passive viewer. Therefore, I used the attach function to add them and recompiled. The model after recompilation is correct, but it is not updated properly in the viewer. I would like to know how to update the model in the viewer or if there are any other methods to achieve the above functionality?
Minimal model and/or code that explain my question
In the following example, I used a sphere to replace my mesh. When the example runs and the terminal displays "add a ball," there is no change in the viewer.When the second viewer opens, the models of both balls are loaded correctly.
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions