ProjectsRobot learning

Force-aware diffusion policy for grasping

A LeRobot diffusion policy that also sees fingertip force, built to grip an empty and a half-full bottle differently. The rig, the force sensing and 48 hand-recorded demonstrations are in place and three policies are trained. The evaluation on the robot is still to run.

In progressNov 2026 to nowPage updated

A check run on the robot, 23 November 2026. The reach is taught by hand and a learned policy, here the vision-only variant, commands the gripper: it closes on the half-full bottle, and the arm lifts it and puts it down.
Project facts
Robot
Hiwonder JetRover. A 5-joint arm and gripper on bus servos, on a mecanum base
Compute
Jetson Orin NX 16 GB on the robot. An RTX 5080 workstation for training
Force sensing
Two Interlink FSR 400, one per finger, read at 500 Hz by a Raspberry Pi Pico
Cameras
Orbbec DaBai on the wrist, Logitech C920 for the scene
Policy
Diffusion Policy with a causal force encoder. 3 DDIM steps per action chunk on the robot
Data
48 demonstrations, 14,392 frames at 30 fps
Built with
LeRobot 0.4.4, PyTorch, ROS 2 Humble, MicroPython, Python
When
Nov 2026 to now
Status
In progress
Code
Private repository. I can walk through it on request.
Page updated
On this page

In short

  • The question. Does a learned policy that also feels its grip do better than one that only sees it, on a low-cost arm with position-only servos and two force-sensitive resistors on its fingertips?
  • The rig. Fingertip force sampled at 500 Hz on one timeline with two cameras, and a grip-force controller on a position-only servo that held a paper cup at 2.46 ± 0.03 units for 10 s. See Sensing and Compliance.
  • The data. 48 demonstrations. The arm replays a reach I taught by hand and I close the gripper with a gamepad trigger, while two cameras, the joint state and the force on both fingertips are recorded on one timeline. See Collecting demonstrations.
  • The policies. Three, from one LeRobot plugin: vision only, vision with force through a causal encoder, and ACP-lite, which commands a virtual target and a compliance. A 3-step DDIM chunk takes 0.23 s on the robot’s Jetson. See The policies.
  • Where it stands. The evaluation on the robot has not been run yet. Before it, the demonstrations are recorded again with a different pair of objects and a slower close. See What comes next.

The question

A gripper that only knows positions squeezes every object the same way. I wanted to find out whether a learned policy that also feels its grip does better than one that only sees it, on the cheapest hardware that can pose the question: a low-cost arm with position-only servos, and two small force-sensitive resistors on its fingertips.

The task is to lift a 330 ml PET bottle in a black sleeve, either empty or half full. The two need different grips. The empty bottle has to be closed further, to servo position 388, or it tilts when lifted. The half-full one hangs straight at a lighter close, 368. Both wear the same sleeve so that, in principle, only touch can tell them apart.

Four controllers share one scripted reach per taped mark, so a trial measures the grasp and nothing else:

Method What it sees What it commands
Scripted baseline Fingertip force A friction-aware force controller at one fixed grip force
Diffusion Policy, vision only Wrist and scene cameras, joint state Gripper position
Diffusion Policy with force The same, plus the last 0.32 s of force from both fingers Gripper position
ACP-lite The same as the force variant A virtual target and a compliance for the grip, after Adaptive Compliance Policy

Where it stands on 25 November 2026. The demonstrations are recorded and checked, and all three policies are trained. The 48-trial evaluation on the robot has not been run yet. Before it, the demonstrations will be recorded again with a different pair of objects and a slower close. This page reports what was built and measured so far.

The rig

  1. Sensing
    Two FSR 400one per finger, on voltage dividers
    Raspberry Pi Picosamples both at 500 Hz
    Force nodetare, scale, publish
    Grip force at 100 Hz, stamped with the sensor clock
  2. Control
    • Gamepad trigger (demonstrations)
    • Policy runner (trials)
    • Scripted baseline
    Gripper ownerThe only node that commands the gripper. Modes: position, compliance (a virtual target and a compliance), force target. Guards: E-stop latch, heat, force limit and abort.
    Position commands at 30 Hz
  3. Actuation
    Patched vendor drivermeasured positions at 30 Hz
    Bus servosposition commands only
Signal flow. One node owns the gripper, whoever asks for the grip: the gamepad during demonstrations, a policy during trials, or the scripted baseline.

Everything on the robot runs on its Jetson Orin NX under ROS 2 Humble: the sensor node, the gripper owner, the recorder and the policies. Training runs on a workstation.

Why a force sensor at all

Before the sensors arrived I tried to read the grip from the servo itself, as commanded position minus reported position. The gripper closed in steps of 5 pulses, once on nothing and once on a cardboard roll.

The measurement: position error while the gripper closes, in free air and on a cardboard roll
  • Nothing in the gripper
  • Cardboard roll, 40 mm
0102030400450500550600650700Commanded minus reported, pulsesCommanded position, pulsesNothing in the gripperCardboard roll, 40 mm0102030400500600700Commanded minus reported, pulsesCommanded position, pulsesNothing in the gripperCardboard roll, 40 mm
Show these values as a table
Commanded position, pulsesNothing in the gripperCardboard roll, 40 mm
3954
40099
40566
4101111
41554
42099
42555
4301010
43578
4401110
4451111
45049
45599
46058
4651010
47089
4751314
4801014
485918
490815
4951213
500918
5051017
5101015
515520
5201020
525715
53012
5358
5409
5459
5508
55513
56010
5658
5709
57511
5808
58513
5907
59512
6009
6058
6108
6156
6209
6255
63010
6358
64010
6458
6508
65513
6608
6659
67014
6759
68012
68517
69020
69523
70025
Position error while the gripper closes in 5-pulse steps. In free air the error wanders between 4 and 14 pulses, because the gripper sticks and then catches up. Squeezing the roll until it dented raised it to 20 at most. The free-air curve climbs past 680 only because the fingers meet there.Recorded . Source: squeeze-baseline-20261115-220809.json, squeeze-squeeze-20261115-221749.json

