pantor/ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.

What it solves

Robots and machines often need to move from one state to another smoothly and quickly, while respecting physical limits like maximum speed, acceleration, and jerk (the rate of change of acceleration). Traditional motion planning can be slow or done offline. Ruckig generates these trajectories on the fly, so a system can react instantly when a sensor changes the desired target.

How it works

You provide Ruckig with the current position, velocity, and acceleration of each joint, a target state with the same three values, and kinematic constraints (e.g., max velocity, max acceleration, max jerk). It then calculates a time-optimal trajectory that respects those limits. The library runs in a loop: each control cycle (for example every millisecond) it updates the trajectory and outputs the next state. It also supports intermediate waypoints so a robot can pass through specific positions on the way to the goal. The algorithm is purely mathematical and has no external dependencies.

Who it's for

Engineers and developers working on robots, CNC machines, laser scanners, and other automated equipment that need smooth, real-time motion control. The C++ library is also available as a Python module, and it is used in several well-known open-source projects like MoveIt 2 and CoppeliaSim.

Highlights

  • No dependencies (except for testing) – easy to integrate.
  • Generates time-optimal trajectories for state-to-state motions.
  • Supports intermediate waypoints, including an online filtering method.
  • Provides a real-time control loop with input validation and error reporting.
  • Includes a tracking interface (Pro version) to follow external signals closely.
  • Extensively tested: over 5 billion random trajectories validated.

Related

  • Project
  • Project
  • Project
  • Project
  • Project