Simple Python interface for Robotiq grippers over a TCP socket (URCap/UR controller).
Project description
pyRobotiqUR for Universal Robots
pyRobotiqUR is a small Python library that provides a simple socket-based interface
to Robotiq grippers connected to a Universal Robots (UR) controller via the
Robotiq URCap.
It talks to the UR controller over TCP using the Robotiq ASCII GET/SET protocol
on the URCap’s internal server port (typically 63352).
Features
- Connect to a UR controller over TCP/IP
- Activate / reset the Robotiq gripper
- Move to a raw position
0–255 - Move using a convenient
0–100 %interface (0%open,100%closed) - Read status, object status and fault codes
Installation
Install the URCap on your Universal Robots controller first:
- Download the Robotiq URCap from the Robotiq website
- Install and activate the URCap on your UR controller
- Tested with URCap version
3.27.0and UR Polyscope version5.12.4
Install from PyPI via pip:
pip install pyRobotiqUR
Usage
Example script:
import time
from pyrobotiqur import RobotiqGripper
UR_IP = "192.168.0.10" # <-- replace with your UR controller IP
if __name__ == "__main__":
with RobotiqGripper(UR_IP) as g:
# Activate gripper (if not already active)
g.activate()
print("Opening gripper...")
g.open(speed=128, force=10)
time.sleep(3.0)
print("POS after open:", g.get_position())
print("Closing gripper...")
g.close(speed=200, force=200)
time.sleep(3.0)
print("POS after close:", g.get_position())
print("Moving gripper to position 50%...")
g.move_percent(50, speed=128, force=128)
time.sleep(3.0)
print("POS after move_percent:", g.get_position())
print("Object status:", g.get_object_status())
print("Fault code:", g.get_fault())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrobotiqur-0.2.1.tar.gz.
File metadata
- Download URL: pyrobotiqur-0.2.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83018c63bc76b283e22ce818aee029c729f532866394e1c3fcb10e40629f893f
|
|
| MD5 |
06c5faa25ef23388191a97909bb43683
|
|
| BLAKE2b-256 |
36615e4ad282f66755dd401845de92b0163ce7d7fde121575793d5b215fa2d27
|
File details
Details for the file pyrobotiqur-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyrobotiqur-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88cf34025a4186d2b5e4f78b93631602559d1c32d2be4c4f7aaf9117d05defa3
|
|
| MD5 |
71a327446cb2be36ed98316744864df2
|
|
| BLAKE2b-256 |
eae5473aa5c0721f5a938465c8f8ba1feb77bcb197e920b357743cf3886aa2c9
|