That is a margin of 6 pulses, about 1.4 degrees, between free motion and a crushed roll. It is not enough to tell a firm grip from no grip, let alone to stop before damage. The same session showed why: the gripper servo reacts about 45 ms after a command and stops roughly 10 pulses short of its target against its own friction. So the grip needs a real force signal.

Sensing: two fingertips and one clock

Each finger carries an FSR 400 on a voltage divider. A Raspberry Pi Pico running MicroPython samples both at 500 Hz, stamps every sample with its own clock, and streams them over USB with no gaps.

  • The forces are in provisional units, not newtons. A load cell was meant to calibrate the sensors. It read unreliably and I dropped it. The scale is set so that a firm fingertip press reads about 10. Forces compare across trials on this rig; none of them can be quoted in newtons yet.
  • The rest level drifts by tens of percent within an hour, so every run starts with a tare, jaws open.
  • The fingers are not symmetric. On a round bottle the contact often misses one finger’s sensor: on a 40 mm bottle one read 0.25 while the other read 4.3 under the same squeeze. The grip force is therefore the larger of the two readings.
  • Cameras and force share a timeline. The Pico drives an LED that both cameras see. From ten LED edges, the scene camera runs 23 ms behind the Pico’s clock and the wrist camera 45.5 ms. The recorder stamps every frame with those lags.

Compliance from a position-only servo

The servos take position commands and nothing else, so force control means moving the position target until the fingertip reads what was asked for. Friction makes that awkward. The fingers stick until the servo’s push breaks them free, then slip, so the grip force moves in steps and not smoothly.

The controller creeps toward its target at a force rate, treats a jump in force as a slip, rolls the command back to where the slip began, and accepts a band it cannot do better than. I tuned it on a gripper simulator fitted to the measured friction (240 simulated grasps), then ran it on the real gripper.

  • It held a paper cup at 2.46 ± 0.03 units for 10 s at a target of 2.5, without oscillating.
  • Its tolerance band is about 0.75 units: a grip that settles up to that far above target is left alone.
  • The gripper keeps a squeeze by friction. A grip can be raised but not trimmed back down.

ACP-lite’s output is a virtual target and a compliance. With a position-only servo that pair becomes a force target, F* = (x_vt − x) / c, which the same controller then tracks.

Choosing the object

The object had to come in two versions that look alike and need different grips. I chose a 330 ml PET water bottle held at its waist: empty and vented, or filled and capped. Bare, the two feel different from the first touch.

The measurement: grip force on the bare bottle, full and empty
  • Full to the brim, capped
  • Empty, vented
  • Empty, until it buckles
024620406080100120Grip force, FSR unitsCommand, pulses past first contactFull to the brim, cappedEmpty, ventedEmpty, until it buckles024650100Grip force, FSR unitsCommand, pulses past first contactFull to the brim, cappedEmpty, ventedEmpty, until it buckles
Show these values as a table
Command, pulses past first contactFull to the brim, cappedEmpty, ventedEmpty, until it buckles
21.360.370.43
41.490.460.42
62.200.520.48
82.300.550.49
102.340.561.03
122.610.561.05
142.690.681.01
162.770.751.25
183.140.831.44
203.380.851.46
223.490.921.54
243.571.071.57
263.751.151.59
283.831.301.87
304.241.511.97
324.372.01
344.422.16
364.572.32
384.632.84
404.822.94
424.972.93
445.073.10
465.183.46
485.433.72
504.10
524.24
544.68
564.83
584.42
604.22
623.94
644.03
663.87
683.90
703.83
723.84
743.58
763.63
783.41
803.36
823.33
843.29
863.31
883.26
903.24
923.07
943.12
962.99
982.97
1002.97
1022.92
1042.59
1062.62
1082.56
1102.58
1122.49
1142.44
1162.45
1182.45
1202.40
1222.42
1242.35
1262.33
1282.32
1302.30
1322.36
1342.36
1362.30
Grip force on the bare bottle while the gripper closes in steps of 2 pulses, 0.4 s each, counted from each run's first contact. Full to the brim the bottle is 2.3 times as stiff as empty. The empty one, closed further, gives way at about 4.8: the force falls while the fingers still close.Recorded . Source: gripper-pet330-full-20261121-191635.json, gripper-pet330-empty-20261121-191423.json, gripper-pet330-empty-hard-20261121-201948.json

Two pulses past first contact the full bottle read 1.4 and the empty one 0.4. Holding needed little: with the grip eased down to 0.65, the lowest the controller goes, the full bottle still hung in the fingers. So any grip between about 1 and 4 handles both bare bottles. Two things then changed the pair.

  • The sleeve. Water shows through PET, so both bottles got the same black sleeve.
  • Half full, not full. In the sleeve, the full bottle turned in the fingers during the hold, at a grip of 2.2 and still at 4. It is top-heavy at this grasp height, and a grasp 25 mm higher left the arm only 25 mm of lift. I poured half the water out. Half full, it hangs straight.
