All courses › Robotics

Robotics: free practice, theory and problems

A robot arm must always know where its tool is and which way it points, both in its own frame and in the world (base) frame. This calls for a precise mathematical language for rotations and displacements. Rotation matrices and homogeneous transformation matrices let us describe and chain such motions systematically, link by link along the arm – exactly what the Denavit–Hartenberg (DH) parameters are built on.

3 parts50 problems9 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Rotations and transformations
  2. Kinematics
  3. Robot systems

1. Rotations and transformations

What is it about?

A robot arm must always know where its tool is and which way it points, both in its own frame and in the world (base) frame. This calls for a precise mathematical language for rotations and displacements. Rotation matrices and homogeneous transformation matrices let us describe and chain such motions systematically, link by link along the arm – exactly what the Denavit–Hartenberg (DH) parameters are built on.

Concepts and formulas

How to solve the problems

  1. Sketch (or picture) which frames are involved and how they are linked.
  2. Write down the rotation matrix/matrices and any translation for each step.
  3. Multiply/add in the right order: from the known point outward toward the frame you want coordinates in.
  4. To go the other way (find local coordinates from global ones), use the inverse transformation.
  5. Check your answer: a pure rotation never changes the length of a vector.

Example

A frame B is rotated 90° counterclockwise and shifted by (5,0)(5, 0) relative to the base frame A. A point has coordinates (3,4)(3, 4) in the base frame. What are its coordinates in frame B?

  1. This is the reverse of transforming from local to global, so we use the inverse: x⃗B=RT(x⃗A−p⃗)\vec x_B = R^T(\vec x_A - \vec p).
  2. Subtract the translation: x⃗A−p⃗=(3−5, 4−0)=(−2,4)\vec x_A - \vec p = (3-5,\ 4-0) = (-2, 4).
  3. Rotate by −90°-90° (the opposite of RR): RT=(01−10)R^T = \begin{pmatrix}0&1\\-1&0\end{pmatrix}, which gives (0⋅(−2)+1⋅4, −1⋅(−2)+0⋅4)=(4,2)(0\cdot(-2)+1\cdot4,\ -1\cdot(-2)+0\cdot4) = (4, 2).

Answer: the point has coordinates (4,2)(4, 2) in frame B.

Common mistakes

Rotation matrices are orthogonal (R−1=RTR^{-1}=R^T) and preserve lengths. When you chain several frames, multiply the rotations and add the translations in the right order – and to go backward, use the inverse.

Concepts in this part

Practise rotations and transformations in the app →

2. Kinematics

What is it about?

Kinematics describes the relationship between the joint angles (or joint displacements) of a robot arm and the position/orientation of its tool, without worrying about the forces that produce the motion. Forward kinematics goes from known joint variables to the tool's position; inverse kinematics goes the other way, from a desired tool position to the joint variables that produce it. Both are needed to program and control a robot arm in practice.

Concepts and formulas

How to solve the problems

  1. Decide whether the task is FK (known angles → position) or IK (known position → angles).
  2. For FK: substitute into the formulas link by link (or multiply the DH matrices).
  3. For IK on a planar arm: use the law of cosines to find θ2\theta_2, then find θ1\theta_1 from the geometry.
  4. Always check whether the target lies within the workspace (∣L1−L2∣≤r≤L1+L2|L_1-L_2| \le r \le L_1+L_2) before solving the IK.
  5. For velocities: use the Jacobian, and watch out for singularities where JJ loses rank.

Example

A planar 2-link arm has L1=1L_1 = 1 m and L2=0.6L_2 = 0.6 m. The tool must reach (1.2, 0.4)(1.2,\ 0.4) m. Find θ2\theta_2.

  1. Distance from the base: r=1.22+0.42≈1.265r = \sqrt{1.2^2+0.4^2} \approx 1.265 m, which lies within [0.4, 1.6][0.4,\ 1.6] m – the target is reachable.
  2. cos⁡θ2=1.22+0.42−12−0.622⋅1⋅0.6≈0.200\cos\theta_2 = \dfrac{1.2^2+0.4^2-1^2-0.6^2}{2\cdot1\cdot0.6} \approx 0.200.
  3. θ2=arccos⁡(0.200)≈78.5∘\theta_2 = \arccos(0.200) \approx 78.5^\circ (the elbow-up solution).

Common mistakes

Forward kinematics computes from joints to tool; inverse kinematics computes the other way and may have several solutions. The Jacobian links joint velocities to tool velocity, and if it loses rank, you have a singularity.

Concepts in this part

Practise kinematics in the app →

3. Robot systems

What is it about?

A robot is more than its kinematics – it is a complete mechatronic system of mechanical structure, actuators, sensors and control. Choosing the right robot configuration, drivetrain and sensing for a task matters just as much as computing the kinematics correctly, and this is where the engineer's practical choices come in.

Concepts and formulas

How to solve the problems

  1. Identify which part of the system the question is about: configuration, joint/actuator, sensor, or safety/planning.
  2. For gearboxes: keep track of whether you are computing the torque into or out of the gearbox, and remember the efficiency.
  3. For encoders: distinguish between pulses per revolution (incremental) and bits of resolution (absolute) – they give answers in different units.
  4. Think through which robot configuration suits the task's geometry and speed requirements.

Example

A motor delivers 0.6 Nm into a gearbox with a ratio of 100:1 and an efficiency of 85%. How much torque does the joint get?

  1. τout=τin⋅N⋅η=0.6⋅100⋅0.85\tau_{out} = \tau_{in}\cdot N\cdot\eta = 0.6\cdot 100\cdot 0.85.
  2. τout=51\tau_{out} = 51 Nm.

Common mistakes

A robot is a mechatronic system: choose the configuration, joints, sensors and actuators to fit the task – and remember the efficiency when computing torque through a gearbox.

Concepts in this part

Practise robot systems in the app →

Example problems with solutions

Here are some of the problems in robotics. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.

Rotations and transformations: What properties does a rotation matrix RR have?

Answer: RT=R−1R^T = R^{-1} and det⁡R=1\det R = 1

It is orthogonal and preserves lengths and orientation.

Kinematics: What is forward kinematics?

Answer: Finding the tool's position and orientation from the joint angles

Going the other way is inverse kinematics.

Robot systems: How many degrees of freedom are needed to position and orient a tool freely in 3D?

Answer: 6

Three for position and three for orientation.

Rotations and transformations: A 4×4 homogeneous transformation matrix contains …

Answer: a rotation and a translation

T=(Rp⃗01)T = \begin{pmatrix}R & \vec p\\ 0 & 1\end{pmatrix}.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: