Steps to use Gelsight Mini with Pytouch
- Locate and edit the configuration file for gelsight in pytouch's source code. Usually its present at,
pytouch/sensors/gelsight.py file.
- Set values for SCALE, MEANS and STD. for your gelsight mini. SCALE defines the size of the image in pixels. MEAN and STD are the values by which image is normalized before fed into the machine learning models.
class GelsightSensorDefaults:
SCALES = [64, 64]
MEANS = [0.485, 0.456, 0.406]
STDS = [0.229, 0.224, 0.225]
- Initialize pytouch for mini as shown here by importing GelSightSensor
from pytouch.sensors import GelSightSensor
- Follow Basic Tutorial and/or Task Tutorial from the Pytouch official documentation page, to read the saved data and generate derived signals.