Stanford Students Teach Robots to Play Ping-pong, Land a Drone

If you had a couple of weeks and a robot to program, what would you do?

3 min read
Stanford Students Teach Robots to Play Ping-pong, Land a Drone
Image: Stanford Artificial Intelligence Laboratory

Students in Stanford’s Experimental Robotics class learn some basic concepts in robot control from Professor (and IEEE Fellow) Oussama Khatib. Khatib then divides the 25 or so students into small groups and gives them three and a half weeks and to program the robots to do something. Khatib’s preference is that they do something demonstrating a dynamic skill and making use of vision and force sensing. This spring, the latest group of students programmed their robots to play ping pong, land drones, do physical therapy, insert a plug into a slot, catch a ball, and play the classic cup-in-ball game. They unveiled their projects in June (see video, above).

The students had a few robots and robot arms to choose from—a Kuka LWR, a Kuka IIWA, a WAM, a Puma 500, and a Novint Falcon.

Lecturer Samir Menon pointed out that this year’s class differed slightly from classes in the past: students had an opportunity to run their code on simulators before working with the actual robots.

“A lot of the difficulty of the class comes from the difficulty of dealing with hardware failure,” Menon told IEEE Spectrum. “It is easy to break robots while testing beta code on them. This time, we adopted a different approach. We have, over the years, been developing very realistic simulation and robot-agnostic controllers allowing students to develop their project and compile it on to any one of the available robots.” This way, he added, they could identify which robot would be best for them in advance. And in the event of a failure, they could also transition to a new robot in about a day or two. This, flexibility, Menon said, helped to improve the quality of the projects this year.

Not all of the projects reached their ultimate goals, says Khatib. But all at least reached an important intermediate milestone. The Ping-Pong-playing robot, for example, was able to hit a ball with a paddle, but wasn’t quick enough to play a game at full speed. (In the past, Khatib recalls, an air-hockey playing robot turned out to be hard to beat.) Menon explained:

The ping-pong project was indeed very challenging since it combined vision, manipulation and required fast real-time responses. Robots also lack the human ability to jerk their wrists and provide a ball with sufficient momentum. So returns were not easy. We hadn't anticipated this since there seemed to be a few YouTube videos of robots playing ping-pong, but we learned that most of the videos were faked or staged.

Vikram Chauhan, one of the students in the class, says he initially thought about programming a small mobile robot to track a drone helicopter carrying a balloon and then pop the balloon by hitting it with a laser. Shooting a laser in a lab environment wasn’t going to be exactly safe, Chauhan says, so the group dropped that plan, but still wanted to do something with drones. In the end, they programmed a KUKA robot to follow a drone around with a landing pad—keeping the landing pad parallel to the ground—and then catch the drone, whether a helicopter or a quadrotor, on the pad. Khatib says Chauhan’s team wasn’t the first one to attempt to land a drone. Students in other years had tried, but their drones tended to bounce off their pads. Chauhan’s team succeeded by compensating for the bounce; their robot arm moved the pad as the drone landed, dampening the impact.

But the project that really blew Khatib away was the ball-in-cup game, sometimes called kendama, balero, or bilboquet. “I was amazed, because I can’t catch the ball in the cup properly myself, and the robot managed to do it repeatedly 97 percent of the time,” he said.

The Experimental Robotics class is a follow-up to Khatib’s Introduction to Robotics; that class is available on Youtube and iTunes and has been seen by students around the world.

The Conversation (0)

The Bionic-Hand Arms Race

The prosthetics industry is too focused on high-tech limbs that are complicated, costly, and often impractical

12 min read
Horizontal
A photograph of a young woman with brown eyes and neck length hair dyed rose gold sits at a white table. In one hand she holds a carbon fiber robotic arm and hand. Her other arm ends near her elbow. Her short sleeve shirt has a pattern on it of illustrated hands.

The author, Britt Young, holding her Ottobock bebionic bionic arm.

Gabriela Hasbun. Makeup: Maria Nguyen for MAC cosmetics; Hair: Joan Laqui for Living Proof
DarkGray

In Jules Verne’s 1865 novel From the Earth to the Moon, members of the fictitious Baltimore Gun Club, all disabled Civil War veterans, restlessly search for a new enemy to conquer. They had spent the war innovating new, deadlier weaponry. By the war’s end, with “not quite one arm between four persons, and exactly two legs between six,” these self-taught amputee-weaponsmiths decide to repurpose their skills toward a new projectile: a rocket ship.

The story of the Baltimore Gun Club propelling themselves to the moon is about the extraordinary masculine power of the veteran, who doesn’t simply “overcome” his disability; he derives power and ambition from it. Their “crutches, wooden legs, artificial arms, steel hooks, caoutchouc [rubber] jaws, silver craniums [and] platinum noses” don’t play leading roles in their personalities—they are merely tools on their bodies. These piecemeal men are unlikely crusaders of invention with an even more unlikely mission. And yet who better to design the next great leap in technology than men remade by technology themselves?

Keep Reading ↓Show less