Controlling OnRobot 2FG7 on UR5e via ROS2 Humble

Hello everyone,

I’m trying to control an OnRobot 2FG7 gripper mounted on a UR5e using ROS2 Humble, but I’m having trouble receiving feedback and sending commands.

Current situation:

  • The gripper only responds to commands from the teach pendant.

  • I’ve tried using the OnRobot URCap, as well as direct RS485/TCP communication, but the ROS2 node cannot control the gripper or get feedback.

  • Sending commands from ROS2 seems to run, but nothing happens on the gripper.

What I need help with:

  • Has anyone successfully controlled the OnRobot 2FG7 via ROS2 while keeping the URCap installed?

  • Is there a recommended workflow to get position/object detected/grasp lost feedback from the gripper in ROS2?

  • Any examples of ROS2 nodes interfacing with the OnRobot URCap would be very helpful.

Thanks in advance for any advice or guidance!