-
Notifications
You must be signed in to change notification settings - Fork 59
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 resource files with spaces #197
Conversation
Signed-off-by: Louise Poubel <louise@openrobotics.org>
…showing Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
The I also tested the |
Woops, nice catch. I updated the model.
Yeah I think that model has several things unsupported by GzWeb. One is nested models (#102). But there's also something about that DAE file that GzWeb doesn't like, with spaces or without. I checked that the texture is correctly fetched by the browser, but it isn't displayed. That's why I chose to use DAE files that are known to work with GzWeb here.
👀 That's weird, I'll take a look. |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
The problem was caused by that model having an Ogre material that contains spaces in its name. This was messing up all materials. That should be fixed now: 82ab597 It's unfortunate that a single malformed material can mess up all materials 😕 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, missing texture issue is fixed for me.
Resolves #160
Tested with gazebosim/gazebo-classic#2877
I rebased @willcbaker's fix and built on top of it.
Test it manually
Download these 2 models into
~/.gazebo/models
Source
gazebo/setup.sh
according to your installation.Set env var:
GAZEBO_MODEL_PATH=$HOME/.gazebo/models:$GAZEBO_MODEL_PATH
Redeploy to webify local models:
npm run deploy --- -m local
Save this world as
spaces.world
:spaces.world
Start
gzserver spaces.world -u
Start GzWeb:
npm start
Supported file types
Stop sign with spaces
/Cordless drill with spaces
)cordless drill.dae
/cordless drill.stl
/stop sign.dae
)stop sign.material
)cordless drill.png
)StopSign Diffuse.png
/StopSign Spec.png
)