Humble
Robotiq provides an official ROS 2 ros2_control driver for the 2F-85 and
2F-140 adaptive grippers. Grippers are controlled by writing their registers
using the Modbus RTU protocol — see the gripper manual on the Robotiq
support page for details: https://robotiq.com/support
- Reference: robotiq/ros
This is a drop-in replacement for PickNik's humble branch of
ros2_robotiq_gripper on this distro — package names, launch files,
controller names, topics, and xacro macro arguments are unchanged. The
gripper action type is control_msgs/action/GripperCommand, driven by
position_controllers/GripperActionController (Humble predates
parallel_gripper_action_controller, which the Jazzy/Lyrical builds use
instead).
Build
cd ~/ros2_ws/src
git clone https://github.com/robotiq/ros.git
cd ~/ros2_ws
colcon build --packages-up-to robotiq_description
source install/setup.bash
Run
ros2 launch robotiq_description robotiq_control.launch.py
Defaults to the 2F-85; pass gripper_model:=2f_140 for a 2F-140. If the
gripper isn't plugged in at bringup, the launch ends — relaunch once it's
connected (shutdown_on_failure:=false keeps it running instead, for launch
files that include this one alongside nodes that should outlive the
gripper).