Hello,
I'm trying to use the objects from the household_objects_database in gazebo. At the moment I am trying to export the data from the objects_database_node/get_model_mesh-call to a format, which can be imported into blender to export it as .dae-file.
My way at the moment is:
- first to call objects_database_node/get_model_mesh and save it to a file
- afterwards to read in the data and trying to write an .obj-file.
The second point is the problem. I don't know how to interpret the data. They have the form:
return_code:
code: -1
mesh:
type: 0
dimensions: []
triangles: [74, 390, ... , 452]
vertices:
-
x: 0.00321499991417
y: -0.0341199989319
z: 0.101269996643
-
x:...
So clearly the second part is a list of 3D-Points. And the first part must be some sort of indices to build triangles. But the problem is, without the knowledge if it is a list of triangles, a triangle-strip, or so on it is not very useful. I tried most of the possibilities I can think of and they don't give sufficient results.
So I need some help for interpreting the data, or by figuring out a way to get this models into gazebo.
Thanks a lot for helping
Philipp
Originally posted by Philipp on ROS Answers with karma: 1 on 2011-06-07
Post score: 0
Original comments
Comment by dornhege on 2011-06-08:
For guessing, you could check if triangles length is divisible by 3.