-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support names with spaces. #239
Comments
If I recall correctly, classic's support for names with spaces is spotty. I could find a couple issues related to using spaces in resources:
Thank you for tracking down the source of the problem. Regardless of whether we want to support names with spaces, this sounds like a bug on string components. We can create a custom serializer for
Once the serialization issue is solved, I imagine we may run into others, such as topic names. I don't think |
Added a string serializer here, meshes and models seem to work fine: #244 The next step is going over all topics that use entity names. |
Related to this, we may want to replace |
I have been playing with some models that have spaces in their names, such as Pine Tree and noticed that when I spawn multiple models in the same world, such as:
I get the following error (and the model is spawned black):
I tracked down the problem being in the Name component missing the second word, and I believe this is due to the way we are doing serialization and deserialization in the Component template, specifically if I understand correctly we use the operator << for serialization and the operator >> for deserialization.
However, this doesn't work greatly for strings since, in the case of strings with spaces, the >> operator will only operate until the space (hence both models are seen as having the name "Pine").
By contrast this world file works OK for gazebo classic, do you think it should be fixed or should we just impose a "No model names with spaces" policy?
The text was updated successfully, but these errors were encountered: