Algorithm Search⌘K

Algorithmintro

Cubic polynomial trajectory

Also called third-order polynomial time scaling.

Fits a cubic in time to given start and end positions and velocities, the simplest smooth point-to-point motion.

Time
Θ(n m) worst
Space
Θ(n m) extra
Where
m = the number of segments between via points; n = the number of joints
Properties
deterministicexactofflinenot randomized
Origin
Chun Shin Lin, Po Rong Chang, J. Y. S. Luh, 1983

A cubic polynomial trajectory moves one coordinate, such as a robot joint angle or one axis of a machine, from a start position to an end position in a given time TT along a polynomial of degree 3 in time. A cubic has four coefficients, and the four conditions are the position and the velocity at both ends. So the start and the end velocities can be set, for example to zero for a move from rest to rest, and the velocity is continuous when several moves are joined. The acceleration is not controlled: it is generally not zero at the ends, so it jumps when the motion starts and stops. The quintic polynomial trajectory adds the two end accelerations for this reason. The cubic is also the time scaling s(t)s(t) that is most often used to run along a fixed path, and among all motions with the same four end conditions it is the one with the least integral of squared acceleration.

In plain words

Suppose a joint is at 0 degrees and must be at 90 degrees two seconds later, and it must be at rest at both moments. A straight line in time would start and stop with a sudden jump in speed, which no motor can do. A cubic curve starts flat, rises, and ends flat. Its slope, the speed, starts at zero, grows to a peak in the middle, and falls to zero at the end. Four numbers describe the curve, and there are four wishes: where to start, how fast to start, where to end and how fast to end. So there is exactly one cubic that meets all four, and a short formula gives it. The price is that the push from the motor jumps from zero to a fixed value at the start, because the method has no number left to control it.

The problem

Input: a start position q0q_0 and velocity v0v_0, an end position q1q_1 and velocity v1v_1, and a duration T>0T > 0. Output: the coefficients a0,…,a3a_0, \dots, a_3 of

q(t)=a0+a1t+a2t2+a3t3,0≤t≤T,q(t) = a_0 + a_1 t + a_2 t^2 + a_3 t^3, \qquad 0 \le t \le T,

with q(0)=q0q(0) = q_0, q′(0)=v0q'(0) = v_0, q(T)=q1q(T) = q_1 and q′(T)=v1q'(T) = v_1. For an arm with nn joints, each joint gets its own cubic with the same TT. For a move along a fixed path, the same formula with q0=0q_0 = 0, q1=1q_1 = 1 and zero end velocities gives a time scaling s(t)s(t), and the motion is θ(t)=θstart+s(t)(θend−θstart)\theta(t) = \theta_{\text{start}} + s(t)(\theta_{\text{end}} - \theta_{\text{start}}) (Lynch and Park, Section 9.2.2).

The algorithm

Let h=q1−q0h = q_1 - q_0.

  1. CUBIC(q0, v0, q1, v1, T) ▷ T > 0, h = q1 - q0
  2. 1a0 ← q0
  3. 2a1 ← v0
  4. 3a2 ← (3h - (2 v0 + v1) T) / T²
  5. 4a3 ← (-2h + (v0 + v1) T) / T³
  6. 5return (a0, a1, a2, a3)
  7. CUBIC-EVAL(a, t)
  8. 6q ← a0 + t (a1 + t (a2 + t a3)) ▷ Horner's rule
  9. 7q' ← a1 + t (2 a2 + 3 a3 t)
  10. 8q'' ← 2 a2 + 6 a3 t
  11. 9return (q, q', q'')

Lines L1 and L2 read the start conditions off the polynomial at t=0t = 0. Lines L3 and L4 solve the two remaining equations a2T2+a3T3=h−v0Ta_2 T^2 + a_3 T^3 = h - v_0 T and 2a2T+3a3T2=v1−v02a_2 T + 3a_3 T^2 = v_1 - v_0, a 2×22 \times 2 linear system. Lines L6 to L8 evaluate the position, the velocity and the acceleration.

For via points q0,…,qmq_0, \dots, q_m at times t0<⋯<tmt_0 < \dots < t_m with chosen velocities v0,…,vmv_0, \dots, v_m, call CUBIC once per interval with T=ti+1−tiT = t_{i+1} - t_i, in local time t−tit - t_i (Lynch and Park, Section 9.3). The velocities at the inner via points are a design choice: a common rule of thumb takes the mean of the slopes of the two neighboring intervals, or zero where the slope changes sign.

Example

The standard time scaling. With q0=0q_0 = 0, q1=1q_1 = 1, v0=v1=0v_0 = v_1 = 0 and T=1T = 1, lines L3 and L4 give a2=3a_2 = 3 and a3=−2a_3 = -2:

s(t)=3t2−2t3,s′(t)=6t−6t2,s′′(t)=6−12t.s(t) = 3t^2 - 2t^3, \qquad s'(t) = 6t - 6t^2, \qquad s''(t) = 6 - 12t.

The peak velocity is s′(1/2)=1.5s'(1/2) = 1.5, at the middle, and the acceleration is 66 at t=0t = 0 and −6-6 at t=1t = 1. For a distance DD and a time TT, these become 1.5D/T1.5 D/T and 6D/T26 D/T^2. A joint that turns D=π/2D = \pi/2 rad in T=2T = 2 s reaches 1.181.18 rad/s at t=1t = 1 s, and needs 2.362.36 rad/s² at the start and the end.

Nonzero start velocity. Take q0=0q_0 = 0 m, v0=1v_0 = 1 m/s, q1=2q_1 = 2 m, v1=0v_1 = 0 and T=2T = 2 s, so h=2h = 2.

  • L3: a2=(6−(2+0)⋅2)/4=0.5a_2 = (6 - (2 + 0) \cdot 2)/4 = 0.5.
  • L4: a3=(−4+(1+0)⋅2)/8=−0.25a_3 = (-4 + (1 + 0) \cdot 2)/8 = -0.25.

So q(t)=t+0.5t2−0.25t3q(t) = t + 0.5t^2 - 0.25t^3. Check: q(2)=2+2−2=2q(2) = 2 + 2 - 2 = 2 and q′(2)=1+2−3=0q'(2) = 1 + 2 - 3 = 0. The velocity q′(t)=1+t−0.75t2q'(t) = 1 + t - 0.75t^2 has its peak 4/34/3 m/s at t=2/3t = 2/3 s, where q=22/27q = 22/27 m. The acceleration q′′(t)=1−1.5tq''(t) = 1 - 1.5t goes from 11 m/s² at the start to −2-2 m/s² at the end.

Via points. Through 0,1,30, 1, 3 m at 0,1,30, 1, 3 s with velocities 0,1,00, 1, 0 m/s, the first cubic is 2t2−t32t^2 - t^3 and the second is 1+t+0.5t2−0.25t31 + t + 0.5t^2 - 0.25t^3 in local time. Both have position 1 and velocity 1 at the via point, but the acceleration jumps there from −2-2 to 11 m/s².

Correctness

Putting t=0t = 0 and t=Tt = T into the polynomial and its derivative and using the formulas of lines L3 and L4 gives back the four end conditions. No other polynomial of degree at most 3 meets them: the difference of two would have double roots at 00 and TT, so it would be divisible by t2(t−T)2t^2 (t - T)^2, of degree 4, and so zero.

The cubic is also optimal for a natural cost. Among all motions xx with the same four end conditions, it minimizes ∫0Tx′′(t)2 dt\int_0^T x''(t)^2\, dt, and it is the only minimizer. If x=q+ηx = q + \eta, two integrations by parts show that the cross term ∫q′′η′′\int q'' \eta'' is zero, because η\eta and η′\eta' vanish at the ends and q′′′′=0q'''' = 0. So the cost of xx is the cost of qq plus the cost of η\eta. The proof gives every step. For the rest-to-rest move the minimum is 12D2/T312 D^2 / T^3.

Proof: The cubic meets the four end conditions, is the only cubic that does, and minimizes the integral of squared accelerationfull

We use the notation of the page. The input is q0,v0,q1,v1q_0, v_0, q_1, v_1 and a duration T>0T > 0, and h=q1−q0h = q_1 - q_0. Lines L1 to L4 set

a0=q0,a1=v0,a2=3h−(2v0+v1)TT2,a3=−2h+(v0+v1)TT3,a_0 = q_0, \quad a_1 = v_0, \quad a_2 = \frac{3h - (2v_0 + v_1)T}{T^2}, \quad a_3 = \frac{-2h + (v_0 + v_1)T}{T^3},

and the trajectory is q(t)=a0+a1t+a2t2+a3t3q(t) = a_0 + a_1 t + a_2 t^2 + a_3 t^3 on [0,T][0, T]. The proof is in exact arithmetic.

The end conditions hold

Lemma 1. q(0)=q0q(0) = q_0, q′(0)=v0q'(0) = v_0, q(T)=q1q(T) = q_1 and q′(T)=v1q'(T) = v_1.

Proof. q(0)=a0=q0q(0) = a_0 = q_0 and q′(0)=a1=v0q'(0) = a_1 = v_0 at once. Next,

a2T2+a3T3=3h−(2v0+v1)T−2h+(v0+v1)T=h−v0T,a_2 T^2 + a_3 T^3 = 3h - (2v_0 + v_1)T - 2h + (v_0 + v_1)T = h - v_0 T,

so q(T)=q0+v0T+h−v0T=q0+h=q1q(T) = q_0 + v_0 T + h - v_0 T = q_0 + h = q_1. Also

2a2T+3a3T2=6h−2(2v0+v1)T−6h+3(v0+v1)TT=v1−v0,2a_2 T + 3a_3 T^2 = \frac{6h - 2(2v_0 + v_1)T - 6h + 3(v_0 + v_1)T}{T} = v_1 - v_0,

so q′(T)=v0+(v1−v0)=v1q'(T) = v_0 + (v_1 - v_0) = v_1. □\square

Uniqueness

Lemma 2. No other polynomial of degree at most 3 meets the four conditions.

Proof. Let pp be the difference of two such polynomials. Then pp has degree at most 3 and p(0)=p′(0)=p(T)=p′(T)=0p(0) = p'(0) = p(T) = p'(T) = 0. So 00 and TT are double roots, and t2(t−T)2t^2 (t - T)^2 divides pp. This product has degree 4, so p=0p = 0. □\square

So the four conditions form a linear system in (a0,a1,a2,a3)(a_0, a_1, a_2, a_3) with a nonsingular matrix when T>0T > 0, and Lemma 1 gives its solution.

Minimum squared acceleration

Theorem 1. Among all functions xx on [0,T][0, T] with a square integrable second derivative and the same four end conditions, the cubic qq has the smallest value of J(x)=∫0Tx′′(t)2 dtJ(x) = \int_0^T x''(t)^2\, dt, and it is the only minimizer.

Proof. Write x=q+ηx = q + \eta. Then η(0)=η′(0)=η(T)=η′(T)=0\eta(0) = \eta'(0) = \eta(T) = \eta'(T) = 0, and

J(x)=J(q)+2∫0Tq′′η′′ dt+J(η).J(x) = J(q) + 2\int_0^T q'' \eta''\, dt + J(\eta).

Integrate the middle term by parts twice:

∫0Tq′′η′′ dt=[q′′η′]0T−[q′′′η]0T+∫0Tq′′′′η dt.\int_0^T q'' \eta''\, dt = \big[q'' \eta'\big]_0^T - \big[q''' \eta\big]_0^T + \int_0^T q'''' \eta\, dt.

The two brackets are zero because η′\eta' and η\eta vanish at both ends, and q′′′′=0q'''' = 0 because qq is a cubic. So J(x)=J(q)+J(η)≥J(q)J(x) = J(q) + J(\eta) \ge J(q). Equality needs η′′=0\eta'' = 0 almost everywhere, so η\eta is linear, and a linear function with η(0)=η(T)=0\eta(0) = \eta(T) = 0 is zero. □\square

