You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a masters student at Vrije Universiteit Amsterdam, I use MuJoCo for my research on Modular Robotics.
My setup
Currently, Mujoco - trying to convert existing Evolutionary Computing for modular robotics framework Revolve2 (https://github.com/ci-group/revolve2) from Mujoco to MJX 3.2.3
The issue seems to be due to the fact the the Mujoco did not instantiate efc_J property of the model, but running the mj_step once before the put_data call seems to have resolved the issue
It's good that you found the solution, but put_data should either handle this situation (being called before any arena allocations) gracefully or, if that's not possible, give the user an informative error.
Intro
Hi!
I am a masters student at Vrije Universiteit Amsterdam, I use MuJoCo for my research on Modular Robotics.
My setup
Currently, Mujoco - trying to convert existing Evolutionary Computing for modular robotics framework Revolve2 (https://github.com/ci-group/revolve2) from Mujoco to MJX 3.2.3
What's happening? What did you expect?
I am following the provided tutorial on https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/mjx/tutorial.ipynb#scrollTo=Jtz7j1PDOnw5 and convert currently working code running the mujoco.mj_step to run using MJX.
I get an error related efc_J:
Steps for reproduction
python examples/4_example_experiment_setups/4c_robot_bodybrain_ea-mjx/main.py
the only differences from a functional
examples/4_example_experiment_setups/4c_robot_bodybrain_ea/main.py
can be found in rustam-e/revolve2@30bfc7fMinimal model for reproduction
the issue is consistent with all of the experiements we ran
Code required for reproduction
running any of the examples by changing
from:
from revolve2.simulators.mujoco_simulator import LocalSimulator
to:
from revolve2.simulators.mjx_simulator import LocalSimulator
would throw consistently the same error like:
ValueError: could not broadcast input array from shape (0,10) into shape (4,10)
the only diference across examples being the second dimension
Confirmations
The text was updated successfully, but these errors were encountered: