Separate tactile encoder
Give touch its own small network and feed its features into ACT or Diffusion Policy, as LeFlexiTac does.
Best for adding touch to a policy you already use. The quickest start.
Open pipeline LeFlexiTac: ACT, Diffusion Policy, Pi0.5, SmolVLA
Project · Code · Example with LeRobot · Data and checkpoints
How touch joins the policy
LeFlexiTac runs each tactile map through one small CNN, shared by all pads: three 3 × 3 convolution blocks (32, 64 and 128 channels), each halving the map, then two fully connected layers (code). Where its output goes depends on the policy:
The policy. A ResNet-18 turns the 224 × 224 camera image, the size LeFlexiTac records, into a 7 × 7 feature map, and each cell becomes one token, a feature vector the transformer reads like a word. The tactile CNN turns the map into one vector of 512 numbers, and a linear layer expands it into 4 tokens (--policy.n_tactile_tokens=4): unlike the camera's tokens, they aren't patches of the map. With one token each for the joint positions and the latent z, the encoder reads all 55 together, so every token, touch included, can attend to every other. The decoder turns 100 learned queries into 100 joint targets.
Training only. ACT's CVAE encoder compresses the joint positions and the demonstrated actions into z. It doesn't see touch, and on the robot z is zero.
Observation (bottom). For the current step and the one before, a ResNet-18 encodes the camera image into 64 numbers, the tactile CNN encodes the map into 64 (--policy.tactile_feature_dim=64 in LeFlexiTac's command), and the 6 joint positions go in as they are. In LeFlexiTac's setup the two steps are 0.1 s apart: each training sample takes its frames three apart from the 30 fps recording (--policy.frame_stride=3), and the robot runs the policy at 10 fps.
Denoising (top). The policy starts from random noise in place of a 16-step action chunk and removes it a part at a time. Training uses 100 noise levels; on the robot, LeFlexiTac's DDIM setting takes 16 passes. In each pass, a U-Net of 1D convolutions over time predicts the noise. The observation and the current noise level k condition every block of it through FiLM: a linear layer gives a scale a and a shift b for that block's features x, which become a·x + b. So touch steers every pass. The robot runs 8 of the 16 actions, then the policy looks again.
Pi0.5 and SmolVLA use the same CNN, with tokens of 256 numbers projected to the model's width and placed with its image and language tokens: see VLA with touch.
Keep an eye on how much the policy leans on touch: in Touch in the Wild, a variant that simply joined a tactile CNN's features to the image's pressed too hard on a whiteboard and set off the robot's safety stops (paper, Sec. 5.3).
Requirements and limitations
- An SO-100 or SO-101 arm with LeFlexiTac's tactile gripper and one sensor, read through PyFlexiTac.
- Demonstrations by teleoperation, recorded as a LeRobot dataset after a baseline calibration.
- Code: lerobot_tactile, a LeRobot fork (Apache-2.0) that runs on the real robot.
Try it
Example with LeRobot trains ACT this way, once with touch and once without, on an SO-100/101 arm or from LeFlexiTac's public dataset, then checks that touch made the difference.