URDF.read

classmethod URDF.read(source)

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

Parameters

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

Returns

compas.files.URDF

Examples

>>> urdf = URDF.from_file(compas.get("ur_description/urdf/ur5.urdf"))