Via points

Theorem 2. For via points q0,…,qnq_0, \dots, q_n at times t0<⋯<tnt_0 < \dots < t_n with chosen velocities v0,…,vnv_0, \dots, v_n, the piecewise cubic built by calling the method on each interval [ti,ti+1][t_i, t_{i+1}] is continuous with a continuous first derivative.

Proof. By Lemma 1, the piece on [ti−1,ti][t_{i-1}, t_i] ends with position qiq_i and velocity viv_i, and the piece on [ti,ti+1][t_i, t_{i+1}] starts with the same position and velocity. □\square

The acceleration is not continuous at the via points in general. It is continuous only for the special choice of the inner velocities that a cubic spline makes.

Complexity

In the real RAM, one call of CUBIC costs a fixed number of operations, about 15, so Θ(1)\Theta(1) time and space. One evaluation costs about 10 multiplications. An arm with nn joints and mm segments needs Θ(nm)\Theta(nm) time and stores 4nm4nm coefficients. This is the cheapest smooth trajectory, which is why controllers that replan every cycle often use it.

Properties

  • Velocity continuous, acceleration not. Joined cubics are C1C^1 at via points. The acceleration jumps there, and it jumps from 0 at the start and the end of a rest-to-rest move.
  • Minimum squared acceleration. A theorem: the cubic is the unique minimizer of ∫x′′2\int x''^2 for its four end conditions, so it uses the least "effort" in this sense.
  • Symmetric rest-to-rest profile. For v0=v1=0v_0 = v_1 = 0, s(t)=3τ2−2τ3s(t) = 3\tau^2 - 2\tau^3 with τ=t/T\tau = t/T, and the path rises without overshoot, since s′≥0s' \ge 0.
  • Linear in the data. The coefficients are linear in (q0,v0,q1,v1)(q_0, v_0, q_1, v_1) for a fixed TT. Scaling the time by cc divides the velocity by cc and the acceleration by c2c^2.
  • Overshoot with large end velocities. If ∣v0∣|v_0| or ∣v1∣|v_1| is large compared with h/Th/T, the cubic can leave the interval between q0q_0 and q1q_1.