The evening before the demonstrations: a recorded demonstration replayed on the robot, with the bottle still full to the brim. The replayed gripper command lies on the recorded one through the grasp and the hold. The bottle turns in the fingers while it is held, and after the put-down it lies on the table. That is why it ended up half full.Recorded . Source: eval/runs/20261122-235724_replay_m1_full

In the sleeve the two bottles need different closes, and the other way round from what I expected. The two commands are 20 pulses apart, 2.3 mm at the fingers.

Bottle Closed to 368 Closed to 388
Empty Tilts about 45 degrees when lifted (2 of 2 tries) Stays upright (8 of 8)
Half full Hangs straight, if freshly placed on its mark Stays upright, but is squeezed hard: it read about 4

The half-full bottle slips at 368 unless it has just been placed on its mark: three of the first nine grasps slipped, at least two of them started 3 s after the previous put-down. The recorder discarded each of those by itself.

Collecting demonstrations

The reach is taught by hand. With torque off, I guide the arm to each pose; the recorder reads all six servos at 30 Hz and locks the arm where it ends up. Two replays of the same recording end within a quarter of a degree of each other on every joint.

How closely a replay follows the taught reach: one joint over time, and the error of every joint
  • Guided by hand
  • Replay
-100-80-60-40-20005101520Shoulder angle, degrees from startTime, s-100-50005101520Shoulder angle, degrees from startTime, s
Show these values as a table
Time, sGuided by handReplay
0.00.0
0.80.0-1.9
1.70.2-1.2
2.5-12.0-11.3
3.3-11.4-12.0
4.2-13.0-12.5
5.0-29.7-29.5
5.9-49.7-49.0
6.7-58.3-57.7
7.5-57.4-59.5
8.4-57.8-60.5
9.2-57.8-60.7
10.0-57.6-61.2
10.9-58.2-61.0
11.7-58.3-61.2
12.6-57.7-61.4
13.4-58.3-61.6
14.2-58.3-61.7
15.1-60.2-62.2
15.9-62.6-62.4
16.7-63.1-64.6
17.6-63.1-65.3
18.4-71.0-70.6
19.2-83.8-84.0
20.0
The shoulder joint, guided by hand for 20 s and then replayed at full speed. The replay follows 70 ms behind. Where the arm holds still, the replay settles about 2 degrees low: this joint carries the arm's weight.Recorded . Source: teach-20261115-224504.json, replay-20261115-224834-x1.json
JointRMS errorWorst errorError at the end
J11.65.0+1
J29.017.8-6
J37.218.2-7
J42.18.7-4
J51.04.00
Gripper8.612.0+7
Replay against the demonstration at the best-fitting lag, in servo pulses (0.24 degrees each).Recorded . Source: replay-20261115-224834-x1.json

The first attempt at this failed in an instructive way. The vendor’s torque switch had its two codes swapped: “torque off” left the arm rigid, and the “lock” at the end released it, so the arm dropped. Nothing was damaged. The patched driver fixes the switch, and the script now confirms every torque change on the bus before it tells me to let go.

Only the grip is demonstrated. During a demonstration the arm runs its taught reach while I close the gripper with a gamepad trigger, through the robot’s browser control deck.

One demonstration of each bottle, as the policies get it: both camera images at 320 × 180, the gripper command with the measured finger position, and the force on each fingertip. The fingers stop 22 and 17 pulses short of the command. In both grasps only finger A's sensor is loaded.Recorded . Source: grasp_pilot, demonstrations 22 and 20 (mark 2)

A part pull of the trigger could not be held. The gripper keeps a squeeze by friction: easing the command from 360 to 337 left the grip where it was, at 3.0. So a grip can be raised but not eased. My tries at a light grip read 0.1 to 0.7 and were discarded, and the first 16 demonstrations on one mark all closed to 388, for both bottles. A policy trained on those would have learned one grip. So the recorder names the stop. A demonstration is a full pull of the trigger, and how far a full pull closes is set for the bottle on the table: 388 for the empty one and 368 for the half-full one.

The two trigger pulls side by side, and how the recorder keeps or discards an episode
  • Empty bottle, to 388
  • Half-full bottle, to 368
grasplift2003004003.54.04.55.05.56.06.57.0Gripper command, pulsesTime in the episode, sgrasplift2003004004567Gripper command, pulsesTime in the episode, s
Show these values as a table
Time in the episode, sEmpty bottle, to 388Half-full bottle, to 368
3.50
3.65180180
3.79180180
3.94180180
4.09188198
4.23217228
4.38247257
4.53276287
4.67306315
4.82334345
4.96364368
5.11388368
5.26388368
5.40388368
5.55388368
5.70388368
5.84388368
5.99388368
6.14388368
6.28388368
6.43388368
6.58388368
6.72388368
6.87388368
7.00
The gripper command in one demonstration of each bottle on mark 3, the pair whose two trigger pulls came closest together (0.05 s apart). Both follow the same ramp at 200 pulses a second and part a tenth of a second before the end.Recorded . Source: demo-traces-grasp_pilot.json (demonstrations 34 and 35)

The recorder keeps frames in memory and writes them after the episode, which took an episode from 27 to 43 lost ticks out of 300 down to at most 4: 44 of the 48 demonstrations have every tick, and the others have 296 to 299. It discards an episode by itself when it was no demonstration: no grip on the bottle, the gripper open while the arm carried, a squeeze before the start beep, or a trigger pull that was not complete.

