fix move_line ret

This commit is contained in:
Ilya Uraev 2025-05-22 14:50:59 +03:00
parent 74da19ed55
commit acae2fe955

View file

@ -117,7 +117,9 @@ class RobotClient:
"""
cmd = {"command": "move_line", "joint_radian": joint_radian}
ret = self._send(cmd)
if ret.get("ret") != 0:
if ret.get("ret") == 3004:
return
if ret.get("msg") != "succ":
raise RuntimeError(f"move_line failed: {ret}")
def set_joint_maxacc(self, acc: float):