Convex-Objective Path Parameterization

Optimal motion,
solved in milliseconds.

The professional engine for time- and energy-optimal trajectory parameterization — with third-order jerk limits, general convex objectives, and real-time speed.

$pip install copp-py
Available in
31×

faster on 3rd-order problems than a traditional LP — 10.6 ms vs 327 ms 7-DOF · 1000 intervals · 100 random spline paths

10.6msper 1000-interval, 7-DOF solve
3rd-orderjerk limits on every axis
∞objectivesany convex cost
How it works

Three inputs, one solver, a ready-to-track trajectory.

Path, constraints, and objective feed into the COPP solver core. It returns the timed trajectory — positions, velocities, accelerations and jerks for every axis, sampled at a fixed period such as 1 ms or at any instants you choose, ready for your controller.

INPUT · PATHGeometric path q(s)\boldsymbol{q}(s)
INPUT · CONSTRAINTSvel · acc · torque · jerk
INPUT · OBJECTIVEmin time / convex JJ
↓
COPP SOLVERRDDP · RA · SOCP
↓
OUTPUT · TIMED TRAJECTORY q(t)\boldsymbol{q}(t), q˙(t)\dot{\boldsymbol{q}}(t), q¨(t)\ddot{\boldsymbol{q}}(t), q...(t)\dddot{\boldsymbol{q}}(t) every 1 ms, or at any instants you choose
q(s(t))\boldsymbol{q}(s(t))
Time-optimal

Rides the limits

Second order bounds each axis's acceleration; third order bounds its jerk too, so acceleration ramps instead of jumping.

optimal (s,s˙2,s¨)(s, \dot{s}^2, \ddot{s})limit curves¨\ddot{s} the axes allowaxis acceleration
3rd-order

Third-order constraints

Jerk limits on every axis keep acceleration continuous — smoother motion, less wear, and less excitation of structural modes.

Convex

Any convex objective

Beyond time-optimal: minimize thermal energy, torque variation, or any convex cost — one engine, many goals. Second-order problems solve to the global optimum, third-order ones to a KKT point.

Bindings

Five languages

A native Rust core, with C, C++, Python and MATLAB bindings.

Guarantees

Hard guarantees

  • Strict constraint satisfaction
  • Exactly on the original path
  • No reverse motion
  • Certifiable feasibility
  • Clean boundary conditions
  • Industrial-grade numerical stability
Problem classes

Second or third order.
Any convex objective. One library.

Second-order models bound velocity, acceleration and torque; third-order models add jerk. TOPP minimizes traversal time; COPP optimizes any convex objective.

Time-optimalJ=tfJ = t_\text{f}
Convex objectiveany convex JJ
2nd-ordervelocity · acceleration · torque
TOPP2 2nd-order · time
TOPP2-RAOSSReachability analysis; empirically near-optimal.
COPP2-RDDPPROWith time as the objective: globally optimal.
COPP2 2nd-order · convex
COPP2-SOCPOSSConic program via Clarabel; globally optimal.
COPP2-RDDPPROGlobally optimal, substantially faster than SOCP.
3rd-order+ jerk
TOPP3 3rd-order · time
TOPP3-SOCPOSSConic formulation with KKT-quality solutions.
TOPP3-LPOSSLinear-objective approximation of TOPP3-SOCP.
TOPP3-RAPROUltra-fast reachability analysis; empirically near-optimal.
COPP3-RDDPPROWith time as the objective: KKT quality, robust on very long paths.
COPP3 3rd-order · convex
COPP3-SOCPOSSKKT-quality solutions at a higher runtime.
COPP3-RDDPPROKKT quality, much faster; robust on very long paths.
Demos

Demos across different setups.

Every demo minimizes time plus a smoothness term, under third-order constraints on every axis.

drag to orbit
slow fast
Feed override100%
5075100125150
Accel. override100%
5075100125150
phase space · (s,s˙2,s¨)(s, \dot{s}^2, \ddot{s})
phase plane · (s,s˙2)(s, \dot{s}^2)
Axis kinematics — every axis against its own limit, so ±1 is the limit
    Velocity q˙j/q˙j,max⁡\dot{q}_j/\dot{q}_{j,\max}
    Acceleration q¨j/q¨j,max⁡\ddot{q}_j/\ddot{q}_{j,\max}
    Jerk q...j/q...j,max⁡\dddot{q}_j/\dddot{q}_{j,\max}
    Pro vs. Community

    An order of magnitude faster, at the same optimum.

    100 random 7-DOF spline paths, 1000 intervals each. Like-for-like: 2nd-order vs 2nd-order, 3rd-order vs 3rd-order.

    CapabilityCommunityPro
    Why COPP

    The details that make a planner deployable.

    Strict constraint satisfaction

    Hard limits, never relaxed into soft penalties.

    Stays on the path

    q(s(t))\boldsymbol{q}(s(t)) is exactly the input q(s)\boldsymbol{q}(s) — no extra contour error from the timing stage.

    No reverse motion

    s˙>0\dot{s} > 0 strictly almost everywhere — no backtracking, no zero-velocity singularities.

    Certifiable feasibility

    Feasibility guarantees for long-path online planning.

    Clean boundaries

    No more of the very slow start-up that conventional methods suffer at stationary boundaries (s˙=0\dot{s} = 0, s¨=0\ddot{s} = 0).

    Industrial-grade numerical stability

    Robust on long paths and fine discretizations, as industrial machines demand.

    Quick start

    From path to trajectory in a few lines.

    1. PathAny smooth q(s)\boldsymbol{q}(s): an analytic expression, waypoints, or your own evaluator.
    2. ConstraintsAxis velocity, acceleration, jerk and torque limits — asymmetric and station-dependent.
    3. SolvePick the solver for your problem class: RA, SOCP or LP — or RDDP in Pro.
    4. Time lawConvert a(s)a(s) to t(s)t(s) and s(t)s(t), then sample q(s(t))\boldsymbol{q}(s(t)) for your controller.
    
            Full example on GitHub ↗
          
    Research

    Industrial-grade algorithms, built on frontier theory.

    If you use COPP in your work, cite the paper that matches it.

    Other papers & research foundation IEEE TAC ×3Automaticaetc. All papers →
    Get started

    Two ways in.

    COMMUNITY · MIT

    Start with open source

    TOPP2-RA, COPP2-SOCP, TOPP3-LP/SOCP and COPP3-SOCP solvers, usable from Rust, C, C++, Python and MATLAB. Read the docs, run the examples, benchmark it yourself.

    github.com/TOPP-THU/copp ↗
    PRO · COMMERCIAL

    Talk to us about Pro

    RDDP/RA solvers, long-horizon stability, commercial licensing and integration support for production robotics and CNC. Let's discuss your application.

    Request Pro access
    Contact

    hello@copp.pro

    Pro licensing, commercial collaboration, technical consulting, or general questions — write to us.