fix move_line ret
This commit is contained in:
parent
74da19ed55
commit
acae2fe955
1 changed files with 3 additions and 1 deletions
4
utils.py
4
utils.py
|
@ -117,7 +117,9 @@ class RobotClient:
|
||||||
"""
|
"""
|
||||||
cmd = {"command": "move_line", "joint_radian": joint_radian}
|
cmd = {"command": "move_line", "joint_radian": joint_radian}
|
||||||
ret = self._send(cmd)
|
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}")
|
raise RuntimeError(f"move_line failed: {ret}")
|
||||||
|
|
||||||
def set_joint_maxacc(self, acc: float):
|
def set_joint_maxacc(self, acc: float):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue