Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trying to understand adding custom shapes to model editor

Problem: I am trying to import a .dae custom shape I exported using Blender to the model editor in Gazebo and it's not loading my textures properly.

Context: To try to understand what's going on I tried with a model that imports texture properly. I have a construction cone model in ~/.gazebo/models/construction_cone This folder contains two subfolders : a meshes subfolder containing a .dae file and a materials/textures subfolder with a .png texture file. It also contains a model.sdf file and a model.config file If I import this model using its .dae file into the model editor by clicking Add under Custom Shapes and browsing to the meshes directory, the textures are applied fine after importing the object.

Here is what I don't understand: If I make an IDENTICAL COPY of the meshes and materials subfolders to a different location on my computer and repeat the same exact import process, I get no textures at all. I tried moving over the sdf and config filles, having cloned exacly my ~/.gazebo/models/construction_cones to some other location and the model explorer is not loading my textures. Where is the texture information located ? What tells gazebo where to find the texture? I tought the dae file would suffice, but it looks like it doesn't.