Joint-space trajectories: moving every joint together
A robot's shoulder must turn 90° and its elbow only 10°. If both run flat out, one finishes long before the other. Is that a problem?
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
Most robot moves are planned in joint space: solve IK for the start and end, then move every joint from its start angle to its end angle on a shared timeline. It's simple, guaranteed to stay away from IK trouble mid-move, and easy to check against motor limits. The trade-off: the hand doesn't travel in a straight line.
- ◇ Plan a point-to-point joint-space move by interpolating each joint angle.
- ◇ Synchronise joints so they start and stop together, and check each against its speed limit.
- ◇ Contrast a joint-space move with a straight-line hand move.
2.Discover
In the Robotics Workbench, set a two-link arm and pick start and end poses. Plan a joint-space move: compute each joint's change, find the slowest joint at its speed limit, and give every joint that same duration. Step through the move and sketch the hand's path. Is it straight?
Can't use the interactive? Read a description instead
In the Robotics Workbench you set start and end poses and step a synchronised move. Without it: moving (θ1, θ2) from (0°, 90°) to (90°, 0°) linearly, with L1 = 0.5 m and L2 = 0.3 m, the hand starts at (0.5, 0.3) m, passes about (0.35, 0.65) m halfway, and ends at (0, 0.8) m: a curve, not the straight line between the ends.
3.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Joint 1 moves 120° with a limit of 60°/s; joint 2 moves 45° with a limit of 30°/s. For a synchronised linear move, what is the shortest duration, in seconds?
4.Apply it
Plan a synchronised trapezoidal joint move for a two-link arm from (0°, 90°) to (90°, 0°) with limits 60°/s and 120°/s² on both joints. Give T, then sample the hand position every 0.25 s with your fk() and plot the path. Compare with a straight line between the end points. Then try the Elevator Build's motion planner for the 1D version.
5.Understand
Interpolate each joint
For a move from θ_start to θ_end over time T, each joint follows θᵢ(t) = θᵢ,start + (θᵢ,end − θᵢ,start)·s(t), where s(t) runs from 0 to 1. With s = t/T it's linear interpolation; with s from a trapezoid (normalised by D) every joint ramps smoothly, at once. All joints share one s(t), so they start and finish together.
The slowest joint sets the pace
Each joint has its own speed limit. With linear interpolation, joint i needs speed |Δθᵢ|/T ≤ vᵢ,max, so T ≥ max(|Δθᵢ|/vᵢ,max). Choose the largest of these times and slow the other joints to match. That's 'synchronised' motion: it looks deliberate and keeps the hand's path predictable.
Joint space vs task space
Joint-space moves are cheap and safe (no IK mid-move, no singular surprises), but the hand curves. Task-space moves interpolate the hand position in a straight line and solve IK at each step: needed for welding a seam or inserting a peg, but they can drive the arm into a singularity or a joint limit halfway. Controllers offer both.
Explain it another way
Joint space is 'turn the dials together'; task space is 'slide the hand along a ruler'. Turning dials is easy but the hand wanders; sliding along a ruler is precise but sometimes the dials have to spin wildly.
A joint-space trajectory is a curve θ(t) in configuration space; the hand path is FK(θ(t)). Synchronising with a common scalar s(t) keeps the path in configuration space a straight segment, whatever the timing law.
Shoulder Δ = 90°, limit 45°/s → 2 s; elbow Δ = 10°, limit 60°/s → 0.17 s. Synchronise to T = 2 s: shoulder at 45°/s, elbow at 5°/s.
Industrial robot languages distinguish 'joint moves' (fast, curved, used to travel between work areas) from 'linear moves' (straight hand paths, used during the actual work), exactly this split.
Worked example 1
A joint goes from 20° to 80° linearly over 3 s. Where is it at t = 1.2 s?
θ = 20 + 60 × (1.2/3) = 20 + 24 = 44°. Speed 20°/s throughout.
Common mix-ups
- Moving every joint in a straight line moves the hand in a straight line.
✓ FK is nonlinear; a straight line in joint space is usually a curve for the hand. - Each joint should move at its own top speed.
✓ Synchronised moves slow the faster joints so all finish together; otherwise the path is unpredictable.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
A camera slider moves at constant speed from x = −40 cm to x = 20 cm in 4 s. Where is it at t = 1.6 s, in cm?
Practice 3 · a fresh version every time
A joint follows a trapezoidal profile over 2.5 rad: it accelerates at 2 rad/s² up to 1 rad/s, cruises, then decelerates at 2 rad/s² to stop. How far has it moved at t = 1.1 s, in radians? (3 decimal places)
Practice 4
A welding robot must follow a straight seam. Which trajectory type is needed?
Practice 5
In a synchronised 2 s move, joint 2 changes by 45°. What constant speed does it run at, in °/s?
7.Predict
Both joints of a two-link arm move linearly in joint space from (0°, 90°) to (90°, 0°) over 2 s. Does the hand move in a straight line?
Guess first. Being wrong here is how the surprise works.
8.Reflect
9.Go further
- Trajectory (Wikipedia) ↗The general idea of a path through time, from physics to robotics.
Concepts: Motion profiles and trajectories · Inverse kinematics and the workspace