diff --git a/src/urdf/UrdfBox.js b/src/urdf/UrdfBox.js index 883220cca..6ca4e866f 100644 --- a/src/urdf/UrdfBox.js +++ b/src/urdf/UrdfBox.js @@ -23,7 +23,7 @@ ROSLIB.UrdfBox = function(options) { * @param xml - the XML element to parse */ var initXml = function(xml) { - this.type = ROSLIB.URDF_BOX; + that.type = ROSLIB.URDF_BOX; // Parse the string var xyz = xml.getAttribute('size').split(' ');