Variants and improvements

  • Quintic. Add the end accelerations as two more conditions: the quintic polynomial trajectory. The rest-to-rest quintic is the minimum-jerk trajectory.
  • Cubic splines. If only the via positions are given, choose the inner velocities so that the acceleration is also continuous. This gives a tridiagonal system, the cubic spline; Lin, Chang and Luh used it for joint trajectories. With the velocities given, the method on this page is the cubic Hermite spline.
  • Linear segments with blends. For long moves, a constant velocity middle part with short blends is faster under the same limits: the trapezoidal velocity profile.
  • Choosing T. For a rest-to-rest move under the limits ∣q′∣≤V|q'| \le V and ∣q′′∣≤A|q''| \le A, the smallest feasible time is T=max⁡(1.5D/V,6D/A)T = \max(1.5 D/V, \sqrt{6 D/A}), because the peaks are 1.5D/T1.5 D/T and 6D/T26 D/T^2.

When to use it

Use a cubic for short point-to-point moves of a joint where the velocities at the ends matter and the acceleration jump is acceptable, for example in teaching, in simulation, and in simple controllers. Use it as the time scaling s(t)s(t) of a straight-line move in task space. If the robot is stiff or the load is heavy, the acceleration jump excites vibration; use a quintic or a double-S profile. If the move must be as fast as possible under velocity and acceleration limits, use a trapezoidal profile.

Pitfalls

  • Jerk is infinite at the start and the end. The acceleration jumps from 0 to 6D/T26D/T^2. Do not use a cubic where a smooth start matters.
  • Different T per joint. If each joint gets its own duration, the joints do not finish together and the end-effector path is not straight. Use one TT for all joints, set by the slowest one.
  • T too small. The formulas work for any T>0T > 0, but the peaks grow as 1/T1/T and 1/T21/T^2. Check the limits after you choose TT.
  • Wrong via velocities. Choosing the inner velocities badly makes the motion overshoot between via points.
  • Local time. Each segment is written in its own local time t−tit - t_i. Mixing local and global time gives wrong values at every segment but the first.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

cubic_polynomial_trajectory.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/cubic-polynomial-trajectory/. The authors are listed in prov/HEFVQT.jsonl.
"""Cubic polynomial trajectory of one joint.

cubic_coeffs(q0, v0, q1, v1, T) returns (a0, a1, a2, a3) of
q(t) = a0 + a1 t + a2 t^2 + a3 t^3 on [0, T], with q(0) = q0, q'(0) = v0,
q(T) = q1 and q'(T) = v1. The arithmetic is exact when the inputs are
fractions.Fraction values, and it works with float values too.

cubic_via(points, velocities, times) joins one cubic per interval, so
that the trajectory passes through each point with the given velocity.
"""


