Maths and motion, step by step

← Robot list · 3D robot arm →

A beginner course: how a robot arm knows where it is and how it moves, starting from zero. You only need to know what an angle and a multiplication are. Each lesson gives a mental picture, then a worked example, then a mini-quiz.

The big question

Take your arm. To grab a glass on the table you do not think: your brain computes by itself how much to turn the shoulder, the elbow and the wrist.

A robot knows nothing by itself. It only knows its motors: “motor 1, turn by 30 degrees; motor 2, turn by 60 degrees”. All the robotics of manipulator arms turns around three questions:

  • Question 1 (easy): I know the motor angles, where is the tool? This is the direct geometric model (forward kinematics, MGD).
  • Question 2 (harder): I want the tool at this place, which angles must I give the motors? This is the inverse geometric model (inverse kinematics, MGI).
  • Question 3 (the bonus): how do I go from one point to another smoothly, without jerks? These are the motion laws.
What the robot controlsWhat we care about
The motors: angles θ₁, θ₂, … (the joint space)The tool: position (x, y, z) (the operational space)
Question 1, direct model: motors → toolQuestion 2, inverse model: tool → motors

This course answers the three questions very progressively. We start in 2D (on a sheet of paper), then move to 3D.

1

The maths toolbox (without pain)

4 min
You will learn

the four maths tools used everywhere: sine and cosine, atan2, vectors and matrices.

This lesson is now a recap. Each tool has its own full lesson, with worked examples, exercises and a quiz, in the course “The maths of robotics”.

The four tools in one box
  • Sine and cosine: the end of a segment of length L at angle θ is at x = L cos θ, y = L sin θ.
  • atan2(y, x): the angle of a point, right in all four quadrants (never arctan(y/x) alone).
  • Vectors: arrows written as columns; adding them chains moves. The tool of an arm is the sum of the arrows of its links.
  • Matrices: “row times column”; the columns say where the axes go; the order of a product matters.

The full lessons: trigonometry, vectors, matrices →

Key terms

  • sine / cosine
  • atan2
  • vector
  • matrix
The essentials
  • cos θ is the horizontal "shadow" of a stick of length 1 turned by θ, sin θ its vertical shadow.
  • atan2(y, x) gives the angle of a point, in the right quarter, from −180° to 180°.
  • A matrix is a table of numbers that transforms a vector: each line × the vector gives one component.
A stick of length L at angle θ: its horizontal part is L cos θ, its vertical part L sin θ.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

cos 60° = ?

Solution

cos 60° = 0.5: a stick turned by 60° has a horizontal shadow half its length.

Level 2 · Intermediate2

Angle of the point (0, −2) with atan2, in degrees?

Solution

The point is straight down: atan2(−2, 0) = −90°. (arctan(−2/0) cannot even be computed: that is why we use atan2.)

Level 3 · Professional3

Matrix ( 2 0 ; 1 3 ) times the vector (1, 2). Second component?

Hint

Line 2 × vector = 1 × 1 + 3 × 2.

Solution

Second line (1, 3) × (1, 2) = 1 × 1 + 3 × 2 = 1 + 6 = 7. The first component is 2 × 1 + 0 × 2 = 2, so the result is (2, 7).

Check yourself
  1. A 2 m segment makes an angle of 60° with the ground. Where is its end?

    x = 2 cos 60° = 1 m, y = 2 sin 60° ≈ 1.73 m.

  2. What is atan2(−1, 0)? (Hint: the point is straight down on the vertical axis.)

    −90°: the point (0, −1) is straight below the origin.

  3. Compute 0−110 20.

    0×2 + (−1)×01×2 + 0×0 = 02: a rotation of the vector (2, 0) by 90°.

2

What is a manipulator robot?

8 min
You will learn

the vocabulary of a robot arm, the two joint types and the two “worlds” used to describe it.

2.1 The human arm as a model

On a humanOn a robotTechnical name
the trunk (does not move)the base screwed to the floorbase (body 0)
the bones of the arm and forearmrigid metal piecesbodies or segments
shoulder, elbow, wristmotors linking the bodiesjoints (links)
the handgripper, welding torch, suction cup…end effector / tool
the tip of the fingersthe point that workstool centre point (TCP)

2.2 Only two kinds of joints

  • Pivot (revolute, “R”): it turns by an angle θ, like an elbow.
  • Slider (prismatic, “P”): it slides by a length r, like a drawer.

Each joint has a single adjustable value, called the joint variable and written q: an angle for a pivot, a length for a slider.

New word

Degree of freedom (DOF). It is the number of independent movements. A robot with 6 joints has 6 DOF. A free object in space needs 6 DOF to be placed anywhere and in any orientation: 3 for the position (move forward, sideways, up) and 3 for the orientation (like a plane: turn left/right, nose up/down, tilt the wings). That is why most industrial robots have 6 axes.

2.3 The robots you will meet

  • SCARA robot (4 DOF): two arms turning horizontally + a rod going up and down + a rotation of the tool. Very fast to pick and place parts on a table.
  • “Anthropomorphic” 6-axis robot (6R: six pivots): looks like a human arm (Kuka, ABB, Fanuc, Stäubli, Universal Robots). Can do everything: weld, paint, assemble.
  • Cartesian robot: three perpendicular sliders (like a 3D printer).
  • Redundant robot (7 DOF or more): it has more joints than needed, like your arm (you can move the elbow without moving the hand resting on the table).

All these robots are serial robots: the bodies are attached one after the other, like the links of a chain.

2.4 Two “worlds” to describe the robot

  • The joint space: the list of the motor values, (q1, q2, …). It is the language of the robot.
  • The operational space: the position (and orientation) of the tool, (x, y, z, …). It is the language of the human who programs the task.

The models MGD and MGI are the dictionaries that translate from one language to the other.

Key terms

  • base
  • end effector
  • DOF
  • joint space
  • operational space
  • redundant
The essentials
  • A manipulator robot is like a human arm: shoulder, elbow, wrist, hand.
  • Only two kinds of joints exist: revolute (it turns) and prismatic (it slides).
  • Two "worlds": the joint space (the angles) and the task space (where the tool is).
A manipulator is a chain of only two kinds of joints. We describe it either by its joint values or by where its tool is.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

The human elbow corresponds to which kind of joint?

  1. Revolute.
  2. Prismatic.

Solution

The elbow turns around an axis: revolute.

Level 2 · Intermediate2

"θ₁ = 30°, θ₂ = 45°" describes the robot in which world?

  1. The joint space.
  2. The task space.

Solution

Angles of the joints = joint space. "The tool is at (0.6, 0.3)" would be the task space.

Level 3 · Professional3

A robot has the structure R-R-R-R-R-R. How many prismatic joints?

Solution

Only R letters: 0 prismatic joint. This is the classic 6-axis industrial robot.

Check yourself
  1. A slider joint: is its variable an angle or a length?

    A length (the slider slides).

  2. How many DOF do you need to place and orient an object freely in space?

    6: 3 for the position, 3 for the orientation.

  3. Why do we say that the human arm (shoulder 3 DOF + elbow 1 + wrist 3 = 7) is “redundant”?

    Because 7 DOF is more than the 6 needed: you can move the elbow without moving the hand.

See a SCARA, a 6-axis robot and a gantry in 3D →

3

First robot: one single joint

4 min
You will learn

to write your very first direct geometric model.

Let us start with the simplest possible robot: a single arm of length L, fixed at the origin by a pivot. The motor sets the angle θ.

From lesson 1, the end of the arm is at:

x = L cos θ, y = L sin θ

Congratulations: you have just written your first direct geometric model!

Worked example

L = 0.5 m and θ = 30°: x = 0.5 × 0.866 = 0.433 m, y = 0.5 × 0.5 = 0.25 m.

And the inverse model? I want the end of the arm to be at the point (x, y).

  • The angle is given by θ = atan2(y, x).
  • But careful: this is only possible if the point is exactly at the distance L from the origin (√(x² + y²) = L). Otherwise the arm is too short or too long: no solution.
Remember

First important lesson: the direct model always has an answer, the inverse model not necessarily.

Key terms

  • direct model (MGD)
  • inverse model (MGI)
The essentials
  • One revolute joint and one link of length L: the tip moves on a circle of radius L.
  • Direct: x = L cos θ, y = L sin θ. Inverse: θ = atan2(y, x).
  • Speed of the tip: v = L × ω (ω in rad/s).
The coordinates of the tip of a 0.5 m link while the joint makes a full turn.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

L = 0.8 m, θ = 0°. x of the tip?

Solution

x = 0.8 × cos 0° = 0.8 × 1 = 0.8 m.

Level 2 · Intermediate2

