Pupper Pickleball Assistant
A pickleball assistant built on Stanford's Pupper quadruped robot. Say "Pupper, retrieve" and it searches for every ball on the court, scoops each one into a rolling collector cage, then turns to find you and brings them back.
The system
Pupper runs three pieces that talk to each other over ROS 2:
- Vision. Each camera frame is unwrapped from fisheye to equirectangular, then YOLOv5 runs on a Hailo AI accelerator on the robot, detecting balls and people and publishing their bounding boxes.
- Behavior. A state machine running at 10 Hz turns those detections into motion commands.
- Voice. Microphone audio streams to OpenAI's Realtime API, along with a camera snapshot for context. The model replies with a fixed set of action phrases, so "retrieve balls" becomes one clear command the robot can act on.
How it decides what to do
| State | What Pupper does | Moves on when |
|---|---|---|
| Search | Turns in place at 0.5 rad/s, toward the side it last saw a ball | A ball appears |
| Track | Walks at 0.3 m/s while a proportional controller keeps the ball centered | The ball reaches the bottom of the frame |
| Collect | Walks forward for 2.5 seconds, rolling the ball into the collector cage it pushes | Time is up, then it searches again |
| Hand off | After 15 seconds with no ball in sight, decides it has found them all and barks | Switches to tracking a person |
| Follow | Finds and walks toward the nearest person | The person fills 60% of the frame, then it stops |
To keep it locked onto the same ball when several are in view, it always picks the detection closest to where its target was in the last frame.
Watch a full run
Unedited, about a minute and a half: searching, collecting three balls, then bringing them back.
Tuning it on the court
Early versions overshot the ball, so we slowed tracking from 0.75 to 0.3 m/s and tuned the steering gain until it held a ball steadily in the center. Detection on the robot has to be fast enough to keep up with walking, which is why it runs on the Hailo accelerator instead of the main processor.
Pupper also has a bit of personality: it barks when it starts and when it finishes, and can wiggle and bob on command.