RobotModel.from_urdf_file

classmethod RobotModel.from_urdf_file(file)

Construct a robot model from a URDF file model description.

Parameters

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

Returns

RobotModel – A robot model instance.

Examples

>>> robot = RobotModel.ur5()
>>> print(robot)
Robot name=ur5, Links=11, Joints=10 (6 configurable)