← All practice sets

Practice · Unit 6 Trajectory Planning

Trajectory planning

Pick the polynomial degree, compute linear and cubic coefficients, synchronise joints under a speed limit, analyse q(t), and run straight lines through the workspace. Live plots of q, q̇ and q̈ show where the jerk comes from.

The method formulary · (6.1)–(6.5), (6.17), Q87–101

Degree

n=#conditions−1n = \#\text{conditions} - 1
  • start + end position: n = 1
  • + start/end velocity: n = 3
  • + start/end acceleration: n = 5

Limits (|q̇| ≤ 50°/s) and the duration T are not conditions. They never raise the degree.

Linear (point to point)

q(t)=a1t+a0,a0=q0,a1=qf−q0Tq(t) = a_1 t + a_0, \qquad a_0 = q_0, \quad a_1 = \frac{q_f - q_0}{T}

Plug in t = 0 first, then t = T. q̇ = a₁ is constant, q̈ = 0 (Q92, Q93).

Cubic (6.2)–(6.5)

a0=q0,a1=q˙0a_0 = q_0, \qquad a_1 = \dot q_0
a2=3(qf−q0)T2−2q˙0+q˙fTa_2 = \frac{3(q_f - q_0)}{T^2} - \frac{2\dot q_0 + \dot q_f}{T}
a3=−2(qf−q0)T3+q˙0+q˙fT2a_3 = -\frac{2(q_f - q_0)}{T^3} + \frac{\dot q_0 + \dot q_f}{T^2}

Rest to rest: a₂ = 3Δq/T², a₃ = −2Δq/T³. Forgot it? Write one equation per condition and use Gauss.

Speed limit, synchronous

Ti≥∣Δqi∣q˙max⁡,T=max⁡(T1,T2,… )T_i \ge \frac{|\Delta q_i|}{\dot q_{\max}}, \qquad T = \max(T_1, T_2, \dots)

Synchronous = all joints start and stop together. The slowest joint decides; then redo every joint with that T (Q94, Q95).

Line in the workspace

X(r)=X0+r (Xf−X0),r∈[0,1]X(r) = X_0 + r\,(X_f - X_0), \qquad r \in [0, 1]
r(t)=tT  ⇒  X˙=Xf−X0Tr(t) = \frac{t}{T} \;\Rightarrow\; \dot X = \frac{X_f - X_0}{T}

r(0) = 0 is the start, r(T) = 1 the end. It's a Lerp (Q97 to Q100).

Sample time

t=k Δt,k=0,1,…,TΔtt = k\,\Delta t, \qquad k = 0, 1, \dots, \tfrac{T}{\Delta t}

Count both ends: T = 1 s with Δt = 100 ms gives 11 states (Q101).

Play with it one joint, at rest before and after

Dashed = t = 0 and t = T · red band = speed limit · arrows = infinite acceleration (velocity jump)
-30°
60°
0°/s
0°/s
2 s
60°/s

Drill endless, mixed

Angles in degrees, time in seconds. Fractions work in the boxes (10/3, −2/9).

Loading…

Open