Code Monkey home page Code Monkey logo

onrobot-rg2ft-ros's Introduction

OnRobot-RG2FT-ROS

This repository contains an unofficial ROS driver for the OnRobot RG2-FT Gripper. The driver enables you to control and monitor the gripper's state through publisher and subscriber interfaces. Additionally, a gripper action server is provided, which can be integrated with MoveIt for motion planning.

The OnRobot RG2-FT Gripper is equipped with force torque sensors and proximity sensors on its fingertips. This driver reads and publishes this sensor data as ROS messages.

Gazebo and MoveIt of Gripper:

OnRobot Gazebo Caption: Simulation of the gripper in Gazebo and controlled using MoveIt.

Moving the Real Gripper:

OnRobot Real Caption: Actual OnRobot gripper being controlled through ROS.

Features

  • ROS support for controlling the OnRobot RG2-FT Gripper.
  • Force torque and proximity sensor data available as ROS messages.
  • Included URDF with visual and collision meshes, along with Gazebo simulation support.
  • Example MoveIt configuration with Gazebo integration.
  • Gazebo implementation features a realistic 4-bar linkage simulation for parallel gripper tips.

Compatibility

This driver has been tested on ROS Noetic.

Installation

  1. Install the main Python dependency, pymodbus version 2.1.0, using the following command:

    pip3 install pymodbus===2.1.0
    
  2. Clone this repository and the optional mimic joint plugin repository:

    git clone https://github.com/ian-chuang/OnRobot-RG2FT-ROS.git
    
    # Optional: If you want to control both fingers in Gazebo using mimic joint plugin
    git clone https://github.com/roboticsgroup/roboticsgroup_upatras_gazebo_plugins.git
    
  3. Navigate to your ROS workspace's source directory and install dependencies:

    cd ~/<your_workspace>/src
    rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}
    
  4. Build the workspace:

    cd ~/<your_workspace>
    catkin build
    

Usage

You have multiple options to control and visualize the real, simulated, and fake versions of the gripper:

  • Control Real Gripper with Publisher-Subscriber Interface:

    roslaunch onrobot_rg2ft_control onrobot_rg2ft_control.launch ip:=<gripper_ip defaults to 192.168.1.1> port:=<port defaults to 502>
    
  • Control Real Gripper with Gripper Action Server:

    roslaunch onrobot_rg2ft_action_server onrobot_rg2ft_action_server.launch ip:=<gripper_ip defaults to 192.168.1.1> port:=<port defaults to 502>
    
  • Control Real Gripper with MoveIt:

    roslaunch onrobot_rg2ft_action_server onrobot_rg2ft_moveit.launch ip:=<gripper_ip defaults to 192.168.1.1> port:=<port defaults to 502>
    
  • Control Simulated Gripper in MoveIt within Gazebo:

    roslaunch onrobot_rg2ft_moveit_config demo_gazebo.launch
    
  • Control Fake Demo Gripper in MoveIt:

    roslaunch onrobot_rg2ft_moveit_config demo.launch
    
  • Visualize Gripper URDF in RViz:

    roslaunch onrobot_rg2ft_description display.launch
    

Contribution

If you encounter any issues or have suggestions for improvements, please report them. Contributions and updates for compatibility with different ROS versions are welcome. Feel free to fork the repository, make changes, and submit pull requests. Your contributions will be greatly appreciated.

onrobot-rg2ft-ros's People

Contributors

ian-chuang avatar tammerb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

onrobot-rg2ft-ros's Issues

Physical gripper not responding to publishers

Hi, I'm trying to control the gripper via the Publisher-Subscriber interface. I'm currently entering the command like this:

rostopic pub /command onrobot_rg2ft_msgs/RG2FTCommand "TargetForce: 0
TargetWidth: 500
Control: 1"

and I'm getting a response:

publishing and latching message. Press ctrl-C to terminate

But no response is occurring from the gripper. I'm able to successfully move the gripper via RVIZ, making me feel confident in my physical connections, along with being able to ping the gripper. Alongside this, when I sanity check via rostopic echo /command in another terminal, I can see the input is successful.

The other thing is in the log, it says that the subscriber count is 0.
image

I'm a bit new to ROS, so any help would be appreciated with this problem!

running the package in real gripper

I cloned your package to test on my RG2-FT gripper, I can run the simulation but failed to control the real gripper, I checked out your moveit_config file and found kinematics.yaml and ros_controllers.yaml is empty, is that the reason? How can I run the package to control my gripper? Thanks.

How can I implement this package with RG6 mounted on UR5?

we have a ur5 robot equipped with a onrobot rg6 gripper both which are connected to a common router. The ip of the robot is 192.168.1.45 and I interface with the robot on the ip 192.168.1.100 through ethernet.

I use the external control urcap for controlling the robot.

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.