Home› Troubleshooting
Discussion
Back to discussions page
aumax
Posts: 5 Apprentice
Problem on Control Robotiq gripper mounted on UR robot via Socket communication (python) |
280 views
|
Answered | |
/ Most recent by bcastets |
2 comments |

When I follwed the code below and tried to get feedback from gripper,But I got a '?'
#Library importation
#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)
#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?
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
-
Raladin 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?0 · FacebookTwitter -
bcastets 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.0 · FacebookTwitter