Ask Your Question

Philipp's profile - activity

2012-08-22 11:18:27 -0500 received badge  Popular Question (source)
2012-08-22 11:18:27 -0500 received badge  Notable Question (source)
2012-08-22 11:18:27 -0500 received badge  Famous Question (source)
2011-06-15 08:00:50 -0500 marked best answer household_objects_database with gazebo (or blender)

Hi Philipp,

Type 0, means you are manipulating a sphere. The triangle array are triangles indices and the 3D points are the vertices of the mesh.

You should take a look at the mesh part here. And maybe the message description will help you too.

Guido

2011-06-07 23:52:40 -0500 received badge  Editor (source)
2011-06-07 23:49:31 -0500 asked a question household_objects_database with gazebo (or blender)

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