From 35383670dbbc3f5aeb248117f0976442b716c8e4 Mon Sep 17 00:00:00 2001 From: wangWking <842749351@qq.com> Date: Fri, 13 May 2022 18:06:41 +0800 Subject: [PATCH] fix keyboard_control bug --- .../new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mycobot_320/new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py b/mycobot_320/new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py index 048aea3..9e46edc 100755 --- a/mycobot_320/new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py +++ b/mycobot_320/new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py @@ -149,8 +149,10 @@ def teleop_keyboard(): switch_gripper(False) elif key == "1": rsp = set_angles(*init_pose) + record_coords = [res.x, res.y, res.z, res.rx, res.ry, res.rz, speed, model] elif key in "2": rsp = set_angles(*home_pose) + record_coords = [res.x, res.y, res.z, res.rx, res.ry, res.rz, speed, model] elif key in "3": rep = get_angles() home_pose[0] = rep.joint_1