The tip must go to (0.3, 0.3) m. Angle θ in degrees?

Solution

θ = atan2(0.3, 0.3) = 45°. The link must also be √(0.3² + 0.3²) ≈ 0.424 m long to reach it.

Level 3 · Professional3

L = 0.5 m, the joint turns at 2 rad/s. Speed of the tip?

Solution

v = L × ω = 0.5 × 2 = 1 m/s. The longer the link, the faster its tip for the same rotation speed.

Check yourself
  1. With L = 1 m and θ = 90°, where is the end of the arm?

    x = 1·cos 90° = 0 and y = 1·sin 90° = 1: straight up, at (0, 1).

  2. L = 1 m, θ = 0°: where is the end of the arm?

    1. (1, 0)
    2. (0, 1)

    x = cos 0° = 1, y = sin 0° = 0.

  3. If we double L, the end of the arm…

    1. goes twice as far, same direction
    2. turns by twice the angle

    x and y are both multiplied by L.

Move the joints of a real arm →

4

The two-joint arm (the heart of the subject)

15 min
You will learn

the direct and inverse models of a 2-axis arm, elbow left and right, the workspace and singularities.

4.1 The direct model: adding the arrows

Two arms: the first, of length L1, turns by an angle θ1 relative to the ground; the second, of length L2, turns by an angle θ2 relative to the first arm (like your elbow bends relative to your arm, not relative to the floor).

  • The arrow of arm 1 makes an angle θ1 with the ground: L1 cos θ1L1 sin θ1.
  • The arrow of arm 2 makes an angle θ1 + θ2 with the ground (the angles add up!): L2 cos(θ1+θ2)L2 sin(θ1+θ2).
  • The position of the tool is the sum of the two arrows:

x = L1 cos θ1 + L2 cos(θ1+θ2)
y = L1 sin θ1 + L2 sin(θ1+θ2)

This is the MGD of the SCARA robot (seen from above). In the full course, we just add the height z = h + q3 and the orientation of the tool θE = θ1 + θ2 + θ4.

Worked example

L1 = 0.5 m, L2 = 0.3 m, θ1 = 30°, θ2 = 60° (so θ1 + θ2 = 90°).

x = 0.5 × 0.866 + 0.3 × cos 90° = 0.433 + 0 = 0.433 m
y = 0.5 × 0.5 + 0.3 × sin 90° = 0.25 + 0.3 = 0.55 m

The tool is at E = (0.433 ; 0.55). It is the figure above.

4.2 The inverse model: finding the angles

Now we know the point E = (x, y) and look for θ1, θ2. The trick is done in two steps.

Step 1: find the elbow θ2 thanks to the distance. The distance between the shoulder and the tool, D = √(x² + y²), only depends on the opening of the elbow (a straight elbow gives a large distance, a folded elbow a small one). The Al-Kashi formula (generalised Pythagoras) gives:

cos θ2 = x² + y² − L1² − L2²2 L1 L2 ⟹ θ2 = ± arccos(…)

Step 2: find the shoulder θ1. We take the direction of the tool, atan2(y, x), and we remove the small angle that arm 1 makes with this direction:

θ1 = atan2(y, x) − atan2(L2 sin θ2, L1 + L2 cos θ2)

Worked example

We aim at E = (0.433 ; 0.55) with L1 = 0.5 and L2 = 0.3 (we redo the path backwards).

  1. x² + y² = 0.1875 + 0.3025 = 0.49. cos θ2 = 0.49 − 0.25 − 0.092 × 0.5 × 0.3 = 0.150.3 = 0.5, so θ2 = ±60°.
  2. With θ2 = +60°: atan2(0.55 ; 0.433) ≈ 51.8° and atan2(0.3 × 0.866 ; 0.5 + 0.3 × 0.5) = atan2(0.26 ; 0.65) ≈ 21.8°. So θ1 ≈ 51.8 − 21.8 = 30°. We find the starting angles again!
  3. With θ2 = −60°: θ1 ≈ 51.8 + 21.8 = 73.6°. It is a second valid solution.

4.3 Two solutions? Elbow right, elbow left

To reach the same point, the arm can bend the elbow on one side or on the other. Each solution is called an aspect (or a posture). The ± sign in the arccos is used to choose the aspect.

Remember

The inverse model can have:

  • 0 solution: the point is too far or too close (the number inside the arccos is outside [−1, 1]);
  • several solutions: 2 for this arm (elbow right/left), up to 8 for a 6-axis robot;
  • infinitely many: for a redundant robot (7 axes), or in some particular positions.

4.4 Where can the robot go? The workspace

With the arm fully stretched, the tool is at L1 + L2 = 0.8 m from the shoulder: it is the farthest possible. With the arm completely folded, it is at |L1 − L2| = 0.2 m: the closest possible. If the motors can do a full turn, the reachable zone is a ring. In reality each motor has stops (for example θ1 between −105° and +105°), and the workspace takes the shape of a crescent or a kidney.

New word

Singularity. When the arm is completely stretched (θ2 = 0) or completely folded, it can no longer move in the direction of the arm, whatever the speed of its motors. It is a “trap” position called a singularity. It is also the border between the two aspects: to go from elbow right to elbow left, the arm must go through the stretched position.

Key terms

  • aspect (posture)
  • Al-Kashi formula
  • workspace
  • singularity
  • joint stops
The essentials
  • Direct model: add the two arrows: x = L₁ cos θ₁ + L₂ cos(θ₁ + θ₂), y = L₁ sin θ₁ + L₂ sin(θ₁ + θ₂).
  • Inverse model: cos θ₂ = (x² + y² − L₁² − L₂²) / (2 L₁ L₂), then θ₁ from atan2.
  • Two solutions (elbow left/right); workspace = ring between |L₁ − L₂| and L₁ + L₂.
L₁ = L₂ = 1 m, θ₁ = 30°, θ₂ = 60°: the tool is at (0.866, 1.5).

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

L₁ = L₂ = 1 m, θ₁ = 30°, θ₂ = 60°. Compute y.

Solution

y = sin 30° + sin 90° = 0.5 + 1 = 1.5 m.

Level 2 · Intermediate2

Same arm, same angles. Compute x.

Solution

x = cos 30° + cos 90° = 0.866 + 0 = 0.866 m.

Level 3 · Professional3

L₁ = L₂ = 1 m. The tool must go to (1, 1). Compute θ₂ (positive) in degrees.

Solution

cos θ₂ = (1 + 1 − 1 − 1) / (2 × 1 × 1) = 0, so θ₂ = 90°. Then θ₁ = atan2(1, 1) − atan2(sin 90°, 1 + cos 90°) = 45° − 45° = 0°: the first link is horizontal, the second vertical.

Check yourself
  1. With L1 = 0.5, L2 = 0.3, θ1 = 0° and θ2 = 90°, where is the tool?

    x = 0.5 + 0.3 cos 90° = 0.5 m; y = 0 + 0.3 sin 90° = 0.3 m. The tool is at (0.5 ; 0.3).

  2. Is the point (1 ; 0) reachable by this robot? Why?

    No: it is 1 m from the shoulder, but the stretched arm only measures L1 + L2 = 0.8 m. (The arccos would give cos θ2 = (1 − 0.34)/0.3 = 2.2 > 1: impossible.)

  3. Arm stretched horizontally to the right (θ1 = θ2 = 0): can it still move to the right?

    No: it is a singularity. The arm is already at its maximum extension in this direction.

Watch the 2-axis kinematics of the SCARA →

5

Frames: looking at the world from each piece

5 min
You will learn

rotation matrices, the three angles of an orientation and the matrix that packs rotation + move.

This lesson is now a recap: rotations, orientations and homogeneous matrices each have a full lesson in “The maths of robotics”.

Frames in one box
  • A frame is stuck on each piece of the robot; we go from the base to the tool frame by frame.
  • Rotation in the plane: R(θ) has the columns (cos θ, sin θ) and (−sin θ, cos θ); its inverse is its transpose. In 3D: Rx, Ry, Rz.
  • An orientation in space needs 3 angles (roll, pitch, yaw), with a trap at ±90° of pitch: gimbal lock. Robots store it as a quaternion.
  • A homogeneous matrix packs a rotation and a translation; chaining frames is multiplying them: 0T2 = 0T1 1T2.

The full lessons: rotations, frames and transformations, quaternions →

Key terms

  • frame
  • rotation matrix
  • roll / pitch / yaw
  • homogeneous matrix
The essentials
  • A rotation by θ in the plane is the matrix R = ( cos θ −sin θ ; sin θ cos θ ).
  • The homogeneous matrix puts rotation and translation in one 4 × 4 (or 3 × 3 in the plane) table.
  • To chain frames, we multiply the matrices: T₀₂ = T₀₁ × T₁₂.
