DoF - a Robotiq Community
Warning sign
The Dof Community was shut down in June 2023. This is a read-only archive.
If you have questions about Robotiq products please reach our support team.
bene

Thank you for your quick answer.

So if I understand you correctly I have to download the URCap file from https://robotiq.com/support/2f85-140-adaptive-robot-gripper (see attached screenshot) and install it on the robot via the teach pendant.
zoom
This will install a URCap server that I can send commands to using your Python file from 
https://dof.robotiq.com/discussion/comment/7296#Comment_7296 . I can wrap the Python file into a ROS2 node in order to control the gripper with ROS2. In this first setup I have to connect the gripper to the control box of the UR with a serial connection as shown in this video https://www.youtube.com/watch?v=oDlAzFtKLMc and connect the UR control box via Ethernet with my ROS2 PC, right? So if I want a direct serial connection between the gripper and my ROS2 PC (using a RS485 to USB adapter) I have to follow the instructions of this post: https://dof.robotiq.com/discussion/1382/control-grippers-from-python-using-modbus-rtu#latest and this post: https://dof.robotiq.com/discussion/92/controlling-the-robotiq-2-finger-gripper-with-modbus-commands-in-python?_ga=2.17431289.1133307955.1542044765-1547192274.1535646624 . In this second setup I do not have to use any control box (neither the UR one nor the Robotiq universal control box) and also no URCap driver but I need a 24 VDC power supply, right? Are there any advantages/disadvantages between the two setups?

Regarding simulation I will most likely use the model provided from https://github.com/ros-industrial/robotiq and hope that the physics parameters are accurate enough.

bene

Thank you for your quick answer.

As I understand it I have two options to connect and control the gripper:

1) Connect the gripper to the UR5 and connect my ROS2 computer via Ethernet with the UR5 control box. In this case I have to follow the instructions in this video: https://www.youtube.com/watch?v=oDlAzFtKLMc and install the URCap file using the teach pendant. This sets up a URCap server that I can communicate with using your Python file from https://dof.robotiq.com/discussion/comment/7296#Comment_7296 . This Python file I can wrap into a ROS2 node so that I can control the gripper with ROS2.
zoom

2) Connect the gripper directly to my ROS2 computer using a RS485 to USB adapter and an external 24 VDC power supply. In this case I have to follow the instructions in these two posts: https://dof.robotiq.com/discussion/1382/control-grippers-from-python-using-modbus-rtu#latest and https://dof.robotiq.com/discussion/92/controlling-the-robotiq-2-finger-gripper-with-modbus-commands-in-python?_ga=2.17431289.1133307955.1542044765-1547192274.1535646624
zoom

Are there any advantages/disadvantages using either of the two setups?

There are ROS1 (Kinetic)  implementations for both setups here https://wiki.ros.org/robotiq . Though they are not maintained anymore, this could be an alternative if using a ROS1 two ROS2 bridge.

As for the simulation I will most likely use the models provided here: https://github.com/ros-industrial/robotiq/tree/kinetic-devel/robotiq_2f_85_gripper_visualization . It is just not clear to me, how I can control the gripper in the simulation? In best case there is a way to control the gripper in the simulation the same way as in reality so that the sim to real transfer is as easy as possible. Any thoughts on that?