FlexiTacDocs
On this pageOverview

Separate tactile encoder

Give touch its own small network and feed its features into ACT or Diffusion Policy, as LeFlexiTac does.

ImageTouchJoints
↓ one encoder eachFused in the policy

Best for adding touch to a policy you already use. The quickest start.

Open pipeline LeFlexiTac: ACT, Diffusion Policy, Pi0.5, SmolVLA

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, in training and on the robot Joint positions Latent z ResNet-18 Tactile CNN Linear Linear 49 tokens 7 × 7 cells 1 × 1 conv 4 tokens 512 → Linear 1 token 1 token Transformer encoder 4 layers 55 tokens, 512 numbers each Transformer decoder 1 layer 100 learned queries Linear 100 actions joint targets Training only: the CVAE encoder No touch here. On the robot, z is zero. CLS joints demonstrated actions Transformer encoder 4 layers z
ACT with touch, redrawn from LeFlexiTac's figure (after Zhao et al., 2023) to match its code and commands.

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.

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.