02 Teleoperation Framework
I built a teleoperation framework for a UR5e robotic arm controlled by phone motion. Move the phone, and the arm follows. It uses an iPhone, with no additional special hardware.
It's been tested by over 100 users. At IROS in Pittsburgh, Pennsylvania, people who came to the booth drove the arm at MIT live, doing pick-and-place tasks while watching it over a Zoom stream.
Why it matters
Teleoperation is typically very expensive. The industrial robots that you teleoperate can cost 5, 6, and even 7 figures, but what many people don't know is that the devices that actually do the teleoperating are also really expensive (haptic gloves, VR headsets), or they don't fluidly mimic motion (SpaceMice, joysticks).
However, almost every single person on this planet has all the base technology needed to drive an industrial robot: their phone. In fact, the one thing you really need to teleop something is something that can derive pose, and a couple buttons.
Most phones have a camera and a built-in IMU. IMUs are great for detecting rotation, but to get position you have to double integrate the acceleration they provide, which leads to inaccuracy. Cameras can actually detect how much a phone moves in free space, very similar to how mice work, and fusing these two data sources provides pretty robust motion tracking. On an iPhone, ARKit does this fusion.
How it works
The pipeline: the iPhone's ARKit pose goes over Wi-Fi to a ROS 2 node that rejects stale packets, a rotation matrix maps phone space to the robot frame, and RTDE servoL injects the command with a 100 ms lookahead. Since the phone only sends data at 60 Hz, commands go out at 125 Hz and the arm's 500 Hz internal controller fills in between them.
- iPhoneARKit tracks the phone's pose in 6 DoF
- 60 HzWi-Fi, UDP
- ROS 2 nodeDrops stale packets, rotates phone frame into robot frame
- 125 HzRTDE servoL
- UR5e controllerFills in between commands on its own loop
- 500 Hzjoint control
- ArmUR5e with a Robotiq Hand-E gripper
| Phone pose rate | 60 Hz, 6 DoF from ARKit |
|---|---|
| Command rate | 125 Hz into the arm's 500 Hz controller |
| End-to-end latency | about 125 msMeasured by counting frames in slow-motion video, from phone motion to arm motion. |
| Extra hardware cost | $0 |
Around that sit the parts that make it usable by strangers. If the arm hits something and stops, the controller reconnects without a restart. If the phone's packets stop for half a second, the arm holds its pose. A button on the phone locks the gripper's rotation to the nearest 90° so hand tremor doesn't tilt it, and a logger records end-effector, joint and gripper data for replay.
How I got there
ROS 2 trajectory controllers are designed for pre-planned paths, not for reacting in real-time. Teleoperation needs continuous, fluid motion. With the phone sending 60 packets per second, each command was treated as a new trajectory, causing jerky movements and constant velocity and acceleration limit violations.
I tried multiple approaches, and each improved a part of the system but sacrificed another:
- Velocity controllers: ideally smooth, but jittery due to packet noise.
- MoveIt 2 servo: made for continuous commands, but unreliable at 60 Hz input.
- EKF and low-pass filtering: fluid motion, but the added latency made the arm feel like it was moving underwater.
The solution was to stop fighting ROS 2 and split responsibilities. I used Universal Robots' RTDE for direct command injection, while ROS 2 handled launching the robot, gripper services, and overall modularity.
What 100 users showed
People range across a variety of ages and skill levels, and it's hard to make one system adapt to everyone. Because of this, I added multiple modes that people can use, ranging from beginner to expert. Beginner maps 30% of the input to the output, and expert is 1:1.