From adfab497169029885d5d43f9ca79166e49223236 Mon Sep 17 00:00:00 2001 From: Ethan Fowler Date: Fri, 17 Jul 2020 13:28:43 +0000 Subject: [PATCH] Adding logging to previously silent mesh finding failure. --- gz3d/src/gziface.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gz3d/src/gziface.js b/gz3d/src/gziface.js index e77ff3a5..34f847ea 100644 --- a/gz3d/src/gziface.js +++ b/gz3d/src/gziface.js @@ -960,6 +960,13 @@ GZ3D.GZIface.prototype.createGeom = function(geom, material, parent) if (idx > 1) { modelName = meshUri.substring(meshUri.lastIndexOf('/', idx-1)); + } else { + console.log('Could not establish a local filename for mesh: "' + + meshUri + + '". Mesh URIs using an absolute path syntax should use ' + + 'the ROS-standard directory structure of ' + + '"/meshes/", e.g. ' + + '"/home/user/workspace/src/ur_description/meshes/base.dae".'); } } if (modelName.length > 0)