What the demonstrations contain

The dataset is 48 demonstrations: 3 marks, each with 8 empty and 8 half-full bottles, 14,392 frames in LeRobot format with both camera streams, the joint state and a force window per frame. A checker reloads it from disk and verifies every episode.

  • Empty
  • Half full
345350355360365370375Mark 1, empty371Mark 1, half full356Mark 2, empty366Mark 2, half full351Mark 3, empty365Mark 3, half full351MedianFinger position while carried, pulses350360370M1, empty371M1, half356M2, empty366M2, half351M3, empty365M3, half351MedianFinger position while carried, pulses
Show these values as a table
RowGroupFinger position while carried, pulsesNote
Mark 1, emptyEmpty368Demo 0, commanded to 388
Mark 1, emptyEmpty371Demo 1, commanded to 388
Mark 1, emptyEmpty371Demo 2, commanded to 388
Mark 1, emptyEmpty371Demo 3, commanded to 388
Mark 1, emptyEmpty371Demo 4, commanded to 388
Mark 1, emptyEmpty371Demo 5, commanded to 388
Mark 1, emptyEmpty371Demo 6, commanded to 388
Mark 1, emptyEmpty371Demo 15, commanded to 388
Mark 1, half fullHalf full355Demo 7, commanded to 368
Mark 1, half fullHalf full351Demo 8, commanded to 368
Mark 1, half fullHalf full355Demo 9, commanded to 368
Mark 1, half fullHalf full356Demo 10, commanded to 368
Mark 1, half fullHalf full356Demo 11, commanded to 368
Mark 1, half fullHalf full356Demo 12, commanded to 368
Mark 1, half fullHalf full356Demo 13, commanded to 368
Mark 1, half fullHalf full352Demo 14, commanded to 368
Mark 2, emptyEmpty367Demo 17, commanded to 388
Mark 2, emptyEmpty366Demo 18, commanded to 388
Mark 2, emptyEmpty366Demo 21, commanded to 388
Mark 2, emptyEmpty366Demo 22, commanded to 388
Mark 2, emptyEmpty366Demo 24, commanded to 388
Mark 2, emptyEmpty366Demo 26, commanded to 388
Mark 2, emptyEmpty367Demo 29, commanded to 388
Mark 2, emptyEmpty366Demo 31, commanded to 388
Mark 2, half fullHalf full351Demo 16, commanded to 368
Mark 2, half fullHalf full351Demo 19, commanded to 368
Mark 2, half fullHalf full351Demo 20, commanded to 368
Mark 2, half fullHalf full351Demo 23, commanded to 368
Mark 2, half fullHalf full351Demo 25, commanded to 368
Mark 2, half fullHalf full351Demo 27, commanded to 368
Mark 2, half fullHalf full350Demo 28, commanded to 368
Mark 2, half fullHalf full353Demo 30, commanded to 368
Mark 3, emptyEmpty366Demo 32, commanded to 388
Mark 3, emptyEmpty365Demo 34, commanded to 388
Mark 3, emptyEmpty365Demo 37, commanded to 388
Mark 3, emptyEmpty365Demo 39, commanded to 388
Mark 3, emptyEmpty366Demo 41, commanded to 388
Mark 3, emptyEmpty365Demo 43, commanded to 388
Mark 3, emptyEmpty365Demo 45, commanded to 388
Mark 3, emptyEmpty365Demo 46, commanded to 388
Mark 3, half fullHalf full351Demo 33, commanded to 368
Mark 3, half fullHalf full351Demo 35, commanded to 368
Mark 3, half fullHalf full351Demo 36, commanded to 368
Mark 3, half fullHalf full350Demo 38, commanded to 368
Mark 3, half fullHalf full351Demo 40, commanded to 368
Mark 3, half fullHalf full352Demo 42, commanded to 368
Mark 3, half fullHalf full351Demo 44, commanded to 368
Mark 3, half fullHalf full351Demo 47, commanded to 368
How far the fingers closed in every demonstration, measured while the bottle was carried. This is what the two bottles' demonstrations differ by: about 15 pulses on every mark, with no overlap.Recorded . Source: demo-traces-grasp_pilot.json
  • Empty
  • Half full
