Skip to content

Robotiq ROS 2 packages 1.3.0

Choose a tag to compare

@jlongvalRobotiq jlongvalRobotiq released this 16 Oct 18:43
· 123 commits to main since this release
77ba6fd

Robotiq ROS 2 packages 1.3.0

This release adds mcp/, an MCP server that lets an LLM agent (Claude Code, Codex, any MCP client) drive the Robotiq 2F grippers through this repo's driver. The driver packages and robotiq_tsf are unchanged from 1.2.0. Humble, Jazzy and Lyrical are supported from main.

New

  • Gripper MCP server. Nine tools: list the configured grippers, read the opening, open, close, move to an opening, check health, and, for grippers with TSF-85 pads, read the pads, re-zero them and check a hold. Openings are in millimetres. Every tool but the listing takes an explicit gripper_name, and nothing acts on every gripper at once (#124, closes #75).

  • Outcomes from the gripper itself. Every motion returns an outcome: reached, stopped_on_object, incomplete or refused. The outcome is the controller's verdict, which on a real gripper comes from the gripper's own object detection (1.2.0's object_status). The server does not guess from finger positions (#116).

  • Effort and speed. Motions take an optional effort from 0 to 1 and an optional speed_mm_s, the speed of each finger (20–150 mm/s on a 2F-85). Both are scaled to the gripper_max_force and gripper_max_speed in the robot description, so they hold on a 2F-140 and on a cell that overrides them. Values outside the range are clamped, and NaN or infinity is refused. Both are applied on Jazzy and later. Humble's controller applies neither, so there the move runs with the driver's own force and full speed, and the result says what was not applied (#122, #124).

  • Tactile hold check. On a 2F-85 with TSF-85 pads, gripper_verify_grasp answers held, closed_on_nothing or no_contact, using touch plus the opening. The contact threshold comes from a tare taken with the fingers open, so it adapts to each pair of pads' noise. A verify right after an empty close answers closed_on_nothing even before the fingers settle.

  • Health that notices a dead driver. gripper_get_health reports a stopped driver within a few seconds, from its joint_states going stale, rather than waiting about 20 s for ROS to stop listing its controller (#123).

  • Docker and a no-hardware demo. mcp/Dockerfile layers the server on this repo's image, and docker/docker-compose.yml runs it as a service. ./mcp/demo/demo.sh starts the driver on ros2_control's fake hardware with RViz and the server on port 8301:

    ./mcp/demo/demo.sh
    claude mcp add --transport http robotiq-gripper http://127.0.0.1:8301/mcp

    Then ask in plain language, for example "open the driver gripper to 30 mm".

mcp/ is a plain Python project managed with uv, not an ament package, and colcon skips it. It needs Python 3.10 or later and a sourced ROS 2 install. See mcp/README.md.

Tested

Checked on 2026-10-13 and, after review fixes, on 2026-10-15, on ros2_control's fake hardware (Jazzy and Humble) and on a real 2F-85 with TSF-85 pads under Jazzy. A reviewer also ran it on a real 2F-85 under Humble and Lyrical:

  • outcomes on open, close and move;
  • a close on a block, which stopped on it at 26.6 mm in 0.52 s;
  • effort and speed (a full stroke takes 2.16 s at 20 mm/s and 0.66 s at 150 mm/s);
  • the tactile tools, including verify straight after an empty close (closed_on_nothing 5/5);
  • 20 open/close cycles with no wrong outcome;
  • a plain-language task from Claude Code.

The full tables are in #124. The 2F-140 datasheet ships, and its effort and speed scaling is covered by unit tests, but the server has not been run on a real 2F-140.

Still open

  • One gripper per launch. robotiq_control.launch.py cannot put a driver under its own namespace, so a second driver can't start next to the first. Keep one entry in grippers.yaml until #89 is done.
  • A move sent to a driver that just died waits 10 s before returning incomplete, with no position. Health already reports the driver down by then.
  • About one CPU core at idle on a gripper with pads, from reading joint_states (500 Hz) and pad frames (about 2 kHz) in Python.
  • The achieved position is read before the fingers settle. A full close can report 1.87 mm while the fingers end at about 1 mm.
  • The tactile contact_signal scale was set on the simulator, and real pads read about 3× higher. Hold decisions don't use it (#77).
  • The tools have no authentication. The server listens on localhost by default (the Docker image binds 0.0.0.0 inside its container: publish the port on localhost); firewall the port before serving a cell network.

Dependencies

  • New, for mcp/ only: fastmcp 4.0.2, pydantic 2.13.5 and pyyaml 6.0.3, pinned in mcp/uv.lock.
  • No change to extern/grippers (v1.1.0) or extern/tactile_sensors (v2.1.0).