An audio-visual library supports processing audio and video files, a graphics library can load a variety 3D mesh file formats into a generic in-memory representation, and the core library of Gazebo Common contains functionality that spans Base64 encoding/decoding to thread pools.
Source or binary build?
Source, Ignition Edifice, ign-common commit: ee5ba8e
Description
Expected behavior:
When using include tag to add model from another sdf file, model's mesh loads normally
Actual behavior:
When using include tag to add model from another sdf file, this model is not loading if 1) it has mesh and 2) mesh uri is relative to the file location
Start ignition gazebo with main sdf file
ign gazebo -v 4 main.sdf
Output
Model not loading with errors:
[GUI] [Err] [SystemPaths.cc:467] Could not resolve file [RETAINER.sdf/meshes/RETAINER_B001.dae]
[GUI] [Err] [MeshManager.cc:172] Unable to find file[RETAINER.sdf/meshes/RETAINER_B001.dae]
[GUI] [Err] [MeshDescriptor.cc:56] Mesh manager can't find mesh named [RETAINER.sdf/meshes/RETAINER_B001.dae]
[GUI] [Err] [Ogre2MeshFactory.cc:524] Cannot load null mesh [RETAINER.sdf/meshes/RETAINER_B001.dae]
[GUI] [Err] [Ogre2MeshFactory.cc:103] Failed to get Ogre item for [RETAINER.sdf/meshes/RETAINER_B001.dae]
[GUI] [Err] [SceneManager.cc:373] Failed to load geometry for visual: visual
From the log it seems that included model uri is added to the path which fails path resolving for the mesh.
The same model in the main sdf file is working fine.
Here is files to reproduce an error:
example.zip
Environment
Description
Steps to reproduce
ign gazebo -v 4 main.sdf
Output
Model not loading with errors:
From the log it seems that included model uri is added to the path which fails path resolving for the mesh. The same model in the main sdf file is working fine. Here is files to reproduce an error: example.zip