def cubic_coeffs(q0, v0, q1, v1, T):
    """Coefficients of the cubic that meets the four end conditions."""
    if T <= 0:
        raise ValueError("T must be positive")
    h = q1 - q0
    a0 = q0  # @line L1
    a1 = v0  # @line L2
    a2 = (3 * h - (2 * v0 + v1) * T) / (T * T)  # @line L3
    a3 = (-2 * h + (v0 + v1) * T) / (T * T * T)  # @line L4
    return (a0, a1, a2, a3)  # @line L5


def cubic_eval(a, t):
    """Return (q, q', q'') of the cubic with coefficients a at time t."""
    a0, a1, a2, a3 = a
    q = a0 + t * (a1 + t * (a2 + t * a3))  # @line L6
    dq = a1 + t * (2 * a2 + 3 * a3 * t)  # @line L7
    ddq = 2 * a2 + 6 * a3 * t  # @line L8
    return q, dq, ddq  # @line L9


def cubic_via(points, velocities, times):
    """One cubic per interval [times[k], times[k+1]].

    Returns a list of (t_start, coefficients) in local time t - t_start.
    The velocity at each point is given, so the result has a continuous
    velocity. Its acceleration jumps at the via points in general.
    """
    if not (len(points) == len(velocities) == len(times)) or len(points) < 2:
        raise ValueError("need at least two points, with one velocity and one time each")
    out = []
    for k in range(len(points) - 1):
        T = times[k + 1] - times[k]
        out.append((times[k], cubic_coeffs(points[k], velocities[k], points[k + 1], velocities[k + 1], T)))
    return out


def via_eval(segments, t):
    """Evaluate a via point trajectory from cubic_via at time t."""
    idx = 0
    for k, (t0, _) in enumerate(segments):
        if t >= t0:
            idx = k
    t0, a = segments[idx]
    return cubic_eval(a, t - t0)
test_cubic_polynomial_trajectory.py 121 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/cubic-polynomial-trajectory/. The authors are listed in prov/HEFVQT.jsonl.
"""Tests: exact end conditions, the check values, a second method, and the minimum acceleration property."""

import random
from fractions import Fraction as F

from cubic_polynomial_trajectory import cubic_coeffs, cubic_eval, cubic_via, via_eval


def solve(m, b):
    """Gauss-Jordan elimination in exact arithmetic (the second method)."""
    n = len(m)
    a = [[F(x) for x in m[i]] + [F(b[i])] for i in range(n)]
    for c in range(n):
        p = next(r for r in range(c, n) if a[r][c] != 0)
        a[c], a[p] = a[p], a[c]
        for r in range(n):
            if r != c and a[r][c] != 0:
                f = a[r][c] / a[c][c]
                a[r] = [x - f * y for x, y in zip(a[r], a[c])]
    return [a[i][n] / a[i][i] for i in range(n)]


def poly_mul(p, q):
    out = [F(0)] * (len(p) + len(q) - 1)
    for i, x in enumerate(p):
        for j, y in enumerate(q):
            out[i + j] += x * y
    return out


def poly_der(p):
    return [i * p[i] for i in range(1, len(p))] or [F(0)]


def integral_sq(p, T):
    sq = poly_mul(p, p)
    return sum(c * T ** (i + 1) / (i + 1) for i, c in enumerate(sq))


def test_end_conditions_exact():
    rng = random.Random(1)
    for _ in range(200):
        q0, v0, q1, v1 = (F(rng.randint(-50, 50), rng.randint(1, 9)) for _ in range(4))
        T = F(rng.randint(1, 40), rng.randint(1, 9))
        a = cubic_coeffs(q0, v0, q1, v1, T)
        s, ds, _ = cubic_eval(a, F(0))
        e, de, _ = cubic_eval(a, T)
        assert (s, ds, e, de) == (q0, v0, q1, v1)


def test_check_values():
    a = cubic_coeffs(F(0), F(0), F(1), F(0), F(1))
    assert a == (0, 0, 3, -2)
    assert cubic_eval(a, F(1, 2))[1] == F(3, 2)
    assert cubic_eval(a, F(0))[2] == 6
    assert cubic_eval(a, F(1))[2] == -6
    # The velocity is a parabola, so its maximum on a grid is at t = 1/2.
    grid = [cubic_eval(a, F(k, 1000))[1] for k in range(1001)]
    assert max(grid) == F(3, 2)
    # Scaling: distance D in time T gives peak velocity 1.5 D / T and end acceleration 6 D / T^2.
    a = cubic_coeffs(F(1), F(0), F(4), F(0), F(2))
    assert cubic_eval(a, F(1))[1] == F(3, 2) * 3 / 2
    assert cubic_eval(a, F(0))[2] == 6 * F(3) / 4


