URDFParser.parse_element

classmethod URDFParser.parse_element(element, path='', element_default_namespace=None)

Recursively parse URDF element and its children.

If the parser type implements a class method from_urdf, it will use it to parse the element, otherwise a generic implementation that relies on conventions will be used.

Parameters
  • element (XMLElement) – XML Element node.

  • path (str, optional) – Full path to the element.

  • element_default_namespace (str, optional) – Default namespace at the current level current document.

Returns

object – An instance of the model object represented by the given element.

Raises

TypeError – If the element instance cannot be created.