From 28e6ecf71de6f6c6dc2c5f485f354b6371110b5c Mon Sep 17 00:00:00 2001 From: wangWking <842749351@qq.com> Date: Tue, 5 Mar 2024 15:14:44 +0800 Subject: [PATCH] update 320m5/pi --- .../new_mycobot_320/scripts/mycobot_320_teleop_keyboard.py | 4 ++-- .../scripts/mycobot_320_teleop_keyboard.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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 9e46edc9..1d42ce83 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 @@ -82,14 +82,14 @@ def teleop_keyboard(): exit(1) init_pose = [0, 0, 0, 0, 0, 0, speed] - home_pose = [0, 8, -127, 40, 0, 0, speed] + home_pose = [0, 8, -127, 40, 90, 0, speed] # rsp = set_angles(*init_pose) while True: res = get_coords() # print(res) - if res.x > 1: + if res: break time.sleep(0.1) diff --git a/mycobot_320/new_mycobot_320_pi/scripts/mycobot_320_teleop_keyboard.py b/mycobot_320/new_mycobot_320_pi/scripts/mycobot_320_teleop_keyboard.py index 5dc0b403..6f3ce2c5 100755 --- a/mycobot_320/new_mycobot_320_pi/scripts/mycobot_320_teleop_keyboard.py +++ b/mycobot_320/new_mycobot_320_pi/scripts/mycobot_320_teleop_keyboard.py @@ -82,14 +82,13 @@ def teleop_keyboard(): exit(1) init_pose = [0, 0, 0, 0, 0, 0, speed] - home_pose = [0, 8, -127, 40, 0, 0, speed] + home_pose = [0, 8, -127, 40, 90, 0, speed] # rsp = set_angles(*init_pose) while True: res = get_coords() - if res.x > 1: - print("joint1's angle : "+str(res.x)+"is not > 1,please calibrate the joint1's angle") + if res: break time.sleep(0.1)