Frame 1 is frame 0 turned by 30°: the columns of R are the axes x₁ and y₁ written in frame 0.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

Rotation by 90°: what is the top-right number of R (−sin 90°)?

Solution

−sin 90° = −1. R(90°) = ( 0 −1 ; 1 0 ): it turns (1, 0) into (0, 1).

Level 2 · Intermediate2

Turn the vector (1, 0) by 30°. Its x component?

Solution

R × (1, 0) = (cos 30°, sin 30°) = (0.866, 0.5). x = 0.866.

Level 3 · Professional3

Frame 1 is moved by (2, 0) and not turned. A point is at (1, 1) in frame 1. Its x in frame 0?

Solution

No rotation, so we only add the translation: x₀ = 2 + 1 = 3 (and y₀ = 0 + 1 = 1). The homogeneous matrix does exactly this addition, plus the rotation when there is one.

Check yourself
  1. In a homogeneous matrix, where do you read the position of the frame origin?

    In the last column (in 2D: the first two numbers of the 3rd column).

  2. A frame is simply moved by (3 ; 0), without rotation. Write its 2D matrix.

    103010001 (no rotation = identity, move (3 ; 0)).

  3. A plane “lifts its nose”. Is it roll, pitch or yaw?

    Pitch (rotation around the axis of the wings).

See the frames of a real arm →

6

The Denavit–Hartenberg method, gently

5 min
You will learn

where exactly to put the frames, and why 4 numbers per joint are enough.

This lesson is now a recap. The Denavit–Hartenberg method is explained in full, the standard DH alone, the modified DH alone, and the two side by side, in “The maths of robotics” (lessons 6 to 8).

DH in one box
  • z of each frame is on the axis of a motor; x follows the common perpendicular between two motor axes.
  • Four numbers per joint: two angles (θ, α) and two lengths. α and the length between axes are the fixed shape; θ moves for a pivot, the offset along z moves for a slider.
  • Our 2-axis arm: the two motor axes are parallel, so α = 0 everywhere; one row per joint, with the lengths L1 and L2. Multiplying the rows gives back x = L1 cos θ1 + L2 cos(θ1 + θ2).
  • Two conventions (standard and modified) place the frames differently but give the same robot: never mix them.

The full lessons: standard DH, modified DH, side by side →

Key terms

  • DHm
  • common perpendicular
  • DH table
The essentials
  • DH places one frame per joint with simple rules, so each link is described by only 4 numbers.
  • Every step = turn θ around z, slide d along z, slide a along x, twist α around x.
  • For a planar arm, d = 0 and α = 0: only θ and a remain.
One DH step = four simple moves, always in this order: turn θ around z, slide d along z, slide a along x, twist α around x.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

How many numbers per joint in a DH table?

Solution

4: θ, d, a, α.

Level 2 · Intermediate2

For the planar 2-axis arm (L₁ = 0.5, L₂ = 0.4), what is the "a" of line 2?

Solution

a is the length of the link along x: a₂ = L₂ = 0.4 m.

Level 3 · Professional3

Which DH parameter is the variable of a prismatic joint?

  1. d
  2. θ
  3. α

Solution

A prismatic joint slides along its axis z: its variable is d.

Check yourself
  1. Which two DH numbers describe the fixed shape of the robot?

    α (twist between axes) and d (distance between axes).

  2. For a slider joint, which number moves?

    r, the shift along the z axis (for a pivot it is θ).

  3. How many DH numbers describe each joint?

    1. 4
    2. 3
    3. 6

    Two angles (θ, α) and two lengths (d, a).

Compare DH and DHM tables on the arm page →

7

Moving the robot smoothly: the motion laws

12 min
You will learn

how a robot goes from A to B without jerks, and how to compute the trapezoid.

7.1 Why it matters

Knowing the start and arrival points is not enough. If we asked the motor to go instantly from 0 to its maximum speed, an infinite force would be needed: the robot would vibrate, the part would fall from the gripper, the motor would wear out.

The idea in one picture

It is like driving a car between two red lights: you start (you accelerate), you cruise at constant speed, then you brake to stop exactly at the next light.

7.2 The velocity trapezoid law

The speed graph has the shape of a trapezoid. The two settings of the robot are:

  • the maximum speed Vmax (the motor cannot go faster);
  • the acceleration a (the force of the motor limits how fast it can start).

