UNPKG

roslib

Version:

The standard ROS Javascript Library

22 lines (19 loc) 539 B
/** * @fileOverview * @author Benjamin Pitzer - ben.pitzer@gmail.com * @author Russell Toris - rctoris@wpi.edu */ var UrdfTypes = require('./UrdfTypes'); /** * A Cylinder element in a URDF. * * @constructor * @param options - object with following keys: * * xml - the XML element to parse */ function UrdfCylinder(options) { this.type = UrdfTypes.URDF_CYLINDER; this.length = parseFloat(options.xml.getAttribute('length')); this.radius = parseFloat(options.xml.getAttribute('radius')); } module.exports = UrdfCylinder;