def test_against_linear_solve():
    rng = random.Random(2)
    for _ in range(100):
        q0, v0, q1, v1 = (F(rng.randint(-20, 20)) for _ in range(4))
        T = F(rng.randint(1, 10), rng.randint(1, 4))
        m = [[1, 0, 0, 0], [0, 1, 0, 0], [1, T, T * T, T ** 3], [0, 1, 2 * T, 3 * T * T]]
        assert list(cubic_coeffs(q0, v0, q1, v1, T)) == solve(m, [q0, v0, q1, v1])


def test_minimum_squared_acceleration():
    # Any other C^1 path with the same end positions and velocities is q + eta,
    # with eta = t^2 (T - t)^2 r(t). Its cost exceeds the cubic's cost by the cost of eta.
    rng = random.Random(3)
    for _ in range(40):
        T = F(rng.randint(1, 5))
        a = list(cubic_coeffs(F(rng.randint(-5, 5)), F(rng.randint(-5, 5)), F(rng.randint(-5, 5)), F(rng.randint(-5, 5)), T))
        base = integral_sq(poly_der(poly_der(a)), T)
        bump = poly_mul(poly_mul([F(0), F(0), F(1)], poly_mul([T, F(-1)], [T, F(-1)])), [F(rng.randint(-3, 3)) for _ in range(3)])
        if all(c == 0 for c in bump):
            continue
        other = [x + y for x, y in zip(a + [F(0)] * (len(bump) - len(a)), bump)]
        cost = integral_sq(poly_der(poly_der(other)), T)
        assert cost == base + integral_sq(poly_der(poly_der(bump)), T)
        assert cost > base


def test_float_inputs():
    a = cubic_coeffs(0.0, 0.0, 1.0, 0.0, 2.0)
    q, dq, _ = cubic_eval(a, 2.0)
    assert abs(q - 1.0) < 1e-12 and abs(dq) < 1e-12


def test_via_points_continuity():
    pts = [F(0), F(2), F(1), F(3)]
    vel = [F(0), F(1), F(-1, 2), F(0)]
    ts = [F(0), F(1), F(3), F(4)]
    segs = cubic_via(pts, vel, ts)
    for k in range(1, 3):
        left = cubic_eval(segs[k - 1][1], ts[k] - ts[k - 1])
        right = cubic_eval(segs[k][1], F(0))
        assert left[0] == right[0] == pts[k]
        assert left[1] == right[1] == vel[k]
    assert via_eval(segs, F(4))[0] == 3
    assert via_eval(segs, F(0))[0] == 0


def test_bad_input():
    for bad in (0, -1):
        try:
            cubic_coeffs(0, 0, 1, 0, bad)
        except ValueError:
            pass
        else:
            raise AssertionError("T <= 0 must fail")

History

Polynomials in time were the standard way to plan joint trajectories in the first robot controllers, and the textbooks of the 1980s present the cubic for point-to-point moves and via points. Lin, Chang and Luh (1983) built joint trajectories from cubic splines through knots and gave an algorithm that chooses the time intervals between knots to minimize the total travel time under limits on the joint velocities, accelerations and jerks. Lynch and Park (2017) present the cubic as the third-order polynomial time scaling and as the building block of polynomial via point trajectories.

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 9, Section 9.2.2 (time scaling a straight-line path) and Section 9.3 (polynomial via point trajectories)
  2. Luigi Biagiotti and Claudio Melchiorri, Trajectory Planning for Automatic Machines and Robots, Springer, 2008, Chapter 2 (analytic expressions of elementary trajectories, polynomial trajectories)
  3. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, the chapter on trajectory planning (joint space trajectories, point-to-point motion)
  4. Chun-Shin Lin, Po-Rong Chang and J. Y. S. Luh, Formulation and optimization of cubic polynomial joint trajectories for industrial robots, IEEE Transactions on Automatic Control 28(12), 1983, 1066-1074, the whole paper (cubic splines through joint knots, and the choice of the knot times)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example