URDF.from_file

classmethod URDF.from_file(source)

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

Parameters

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

Returns

URDF

Examples

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