Back to all work

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.

CourseCS 123, robotics
TeamAvery Voss, Olivia Doman, Will Jenkins
ToolsROS 2, Python, YOLOv5 on a Hailo accelerator, OpenAI Realtime API
Year2025

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

StateWhat Pupper doesMoves on when
SearchTurns in place at 0.5 rad/s, toward the side it last saw a ballA ball appears
TrackWalks at 0.3 m/s while a proportional controller keeps the ball centeredThe ball reaches the bottom of the frame
CollectWalks forward for 2.5 seconds, rolling the ball into the collector cage it pushesTime is up, then it searches again
Hand offAfter 15 seconds with no ball in sight, decides it has found them all and barksSwitches to tracking a person
FollowFinds and walks toward the nearest personThe 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.