Anki's Code Lab Brings Sophisticated Graphical Programming to Cozmo Robot

With an easy-to-use interface based on MIT's Scratch, you can command Cozmo to do complex tasks without any programming experience

3 min read
Anki's Cozmo robot will teach kids to code
With an easy-to-use interface based on Scratch, you can now command Cozmo to do complex tasks without any programming experience.
Image: Anki

When Anki introduced Cozmo almost exactly one year ago, we started off with a bit of skepticism, and a feeling that Anki was going slightly overboard with the kinds of promises that it was making for this cute and capable little robot. What was more exciting to us was when Anki followed up a few weeks later with Cozmo’s software development kit, or SDK, allowing access to a variety of very sophisticated features through relatively simple lines of code.

Instead of having to worry about the software necessary for navigation, object recognition, manipulation, and all of that complicated robotics programming, Cozmo already knows how to do it and gives you direct access to its capabilities, all on a robot that will cost you under US $200.

Today, Anki is announcing Code Lab, which takes that SDK and adds a graphical drag-and-drop interface that makes it incredibly simple to get Cozmo to do complex tasks involving vision, manipulation, and decision making, even if you have zero programming experience. It’s fun, it’s easy, it’s affordable, and last week, we tried it out for ourselves, with a little help from Anki co-founder and president Hanns Tappeiner.

Cozmo has a great SDK that allows access to lots of high-level functionality. For example, a few simple commands can leverage Cozmo’s ability to localize and plan paths that avoid obstacles, manipulate blocks, and even recognize faces and emotions and respond with its own “emotions.” In order to use the SDK, though, you do have to know how to code. Like, you have to have some experience with (or be willing to learn) Python, and read the SDK documentation so that you understand how to get the robot to do what you want it to do. For most people who buy a Cozmo, this is a significant barrier to entry. More importantly, it’s also a barrier for parents or teachers who might want to help young kids learn to code with Cozmo.

Anki's Code Lab adds a graphical drag-and-drop interface that makes it incredibly simple to get Cozmo to do complex tasks involving vision, manipulation, and decision making, even if you have zero programming experience

To solve this and make the whole process easier and more accessible, Code Lab adds a graphical user interface, or GUI, on top of the SDK, based on MIT’s visual programming language Scratch. Colorful interactive blocks represent different functions, and by dragging and dropping those blocks (and making some minor edits to their parameters), you can get Cozmo to do all sorts of custom behaviors.

Programming Anki's Cozmo robot is now easier with graphical interface based on ScratchAnki’s Code Lab is an easy-to-use graphical interface based on MIT’s Scratch, a popular visual programming language.Photo: Anki

And once you’ve reached the limitations of the GUI, you can comfortably take the next step down into the underlying Python code. Anki also plans to release another layer (called “vertical grammar”) that will allow you to go the other direction, implementing custom Python code and more complex functionality into blocks in the GUI, which is a very cool idea.

Our initial criticism of Cozmo was based on wondering whether as a toy it would be able to hold our attention for more than 5 minutes. It now seems like as more than a toy, it won’t have any problems doing exactly that. Code Lab is available today to all Cozmo owners as a free software update to the Cozmo app.

[ Anki’s Code Lab ]

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