You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gazebo 7 on ubuntu xenial a model with a collada mesh will not show a texture if it has a space in the filename. (Model attached)
The following lines appear running gazebo verbose.
[Err] [Material.cc:100] Unable to find texture[Material%20Ambient.png] in path[/other/dir/textured_mesh/meshes]
[Err] [SystemPaths.cc:410] File or path does not exist["/other/dir/textured_mesh/meshes/../materials/textures/Material%20Ambient.png"]
[Err] [RenderEngine.cc:483] URI doesn't exist[/other/dir/textured_mesh/meshes/../materials/textures/Material%20Ambient.png]
[Err] [Material.cc:100] Unable to find texture[Material%20Ambient.png] in path[/other/dir/textured_mesh/meshes]
It looks like the loader did not convert the %20 to a space. If I change it to an underscore the texture is correctly applied. The filename of a texture in a collada file is specified using the tag <init_from> which has the type xs:anyURI which requires characters like spaces escaped with a %. The code responsible for fetching a material will need to un-escape the filename before searching for it.
The text was updated successfully, but these errors were encountered:
On Gazebo 11.2.0, the model that is linked to this issue fails to load the texture with:
[Wrn] [ColladaLoader.cc:1435] ambient texture not supported
I changed the ambient texture to diffuse and now it fails like the original issue:
[Wrn] [SystemPaths.cc:459] File or path does not exist [""] [Material%20Ambient.png]
[Err] [Material.cc:91] Unable to find texture[Material%20Ambient.png] in path[/home/louise/.gazebo/models/textured_mesh/meshes]
[Wrn] [SystemPaths.cc:459] File or path does not exist [""] [Material%20Ambient.png]
[Err] [Material.cc:91] Unable to find texture[Material%20Ambient.png] in path[/home/louise/.gazebo/models/textured_mesh/meshes]
Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).
The original report had attachments: space_in_texture_filename.tar.gz
In gazebo 7 on ubuntu xenial a model with a collada mesh will not show a texture if it has a space in the filename. (Model attached)
The following lines appear running gazebo verbose.
It looks like the loader did not convert the
%20
to a space. If I change it to an underscore the texture is correctly applied. The filename of a texture in a collada file is specified using the tag <init_from> which has the type xs:anyURI which requires characters like spaces escaped with a%
. The code responsible for fetching a material will need to un-escape the filename before searching for it.The text was updated successfully, but these errors were encountered: