-
Notifications
You must be signed in to change notification settings - Fork 498
Support filenames containing spaces #2870
Comments
According to Ogre's documentation, textures in material scripts can't have spaces. As they gracefully put it: "Note that the texture file cannot include spaces. Those of you Windows users who like spaces in filenames, please get over it and use underscores instead." However, in my testing, I saw that spaces work not only on texture files, but also the material files themselves. At least on Linux. I added a test here: bd91bfd. If it fails on Windows, I'll disable the test there. |
I couldn't find an official OBJ specification. Looking around the internet, it seems that there isn't a consensus about whether spaces should be supported in files referenced from OBJ and MTL files, more specifically:
Gazebo uses On the other hand, it looks like Meshlab supports spaces in these filenames through the VCGlib parser, see issue cnr-isti-vclab/meshlab#66, which I believe was fixed by this commit: cnr-isti-vclab/vcglib@c547c56. Since Gazebo uses |
OBJ / MTLIt turned out that textures referenced in MTL files were already working, so the only missing piece was referencing MTL files from OBJ. I opened a PR against |
The last piece of the puzzle (MTL / OBJ) is on #2885. |
File names and paths containing spaces have never been officially supported by Gazebo classic. There are use cases which are known to work, but because this has never been a well supported use case, there are corner cases that won't work, and there's also the possibility that new functionality breaks existing cases that happen to work.
This issue is about making the support for spaces in file names and paths official. Test cases will be added for all supported file types and ways of inserting them into simulation, to make sure they continue to be supported. In the process, the use cases which don't currently work will be fixed.
The following file types will support spaces:
gazebo <world file>
~/factory
topic<include>
SDF tagNotably, plugin files (shared libraries) are not included in this list.
The text was updated successfully, but these errors were encountered: