xArm-Developer / xArm-Python-SDK

Python SDK for UFACTORY robots, 850, xArm5/6/7, and Lite6.
https://www.ufactory.cc
BSD 3-Clause "New" or "Revised" License
163 stars 105 forks source link

Lite6 - Gripper API Causes Errors #47

Closed scottrpaterson closed 1 year ago

scottrpaterson commented 1 year ago

In python (3.8.6 in my case), you try to use:

arm.open_lite6_gripper() arm.close_lite6_gripper() arm.stop_lite6_gripper()

It causes this error: [SDK][ERROR][2022-10-27 15:48:42][base.py:340] - - API -> set_tgpio_digital(ionum=0, value=1) -> code=1 [SDK][ERROR][2022-10-27 15:48:42][base.py:340] - - API -> set_tgpio_digital(ionum=1, value=0) -> code=1

In studio: End module Communication Error

scottrpaterson commented 1 year ago

Found the problem:

I was using this in the code before. That is not necessary and causes this error. arm.set_gripper_enable(True)