0123456Mark 1, empty3.03Mark 1, half full1.72Mark 2, empty3.73Mark 2, half full2.60Mark 3, empty2.95Mark 3, half full3.55MedianPeak force, FSR units0246M1, empty3.03M1, half1.72M2, empty3.73M2, half2.60M3, empty2.95M3, half3.55MedianPeak force, FSR units
Show these values as a table
RowGroupPeak force, FSR unitsNote
Mark 1, emptyEmpty1.15Demo 0, closed to 388
Mark 1, emptyEmpty1.67Demo 1, closed to 388
Mark 1, emptyEmpty3.00Demo 2, closed to 388
Mark 1, emptyEmpty3.65Demo 3, closed to 388
Mark 1, emptyEmpty3.01Demo 4, closed to 388
Mark 1, emptyEmpty3.13Demo 5, closed to 388
Mark 1, emptyEmpty3.74Demo 6, closed to 388
Mark 1, emptyEmpty3.06Demo 15, closed to 388
Mark 1, half fullHalf full1.73Demo 7, closed to 368
Mark 1, half fullHalf full2.66Demo 8, closed to 368
Mark 1, half fullHalf full1.46Demo 9, closed to 368
Mark 1, half fullHalf full1.64Demo 10, closed to 368
Mark 1, half fullHalf full1.72Demo 11, closed to 368
Mark 1, half fullHalf full1.88Demo 12, closed to 368
Mark 1, half fullHalf full1.54Demo 13, closed to 368
Mark 1, half fullHalf full2.81Demo 14, closed to 368
Mark 2, emptyEmpty3.59Demo 17, closed to 388
Mark 2, emptyEmpty3.88Demo 18, closed to 388
Mark 2, emptyEmpty0.78Demo 21, closed to 388
Mark 2, emptyEmpty3.64Demo 22, closed to 388
Mark 2, emptyEmpty3.82Demo 24, closed to 388
Mark 2, emptyEmpty4.10Demo 26, closed to 388
Mark 2, emptyEmpty3.87Demo 29, closed to 388
Mark 2, emptyEmpty3.45Demo 31, closed to 388
Mark 2, half fullHalf full3.42Demo 16, closed to 368
Mark 2, half fullHalf full2.33Demo 19, closed to 368
Mark 2, half fullHalf full2.60Demo 20, closed to 368
Mark 2, half fullHalf full2.43Demo 23, closed to 368
Mark 2, half fullHalf full2.26Demo 25, closed to 368
Mark 2, half fullHalf full2.60Demo 27, closed to 368
Mark 2, half fullHalf full3.55Demo 28, closed to 368
Mark 2, half fullHalf full2.60Demo 30, closed to 368
Mark 3, emptyEmpty2.14Demo 32, closed to 388
Mark 3, emptyEmpty2.30Demo 34, closed to 388
Mark 3, emptyEmpty1.99Demo 37, closed to 388
Mark 3, emptyEmpty1.51Demo 39, closed to 388
Mark 3, emptyEmpty3.59Demo 41, closed to 388
Mark 3, emptyEmpty3.79Demo 43, closed to 388
Mark 3, emptyEmpty4.23Demo 45, closed to 388
Mark 3, emptyEmpty5.02Demo 46, closed to 388
Mark 3, half fullHalf full1.63Demo 33, closed to 368
Mark 3, half fullHalf full3.34Demo 35, closed to 368
Mark 3, half fullHalf full4.12Demo 36, closed to 368
Mark 3, half fullHalf full4.23Demo 38, closed to 368
Mark 3, half fullHalf full1.49Demo 40, closed to 368
Mark 3, half fullHalf full3.77Demo 42, closed to 368
Mark 3, half fullHalf full3.75Demo 44, closed to 368
Mark 3, half fullHalf full3.27Demo 47, closed to 368
Peak fingertip force in every demonstration. The black tick is each row's median. The empty bottle is closed further (to 388) and the half-full one less (to 368), yet their readings overlap on every mark.Recorded . Source: dataset-check-grasp_pilot.json
Fingertip force over time in one demonstration of each bottle
  • Empty bottle
  • Half-full bottle
grasplifthold0123445678910Grip force, FSR unitsTime in the episode, sEmpty bottleHalf-full bottlegrasplifthold0123446810Grip force, FSR unitsTime in the episode, sEmpty bottleHalf-full bottle
Show these values as a table
Time in the episode, sEmpty bottleHalf-full bottle
3.50
3.770.000.03
4.040.000.03
4.320.030.07
4.590.030.00
4.860.090.45
5.131.522.80
5.402.043.00
5.682.153.08
5.952.253.16
6.222.263.21
6.492.293.23
6.761.742.72
7.041.240.06
7.311.290.25
7.581.310.92
7.851.400.94
8.121.460.91
8.401.440.74
8.671.480.87
8.941.560.93
9.211.580.88
9.481.600.96
9.761.600.98
10.00
Fingertip force in demonstrations 34 and 35, the two of the command chart above. In this pair the half-full bottle, closed less, reads higher than the empty one while it stands on the table and lower once it is lifted. On the table that order is mark 3's alone. At the median the empty bottle reads 2.95 against the half-full one's 0.64 on mark 1, 3.13 against 2.45 on mark 2 and 2.88 against 3.37 on mark 3. Held, the empty bottle reads higher at the median on every mark.Recorded . Source: demo-traces-grasp_pilot.json

That overlap is the first uncomfortable result. Each sensor is a 5 mm disc, and the reading depends on where the bottle happens to touch it. Finger B’s sensor read more than 0.3 at any moment in only 7 of the 48 demonstrations; finger A’s did in all of them. Taken at a finger position that both bottles pass through, the readings of the two bottles overlap widely.

Force on finger A at the same finger position, one dot per demonstration
  • Empty
  • Half full
