NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CppFlow: Generative Inverse Kinematics for Efficient and Robust Cartesian Path Planning

Jeremy Morgan, David Millard, Gaurav S. Sukhatme

TL;DR

CppFlow is a novel path planner that combines generative AI with classical optimization to solve complex robot motion problems up to 129x faster than current state-of-the-art methods. By using a learned model to generate high-quality initial guesses, it achieves a 100% success rate on difficult benchmarks where traditional planners often get stuck.

What Problem Does This Paper Address?

Imagine trying to paint a car with a robotic arm. You know exactly where the brush needs to go (the Cartesian path), but the robot has seven or more joints. Because the robot is "redundant," there are an infinite number of ways its joints can be positioned to reach any single point on that path.

The challenge, known as Cartesian Path Planning (CPP), is to find a sequence of joint movements that is smooth, stays within joint limits, and—most importantly—doesn't crash into the car or itself. Traditional methods usually start with a random guess and use heavy math (optimization) to "wiggle" the joints into a valid path. However, if the starting guess is bad, these optimizers often get stuck in "local optima"—mathematical dead ends where they can't find a solution even if one exists.

Methods

The authors introduce CppFlow, a hybrid system that bridges the gap between fast, approximate generative AI and precise, guaranteed classical optimization. The system works in three main stages:

  1. Candidate Generation (IKFlow): Instead of a random guess, CppFlow uses a pre-trained generative model called IKFlow. This model can instantly produce thousands of diverse, approximate joint configurations for the entire path on a GPU.
  2. Global Discrete Search: The system treats these thousands of candidates as nodes in a graph. It uses dynamic programming to "interweave" these candidates, finding the single smoothest sequence that avoids collisions.
  3. Refinement (Levenberg-Marquardt Optimization): Finally, it uses a powerful optimization algorithm (LM) to polish this "rough draft" into a mathematically precise trajectory that perfectly tracks the target path while maintaining safety.
The CppFlow system pipeline: from generative IK to refined trajectory.

By using AI to provide a "gut instinct" for where the arm should be, the final optimizer starts very close to the finish line, making it incredibly fast and robust.

Datasets

The researchers evaluated CppFlow against two major competitors, Torm and Stampede, using 13 different test problems:

  • Standard Baselines: Five existing tests using a "Fetch" robot arm performing tasks like drawing circles or writing "hello."
  • New Difficult Benchmarks: The authors introduced more complex scenarios, including a "Fetch.Full" robot with an extra sliding joint (8 Degrees of Freedom) and a "Franka Panda" arm.
  • The "Flappy Bird" Challenge: A particularly tough environment where the robot must navigate a narrow gap between two vertical obstacles.
Visualizations of the difficult benchmark problems, including the 'flappy-bird' corridor.

Key Insights and Ideas

  • Generative AI as a Seed: The "aha moment" is realizing that generative models don't need to be perfect; they just need to be diverse. By generating many approximate solutions, CppFlow ensures that at least one of them will likely be in the right "basin of attraction" for the optimizer.
  • Interweaving Trajectories: Rather than just picking one of the $K$ generated paths, the discrete search allows the robot to "hop" between different generated configurations at each timestep. This creates a hybrid path that is often much better than any single path the AI generated on its own.
  • GPU-Accelerated Precision: By implementing robot kinematics and collision checking directly in PyTorch, the authors can run the final optimization steps in parallel on the GPU, leading to massive speed gains.

Key Results

CppFlow outperformed existing methods across almost every metric:

  • Speed: It found valid solutions up to 129x faster than Torm. On average, it was about 20x faster.
  • Success Rate: CppFlow achieved a 100% success rate on all 13 problems within 50 seconds. In contrast, Torm failed to find solutions for several of the more difficult tasks.
  • Efficiency: Even in the first 2.5 seconds of planning, CppFlow had already succeeded 96.7% of the time.
Trajectory length convergence: CppFlow (green) consistently finds valid solutions (the start of the line) much earlier than Torm (blue).

Limitations and Future Work

While highly effective, CppFlow currently requires a pre-trained IKFlow model for each specific robot design. If the robot's physical structure changes, the model needs to be retrained.

The authors also note that this work focuses on kinematics (geometry and motion). Future versions could incorporate kinodynamics, which would account for the actual forces, torques, and momentum of the robot, making it even more applicable to high-speed industrial tasks.

Summary updated

BibTeX
@inproceedings{morgan2024cppflow,
  author = {Jeremy Morgan and David Millard and Gaurav S. Sukhatme},
  title = {{CppFlow: Generative Inverse Kinematics for Efficient and Robust Cartesian Path Planning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10611724},
}
Figure