Sharing a data object for multiple models #2922
Unanswered
bd-tablett
asked this question in
Asking for Help
Replies: 1 comment 4 replies
-
|
mujoco.rollout supports multiple datas and multiple models, which I think should address what you're trying to do, why is that not a good solution? |
Beta Was this translation helpful? Give feedback.
4 replies
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!
My name is Trevor, I'm a researcher at Boston Dynamics, and I use MuJoCo for my research on Atlas.
My setup
My question
My real setup uses
mujoco.rollout.Rollout, but I'm trying to sample different objects within the sequences of models that I pass to the rollout function. Specifically, each model would contain the robot and one object selected from many, but each model would otherwise have the same number of bodies.This breaks the assumption that the mujoco data matches the model, although I didn't think that it fully broke the "homogeneous models" requirement of
mujoco.rollout.Rollout. I was hoping that I could get around this by defining a "dummy" object that has more geoms than any of the other objects I care about, and base my data on that object. This seems to partially work, but also fails in surprising ways, and also in different ways depending on which version of MuJoCo I'm using.I've attached a minimal example that fails in two different ways. When not using shared data, this is what I get, which would be the expected behaviour:
Screencast.from.10-31-2025.03.56.00.PM.webm
When using shared data, with version 3.3.2 - 3.3.5, I get this, where the primitive-based objects seem to be okay, but the sphere mesh doesn't work:
Screencast.from.10-31-2025.04.00.21.PM.webm
Where as soon as the sphere is loaded, I get this error:
When I use 3.3.6 - 3.3.7, I get this, where the second primitive object is clearly not simulating correctly:
Screencast.from.10-31-2025.04.02.13.PM.webm
and no warnings.
My questions are:
mujoco.rollout.Rolloutand shared data?Minimal model and/or code that explain my question
To run and reproduce my errors, set USE_DUMMY_DATA=True, and to run without sharing data, set USE_DUMMY_DATA=False.
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions