ROS 2 packages for interfacing with GelSight tactile sensors (e.g., GelSight Mini).
gelsight_driver: Core driver node that automatically discovers attached GelSight sensors, maintains streaming, handles disconnect/reconnect cycles, and publishes tactile images as ROS 2sensor_msgs/msg/Imagetopics.gelsight_bringup: Launch package providingbringup.launch.pyfor starting and configuring the driver.
- Automatic Device Discovery: Scans
/dev/v4l/by-idand/sys/class/video4linuxto locate GelSight devices without requiring fixed/dev/video*index assignments. - Robust Hot-Plugging: Automatically detects when the sensor is disconnected or re-attached, recovering the video feed without needing to restart the node.
- Tactile Cropping & Resizing: Supports GelSight Mini border cropping (1/7 border removal to isolate the active gel surface) and customizable resolution (default: 1280×720 at 30 Hz), or raw native resolution streaming.
From your ROS 2 workspace root:
cd ~/ros2_ws
colcon build --packages-select gelsight_driver gelsight_bringup
source install/setup.bashLaunch the driver with default settings (1280×720, published on image_raw):
ros2 launch gelsight_bringup bringup.launch.py-
Launch with a namespace:
ros2 launch gelsight_bringup bringup.launch.py ns:=gelsight
-
Stream raw native sensor resolution (3280×2464, uncropped):
ros2 launch gelsight_bringup bringup.launch.py image_width:=0 image_height:=0 crop:=false
-
Specify an explicit device path or custom topic:
ros2 launch gelsight_bringup bringup.launch.py device_path:=/dev/video6 image_topic:=/gelsight/image_raw
| Argument | Default | Description |
|---|---|---|
ns |
"" |
Namespace for nodes and topics |
device_name |
"GelSight Mini" |
Device name substring to match for auto-detection |
device_path |
"" |
Explicit device path (e.g. /dev/video6), overrides auto-detection |
device_index |
"-1" |
Explicit V4L2 device index (e.g. 6), overrides auto-detection |
image_topic |
"image_raw" |
ROS 2 Image topic name |
frame_id |
"gelsight_frame" |
TF frame ID in message header |
image_width |
"1280" |
Output image width (<= 0 for native) |
image_height |
"720" |
Output image height (<= 0 for native) |
crop |
"true" |
Crop borders for GelSight Mini aspect ratio |
frame_rate |
"30.0" |
Target publishing frame rate in Hz |
reconnect_interval |
"2.0" |
Interval in seconds between device probes when disconnected |
log_level |
"info" |
Logging level (info, debug, warn, error) |
This project is licensed under the BSD-3-Clause License. See LICENSE for details.