“Code as Policies” (CaP) is a research framework where language model-generated programs (LMPs) represent robot policies, allowing language models to directly write executable code for robot control. It translates natural language instructions into code that can handle spatial-geometric reasoning, generalize to new tasks, and define robot behaviors like picking, placing, and trajectory control.