The secret: distance travelled = area under the speed curve.

Step by step: the robot must travel a distance X
  1. Time to reach the maximum speed: T1 = Vmax/a.
  2. Is there room for a cruise phase? Yes if X > Vmax²/a.
  3. If yes: cruise time T2 = X/Vmax − T1; braking time T3 = T1.
  4. If not: the robot has no time to reach Vmax; the trapezoid becomes a triangle (“bang-bang” law: we accelerate half of the way, we brake the other half). Then T1 = T3 = √(X/a).
Worked example

A trapeze: X = 1 m, Vmax = 0.5 m/s, a = 1 m/s².

  1. T1 = 0.5/1 = 0.5 s.
  2. Vmax²/a = 0.25 < 1: there is a cruise phase.
  3. T2 = 1/0.5 − 0.5 = 1.5 s; T3 = 0.5 s; total 2.5 s (it is the graph above).

Check by the areas: start ½ × 0.5 × 0.5 = 0.125 m; cruise 0.5 × 1.5 = 0.75 m; braking 0.125 m. Total: 1 m. ✓

Worked example

A triangle: X = 0.1 m, Vmax = 0.5 m/s, a = 0.5 m/s². Here Vmax²/a = 0.5 > 0.1: no cruise phase. T1 = T3 = √(0.1/0.5) ≈ 0.45 s, and the maximum speed actually reached is only √(0.1 × 0.5) ≈ 0.22 m/s.

7.3 Even smoother laws

The trapezoid has a flaw: the acceleration changes abruptly (from “I accelerate” to “I cruise”). To spare the motors we also use (graphs above, from left to right: bang-bang, trapezoid, acceleration trapezoid, sine squared):

  • the sine-squared law: the speed rises smoothly along an S curve;
  • the acceleration trapezoid: the acceleration itself rises and falls progressively;
  • the degree-5 polynomial: a ready-made, very smooth formula.

7.4 Several motors at the same time

A 6-axis robot moves its 6 motors together. So that they start and stop at the same time, we give the maximum speed to the motor which has the longest way to go, and the others go slower, in proportion (homothetic trapezoids).

Worked example

Axis 1: +50°, axis 2: +20°, axis 3: −30°; maximum speed 100°/s. Axis 1 (the longest): 100°/s. Axis 2: 100 × 20/50 = 40°/s. Axis 3: 100 × (−30)/50 = −60°/s.

7.5 “Joint” or “linear” movement?

  • Joint movement: we directly vary the motor angles. It is simple and fast, but the tool does not follow a straight line (it makes a curve).
  • Linear movement: we impose a straight line to the tool. The robot must recompute the inverse model at every instant. Essential to weld or glue along an edge.

Key terms

  • velocity trapezoid
  • bang-bang
  • homothetic trapezoids
  • joint / linear movement
The essentials
  • A good motion starts and stops gently: the speed rises, stays constant, then falls (trapezoid).
  • The area under the speed curve is the distance travelled.
  • When several motors move together, we slow the fast ones so that all arrive at the same time.
Trapezoid law: 90° in 2 s with 0.5 s to accelerate and 0.5 s to brake.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

A joint turns at a constant 30 °/s for 3 s. Angle travelled?

Solution

Angle = speed × time = 30 × 3 = 90°.

Level 2 · Intermediate2

Trapezoid: 90° in T = 2 s, accelerating for 0.5 s and braking for 0.5 s. Maximum speed?

Hint

Area of the trapezoid = v max × (T − t acc).

Solution

Area = v max × (2 − 0.5) = 90 → v max = 90 / 1.5 = 60 °/s.

Level 3 · Professional3

Joint 1 must turn 90°, joint 2 only 30°, both in 2 s with the same law. What fraction of joint 1's maximum speed does joint 2 use?

Solution

Same duration and same shape, so the speeds are proportional to the angles: 30 / 90 = 1/3 ≈ 0.33. Both joints start and stop together: the movement looks smooth.

Check yourself
  1. X = 1 m, Vmax = 1 m/s, a = 2 m/s²: compute T1, T2, T3.

    T1 = 1/2 = 0.5 s; Vmax²/a = 0.5 < 1, so there is a cruise phase; T2 = 1/1 − 0.5 = 0.5 s; T3 = 0.5 s. Total 1.5 s.

  2. In a speed/time graph, what does the area under the curve represent?

    The distance travelled.

  3. To follow a perfectly straight glue bead, which type of movement should you choose?

    A linear movement (a straight line imposed to the tool).

