Part 3: Internal Representation For Bimanual Task
When we work with both hands we rarely think about how far they can reach, or when we would have to lean forward to reach a bit further. When a ball comes at us, in a split second we work out that we need to jump, get the edges of our fingers on it, and bring the other hand underneath in case it falls. Nobody plans that out loud. We have built a really good internal representation of our own body, and a big part of it is a representation of two hands working as a pair. A lot of what fills a working day needs exactly that. We hold a shirt open while we fold it, we steady a screw while we drive it with the drill, we pass a part from one hand to the other to get a better grip, we carry a box that is too big for one hand. In every one of these, what one hand should do depends on what the other hand is doing.
One might believe that a two-arm robot is basically one arm twice. It's an easy belief to hold when you set up two identical arms, two Pipers or two UR5s side by side, but in reality that notion breaks down the moment both hands hold the same object. I will set a premise first, and if you have been following the series it is the same task. You pick up a bolt with a nut on it in your left hand, bring it over to the right hand, the right hand unscrews the nut, and the nut and the bolt go separately into a tray. This week our two arms did that whole task almost perfectly, by replaying one of our human demonstrations.
Our own body doesn't treat two hands as one hand twice either. When people learn a reach with one arm, only part of that learning carries over once the other arm joins in, and the same goes the other way. The brain keeps a two-handed version of the skill that is partly its own. So the question I want to walk through is what that two-handed representation has to hold. To get there it helps to first sort out the kinds of two-handed work, because if you watch the run closely it is not one task, it is several stitched together, and they are not equally hard.
The first kind is loosely coupled. One arm holds one object and the other manipulates another, and they are never in contact with each other through an object. Each arm has its own role, so you could have done most of it with a single arm. In our run that is the left hand picking up the bolt while the right hand waits, and at the end each hand taking its own part to the tray.
The second kind is the transition. Both arms are in brief contact with the same rigid object, almost as if passing it, but they are not manipulating it at the same time. One arm holds a precise configuration and the other takes advantage of that and can be compliant around it, kind of like handing someone a box. In our run it is every moment the right jaws open around the nut to take a new grip while the left hand holds the bolt still.
The third kind is tightly coupled, and this is where the difficulty truly peaks. One arm holds a rigid object that is also in the grasp of the other arm, so the two arms and the object close a loop. Each of our arms has six joints plus a gripper. With both grippers closed on the object, the two arms together have twelve degrees of freedom to move in, but a rigid object only has six, right? So six of those twelve are used up just keeping both grips on the object, and the two arms have to agree on where the object is down to the millimeter. Where they disagree, the difference shows up as force, the two hands squeezing or pulling the object between them. In our task the loop closes through the thread. The nut can still turn and travel along the bolt, which is the one motion we want, and the other five are locked.
So the run is one long loosely coupled stretch, then four tightly coupled ones with transitions between them, then loosely coupled again on the way to the tray. A person doing the task has the same shape, and in our recorded demonstrations about a third of the time is tightly coupled. That third is where most of our weeks went.
Here comes the first nugget. The body does not handle that third with the plan alone. When both hands hold one object and one hand gets knocked, the other arm answers faster than anyone can react on purpose, and when each hand holds its own object that answer goes away. Robotics arrived at the same idea at the end of the 1980s, describing the pair of arms by where the object is and how the two hands stand to each other, with the force between the hands controlled in its own right. Our arms don't do this yet. They are two controllers sharing one plan.
So what does a two-handed internal representation have to hold? From our arms and our data I think at least three things, how the two hands stand to each other, which hand is the reference for the other, and one clock for both. We had all three wrong before the nut came off.
The first is the relation between the hands. A person lets the pair of hands drift to wherever is comfortable in the room and spends the precision on how the hands stand to each other. Over 826 of our demonstrations, a typical grasp of the nut sits about 28 mm from the average one when you look from the table, and about 3.5 mm from it when you look from the left hand. The task is written in the relation, and where it happens in the room hardly matters.
Our robot had it the other way around. Each arm followed its own plan to within a couple of millimeters, and what the system knew worst was where the two hands stood to each other. The joint zeros were off by up to two degrees, which is about 9 millimeters at a hand half a meter away, and a single arm never notices because whatever you teach it, you teach through the same wrong zero. Two hands meeting at one nut notice at once. There was a sneakier one too. We had defined which way each hand points 6.6 degrees off the flat of its pads, the same on both hands, and when two hands face each other an error they share adds up. Our robot's fingers met 10 to 17 degrees off one straight line where the person's had been within a few. We fixed the zeros with a ChArUco board, a printed chessboard with markers that each wrist camera looked at from a few dozen poses, and we redefined each hand's direction along its pads.
The second is which hand is the reference. Yves Guiard described this in 1987 as a chain, where the left hand sets the frame and the right hand works inside it, the way your left hand keeps moving the paper while your right hand writes. The frame hand moves first and then it holds. Holding sounds passive, but it is a job, and it is the one job you can't see in the data, because a recording of where the hands went says nothing about how stiff the holding hand was. On our arms it became a stiffness rule, and it came from doing the task with my own hands. The left arm goes to 2.2 times its normal stiffness the moment its jaws close on the bolt, and the right arm stays loose at 0.6 while its jaws are open and firms up to 1.0 once it has the nut. That is the bottom half of the figure.
There is a neat way to write this down, and it comes from how the body itself is modeled. In Burdet, Franklin and Milner's Human Robotics the command to a joint is split in two, a feedforward part that is predicted before anything happens and a feedback part that corrects what the prediction missed. The feedforward part has two pieces, the torque the limb needs to follow its plan, which comes from an internal model learned through experience, and the torque needed to cancel the force the outside world puts on the hand. The feedback part is a stiffness times the error, and that stiffness rises when the predicted command is large.
command = internal model of the limb − cancelling the outside force + stiffness × error
τ = ψ(s)p − Jᵀ(q)F + K(|τ_FF|)ε
For one arm, that outside force is the world, the weight of the bolt or the push of the table. Put two arms on one bolt and for the left arm most of that force is the right arm, pushing and twisting through the bolt, and for the right arm it is the left. So each arm's internal representation has to carry the other arm in it. Ours didn't. The feedforward torque we learned run by run was learned with the hands clear of the parts, so everything the two hands did to each other fell to the feedback term, and that is why the stiffness rule mattered so much.
The third is time. In the late 1970s Scott Kelso had people reach with both hands at once to an easy and a hard target, and the hand with the easy target slowed down to arrive nearly with the other. Our demonstrations show the same lock, the two hands' twists start within one camera frame of each other almost nine times out of ten. Our software had no such rule. Each arm kept its own speed limit, so the left arm, which had further to go, fell behind, and the right arm got to the meeting place and shut its jaws before the bolt had arrived. The fix was a plan with one clock for both arms and both pairs of jaws, so when anything has to slow down the clock slows and everything slows together.
This is also, I think, the real difference between the two ways of collecting two-arm data. With teleoperation a person moves leader arms and the robot follows, so what gets recorded are the robot's own joint readings, through the same zeros and bases you will play it back through. How the two arms stand to each other never has to be measured, it is already inside the data, and the data belongs to that robot. A UMI-style handheld gripper, which is what we do at Newlithic Robotics, records only where each grip point is, which way it faces and how far the jaws are open, and inverse kinematics fills in the joints. That is what the person's hands did in the real world, which is why it can go to any arm. But then the robot has to be calibrated to the world to reproduce it, and you find out how well the first time both hands touch the same part. I have not seen this measured anywhere, so take it as our reading.
Some of the lessons we learned are about the data collection itself. I think you want to stay as far away from the tightly coupled state as possible. You could learn it through a lot of data, but you could save yourself the time, both the data and the hours on the arms, by not being in such an unforgiving state at all. Most tasks allow an alternative where you collect the data in a more loosely coupled manner, or in a transitory manner where one arm holds a fixed state until the other is finished and then you move on. This is not to say that a loosely coupled task is easy, not at all. But you would save yourself a lot of data otherwise spent generalizing over how each arm should give in a tightly coupled state.
So I think it's important to study the contacts a task makes, how many there are, how many of them happen between the two arms, and what type they are. In our run the left hand makes one grasp and holds it, and the right hand makes four, and all four close a loop with the left hand through the bolt. If you reduce the number of contacts and keep them within one arm as much as you can, the task is a lot easier to generalize, and you can study this ahead of time, when you plan your data collection or before you run your simulations. Which leaves me with a question I don't have an answer to yet. If the number and type of contacts between two arms predicts how hard a task is, could it also tell you, before you collect a single episode, how much data that task is going to need?
Also on X ↗ · LinkedIn ↗