Gzweb not load well my world
I have create the following world C:\fakepath\road_drone_textures.world.
with gzclient Works perfectly but in Gzweb, when load the second lamp shows the following error:
I has tried to solved it and I have edited gz3d.js adding a "if" to comprobate that link[0] exists (line 1613).
if (link[0]) { if (link[0].self_collide) { link[0].self_collide = this.trueOrFalse(stats.link[0].self_collide); } if (link[0].gravity) { link[0].gravity = this.trueOrFalse(stats.link[0].gravity); } if (link[0].kinematic) { link[0].kinematic = this.trueOrFalse(stats.link[0].kinematic); } } }
This is part of the function: GZ3D.Gui.prototype.setModelStats = function(stats, action) I don't know how this will affect to gzweb consistency but solved part of my problem:
the problem now is that gzweb not shows the road. Any idea's as solve it?
Thaks, Aitor (JdeRobot Team)
Nice catch adding the `if` statement, it would be great if you could make a pull request to GzWeb with the fix.
+1 on making a pull request for this. Let us know if you want us to do it
I have make a fork of the Project and a new branch to solved this bug but, I don`t see how do the pull request
From this page, you should be able to choose your branch with the fix and make a pull request. Thanks! https://bitbucket.org/osrf/gzweb/pull-requests/new
I don't have access to create new pull request. My User in bitbucket is aitormf
Oh sory for the trouble. I hink it works if you go to your repo page and click on create pull request?
Oh sory for the trouble. I think it works if you go to your repo page and click on create pull request?
Sorry for my late reply chapulina, I have done the pull request (#93)