Home | Tutorials | Wiki | Issues
Ask Your Question

dynamic loading meshes (collada heightmap) from memory [closed]

asked 2016-03-21 03:59:42 -0500

mdingwer gravatar image


for a project I have to generate different objects which will dynamiclly generated and loaded during runtime of the simulation. Therefore I have to load the (collada/heightmap/meshes) files as fast as possible.

In the tutorial plugins_world_tutorial is an way described how I can load the sdf files without saving on the hard drive. But this plugins need an URI to load the mesh/heighmap files from the hard drive of the pc.

Now I have two questions:

  1. Is there a way/function to create this meshes directly (without saving these files on the hard drive of the pc) for my plugin? if possible I want to skip caching on the hard drive.

  2. Has gazebo an interface to create the meshes directly from calculated triangles and Polygon?

I hope you can help me.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mdingwer
close date 2016-04-05 16:29:55.906511

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-21 11:39:57 -0500

nkoenig gravatar image

You could try creating a Mesh, and adding the mesh the MeshManager.

edit flag offensive delete link more


I am doing something similar: procedurally generating a tree mesh (such that each instance is a unique tree). I create them in a Mesh and add them to the MeshManager (e.g. set name to Tree_123). Then for each tree instantiation I create a SDF string, e.g. ... <mesh><uri> Tree_123 <uri><mesh> ... using sdf::SDF::SetFromString(). But all I get are unit cubes (albeit at the correct locations and in the correct material properties) - any advice from anyone? Thanks in advance.

Galto2000 gravatar imageGalto2000 ( 2017-11-11 15:30:50 -0500 )edit

Question Tools



Asked: 2016-03-21 03:59:42 -0500

Seen: 134 times

Last updated: Mar 21 '16