URDF.read

classmethod URDF.read(source)

Parse a URDF file from a file path or file-like object.

Parameters

source (str or file) – File path or file-like object.

Examples

>>> from compas.files import URDF
>>> urdf = URDF.read('/urdf/ur5.urdf')