Git Product home page Git Product logo

robotiq3f_py's Introduction

robotiq3f_py

Control the Robotiq 3F gripper using Python and a Modbus TCP client. This library provides a straightforward interface to integrate the Robotiq 3F gripper into your automation projects, allowing for various modes of operation, speed adjustments, and individual finger control.

Features

  • Multiple Modes: Operate the gripper in Basic, Pinch, Wide, and Scissor modes.
  • Speed and Force Control: Fine-tune the speed and force applied by the gripper for delicate or robust operations.
  • Individual Finger Control: Manage each finger separately for precise object manipulation.

Installation

Before you begin, ensure you have Python installed on your system. Then, follow these steps to install the necessary dependencies:

pip install pyModbusTCP

Setting Up

To establish a connection with the gripper, configure your Ethernet connection with the following IPv4 settings:

Ethernet Setup

  • Address: 192.168.1.2
  • Netmask: 255.255.255.0
  • Gateway: 0.0.0.0

Usage

Import and initialize the GripperController class with the IP address of your Modbus server:

from robotiqcontrol import GripperController

# Initialize the controller with the server IP
gripper = GripperController("192.168.1.11")

# Activate the gripper
gripper.activate()

Examples

Here are some examples of how to use the GripperController:

Basic Mode

# Set the gripper to Basic Mode with default speed and force
gripper.command_gripper(rMOD="Basic")

Individual Finger Control

# Control each finger individually
gripper.command_gripper(rPRA=[255, 255, 255], rMOD="Pinch", rICF=True)

Testing

To test the functionality, run the test.py script:

python test.py

Troubleshooting

If you encounter any issues, please check the following:

  • Ensure the gripper is powered and connected to the network.
  • Verify the IP address and port settings.
  • Check the Modbus server status.

For more detailed troubleshooting, please refer to the issues section of this repository.

Contribution

Contributions to improve robotiq3f_py are welcome! Please read our contribution guidelines before submitting a pull request.

Support

For additional support or questions, please open an issue in the repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.