← Paper Digest

CoTAMP: Cooperative Task and Motion Planning for Quadruped Robots with Large Language Models

Woojin Kim, Jemin Hwangbo

November 2026

A full run on Course 2 at 5x speed.

TL;DR Two simulated quadrupeds cross obstacles neither can pass alone, such as one climbing over the other's back. An LLM invents the plan and a few keyframes per step, and code checks, interpolates and optimizes them into trajectories that converged in trajectory optimization in all 30 trials, against 10 of 30 for a single LLM call that writes the whole trajectory.

What they do

Some courses cannot be crossed by one quadruped, for example a ledge too high to climb or a path that needs boxes pushed into place. CoTAMP plans for two RAIBO2 quadrupeds that cooperate, for example by one robot serving as a step for the other. LLM planners usually pick from a fixed skill list. Here the LLM invents each motion, and code turns its rough proposals into whole-body trajectories that satisfy the dynamics.

How it works

  • Task planning. An LLM (Codex CLI with gpt-6.1-sol) reads the scene JSON, the robot URDFs and renderings. It splits the task into solo steps (one robot) and coupled steps (both robots in contact), with precedence constraints and fixed robot poses at step boundaries. Code checks structure and geometry (feet supported, no collisions, goals reached) and returns failures with renderings.
  • Motion generation. All steps are generated in parallel. For plain walking the LLM gives body waypoints for a rule-based gait. Otherwise it writes keyframes (torso pose, foot positions and contacts), which code interpolates, repairing collisions or unreachable poses with B-spline optimization. Failed checks go back to the LLM up to twice, then once to the task planner.
  • Integration. Steps are placed on a shared timeline, and a windowed trajectory optimization (Pinocchio, CasADi, IPOPT) enforces rigid-body dynamics, friction cones and robot-robot and robot-box contact forces.

Results

  • All 30 trials on three courses give valid kinematic references, and trajectory optimization converges in every one. Generation takes 13.5-15.3 min and $1.68-2.46 per course.
  • One LLM call writing the full trajectory is kinematically valid in 23/30 trials but converges in only 10 (0 of 6 on Course 1).
  • Solo/coupled decomposition cuts execution time by 25-43% against making every step coupled (70.1 vs 123.3 s on Course 3).
  • Keyframes instead of dense LLM-written trajectories cut generation time by about 38% and cost by about 41% at equal success. Kinematic optimization raises synthesis success from 30/60 to 60/60.

Limitations

Only two robots and three simulated courses; nothing runs on hardware. A plan takes about 15 min to generate, mostly in LLM calls, which is too slow for fast replanning.

Videos

LLM keyframes (left) and the motion after kinematic synthesis (right).
Cooperative transfer: the blue robot moves over the red robot's back.

Figures

From Figure 1: A trajectory generated on Course 1. The blue robot climbs onto the upper platform from the red robot's...
From Figure 1: A trajectory generated on Course 1. The blue robot climbs onto the upper platform from the red robot's back, and both robots then reach their goals.
From Figure 3: Overview. LLM modules (violet) plan and propose motions; code-based modules (orange) validate, synthes...
From Figure 3: Overview. LLM modules (violet) plan and propose motions; code-based modules (orange) validate, synthesize and compose them. Steps are generated in parallel, and failures go back to the LLM for correction or replanning.
From Figure 6: Execution time with the solo/coupled decomposition (Ours) and with every step coupled (All-coupled), m...
From Figure 6: Execution time with the solo/coupled decomposition (Ours) and with every step coupled (All-coupled), mean and standard deviation over the successful trials of 10 per course.
Abstract

Some environments cannot be traversed by a single quadruped robot, for example a ledge that one robot can climb only from its partner's back or a gap that must be bridged with boxes. Solving them requires cooperative task and motion planning (TAMP). Previous works are limited to the motions of a single robot or only select actions from a predefined set of skills. We propose a framework with two parts: task planning that invents motions not defined in advance, and motion generation that realizes the invented motions. Both parts consist of large language model (LLM)-based modules and code-based modules. Task planning divides the trajectory of the whole task into steps and fixes the robot poses at the step boundaries. Motion generation produces keyframes that describe the motion of each step and turns them into a continuous trajectory through kinematic synthesis. The code-based modules check every plan and motion and return failures to the LLM-based modules for correction. The whole trajectory is then refined by trajectory optimization to satisfy the dynamics. On three simulated courses with two RAIBO2 robot models, our framework produced kinematically valid references in all 30 trials, all of which converged in trajectory optimization. Compared with several baselines, our framework showed advantages in success rate, dynamic feasibility, execution time, and generation time and cost. Project page: https://woojin8098.github.io/CoTAMP/

Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.