<reponame>OrangeSodahub/RMMDet<filename>src/roslibjs/src/urdf/UrdfSphere.js<gh_stars>0/**
 * @fileOverview 
 * @author Benjamin Pitzer - upchh@example.com
 * @author Russell Toris - efpyi@example.com
 */

var UrdfTypes = require('./UrdfTypes');

/**
 * A Sphere element in a URDF.
 *
 * @constructor
 * @param options - object with following keys:
 *  * xml - the XML element to parse
 */
function UrdfSphere(options) {
  this.type = UrdfTypes.URDF_SPHERE;
  this.radius = parseFloat(options.xml.getAttribute('radius'));
}

module.exports = UrdfSphere;