Simple-Robotics/aligator

A versatile and efficient C++ library for real-time constrained trajectory optimization

What it solves

Aligator solves the problem of trajectory optimization for robots: figuring out a sequence of states and control inputs that move a robot from one situation to another while respecting constraints (like joint limits, obstacles, or physics). It's used for motion generation and planning, estimating optimal states, and running model-predictive control on complex systems — the kind of computation that lets a robot decide, in real time, how to move next.

How it works

Aligator is a C++ library that lets you build an optimal-control problem node by node — you describe the robot's dynamics and goals step by step — and then hands that problem to an efficient solver. It implements two main algorithms:

  • ProxDDP (Proximal Differential Dynamic Programming): a solver that handles constraints by adding a "proximal" penalty term, detailed in a published paper.
  • FeasibleDDP (Feasible Differential Dynamic Programming): a variant that keeps solutions feasible throughout the optimization.

It also provides routines for factorizing the linear problems that arise in numerical optimal control, supports the Pinocchio rigid-body dynamics library (with analytical derivatives), and offers an interface to the Crocoddyl trajectory optimization library as an alternative frontend. A Python API is available for prototyping formulations or even for deployment, and the library includes parallel and CPU optimizations for performance.

Who it's for

Robotics researchers and engineers who need to generate motion plans, run model-predictive control on complex robots, or do optimal estimation. It's aimed at people comfortable working in C++ or Python, and it's built to integrate with the broader robotics ecosystem (Pinocchio, Crocoddyl). The README also explicitly asks academic users to cite the project's papers and software in their publications.

Highlights

  • Implements two published, efficient algorithms for constrained trajectory optimization: ProxDDP and FeasibleDDP
  • Node-per-node modelling interface for optimal control problems
  • Native support for the Pinocchio rigid-body dynamics library, including analytical derivatives
  • Optional interface to the Crocoddyl trajectory optimization library as an alternative frontend
  • Python API for prototyping and deployment, alongside the core C++ library
  • Parallel and CPU optimizations for faster solving
  • Installable via Conda, built from source with Pixi or CMake, with a separate benchmarking repository (aligator-bench) comparing it against other solvers

Related

  • Project
  • Project
  • Project
  • Project
  • Project