01234Empty bottle0.99Half full bottle1.79MedianForce on finger A, FSR units01234Empty0.99Half full1.79MedianForce on finger A, FSR units
Show these values as a table
RowGroupForce on finger A, FSR unitsNote
Empty bottleEmpty0.07Demo 0, mark 1
Empty bottleEmpty0.24Demo 1, mark 1
Empty bottleEmpty0.57Demo 2, mark 1
Empty bottleEmpty0.56Demo 3, mark 1
Empty bottleEmpty0.20Demo 4, mark 1
Empty bottleEmpty0.51Demo 5, mark 1
Empty bottleEmpty0.65Demo 6, mark 1
Empty bottleEmpty0.22Demo 15, mark 1
Empty bottleEmpty1.67Demo 17, mark 2
Empty bottleEmpty1.72Demo 18, mark 2
Empty bottleEmpty0.09Demo 21, mark 2
Empty bottleEmpty1.78Demo 22, mark 2
Empty bottleEmpty1.72Demo 24, mark 2
Empty bottleEmpty2.01Demo 26, mark 2
Empty bottleEmpty1.73Demo 29, mark 2
Empty bottleEmpty1.46Demo 31, mark 2
Empty bottleEmpty1.12Demo 32, mark 3
Empty bottleEmpty0.86Demo 34, mark 3
Empty bottleEmpty0.49Demo 37, mark 3
Empty bottleEmpty0.58Demo 39, mark 3
Empty bottleEmpty2.14Demo 41, mark 3
Empty bottleEmpty2.32Demo 43, mark 3
Empty bottleEmpty2.31Demo 45, mark 3
Empty bottleEmpty2.86Demo 46, mark 3
Half full bottleHalf full0.24Demo 7, mark 1
Half full bottleHalf full0.65Demo 8, mark 1
Half full bottleHalf full0.64Demo 9, mark 1
Half full bottleHalf full0.47Demo 10, mark 1
Half full bottleHalf full0.21Demo 11, mark 1
Half full bottleHalf full0.08Demo 12, mark 1
Half full bottleHalf full0.10Demo 13, mark 1
Half full bottleHalf full0.38Demo 14, mark 1
Half full bottleHalf full2.96Demo 16, mark 2
Half full bottleHalf full1.79Demo 19, mark 2
Half full bottleHalf full2.10Demo 20, mark 2
Half full bottleHalf full1.91Demo 23, mark 2
Half full bottleHalf full1.64Demo 25, mark 2
Half full bottleHalf full2.05Demo 27, mark 2
Half full bottleHalf full3.01Demo 28, mark 2
Half full bottleHalf full1.63Demo 30, mark 2
Half full bottleHalf full1.31Demo 33, mark 3
Half full bottleHalf full2.45Demo 35, mark 3
Half full bottleHalf full3.30Demo 36, mark 3
Half full bottleHalf full3.64Demo 38, mark 3
Half full bottleHalf full3.16Demo 42, mark 3
Half full bottleHalf full3.05Demo 44, mark 3
Half full bottleHalf full2.81Demo 47, mark 3
Force on finger A at the moment the fingers pass position 345, short of both stops. Each dot is one demonstration; one whose fingers never got that far is missing. The half-full bottle reads higher at the median, 1.79 against 0.99, and the two rows overlap widely: the empty bottle's readings run from 0.07 to 2.86 and the half-full one's from 0.08 to 3.64, 6 of its 23 above every empty one.Recorded . Source: bottle-separability-grasp_pilot.json

Asked directly, the demonstrations give a weak answer. A linear classifier, tested on each demonstration after fitting on the other 47, names the bottle correctly 56 % of the time from what the fingers sense as the command reaches 366, just before the two closes part, and 67 % with every feature I could give it. Fitted on shuffled labels, the classifier with every feature reaches 48 % on average. 10 of the 40 shuffles did as well as the 56 %. None reached the 67 %; the best came to 65 %. So there is something to feel, and it still names one bottle in three wrongly.

Taken mark by mark, with 16 demonstrations each, the classifier names 81 %, 56 % and 75 % correctly. On mark 1 the two bottles were recorded 30 minutes apart, 7 of the 8 empty ones from 01:24 to 01:34 and the half-full ones from 02:04 to 02:10, which alone may separate them. On marks 2 and 3 the two took turns. I did not run the shuffled comparison for single marks. By feel, then, these two bottles can be told apart only weakly on this gripper.

The chart: the classifier with the real labels against 40 runs with the labels shuffled
  • Labels shuffled
  • Real labels
20304050607080Real labels, every feature67Real labels, as the closes part56Shuffled, 40 times48Median, %Demonstrations named correctly, %Chance20406080Real, all67Real, at part56Shuffled48Median, %Demonstrations named correctly, %Chance
Show these values as a table
RowGroupDemonstrations named correctly, %Note
Real labels, every featureReal labels67Every feature and the mark
Real labels, as the closes partReal labels56Both fingers and the finger position at command 366
Shuffled, 40 timesLabels shuffled44Shuffle 1
Shuffled, 40 timesLabels shuffled50Shuffle 2
Shuffled, 40 timesLabels shuffled31Shuffle 3
Shuffled, 40 timesLabels shuffled56Shuffle 4
Shuffled, 40 timesLabels shuffled44Shuffle 5
Shuffled, 40 timesLabels shuffled50Shuffle 6
Shuffled, 40 timesLabels shuffled48Shuffle 7
Shuffled, 40 timesLabels shuffled42Shuffle 8
Shuffled, 40 timesLabels shuffled40Shuffle 9
Shuffled, 40 timesLabels shuffled44Shuffle 10
Shuffled, 40 timesLabels shuffled65Shuffle 11
Shuffled, 40 timesLabels shuffled56Shuffle 12
Shuffled, 40 timesLabels shuffled38Shuffle 13
Shuffled, 40 timesLabels shuffled42Shuffle 14
Shuffled, 40 timesLabels shuffled27Shuffle 15
Shuffled, 40 timesLabels shuffled50Shuffle 16
Shuffled, 40 timesLabels shuffled44Shuffle 17
Shuffled, 40 timesLabels shuffled56Shuffle 18
Shuffled, 40 timesLabels shuffled35Shuffle 19
Shuffled, 40 timesLabels shuffled65Shuffle 20
Shuffled, 40 timesLabels shuffled52Shuffle 21
Shuffled, 40 timesLabels shuffled48Shuffle 22
Shuffled, 40 timesLabels shuffled38Shuffle 23
Shuffled, 40 timesLabels shuffled44Shuffle 24
Shuffled, 40 timesLabels shuffled29Shuffle 25
Shuffled, 40 timesLabels shuffled56Shuffle 26
Shuffled, 40 timesLabels shuffled56Shuffle 27
Shuffled, 40 timesLabels shuffled48Shuffle 28
Shuffled, 40 timesLabels shuffled65Shuffle 29
Shuffled, 40 timesLabels shuffled40Shuffle 30
Shuffled, 40 timesLabels shuffled42Shuffle 31
Shuffled, 40 timesLabels shuffled58Shuffle 32
Shuffled, 40 timesLabels shuffled54Shuffle 33
Shuffled, 40 timesLabels shuffled48Shuffle 34
Shuffled, 40 timesLabels shuffled38Shuffle 35
Shuffled, 40 timesLabels shuffled54Shuffle 36
Shuffled, 40 timesLabels shuffled52Shuffle 37
Shuffled, 40 timesLabels shuffled50Shuffle 38
Shuffled, 40 timesLabels shuffled56Shuffle 39
Shuffled, 40 timesLabels shuffled50Shuffle 40
How often a classifier names the bottle correctly from what the gripper senses during the squeeze, each demonstration tested after fitting on the others. Of the two results with the real labels, the one from what is sensed just before the closes part sits inside the spread of 40 runs with the labels shuffled. The one with every feature lies just above all 40.Recorded . Source: bottle-separability-grasp_pilot.json (tools/bottle_separability.py)

