AR is the future interface for robots
A desk robot you could see and drive through AR glasses, with no phone in the way: that was the itch. Anki's Vector was the obvious place to scratch it, a real little desk robot with a ton of WALL·E charm and a surprisingly open platform.
Vector is also wide open. There's an official Python SDK, and since Anki's cloud shut down the community keeps that SDK usable with a token server called wire-pod. We wanted to keep things as stock as possible, so that's all we leaned on: the robot runs its factory firmware, nothing flashed or jailbroken, just the SDK and the token server it needs to log in. Everything else here is a normal robot, a pair of Snap Spectacles, and a lot of curiosity.
This post is a making-of, roughly in the order it happened. First we got the robot to show its own hidden data in AR. Then we built a fast little game to push the whole thing. And along the way the glasses became how we see it and how we talk to it. Here's the trip.
Where this is going: the robot's own map and live data, painted straight into the room through the Specs.VectAR OS: the robot's data, in your room
The way we think about the whole thing, VectAR is really an operating system. The body is the robot, the display is the glasses, and the mind is Gemini. A normal computer is built around files and programs. This one is built around context: a live picture of what's happening in the room right now, what the robot senses, its map, what you're looking at or pointing at or saying. Everything runs as one loop. Read the context, decide, act, and the world changes a little. The game is just one program running on top of that.
Here's the clearest example. This is a real capture through the Specs, with nothing added later. The pink boxes are Vector's own map of the room: the walls and objects it has sensed, drawn in AR where they actually are. The green panel above it is its live data: battery, gyro, wheels, head angle, lift, proximity. We don't fake any of it. Vector's own engine already knows all this. We just take that data and paint it into your space.
This is the split we chose. For the hockey game, we wrote Vector's brain ourselves: the goalie, the control loop, all of it. For the OS, it's the opposite:
We don't touch the robot's brain. We just make what it already knows visible.
Air hockey with Vector
To push all of this, we built a game: AR air hockey on a real table. The puck lives only in the glasses, at 60fps. You hit it with your hand, a mallet projected under your palm. A real Vector plays goalie: it drives along its line and blocks a puck it literally cannot see, staying in the right spot thanks to a shared field frame and the vision fixes below.
The part that surprised us most was how much the personality carried it. It turns to face you and flashes red eyes before a serve. It lift-jabs and barks on a block, with a comic speech bubble copying the line in AR. It sulks when you score, pink-eyed under a crackle of lightning. Win the match and it dances in a full-table storm. None of that is required, and all of it is why the game feels alive.
The puck is fake. The saves are real.
The whole look is code, not textures
Quick aside on the neon, because we're a little proud of how it came out. The shapes are all generated in code by a small library called GlowKit: quads, strips, tubes along a spline, rings, electric arcs, and cheap batched dots. The soft glow itself comes from a small set of radial gradient sprites (a disc, a ring, a strip, a spark) on additive, depth-aware materials that GlowKit clones and tints at runtime. So there's no hand-painted scene art, just code-built geometry and a handful of soft gradients composited on the fly.
And it's not just for tidiness. The OS side needs to draw the robot's mind live, its map and its plans and its sensors, and none of that can be baked ahead of time. It has to come straight out of state. So the game's look and the OS's look run on the same little engine. GlowKit is worth being honest about: it's a CLAD solution, not something we hand-wrote. We set the direction and the exact vibe we were after, then ran a lot of feedback loops until the agent's code landed it.
The hard part: where is the robot, really?
Nothing works if you don't know where the robot is. And it turns out everything lies about position.
Vector's own odometry (wheels plus gyro) is good, until a tread slips on a fast turn. Then the heading drifts quietly. We once watched it "drive" more than a metre off its own map, in its own head, while barely moving on the table. Safety checks stopped it from running off the edge, but nothing fixes the drift itself.
Next we tried its cube as a marker, a free reference point. In tests it was beautiful, about 15 mm accurate. In a real game it never fired: the robot looks down at the puck, the cube sits off in a corner, and marker detection needs a steady, close, front-on view. (One trap cost us an evening: turning on Vector's custom object detection crashes its whole vision engine and reboots the robot. The built-in marker path works fine without it. We learned that the loud way.) So we dropped the cube.
What finally worked was looking at the robot from the outside. The Specs camera sees the whole table, so we trained a small YOLO model to find the robot, and matched that with the robot's own SLAM map. That locks the AR field and the real table into one space. Odometry handles the fast movement, while the detector runs more than ten times a second and a confident fix nudges the map back into place about twice a second.
Your robot debugger wants to be a lens, not a terminal.The on-device model finding the robot through the Specs. This is the signal that keeps the map honest.
Here's the part we like, and it's where Stijn came in. He'd already built our one-click YOLOv7 trainer for Spectacles, the pipeline that makes synthetic frames and auto-labels them with SAM 3. We handed it real footage of Vector shot through the Specs (desks, floors, a bed, all the angles it actually lives in), and a few minutes later he had a trained model ready to drop in.
Real footage was simpler and worked better. Instead of trying to make fake images look like Specs footage, we just showed the model real Specs footage. The detector came out fast and steady: a clean, confident box on the robot, quick enough to keep the map honest in real time. That's what a fast game needs, not a slow demo.
Latency: a goalie that reacts late is a wall
Even with the position right, the robot's twin in AR moved late. We were drawing where the robot was. Sensor to SDK to WiFi to the lens adds up to a couple hundred milliseconds. In a fast game that's the whole difference between a save and a goal.
The fix: don't render the past. The lens runs its own copy of the goalie logic and draws where the robot is about to be, then snaps to the real pose when it arrives. We also pushed every rate up: the control loop and pose stream to about 30 Hz, wheels to the SDK's max, goal pauses cut from ten seconds to about four. Half a second of lag turns a goalie into a wall decoration.
Play it yourself: it's open source
We put the whole air-hockey side of this up on GitHub: the Spectacles lens, the Mac game server, and full docs to run it with your own Vector. Not a stripped demo, the real thing we play with.
The server ships with its own little control hub in the browser: pair the robot, watch its battery and pose, grab the lens address, and see the live game state, all from one page.
And the part we like: you don't even need Spectacles to start. The same hub lets you play the match on screen with your mouse, so you can poke at the whole system, tune the goalie, and build on top of it long before any glasses are involved.
Built in days: the downgrade that proved CLAD
This was a two-person project that felt bigger, because we built it with an agentic loop: Snap's CLAD (Closed-Loop Agentic Development). The agent designs, builds, tests in preview, reads its own logs, and repeats until it works, while we steer.
There was a catch, and it's the best CLAD story we have. The loop runs in the newest Lens Studio, 5.22, but Spectacles (2024) run 5.15. So we built the whole game in 5.22 and then had to move it down a version. And a downgrade in Lens Studio is not a "save as older". A 5.22 project won't even open in 5.15. You start a blank 5.15 project and rebuild the whole thing from parts.
That's where it got spiky:
- 5.22 packages crash 5.15. They're built against a newer engine, so you can't reuse them. You install the 5.15-native versions and re-wire everything to them.
- The custom shader doesn't come with you. The hand-built 5.22 shader graph is gone; it has to be rebuilt from GLSL in a form 5.15 accepts.
- Materials come back wrong. Copy them over and the neon glow turns into flat solid fills. Every material has to be rebuilt to match, with the right blend mode and depth flags, or the occlusion breaks.
- Silent audio. Miss one
AudioListenerComponentand the engine cheerfully reports it's playing sound into a room that hears nothing.
None of that is hard, exactly. It's a full day of careful, click-heavy, easy-to-get-wrong work: copy thirty-plus scripts, rebuild every material, re-wire the scene, recompile, and check the screen looks the same as the 5.22 version. And that's exactly the kind of work the loop is good at. The agent did the port, took a screenshot, compared it to the original, fixed what drifted, and repeated until the 5.15 build ran clean and looked the same.
CLAD's real trick isn't writing new features. It's taking a working thing across a version boundary that would eat a day by hand, and grinding it back to green against its own screenshots.
The same loop caught the small stuff too:
- Every part logs plain text, so "the game froze" turned out to be one line: the score had hit five and the match was over. We just hadn't built an end screen yet.
- The dust bug: particles showed in the editor but not in the game. Five guesses failed before we found the cause, a non-uniform scale that kills GPU-instanced shaders. Days of our lives, one line of code.
- The mallet and the battery pickup were modelled by the agent in headless Blender. We spent zero hours in a 3D tool.
The loop didn't make the hard parts easier. Space, latency, and physics were still hard. It just removed everything else.
That's the real point of this demo, honestly. Not the game, the speed. No boilerplate, no asset grind, no reproduce-screenshot-compare drudgery, and no lost day on a version downgrade. With Snap's tools you go from an idea to a working, tested prototype in days. And with Claude doing a lot of the work next to CLAD, the whole thing stayed fun.
What's still hard (the honest part)
A few things we're not going to pretend are solved:
- WiFi is the real boss fight. On weak WiFi the robot drops every few minutes, so every layer above has to survive it: auto-reconnect, and a watchdog that stops a driving robot within about 1.5 seconds of silence. (Ask us how we learned that one.) It also killed a plan we liked: streaming the robot's own camera feed over WiFi to run our own tracking on what it sees. That is a lot of data over a flaky link, too heavy and too laggy to trust in real time, which is a big reason the vision fix runs on the glasses instead of the robot's eyes.
- It's 2018 hardware. Top wheel speed is around 220 mm/s. You design the whole game around that. It's why the puck is exactly as fast as it is, and why the goalie plays sideways.
- The old SDK needs a little care to run on modern Python, just a few small patches.
- On-device ML plus rendering plus hand tracking is a budget. You spend it on purpose, or you drop frames.
Why AR is the interface for robots
By the end, the glasses weren't a screen at all. They were the interface to everything the robot could do. We wired Gemini in through the lens with tool-calling, so there are no logic flows and no if score > 3 then…: the model calls the robot's own commands (drive, turn, animate, speak, change eye colour) straight from plain words. And you talk to it out loud, on-device, while the robot answers in its own voice and its own eyes. You're not poking an app that controls a robot. You talk to the room, and the robot answers as itself. That's when people in our tests stopped calling it "it".
Pull all the way back, and it comes down to one line, the first thing we really learned building this:
A robot is a huge pile of data you can't see. AR is the first interface that lets you just look at it.
Every other way of looking at a robot is a screen that pulls you out of its world. AR does the opposite:
- You share the same space. When Vector thinks it's at a spot on the table, you see it there. When it's wrong, you see the error as an offset, not a number in a log.
- You see what it "thinks". Its map, its sensors, where it plans to go, all drawn on the robot itself. To debug it, you just look at it.
- Real and virtual meet. A real robot blocking a virtual puck is easy to understand. Nobody asks what they're looking at.
- A free second opinion. The glasses camera watches the robot from the outside and says where it really is.
And none of this is only about hockey. The same setup (a pose stream, a shared frame, camera correction, a digital twin) works for anything with a body: a robot vacuum you glance at and redirect, a machine that shows its own error in place, every device in the house controlled in AR instead of through a phone screen.
Vector was just the friendliest place to start: a 2018 robot with a top speed we had to design the whole game around. Big thanks to Snap Spectacles for the platform, and we can't wait for what's next on the SPECS roadmap. No spoilers. Just very ready.
AR isn't a screen for robots. It's where people and robots can finally agree on where things are.