8

Recap: the map of the course

5 min
You will learn

to see all the notions at a glance and know where to read more.

NotionIn one sentenceIn the full course
Framea system of axes stuck on a pieceStep 1
Rotation matrixa table that turns coordinatesSteps 1–2
Roll, pitch, yaw3 angles to orient an objectStep 2 (Cardan, Euler)
Homogeneous matrixrotation + move in one matrixStep 3
Denavit–Hartenbergrule to place the frames, 4 numbers per axisStep 4
MGDmotor angles → tool positionStep 5
MGIwanted position → motor anglesStep 6
Aspectone of the ways of reaching the same pointSteps 6–7
Workspacezone that the tool can reachStep 7
Singularitytrap position where the robot loses a movementStep 8
Trapezoid lawstart, cruise, brakeStep 9
Remember

You now have all the basic ideas. The full course “Robot modelling” takes these notions in 3D with the real notations (0T1, σj, αj, dj, θj, rj) and real industrial robots (SCARA, Kuka, ABB, UR3). Read it keeping this course nearby: each time a formula looks complicated, look for its 2D equivalent here.

Key terms

  • MGD
  • MGI
  • aspect
The essentials
  • Geometry (where?) → direct and inverse models; speed (how fast?) → Jacobian; time (when?) → motion laws.
  • Tools: cos/sin, atan2, vectors, matrices, homogeneous transforms, DH tables.
  • Next step: the full modelling course (MGD, MGI, Jacobian in 3D).
The map of the course: geometry first, then speeds, then time — every step uses the same tools (cos, sin, atan2, matrices).

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

"Find the angles to put the tool at (0.6, 0.3)" is which model?

  1. Inverse model.
  2. Direct model.
  3. Motion law.

Solution

From the tool position to the angles: inverse model.

Level 2 · Intermediate2

Arm L₁ = L₂ = 0.5 m with θ₁ = 0°, θ₂ = 90°. Distance from the base to the tool?

Solution

The tool is at (0.5, 0.5): distance = √(0.25 + 0.25) = 0.707 m.

Level 3 · Professional3

Same arm. The joints turn at θ̇₁ = 1 rad/s and θ̇₂ = 0. Speed of the tool?

Solution

Only the base turns: the whole arm turns like one rigid piece, so v = distance × ω = 0.707 × 1 = 0.707 m/s.

Check yourself
  1. Which two models translate between the “language of the motors” and the “language of the tool”?

    The direct geometric model (MGD) and the inverse geometric model (MGI).

  2. The Jacobian links…

    1. joint speeds to tool speed
    2. the colour to the size

    Ẋ = J q̇.

  3. A motion law (e.g. trapezoid) gives…

    1. how the position changes over time, smoothly
    2. the shape of the robot

    It sets acceleration, cruising speed and braking.

Continue with the full course →

Glossary

All the words of the lessons in one place.

TermMeaning
JointA motorised link between two pieces.
atan2A function giving the angle of a point (x, y) in the right quadrant.
BaseThe fixed foot of the robot (body 0).
DOFDegree of freedom: an independent movement.
End effectorThe tool at the end of the robot.
Joint spaceThe set of the values of the motors.
Operational spaceThe set of the positions of the tool.
SliderA joint that slides (variable r).
PivotA joint that turns (variable θ).
RedundantHaving more axes than needed.
SCARAA fast robot with horizontal arms.
TCPTool centre point.
Joint variableThe value set by a motor, written q.

Sources and references

This course was written from these books, papers, standards and documentation. They are also the best way to go further.

  1. J. J. Craig, Introduction to Robotics: Mechanics and Control, 4th ed., Pearson, 2017. used for: direct and inverse models of the 2-axis arm
  2. M. W. Spong, S. Hutchinson, M. Vidyasagar, Robot Modeling and Control, 2nd ed., Wiley, 2020. used for: motion laws and trajectories
  3. W. Khalil, E. Dombre, Modeling, Identification and Control of Robots, Hermes Penton Science, 2002 (French edition: Modélisation, identification et commande des robots, Hermès, 1999). used for: trapezoidal and polynomial motion laws

You have the basic ideas!

Next: the full course, in 3D, with the real notations and real industrial robots.

Go to the full course → Back to the roadmap