One with the Robot Arms
A headset in Singapore, two robot arms in London.
In May 2026 my friends at The Robot Company in Singapore were getting ready for a showcase at AI Engineer in London. The plan was to have two AgileX Piper arms in London driven from Singapore, with someone wearing a Meta Quest 3 who would see through the arms’ cameras and move them with their own hands. I spent a week with them on the VR control: making it feel natural, getting both arms and their grippers working from the headset, and keeping it safe across a link with a round trip of about 160 ms.
You can try a small version of the problem in the browser, in low-latency remote robot arm teleoperation from Singapore to London: a simulated Piper with the same kinematics and IK as the real one, a slider for the round trip, and a button that drops the link.
Where it started§
Vamshi and other friends at The Robot Company built the first version of the stack, and most of what follows rests on their work: the IK, the motor control, a separate 200 Hz control loop in C++, and the safety checks. When I joined, a keyboard could drive one arm through a web page, and the VR path worked with the wrist locked. My week went into the VR side: making the setup reproducible, making the controls intuitive, the grippers, both arms from the web interface, and recording and replaying demonstrations.
From a hand to a motor§
The operator needs no app. The Quest’s browser opens a web page, and WebXR gives that page the pose of the head and both controllers on every frame. Here is the path one hand position takes:
- The headset. The page reads each controller’s position and rotation, the trigger and the grip button, and the head’s turn, 72 times a second, which is the Quest 3’s frame rate.
- The network. It sends them over a LiveKit data channel, which is WebRTC. The same room carries the three camera feeds back the other way: one on each arm’s wrist and one looking over the table. In passthrough the operator sees the room around them with the feeds floating in front, and a small ping readout that turns amber above 200 ms.
- The clutch. On the computer next to the arms, nothing moves until the operator holds the grip button. While it’s held, the arm follows the change in the controller’s position since the grip started, 1:1. Letting go freezes the arm, so you can move your hand back to a comfortable place and grip again, like lifting a mouse off the desk.
- The frames. WebXR and the arm count their axes differently. The pose is turned into the arm’s frame as a rigid transform, without ever going through Euler angles, which lock up in the arm’s usual working pose.
- Smoothing and limits. Each update moves the target a fifth of the way to the newest pose, which takes the shake out of a hand held in the air for the cost of about 60 ms of lag. The target can also move at most 20 mm per update, and it has to stay inside a box of space in front of the arm.
- The IK. A damped least-squares solver in Pinocchio turns the target into six joint angles, with a pull towards a comfortable posture, so the joints the target leaves free don’t drift. Near a singular pose it adds damping, and it gives a best effort instead of failing.
- The motors. The joint targets go over CAN at 1 Mbit/s to the arm’s motors, which run in impedance mode: each joint behaves like a spring and a damper pulling towards its target. A loop at 72 Hz sends them, with a heartbeat on every tick, or the firmware drops into teaching mode.
What I worked on§
Controls that feel like your hands. The first VR version tracked only where the hand was, with the wrist held still. I unlocked the wrist so the gripper turns with the controller, and added the rest of the mapping: the trigger closes the gripper, the thumbsticks nudge the wrist joints directly, and turning your head swings the base of the arm, which widens what you can reach without walking around.
The first time both arms moved with my hands and the base turned with my head, it was hard not to feel like Doctor Octopus.
Both arms. Each controller drives one arm, each arm on its own CAN bus. That meant two IK solvers, two control loops and a few bugs where one arm’s state leaked into the other’s. One I remember: releasing the grip reset the head’s yaw, so the base snapped back every time the operator let go.
The grippers. They needed calibrating, a zero point and a range, before open and closed meant the same on both arms.
HTTPS. The headset’s browser only offers WebXR to a page served over HTTPS. Over plain HTTP the “enter VR” button never appeared, and the login cookie wouldn’t stick, so the server now makes its own certificate on first start.
Teach and replay. The operator can record a demonstration from the headset and play it back on the arms. A pick and place recorded once can run again without anyone in the headset, which helps with testing.
Reproducible setup. The stack now installs with one uv command into a fresh environment, and a set of small tools brings up the CAN buses, calibrates the grippers, tests every joint and parks the arms safely at the end of a day.
The round trip§
Singapore and London are about 10,900 km apart, and WonderNetwork’s pings between them average about 163 ms.1 Every hand movement takes half of that to reach London, and the picture takes the other half to come back. Whatever you see in the headset is where the arm was, following where your hand was a round trip earlier.
At that delay careful work is possible, if you move in steps: move, wait a beat for the picture to catch up, then grip. What makes it hard is the link’s unevenness. Packets bunch up, and sometimes nothing arrives for a moment and then a burst does. Without the speed limit, a burst makes the arm jump straight to the newest position. With it, the arm catches up at a steady pace. The simulation lets you drop the link with the limit on and off, and the difference is easy to see.
Safety§
An arm driven from 10,900 km away has to look after itself, because the operator finds out about a problem one round trip late. Besides the speed limit and the box, the arm stops if the IK can’t reach its target for a second or two, if the motors disagree with the commands by more than 30 degrees, and after two minutes without a command. The arm moves to its home pose slowly. And when the motors are first switched into impedance mode, they start at zero stiffness and are turned up in steps, so a wrong setting shows itself before the arm has any force behind it.
Notes
-
Ping time between Singapore and London, WonderNetwork. The latest run listed, on 25 November 2026, averaged 163 ms. ↩