roboticslab-uc3m / teo-openrave-models

TEO OpenRAVE models.
http://roboticslab.uc3m.es/roboticslab/robot/teo-humanoid
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Error opening wrl files in Meshlab #13

Closed David-Estevez closed 3 years ago

David-Estevez commented 6 years ago

When I try to open any wrl file in Meshlab I get the following error:

Error encountered while loading file:
"/home/def/Repositories/teo-openrave-models/openrave/teo/models/0.0^cabeza_links.wrl"

File: /home/def/Repositories/teo-openrave-models/openrave/teo/models/0.0^cabeza_links.wrl
Error details: -- line 3 col 17: invalid NodeBodyElement

I am using Meshlab v1.3.2 64bit.

jgvictores commented 6 years ago

Replicated error opening these VRML V1.0 files using Meshlab v1.3.2 64bit on a different machine. It is however capable of opening the kinect VRML V2.0 file.

Was capable of opening the files with FreeCAD, would that be useful for you?

PS: Not sure if should be considered a bug in the scope if this repository, as openrave is capable of opening the files.

David-Estevez commented 6 years ago

My original goal was to open them with Blender, but it failed. Then I tried with Meshlab and when it failed again, so I opened this issue.

@RaulFdzbis showed me then that this repo contains a .dae file with all the parts, which I was able to open in Blender, so I guess this is no longer an issue for me. :smile:

But if it is not too much work, I think it would be useful to export the original files to VRML V2.0 to avoid problems in the future.

PeterBowman commented 3 years ago

For the record, the only COLLADA file in this repo was teo.dae, removed because of https://github.com/roboticslab-uc3m/teo-openrave-models/issues/32.

PeterBowman commented 3 years ago

Done at https://github.com/roboticslab-uc3m/teo-openrave-models/commit/6dc56d8364ca8f2c615c0238a3d7426d50f68e2a. Successfully tested via OpenRAVE on Ubuntu 18.04 (OR 0.9.0 w/ Coin viewer) and Ubuntu 20.04 (OR 0.54.0 w/ OSG viewer).

Now I can open these .wrl files with Meshlab and convert them to .dae via meshlabserver -i part.wrl -o part.dae. Note FreeCAD is refusing to convert either format (VRML 1/2) to .dae via GUI.

jgvictores commented 3 years ago

@PeterBowman Thank you so much for this!

For further reference, how were these VRML 2 files generated?

PeterBowman commented 3 years ago

Sorry, I meant to add that but forgot it. FreeCAD was my choice: it allows you to open VRML1 files and export them to VRML2 afterwards.

jgvictores commented 3 years ago

My original goal was to open them with Blender, but it failed.

Turns out Blender cannot open the generated VRML2 (runs into something like https://developer.blender.org/T51334 IndexError: list index out of range while importing wrl file), however, it can open each individual .dae file generated currently at https://github.com/roboticslab-uc3m/teo-gazebo-models/tree/bbd7e33a2b0e6accdbaba5aef144fdbfa5b96136/models. : )

jgvictores commented 3 years ago

My original goal was to open them with Blender, but it failed.

For what it's worth, brand new, shiny: https://github.com/roboticslab-uc3m/teo-blender-models