URDF.to_string

URDF.to_string(encoding='utf-8', prettify=False)[source]

Generate a string representation of this URDF instance, including all sub-elements.

Parameters
  • encoding (str, optional) – Output encoding.

  • prettify (bool, optional) – Whether the string should add whitespace for legibility.

Returns

str – String representation of the URDF.