UNPKG

roslib

Version:

The standard ROS Javascript Library

25 lines (24 loc) 720 B
import { Element } from '@xmldom/xmldom'; import { default as UrdfMaterial } from './UrdfMaterial.ts'; import { default as UrdfLink } from './UrdfLink.ts'; import { default as UrdfJoint } from './UrdfJoint.ts'; export interface UrdfModelOptions { /** * The XML element to parse. */ xml?: Element; /** * The XML element to parse as a string. */ string: string; } /** * A URDF Model can be used to parse a given URDF into the appropriate elements. */ export default class UrdfModel { name: string | null; materials: Record<string, UrdfMaterial>; links: Record<string, UrdfLink>; joints: Record<string, UrdfJoint>; constructor({ xml, string }: UrdfModelOptions); }