Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to 2f gripper via USB, using action server #185

Open
jeff-o opened this issue Feb 23, 2021 · 3 comments
Open

Connect to 2f gripper via USB, using action server #185

jeff-o opened this issue Feb 23, 2021 · 3 comments

Comments

@jeff-o
Copy link

jeff-o commented Feb 23, 2021

Hi! I would really appreciate some guidance on how to properly connect with a 2f gripper, so that it publishes joint state positions and can be controlled by publishing goal messages.

I know that the gripper is reachable, as I was able to connect with it by following this tutorial. However, this only gets me halfway, as I need to control and visualize the gripper using moveit.

Do I need to launch the RTU node and action server separately? Or is there a launch file somewhere I haven't found that does it all? Thanks!

@gavanderhoorn
Copy link
Member

gavanderhoorn commented Feb 24, 2021

I'm not a maintainer here, but this repository is hosted on our organisation, so I'd like to add some expectation management.

Robotiq do not appear to support the packages in this repository any more. They haven't done so, for quite some time.

@jproberge took over for some time, but appears to also have switched to something else.

Other members of ros-industrial (ie: the Github organisation) are not in a capacity to assist unfortunately.

I would suggest to post your question on an appropriate Robotiq forum, or a community supported forum.

@ZZWang21
Copy link

Hi, @jeff-o have you got a solution? Thank you.

@jeff-o
Copy link
Author

jeff-o commented Aug 17, 2022

Hopefully this helps!

Install the Clearpath Robotics' fork of the Robotiq driver. Note that this repository supports all of their
grippers, as well as the force-torque sensor.

Install necessary dependencies.
sudo apt-get install ros-melodic-gazebo-plugins
sudo apt-get install ros-melodic-socketcan-interface
sudo apt-get install ros-melodic-soem
pip install pymodbus

Create a workspace if you have not already.
mkdir -p ~/catkin_ws/src

Clone and build the driver in your workspace.
cd ~/catkin_ws/src
git clone https://github.com/clearpathrobotics/robotiq
cd ..
rosdep install --from-paths src --ignore-src --rosdistro=melodic -y -r
catkin_make
source devel/setup.bash

The Robotiq action server may be launched with the following. Make sure that the launch file has been pre-configured to look at the correct device path.

roslaunch robotiq_2f_gripper_control robotiq_action_server.launch

The gripper can be opened or closed by publishing to its action server:
rostopic pub /command_robotiq_action/goal robotiq_2f_gripper_msgs/CommandRobotiqGripperActionGoal

Populate the header with the following parameters, then press :
emergency_release = False
stop = False
position = [0.00 to 0.085]
speed = [0.01 to 0.1]
force = 5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants