Merge branch 'noetic' of github.com:elephantrobotics/mycobot_ros into pro630

This commit is contained in:
wangWking 2024-03-05 15:15:06 +08:00
commit df7a68e648
2 changed files with 4 additions and 5 deletions

View file

@ -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)

View file

@ -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)