ToolModel.from_urdf_string

classmethod ToolModel.from_urdf_string(text)

Construct a robot model from a URDF description as string.

Parameters

text (str) – String containing the XML URDF model.

Returns

RobotModel – A robot model instance.

Examples

>>> urdf_string = '<?xml version="1.0" encoding="UTF-8"?><robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="panda"></robot>'
>>> robot = RobotModel.from_urdf_string(urdf_string)