ToolModel.from_urdf_string

classmethod ToolModel.from_urdf_string(text)[source]

Construct a robot model from a URDF description as string.

Parameters:
textstr

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)