Google open-sources Code as Policies, which turns plain-language commands into robot code

The tool writes Python for a robot from a typed instruction, and ships with a benchmark so researchers can compare models.

9DOF DeskEdited by Wonje Jeon1 min readSources: 1

Key numbers

Output language
Python
Licence
Open source
Test task
Block square

Google released Code as Policies (CaP) on GitHub under an open-source licence on 2 November 2022. The tool uses AI language models to write the configuration code that tells a robot what to do, so an operator can state a task in words rather than program it by hand.

In an internal test, researchers asked a robot to "arrange the blocks in a square around the middle". CaP produced code that moved the toy blocks into place. The code is Python and can call existing software libraries. Google says the models were primed with a few examples of instructions paired with robot code, and that writing code generalised better than learning tasks directly or outputting natural-language actions. The researchers who wrote the blog post were intern Jacky Liang and scientist Andy Zeng. A benchmark tool went out with it.

For factories, the point is cost. Every new task on a robot arm currently needs custom code, and moving it to a different machine often needs manual changes. If prompts can replace some of that work, the engineering hours around each cell shrink, though Google reported only lab tests.

Sources

  1. Google debuts tool for programming robots with natural language commandsSiliconANGLE · 2 Nov 2022

Checked by a 9DOF editor against the sources above before publishing. Figures are as reported by the sources. Spot an error? Tell us and we'll correct it on this page.

Companies in this story

  • Google

Related stories

The weekly

The 9DOF Briefing

Robotics and drones, every Monday.

News · Deals · Events · Also on Telegram

One email a week. We'll ask you to confirm before the first issue. Unsubscribe any time.

Cookie settings

EssentialSign-in, security, language, theme and this choice.
Always on
Privacy policy

Sign in

See every deal, investor and market chart, free.

or with email
Forgot password?

New to 9DOF? Create a free account