dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

pymjcf: assets dict is too big

Open umeiko opened this issue 2 years ago • 1 comments

I decomposed my model into many pieces of convexhall meshes (about 2k), then tried to load it into pymjcf, with API mjcf.Physics.from_mjcf_model, it raised a ValueError: assets dict is too big. whether load them with .xml or python's for loop will trigger that Error. But load them with mujoco.Physics.from_xml_string goes all right. I don't know if this is a bug in pymjcf or it has some way to avoid. I really loves pymjcf to build my envirment. IssuesExample.zip

umeiko avatar Mar 15 '23 12:03 umeiko

My Envirment

  • Windows 10
  • Python 3.8.13 (default, Mar 28 2022, 06:59:08) [MSC v.1916 64 bit (AMD64)]
  • dm-control 1.0.10
  • mujoco 2.3.2 Here attached codes that can correctly import same files of convexhall meshes by mujoco.Physics.from_xml_string. I can't understand why same .xml model which works via mujoco.Physics.from_xml_string but not works via mjcf.Physics.from_xml_string. IssuesExample.zip

umeiko avatar Mar 25 '23 14:03 umeiko