There is also no time to feel. At the median, the first force arrives 0.01 s (empty) and 0.07 s (half full) before the command reaches 366, and in no demonstration more than 0.23 s before. The half-full bottle’s close ends two pulses further on, and the empty one’s a tenth of a second after that. The policies act at 10 Hz on chunks of several steps.

The policies

All three learned methods come from one LeRobot 0.4.4 policy plugin, so they share everything except the force input and the action.

  • Vision. Two camera views through an ImageNet-pretrained ResNet-18, cropped to 162 × 288, plus the joint state.
  • Force. A causal dilated-convolution encoder reads the last 32 samples of each finger. Its output for the newest sample is appended to the image and state features that condition the UNet. Unit tests check that changing the future never changes the past, and that streaming one sample at a time matches the batch output exactly.
  • Action. A gripper position for the two Diffusion Policy variants. For ACP-lite, a virtual target and a compliance, with labels derived after recording as in the ACP paper, reduced to one dimension: the compliance is low while the demonstrator grips and zero otherwise, and the virtual target is the measured position plus compliance times force.
  • Timing. Demonstrations are recorded at 30 fps and trained at 10 Hz. A policy predicts 16 actions, 1.6 s, the first of them one step in the past. The runner works with the 12 from the present on, 1.2 s.
  • Size. A UNet with channel widths 256, 512, 1024 takes 0.23 s for a 3-step DDIM chunk on the Orin NX in its 15 W mode. The stock width takes 0.76 s.

The force encoder is causal by construction: every convolution is padded on the left only, and the only normalisation runs across channels at one time step, never across time.

The code: the causal convolution the force encoder is built from
class CausalConv1d(nn.Module):
    """A Conv1d that only looks back: (kernel_size - 1) * dilation zeros on the left, none on the right."""

    def __init__(self, c_in: int, c_out: int, kernel_size: int, dilation: int):
        super().__init__()
        self.left_pad = (kernel_size - 1) * dilation
        self.conv = nn.Conv1d(c_in, c_out, kernel_size, dilation=dilation)

    def forward(self, x: torch.Tensor) -> torch.Tensor:  # (B, C, T) -> (B, C_out, T)
        return self.conv(nn.functional.pad(x, (self.left_pad, 0)))
The convolution the force encoder is built from. Four of these with dilations 1, 2, 4 and 8 see the last 31 samples, 0.31 s at 100 Hz.Source: lerobot_policy_force_diffusion/force_encoder.py

Training ran on the workstation: 20,000 steps per policy at batch 64, 74 minutes each. Getting there cost a night. The first three starts each ended within three minutes, in an unexpected shutdown, a segmentation fault in a data-loader worker, and a blue screen. With the workstation’s memory overclocking profile switched off, the same run finished without a crash.

What comes next

On 25 November I decided to change the objects, not only to record again. Two things about the bottles would not be fixed by new demonstrations of the same pair: by touch they can be told apart only weakly, and the close took 0.3 s, which left no time to feel anything.

  • Two objects that touch should tell apart. Two identical 200 ml drink cartons, one sealed and full, one emptied and left open. To me they look alike; whether they do to the cameras is checked on the first recordings, before any training. Their sides are flat. On a round object the contact can miss a sensor: on one squeeze of a 40 mm bottle one finger read 0.25 and the other 4.3, and on a flat block the two agreed within 0.1. The full carton should be stiff from the first touch and need a firm grip; the empty one should dent under that grip. None of that is measured yet.
  • A close slow enough to feel. A full pull of the trigger runs up to just short of the carton and then closes slowly, the same way for both, as far as the gentle stop. Only the full carton goes on. Rehearsed against a simulated gripper so far.
  • Checks before any demonstration is recorded. Squeeze runs on both cartons, then a short dry run, each answering whether touch tells the two apart and from when. With the bottles I asked that only after all 48 demonstrations were recorded.
  • The scene camera fixed in a marked position, reference images saved the same day, and the evaluation in the same setup with nothing moved or re-lit in between.
  • Then the evaluation: 4 methods, 2 objects, 3 marks, 2 trials each, with the methods interleaved and the outcome labelled without knowing which method ran.

Limits

  • Forces are in the sensor’s provisional units. Nothing here is in newtons.
  • A single-point force-sensitive resistor reports how hard its own 5 mm disc is pressed, not the grip as a whole.
  • Compliance is emulated in one dimension through a position-controlled servo with stick-slip friction. This is not torque-level impedance control.
  • Only the grip is learned. The reach is scripted and taught by hand.
  • The policies have not been evaluated on the robot. There are eight check runs of one policy on one mark so far, and no completed evaluation.
  • One object pair so far, and by touch its two objects can be told apart only weakly.

Updates

The project's log, newest first. Open an entry to read it.

  1. The bottles are dropped for two cartons

    I decided to change the objects, not only to record new demonstrations. The decision and its reasons are in the measurement log, section 10, dated 25 November.

    • Why. By touch the two sleeved bottles can be told apart only weakly, and the close took 0.3 s, which left no time to feel. New demonstrations of the same pair would repeat both.
    • The new pair. Two identical 200 ml drink cartons, one sealed and full, one emptied and left open. To me they look alike, and they have flat sides. Whether touch tells them apart is not measured yet, nor whether the cameras can.
    • The close. Slow from just short of the object to the gentle stop, the same way for both; only the full one goes on. Rehearsed against a simulated gripper, not on the robot.
    • Checks before recording. Squeeze runs on both cartons, then a short dry run. Each answers whether touch tells the two apart, and from when. On the dry run’s images I also ask whether the cameras tell them apart.
  2. Check runs on the robot; the evaluation is postponed

    The 48 trials were due. The scene camera had been moved since the demonstrations and was put back by hand.

    After eight check runs I postponed the evaluation. New demonstrations are recorded first, with the camera fixed in a marked position, and the evaluation then runs in the same setup.

  3. Three policies trained

    Training crashed the workstation three times in a row. With its memory overclocking profile off, all three policies trained in 3 h 40 min.

  4. 48 demonstrations recorded

    Most of this session went into making a demonstration possible at all.

    • Stale gripper targets came from the control deck judging a held gamepad trigger as a frozen pad. Fixed in the deck.
    • Jerky arm motion came from the driver’s position reads starving the command queue: more than half the commands were dropped. A read now steps aside for waiting commands.
    • A tilting bottle came from a hot elbow joint trailing the lift. The wrist now follows the measured shoulder and elbow, which keeps the gripper within about 2 degrees of its grasp pitch.
    • The full bottle turned in the fingers, so “full” became half full.

    The dataset: 48 demonstrations, 14,392 frames, 8 per bottle on each of 3 marks. The force readings alone do not separate the two bottles; how far the gripper closed does.

  5. A second finger sensor, and a bottle instead of cups

    • Two sensors. Both fingers now stream at 500 Hz with no crosstalk. The fingers are not symmetric, and on a round object one sensor often sees nothing, so the grip force is the larger of the two readings.
    • The gripper opens further than assumed. Stepped open, the fingers follow to a hard stop at 58 mm, not the 50 mm that had been taken for it.
    • The object. A 100 ml travel bottle was too stiff: empty and full could not be told apart. A 330 ml PET bottle works: empty, it buckles at 4.8 units; full, it is 2.3 times as stiff.
  6. First session with the force sensor

    Six hours at the robot with the fingertip sensor wired.

    • Calibration. The load cell that should have calibrated the sensor read unreliably and was dropped. Forces are in provisional units from here on, where a firm fingertip press reads about 10.
    • Paper cups. A single cup buckles at about 5.2 units and springs back. A nested pair is about 1.7 times as stiff and holds 7 to 8.
    • The first closed-loop grip on the real gripper held a cup at 2.46 ± 0.03 for 10 s at a target of 2.5.
    • Sync. An LED test puts the scene camera 23 ms and the wrist camera 45.5 ms behind the sensor’s clock.
    • Three reaches are taught, one per taped mark.
  7. A patched driver, and a force controller tuned in simulation

    • The driver now publishes measured joint positions at 30 Hz, so recording no longer needs the robot’s stack stopped. It also relaxes a gripper that is pushing against its own friction, which had been heating it to 78 °C after every restart.
    • The grip-force controller is built and tuned against a gripper simulator fitted to the friction measured the day before. Across 240 simulated grasps, from sponge-soft to rigid objects, none faulted and none held below its target.
    • The simulator settled one hardware question in advance: sending moves with zero duration removes the dependence on how the servo ramps a timed move.
  8. Groundwork: latency, the servo bus, teaching by hand

    Five measurements on the robot before any force sensor existed.

    • Policy latency. The stock Diffusion Policy needs 24.3 s per action chunk on the Jetson with its default 100 denoising steps. With 3 DDIM steps it needs 0.75 s and keeps up with real time.
    • The servo bus. Reading all six joints and commanding the gripper runs at 60 Hz. The gripper reacts about 45 ms after a command and leaves about 10 pulses of error uncorrected.
    • Squeezing without a sensor. Position error separates free motion from a crushed cardboard roll by 6 pulses. Not enough: the grip needs a force signal.
    • Teaching by hand. The joints back-drive with torque off, and two replays end within a quarter of a degree of each other. The first attempt dropped the arm, because the vendor’s torque switch had its codes swapped.
    • A first LeRobot recording. Three hand-guided episodes, 1,350 frames, reload clean from disk.