URDF.from_file

classmethod URDF.from_file(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.from_file('/urdf/ur5.urdf')