dm_control
dm_control copied to clipboard
pymjcf: assets dict is too big
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
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.xmlmodel which works viamujoco.Physics.from_xml_stringbut not works viamjcf.Physics.from_xml_string. IssuesExample.zip