Unable to load xml file with replicate #2194
-
IntroHi! I am a student , I use MuJoCo for my research. My setupi m using mujoco 3.2.4. python =3.12.2, ubuntu =20 My questionXML Error: Schema violation: unrcognized element Getting above error for the XML file-->
Minimal model and/or code that explain my questionIf you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue). Model: minimal XML<mujoco>
<worldbody>
<light pos="0 0 1"/>
<geom type="sphere" size="1" rgba="1 0 0 1"/>
</worldbody>
</mujoco>
Code: import mujoco
import mediapy as media
model = mujoco.MjModel.from_xml_string(xml)
data = mujoco.MjData(model)
with mujoco.Renderer(model) as renderer:
mujoco.mj_forward(model, data)
renderer.update_scene(data)
media.show_image(renderer.render()) Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is not reproducible, your model is invalid (this is just a snippet from a model, no |
Beta Was this translation helpful? Give feedback.
-
Maybe im late but the problem is that the label "replicate" just works on Mujoco => 3.3.0 |
Beta Was this translation helpful? Give feedback.
Maybe im late but the problem is that the label "replicate" just works on Mujoco => 3.3.0