Missing function in python binding. #2106
Replies: 1 comment
-
This is not possible, and not what mj_copyBack does. You need to start with an mjSpec, modify that, and compile to mjModel when required. The whole copyback functionality is a remnant from before mjSpec existed and doesn't really makes sense anymore. There is now no reason to modify mjMode. We'll probably delete it in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
Hi!
I am a student tring to use MuJoCo to create a reinforcement learning environment for stacking deformable objects.
My setup
MuJoCo Version: 3.1.6
OS: Ubuntu 22.04.4 x86_64
Using mujoco python binding
My question
I want to spawn some soft objects on some random positions at runtime.
My intended method is to convert MjModel to Mjspec, add these soft objects, and then recompile it back to MjModel. However, I found that the exposed Python API does not provide the
mj_copyBack
function, and some other functions mentioned in the documentation are also not exposed in the Python API. Is there any other way to achieve the same effect as themj_copyBack
`function?"Minimal model and/or code that explain my question
No response
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions