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
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
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
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
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
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
Show these values as a table
Commanded position, pulses
Nothing in the gripper
Cardboard roll, 40 mm
395
4
400
9
9
405
6
6
410
11
11
415
5
4
420
9
9
425
5
5
430
10
10
435
7
8
440
11
10
445
11
11
450
4
9
455
9
9
460
5
8
465
10
10
470
8
9
475
13
14
480
10
14
485
9
18
490
8
15
495
12
13
500
9
18
505
10
17
510
10
15
515
5
20
520
10
20
525
7
15
530
12
535
8
540
9
545
9
550
8
555
13
560
10
565
8
570
9
575
11
580
8
585
13
590
7
595
12
600
9
605
8
610
8
615
6
620
9
625
5
630
10
635
8
640
10
645
8
650
8
655
13
660
8
665
9
670
14
675
9
680
12
685
17
690
20
695
23
700
25
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
Show these values as a table
Command, pulses past first contact
Full to the brim, capped
Empty, vented
Empty, until it buckles
2
1.36
0.37
0.43
4
1.49
0.46
0.42
6
2.20
0.52
0.48
8
2.30
0.55
0.49
10
2.34
0.56
1.03
12
2.61
0.56
1.05
14
2.69
0.68
1.01
16
2.77
0.75
1.25
18
3.14
0.83
1.44
20
3.38
0.85
1.46
22
3.49
0.92
1.54
24
3.57
1.07
1.57
26
3.75
1.15
1.59
28
3.83
1.30
1.87
30
4.24
1.51
1.97
32
4.37
2.01
34
4.42
2.16
36
4.57
2.32
38
4.63
2.84
40
4.82
2.94
42
4.97
2.93
44
5.07
3.10
46
5.18
3.46
48
5.43
3.72
50
4.10
52
4.24
54
4.68
56
4.83
58
4.42
60
4.22
62
3.94
64
4.03
66
3.87
68
3.90
70
3.83
72
3.84
74
3.58
76
3.63
78
3.41
80
3.36
82
3.33
84
3.29
86
3.31
88
3.26
90
3.24
92
3.07
94
3.12
96
2.99
98
2.97
100
2.97
102
2.92
104
2.59
106
2.62
108
2.56
110
2.58
112
2.49
114
2.44
116
2.45
118
2.45
120
2.40
122
2.42
124
2.35
126
2.33
128
2.32
130
2.30
132
2.36
134
2.36
136
2.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
Show these values as a table
Time, s
Guided by hand
Replay
0.0
0.0
0.8
0.0
-1.9
1.7
0.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
Joint
RMS error
Worst error
Error at the end
J1
1.6
5.0
+1
J2
9.0
17.8
-6
J3
7.2
18.2
-7
J4
2.1
8.7
-4
J5
1.0
4.0
0
Gripper
8.6
12.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
Show these values as a table
Time in the episode, s
Empty bottle, to 388
Half-full bottle, to 368
3.50
3.65
180
180
3.79
180
180
3.94
180
180
4.09
188
198
4.23
217
228
4.38
247
257
4.53
276
287
4.67
306
315
4.82
334
345
4.96
364
368
5.11
388
368
5.26
388
368
5.40
388
368
5.55
388
368
5.70
388
368
5.84
388
368
5.99
388
368
6.14
388
368
6.28
388
368
6.43
388
368
6.58
388
368
6.72
388
368
6.87
388
368
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
Show these values as a table
Row
Group
Finger position while carried, pulses
Note
Mark 1, empty
Empty
368
Demo 0, commanded to 388
Mark 1, empty
Empty
371
Demo 1, commanded to 388
Mark 1, empty
Empty
371
Demo 2, commanded to 388
Mark 1, empty
Empty
371
Demo 3, commanded to 388
Mark 1, empty
Empty
371
Demo 4, commanded to 388
Mark 1, empty
Empty
371
Demo 5, commanded to 388
Mark 1, empty
Empty
371
Demo 6, commanded to 388
Mark 1, empty
Empty
371
Demo 15, commanded to 388
Mark 1, half full
Half full
355
Demo 7, commanded to 368
Mark 1, half full
Half full
351
Demo 8, commanded to 368
Mark 1, half full
Half full
355
Demo 9, commanded to 368
Mark 1, half full
Half full
356
Demo 10, commanded to 368
Mark 1, half full
Half full
356
Demo 11, commanded to 368
Mark 1, half full
Half full
356
Demo 12, commanded to 368
Mark 1, half full
Half full
356
Demo 13, commanded to 368
Mark 1, half full
Half full
352
Demo 14, commanded to 368
Mark 2, empty
Empty
367
Demo 17, commanded to 388
Mark 2, empty
Empty
366
Demo 18, commanded to 388
Mark 2, empty
Empty
366
Demo 21, commanded to 388
Mark 2, empty
Empty
366
Demo 22, commanded to 388
Mark 2, empty
Empty
366
Demo 24, commanded to 388
Mark 2, empty
Empty
366
Demo 26, commanded to 388
Mark 2, empty
Empty
367
Demo 29, commanded to 388
Mark 2, empty
Empty
366
Demo 31, commanded to 388
Mark 2, half full
Half full
351
Demo 16, commanded to 368
Mark 2, half full
Half full
351
Demo 19, commanded to 368
Mark 2, half full
Half full
351
Demo 20, commanded to 368
Mark 2, half full
Half full
351
Demo 23, commanded to 368
Mark 2, half full
Half full
351
Demo 25, commanded to 368
Mark 2, half full
Half full
351
Demo 27, commanded to 368
Mark 2, half full
Half full
350
Demo 28, commanded to 368
Mark 2, half full
Half full
353
Demo 30, commanded to 368
Mark 3, empty
Empty
366
Demo 32, commanded to 388
Mark 3, empty
Empty
365
Demo 34, commanded to 388
Mark 3, empty
Empty
365
Demo 37, commanded to 388
Mark 3, empty
Empty
365
Demo 39, commanded to 388
Mark 3, empty
Empty
366
Demo 41, commanded to 388
Mark 3, empty
Empty
365
Demo 43, commanded to 388
Mark 3, empty
Empty
365
Demo 45, commanded to 388
Mark 3, empty
Empty
365
Demo 46, commanded to 388
Mark 3, half full
Half full
351
Demo 33, commanded to 368
Mark 3, half full
Half full
351
Demo 35, commanded to 368
Mark 3, half full
Half full
351
Demo 36, commanded to 368
Mark 3, half full
Half full
350
Demo 38, commanded to 368
Mark 3, half full
Half full
351
Demo 40, commanded to 368
Mark 3, half full
Half full
352
Demo 42, commanded to 368
Mark 3, half full
Half full
351
Demo 44, commanded to 368
Mark 3, half full
Half full
351
Demo 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
Show these values as a table
Row
Group
Peak force, FSR units
Note
Mark 1, empty
Empty
1.15
Demo 0, closed to 388
Mark 1, empty
Empty
1.67
Demo 1, closed to 388
Mark 1, empty
Empty
3.00
Demo 2, closed to 388
Mark 1, empty
Empty
3.65
Demo 3, closed to 388
Mark 1, empty
Empty
3.01
Demo 4, closed to 388
Mark 1, empty
Empty
3.13
Demo 5, closed to 388
Mark 1, empty
Empty
3.74
Demo 6, closed to 388
Mark 1, empty
Empty
3.06
Demo 15, closed to 388
Mark 1, half full
Half full
1.73
Demo 7, closed to 368
Mark 1, half full
Half full
2.66
Demo 8, closed to 368
Mark 1, half full
Half full
1.46
Demo 9, closed to 368
Mark 1, half full
Half full
1.64
Demo 10, closed to 368
Mark 1, half full
Half full
1.72
Demo 11, closed to 368
Mark 1, half full
Half full
1.88
Demo 12, closed to 368
Mark 1, half full
Half full
1.54
Demo 13, closed to 368
Mark 1, half full
Half full
2.81
Demo 14, closed to 368
Mark 2, empty
Empty
3.59
Demo 17, closed to 388
Mark 2, empty
Empty
3.88
Demo 18, closed to 388
Mark 2, empty
Empty
0.78
Demo 21, closed to 388
Mark 2, empty
Empty
3.64
Demo 22, closed to 388
Mark 2, empty
Empty
3.82
Demo 24, closed to 388
Mark 2, empty
Empty
4.10
Demo 26, closed to 388
Mark 2, empty
Empty
3.87
Demo 29, closed to 388
Mark 2, empty
Empty
3.45
Demo 31, closed to 388
Mark 2, half full
Half full
3.42
Demo 16, closed to 368
Mark 2, half full
Half full
2.33
Demo 19, closed to 368
Mark 2, half full
Half full
2.60
Demo 20, closed to 368
Mark 2, half full
Half full
2.43
Demo 23, closed to 368
Mark 2, half full
Half full
2.26
Demo 25, closed to 368
Mark 2, half full
Half full
2.60
Demo 27, closed to 368
Mark 2, half full
Half full
3.55
Demo 28, closed to 368
Mark 2, half full
Half full
2.60
Demo 30, closed to 368
Mark 3, empty
Empty
2.14
Demo 32, closed to 388
Mark 3, empty
Empty
2.30
Demo 34, closed to 388
Mark 3, empty
Empty
1.99
Demo 37, closed to 388
Mark 3, empty
Empty
1.51
Demo 39, closed to 388
Mark 3, empty
Empty
3.59
Demo 41, closed to 388
Mark 3, empty
Empty
3.79
Demo 43, closed to 388
Mark 3, empty
Empty
4.23
Demo 45, closed to 388
Mark 3, empty
Empty
5.02
Demo 46, closed to 388
Mark 3, half full
Half full
1.63
Demo 33, closed to 368
Mark 3, half full
Half full
3.34
Demo 35, closed to 368
Mark 3, half full
Half full
4.12
Demo 36, closed to 368
Mark 3, half full
Half full
4.23
Demo 38, closed to 368
Mark 3, half full
Half full
1.49
Demo 40, closed to 368
Mark 3, half full
Half full
3.77
Demo 42, closed to 368
Mark 3, half full
Half full
3.75
Demo 44, closed to 368
Mark 3, half full
Half full
3.27
Demo 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
Show these values as a table
Time in the episode, s
Empty bottle
Half-full bottle
3.50
3.77
0.00
0.03
4.04
0.00
0.03
4.32
0.03
0.07
4.59
0.03
0.00
4.86
0.09
0.45
5.13
1.52
2.80
5.40
2.04
3.00
5.68
2.15
3.08
5.95
2.25
3.16
6.22
2.26
3.21
6.49
2.29
3.23
6.76
1.74
2.72
7.04
1.24
0.06
7.31
1.29
0.25
7.58
1.31
0.92
7.85
1.40
0.94
8.12
1.46
0.91
8.40
1.44
0.74
8.67
1.48
0.87
8.94
1.56
0.93
9.21
1.58
0.88
9.48
1.60
0.96
9.76
1.60
0.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
Show these values as a table
Row
Group
Force on finger A, FSR units
Note
Empty bottle
Empty
0.07
Demo 0, mark 1
Empty bottle
Empty
0.24
Demo 1, mark 1
Empty bottle
Empty
0.57
Demo 2, mark 1
Empty bottle
Empty
0.56
Demo 3, mark 1
Empty bottle
Empty
0.20
Demo 4, mark 1
Empty bottle
Empty
0.51
Demo 5, mark 1
Empty bottle
Empty
0.65
Demo 6, mark 1
Empty bottle
Empty
0.22
Demo 15, mark 1
Empty bottle
Empty
1.67
Demo 17, mark 2
Empty bottle
Empty
1.72
Demo 18, mark 2
Empty bottle
Empty
0.09
Demo 21, mark 2
Empty bottle
Empty
1.78
Demo 22, mark 2
Empty bottle
Empty
1.72
Demo 24, mark 2
Empty bottle
Empty
2.01
Demo 26, mark 2
Empty bottle
Empty
1.73
Demo 29, mark 2
Empty bottle
Empty
1.46
Demo 31, mark 2
Empty bottle
Empty
1.12
Demo 32, mark 3
Empty bottle
Empty
0.86
Demo 34, mark 3
Empty bottle
Empty
0.49
Demo 37, mark 3
Empty bottle
Empty
0.58
Demo 39, mark 3
Empty bottle
Empty
2.14
Demo 41, mark 3
Empty bottle
Empty
2.32
Demo 43, mark 3
Empty bottle
Empty
2.31
Demo 45, mark 3
Empty bottle
Empty
2.86
Demo 46, mark 3
Half full bottle
Half full
0.24
Demo 7, mark 1
Half full bottle
Half full
0.65
Demo 8, mark 1
Half full bottle
Half full
0.64
Demo 9, mark 1
Half full bottle
Half full
0.47
Demo 10, mark 1
Half full bottle
Half full
0.21
Demo 11, mark 1
Half full bottle
Half full
0.08
Demo 12, mark 1
Half full bottle
Half full
0.10
Demo 13, mark 1
Half full bottle
Half full
0.38
Demo 14, mark 1
Half full bottle
Half full
2.96
Demo 16, mark 2
Half full bottle
Half full
1.79
Demo 19, mark 2
Half full bottle
Half full
2.10
Demo 20, mark 2
Half full bottle
Half full
1.91
Demo 23, mark 2
Half full bottle
Half full
1.64
Demo 25, mark 2
Half full bottle
Half full
2.05
Demo 27, mark 2
Half full bottle
Half full
3.01
Demo 28, mark 2
Half full bottle
Half full
1.63
Demo 30, mark 2
Half full bottle
Half full
1.31
Demo 33, mark 3
Half full bottle
Half full
2.45
Demo 35, mark 3
Half full bottle
Half full
3.30
Demo 36, mark 3
Half full bottle
Half full
3.64
Demo 38, mark 3
Half full bottle
Half full
3.16
Demo 42, mark 3
Half full bottle
Half full
3.05
Demo 44, mark 3
Half full bottle
Half full
2.81
Demo 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
Show these values as a table
Row
Group
Demonstrations named correctly, %
Note
Real labels, every feature
Real labels
67
Every feature and the mark
Real labels, as the closes part
Real labels
56
Both fingers and the finger position at command 366
Shuffled, 40 times
Labels shuffled
44
Shuffle 1
Shuffled, 40 times
Labels shuffled
50
Shuffle 2
Shuffled, 40 times
Labels shuffled
31
Shuffle 3
Shuffled, 40 times
Labels shuffled
56
Shuffle 4
Shuffled, 40 times
Labels shuffled
44
Shuffle 5
Shuffled, 40 times
Labels shuffled
50
Shuffle 6
Shuffled, 40 times
Labels shuffled
48
Shuffle 7
Shuffled, 40 times
Labels shuffled
42
Shuffle 8
Shuffled, 40 times
Labels shuffled
40
Shuffle 9
Shuffled, 40 times
Labels shuffled
44
Shuffle 10
Shuffled, 40 times
Labels shuffled
65
Shuffle 11
Shuffled, 40 times
Labels shuffled
56
Shuffle 12
Shuffled, 40 times
Labels shuffled
38
Shuffle 13
Shuffled, 40 times
Labels shuffled
42
Shuffle 14
Shuffled, 40 times
Labels shuffled
27
Shuffle 15
Shuffled, 40 times
Labels shuffled
50
Shuffle 16
Shuffled, 40 times
Labels shuffled
44
Shuffle 17
Shuffled, 40 times
Labels shuffled
56
Shuffle 18
Shuffled, 40 times
Labels shuffled
35
Shuffle 19
Shuffled, 40 times
Labels shuffled
65
Shuffle 20
Shuffled, 40 times
Labels shuffled
52
Shuffle 21
Shuffled, 40 times
Labels shuffled
48
Shuffle 22
Shuffled, 40 times
Labels shuffled
38
Shuffle 23
Shuffled, 40 times
Labels shuffled
44
Shuffle 24
Shuffled, 40 times
Labels shuffled
29
Shuffle 25
Shuffled, 40 times
Labels shuffled
56
Shuffle 26
Shuffled, 40 times
Labels shuffled
56
Shuffle 27
Shuffled, 40 times
Labels shuffled
48
Shuffle 28
Shuffled, 40 times
Labels shuffled
65
Shuffle 29
Shuffled, 40 times
Labels shuffled
40
Shuffle 30
Shuffled, 40 times
Labels shuffled
42
Shuffle 31
Shuffled, 40 times
Labels shuffled
58
Shuffle 32
Shuffled, 40 times
Labels shuffled
54
Shuffle 33
Shuffled, 40 times
Labels shuffled
48
Shuffle 34
Shuffled, 40 times
Labels shuffled
38
Shuffle 35
Shuffled, 40 times
Labels shuffled
54
Shuffle 36
Shuffled, 40 times
Labels shuffled
52
Shuffle 37
Shuffled, 40 times
Labels shuffled
50
Shuffle 38
Shuffled, 40 times
Labels shuffled
56
Shuffle 39
Shuffled, 40 times
Labels shuffled
50
Shuffle 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.
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.
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.
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.
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.
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.
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.
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.
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.