I am not getting the gripper status. My code is as follows:
import DobotDllType as dType
CON_STR ={
dType.DobotConnect.DobotConnect_NoError: "DobotConnect_NoError"
dType.DobotConnect.DobotConnect_NotFound: "DobotConnect_NotFound",
dType.DobotConnect.DobotConnect_Occupied: "DobotConnect_Occupied"}
def_port= "ttyUSB0"
self.api= dType.load()
state=dType.ConnectDobot(self.api,;def_port;115200)[0]
grip = dType.GetEndEffectorGripper(self.api)
print(grip)
Now grip always returns [0]
How do I solve the problem?