Home Troubleshooting

Discussion

Left ArrowBack to discussions page
aumaxaumax Posts: 5 Apprentice
When I follwed the code below and tried to get feedback from gripper,But I got a '?'

#Library importation
import socket

#Socket setings
HOST="192.168.12.101" #my ur ip 
PORT=63352 #PORT used by robotiq gripper

#Socket communication
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    #open the socket
    s.connect((HOST, PORT))
    s.sendall(b'GET POS\n')
    data = s.recv(2**10)

#Print finger position
#Gripper finger position is between 0 (Full open) and 255 (Full close)
print('Gripper finger position is: ', data)


and I got 

the feedback:
Gripper finger position is:  b'POS ?\n'.

and my question is: the ? should be something else, right? like 1 2 or something if it works correctly
If anyone knows what the problem is?

Comments

  • RaladinRaladin Unconfirmed Posts: 1 Recruit
    Hi, I am currently facing the exact same issue as you. I was wondering if you were able to figure out what the problem was?
  • bcastetsbcastets Vacuum Beta tester Posts: 695 Expert
    Would it be possible to that you did not activated the gripper ? Position can be retrieved only after gripper activation.
Sign In or Register to comment.
Left ArrowBack to discussions page