mjc_viewer icon indicating copy to clipboard operation
mjc_viewer copied to clipboard

Mesh asset file not found

Open rodrigodelazcano opened this issue 2 years ago • 2 comments

Hi @kevinzakka, thank you for this implementation. I was using it to visualize a model on Google Colab. The following error appears when parsing the .stl mesh files:

FileNotFoundError Traceback (most recent call last)

/usr/local/lib/python3.7/dist-packages/dm_control/utils/io.py in GetResource(name, mode) 20 21 def GetResource(name, mode='rb'): ---> 22 with open(name, mode=mode) as f: 23 return f.read() 24

FileNotFoundError: Line 25: error while parsing element : during initialization of attribute 'file' of element : [Errno 2] No such file or directory: '/tmp/tmpy65dzap5/cars\meshes\/mushr_base_nano.stl'

I'm using the 'block.xml' model in this folder: models.zip

rodrigodelazcano avatar Jun 27 '22 17:06 rodrigodelazcano

Hi @rodrigodelazcano, thanks for giving this library a try! I have not vetted and completed the mesh loading code, apologies for that. I'll let you know when it's ready to go -- working on this on weekends so might be slower than you expect.

kevinzakka avatar Jun 27 '22 18:06 kevinzakka

Sorry I didn't reply @kevinzakka. I just saw the TODO list on the Readme. Thanks a lot for taking time to work on this.

rodrigodelazcano avatar Jul 03 '22 17:07 rodrigodelazcano