Wenzhe Tong*
Jonathan Mi*
Xili Yi
Nima Fazeli
Xiaonan Huang
Gelfoot combines an elastomeric sensing surface, a camera and illumination module, dense optical-flow-based shear estimation, and a residual MLP that maps a two-channel shear field to force and torque.
.
├── checkpoints/ pretrained model weights
├── data/ dataset folder, download from huggingface
├── hardware/ STEP files for gelfoot
├── scripts/
│ ├── ROS_wrench_inference.py 1 cam runner
│ ├── run_6cam_pipeline.py 6 cams runner
│ ├── record_rosbag.sh
│ └── 6cam.rviz
├── src/
│ ├── arm_control/ KUKA & ATI F/T ROS nodes, data collection
│ └── gelslim_shear/ shear-field estimation
└── train.ipynb
conda create --name gelfoot python=3.13.5 pip
conda activate gelfoot
pip install -r requirements.txtThe requirements file also installs src/gelslim_shear in editable mode.
The real-time and data-collection tools are tested on ROS 1 Noetic, with the following dependencies:
rospy,cv_bridge,rosbagtensegrity_msgs, providesFloat32MultiArrayStampedmessage type.src/arm_control/README.mdcontains instructions for installing the KUKA and ATI F/T ROS nodes.
Download and extract the processed Gelfoot dataset from Hugging Face:
curl -L --fail -o data.zip "https://huggingface.co/datasets/jonathantwz/gelfoot/resolve/main/data.zip?download=true"
unzip data.zippython3 src/gelslim_shear/run.pyThe camera index is currently selected in the script. Confirm the correct
/dev/video* mapping before running it.
Start roscore and, in a shell with the ROS workspace and Python environment
sourced, run:
python3 src/gelslim_shear/ROS_gelslim_node.py \
_camera_index:=6 \
_width:=640 \
_height:=480The multi-camera runner defaults to camera indices 0,2,4,6,8,10. Test camera availability before starting ROS processing:
python3 scripts/run_6cam_pipeline.py --dry-runTo save one warm-started image from each detected camera:
python3 scripts/run_6cam_pipeline.py --dry-run --save-imgrun either the default mapping or a custom set of cameras:
# default camera indices 0,2,4,6,8,10
python3 scripts/run_6cam_pipeline.py
# camera indices 0,1,2,3,4,5
python3 scripts/run_6cam_pipeline.py --cameras 0,1,2,3,4,5For each mapped endcap N, the runner publishes:
| Topic | Description |
|---|---|
/endcap_N/image/cropped |
Cropped camera image |
/endcap_N/image/shear |
Shear visualization |
/endcap_N/image/divergence |
Divergence visualization |
/endcap_N/array/shear_vector |
Dense shear field |
/endcap_N/wrench/wrench_pred |
Predicted six-axis wrench |
/endcap_N/wrench/force_norm |
Predicted force magnitude |
Camera-to-endcap assignment is hardware-specific. The mapping currently used by
the robot is defined in GlobalConfig.CAMERA_TO_ENDCAP in
scripts/run_6cam_pipeline.py.
The dataset recorder captures one synchronized shear/wrench pair for each
rising trigger on /dataset/is_recording:
python3 src/arm_control/helpers/dataset_recorder.py \
_output_dir:="$PWD/data" \
_wrench_topic:=/wrench_grasp_frame \
_shear_topic:=/gelslim/array/shear_vector \
_trigger_topic:=/dataset/is_recordingApproximate timestamp synchronization uses a default tolerance of 50 ms. Each
sample is stored as a NumPy array under shear_fields/, with its timestamp,
six-axis wrench, and relative path recorded in index.csv.
The provided dataset contains 34,368 samples with shear arrays of shape (2, 30, 30).
The current CAD directory contains STEP models for the arm-side interface and the sensor endcap base:
hardware/arm-base.step
hardware/endcap-base.step
Printable exports, elastomer mold geometry, bill of materials, electronics, fabrication parameters, and assembly instructions are planned for the public release.
@article{tong2026scalable,
title={Scalable Open-Source Visuotactile Sensor for 6-Axis Contact Wrench Estimation in Tensegrity Robots},
author={Tong, Wenzhe and Mi, Jonathan and Yi, Xili and Fazeli, Nima and Huang, Xiaonan},
journal={arXiv preprint arXiv:2607.15633},
year={2026}
}
This work is under the MIT License, while the shear-field implementation is derived from the MMintLab GelSlim 4.0 shear-field package.