def from_urdf_string(cls, text): """Construct a robot model from a URDF description as string. Args: text: string containing the XML URDF model. Returns: A robot model instance. """ urdf = URDF.from_string(text) return urdf.robot
def from_urdf_string(cls, text): """Construct a robot model from a URDF description as string. Parameters ---------- text: String containing the XML URDF model. Returns ------- A robot model instance. """ urdf = URDF.from_string(text) return urdf.robot
def from_urdf_string(cls, text): """Construct a robot model from a URDF description as string. Parameters ---------- text: String containing the XML URDF model. Returns ------- 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>' >>> model = RobotModel.from_urdf_string(urdf_string) """ urdf = URDF.from_string(text) return urdf.robot