Skip to main content

pyRobotiqUR pyRobotiqUR for Universal Robots

CI codecov

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.0 and UR Polyscope version 5.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())

Metadata

Release files for pyRobotiqUR 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyRobotiqUR 0.2.2
File Size Uploaded
pyrobotiqur-0.2.2.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyRobotiqUR 0.2.2
File Interpreter ABI Platform
pyrobotiqur-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / pyrobotiqur-0.2.2.tar.gz

Download URL pyrobotiqur-0.2.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e44e37f2deaa13d483592b768cfc55d00e4213d2284c5eecc6fcffa15ac19bd8
BLAKE2b-256 checksum
How to use checksums
b04183a395658d87f8b0a29eba8522bb15f882a8ad976aca3d396eee773e5dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyrobotiqur-0.2.2-py3-none-any.whl

Download URL pyrobotiqur-0.2.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68f445c7d4ec049925473d41e6038062b901eaaab798578776c0bec7c5f666ac
BLAKE2b-256 checksum
How to use checksums
fe6a74dc310b15588d7e77519549a1655905ba5674082e7b13be880f15524495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page