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

Woojin Kim, Jemin HwangboarXiv 2026

TL;DR

How do you get two robot dogs across an obstacle course that neither can beat alone? CoTAMP pairs the creative, high-level reasoning of Large Language Models (LLMs) with rigorous, physics-checking code, allowing quadruped robots to invent brand-new cooperative maneuvers on the fly—like using a partner’s back as a literal stepping stone. By letting LLMs sketch out sparse "keyframes" while classical optimization handles the dense physics, the system reliably generates complex, multi-robot parkour without relying on a pre-programmed library of skills.

Fig. 1. A trajectory generated by our framework on Course 1: the blue robot climbs onto the upper platform from the red robot’s back, and both robots then reach their goals.

What Problem Does This Paper Address?

In robotics, figuring out what steps to take (like pushing a box) and how to physically move joints without falling over is known as Task and Motion Planning (TAMP). While TAMP works well for single robots, the real world often throws up obstacles—a ledge too high to reach, or a wide chasm—that require teamwork.

Recently, researchers have plugged LLMs into TAMP to coordinate robots using plain descriptions of a scene. However, these approaches treat the LLM like a kid ordering off a fixed menu: it can only string together pre-trained skills like GoTo, Sit, or Stand. If an obstacle demands an unscripted maneuver, the planner hits a wall. On the flip side, asking an LLM to directly write out raw joint trajectories from scratch fails miserably when two robots physically touch—such as one climbing onto another whose back shifts under the weight—because their balance and contact forces are tightly coupled.

Methods

CoTAMP solves this by dividing the labor between what LLMs do best (common-sense spatial reasoning) and what traditional code does best (strict geometry and physics). The pipeline unfolds in three hierarchical stages:

Fig. 3. Overview of our framework. LLM modules (violet) plan and propose motions; code-based modules (orange) validate, synthesize, and compose them. Steps are generated in parallel, and failures are returned to the LLM for correction or replanning.
  1. Task Planning (Novel): Given an environment file, robot models, and rendered images, an LLM invents a sequence of steps without any predefined skill set. Crucially, it labels each step as either solo (independent movement) or coupled (physical interaction between robots) and locks in exact boundary poses where each step starts and ends. Code modules check these boundaries for collisions and foot support, sending visual renders of failures back to the LLM to revise.
  2. Parallel Motion Generation (Novel): Because boundary poses are fixed, every step in the plan can be generated simultaneously. For simple flat walking, the LLM outputs basic waypoints. For tricky maneuvers, instead of writing thousands of trajectory points, the LLM outputs sparse keyframes—snapshots where all four feet are planted. Code modules then stitch keyframes together using mathematical curves, inverse kinematics, and local B-spline optimization to dodge grazed edges or colliding knees. Dense 10 ms checks catch errors and prompt the LLM to adjust keyframes (or replan entirely).
  3. Trajectory Integration (Standard): Independent solo steps are packed back-to-back on a shared timeline so nobody waits unnecessarily. Finally, standard Trajectory Optimization (TO) (via Pinocchio, CasADi, and IPOPT) refines the whole-body motion to obey rigid-body dynamics, torque limits, and reciprocal contact forces.

Datasets

Not discussed in the paper in terms of training datasets (the approach uses zero-shot LLM reasoning via gpt-6.1-sol without training). For evaluation, the authors introduce three custom simulated obstacle courses featuring two 12-joint RAIBO2 quadrupeds (blue and red) and sliding rail-mounted boxes:

The three simulated cooperative obstacle courses.
  • Course 1: Climbing onto a high ledge off a partner's back.
  • Course 2: Crossing a gap by walking over a partner's back.
  • Course 3: Pushing sliding boxes to free a trapped teammate and build a bridge.

Key Insights and Ideas

  • Keyframes beat dense trajectories: Asking an LLM to specify every 10 ms of a robot's movement burns tokens and time. Having it output only grounded contact states—leaving smooth interpolation and local collision-fixing to fast B-spline math—achieves the exact same success rate at nearly half the cost and time.
  • Kinematic validity $\neq$ physical reality: Just because a robot's limbs don't clip through walls doesn't mean gravity won't humble it. A single-call LLM baseline ("Barebone") produced plenty of collision-free paths that crashed during physics optimization because the LLM hallucinated impossible mid-air jumps.
  • Decoupling saves serious time: Explicitly separating solo and coupled motions allows independent tasks (like pushing separate boxes) to run concurrently, preventing the faster robot from awkwardly standing around at every step boundary.

Key Results

Across 10 trials from scratch on each of the 3 courses:

  • 100% Success Rate: CoTAMP generated kinematically valid trajectories in 30/30 trials, and all 30 converged into dynamically feasible motions during Trajectory Optimization. By contrast, the single-call Barebone LLM baseline converged in 0/6 and 2/7 valid trials on Courses 1 and 2, where physical robot-on-robot support was required.
  • Faster Execution: Separating solo and coupled steps cut total robot execution time by 25%, 26%, and 43% across Courses 1–3 compared to an all-coupled baseline (e.g., dropping Course 3 from 123.3 s down to 70.1 s), while cutting generation time by 19–42%.
  • Cheaper & Faster Generation: Compared to generating dense trajectories with an LLM, keyframes reduced generation time by ~38% and API token costs by ~41% overall (and up to 57% cheaper on complex coupled climbs), averaging $1.68–$2.46 per course.
  • Local Optimization Matters: Adding local B-spline kinematic optimization boosted step synthesis success from 30/60 to 60/60, rescuing 0/10 failure rates on steep climbs.

Limitations and Future Work

CoTAMP isn't ready for split-second emergencies just yet: generating a full kinematic reference takes 13.5 to 15.3 minutes per course (mostly waiting on LLM calls), ruling out fast real-time replanning. Additionally, the current setup only coordinates pairs of robots and has only been tested in three simulated environments with 1-DoF sliding boxes. Future work aims to scale up to larger robot teams, slash LLM generation latency, and test these cooperative maneuvers on real hardware.

Summary updated

BibTeX
@misc{kim2026cotamp,
  author = {Woojin Kim and Jemin Hwangbo},
  title = {{CoTAMP: Cooperative Task and Motion Planning for Quadruped Robots with Large Language Models}},
  year = {2026},
  eprint = {2611.33911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33911},
}
Figure