Skip to main content

Python Driver for Robotiq Grippers via Modbus RTU

Project description

pyRobotiqGripper

Python Driver for Robotiq Grippers via Modbus RTU

pyRobotiqGripper is a Python library designed to facilitate control of Robotiq grippers using Modbus RTU communication via serial port. It is compatible with 2F85, 2F140, and Hande.

Documentation: pyRobotiqGripper Documentation <https://pyrobotiqgripper.readthedocs.io/en/latest/>_

Disclaimer

This library can be seen as a starting point for a Robotiq integration project. You are responsible for what you do with this library. The author takes no responsibility for any malfunction.

Note: This library is not maintained by Robotiq.

How to Install

(To come soon) Install the pyRobotiqGripper python package using PIP.

    python -m pip install pyRobotiqGripper

Typical Usage

Import the pyRobotiqGripper module.

    import pyRobotiqGripper

Create a Robotiq gripper object.

    gripper = pyRobotiqGripper()

By default, the serial port on which the gripper is connected is automatically detected. However, you can manually specify the serial port name if you want to. Refer to the API documentation for more information. You can now activate the gripper and eventually calibrate the gripper if you want to control the opening in mm instead of bit.

Note: During activation, the gripper is going to fully open and close. Do not disturb this process. Do not place an object inside the gripper.

Note: The gripper finger position varies from 0 to 255. It is coded on 8 bits.

    gripper.activate()
    gripper.calibrate(0, 40)

You can now do whatever you want with the gripper: open, close, get position feedback, etc.

    gripper.open()
    gripper.close()
    gripper.goTo(100)
    position_in_bit = gripper.getPosition()
    print(position_in_bit)
    gripper.goTomm(25)
    position_in_mm = gripper.getPositionmm()
    print(position_in_mm)

You can print the current status of gripper registers using printInfo.

    gripper.printInfo()

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

pyrobotiqgripper-1.0.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrobotiqgripper-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrobotiqgripper-1.0.0.tar.gz.

File metadata

  • Download URL: pyrobotiqgripper-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyrobotiqgripper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b74bf180e75f629d7bedaa9bb7fa8647251adcbd2e28100be4673dd8f82ca0d
MD5 bfdb6df77ff64745e8788405affef467
BLAKE2b-256 df35c65f822463f121b5842d51f0b90d84ffa6e5a7dc689f822871fa8c0071c0

See more details on using hashes here.

File details

Details for the file pyrobotiqgripper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrobotiqgripper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 744f483cc5b8c6a064fe6df9f3abad677915f365f86973aca40e8f285ecb44b5
MD5 81a6e88c91106c8887baec7115fc665d
BLAKE2b-256 01a7607a5f736ec5c5c01244d78051926ffdd7c4a4438b0bd6769755b2777c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page