Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Joints and degrees of freedom

The question. How few numbers does it take to say exactly how an arm is posed, and how do we get from those numbers to where the hand is?

Three loose bones could be anywhere, facing any way. Joined into an arm they can do far less, and that restriction is what makes an arm useful and what makes it cheap to simulate: the simulator only has to follow the motions the joints allow. This chapter counts those motions and turns them into positions.

By the end you will be able to count the freedoms of a jointed chain, describe one joint to the simulator, and compute the position of the hand from the joint angles by hand.

Counting freedom

A degree of freedom is one independent way a thing can move.

A single rigid bone floating free has six. Three say where one of its points is: forward, up, sideways. Three more say which way it faces, as Turning in three dimensions showed. Any motion of the bone is some combination of these six.

A joint connects two bones and removes some of the freedoms one has relative to the other. The book’s first arm uses three ideal kinds.

  • A hinge leaves one freedom: a turn about a single line fixed in both bones. The elbow bends this way, the ulna of the forearm turning on the lower end of the humerus.
  • A pivot also leaves one turn about one fixed line, but the line runs along the bone. In the forearm the radius turns about the ulna on a line from the outer side of the elbow to the inner side of the wrist. This is the motion that turns the palm up or down.
  • A ball and socket keeps one point of the two bones together and leaves all three turns free. The shoulder is treated this way.

Three free bones would have freedoms. The ball and socket removes 3, the hinge 5 and the pivot 5, leaving . An arm from shoulder to wrist, with these joints, has five degrees of freedom.

These are idealisations. The international recommendation for describing arm motion adopts the same three (Wu et al. 2005, section 3.1) and is frank about what they hide: the real elbow and forearm axes do not coincide exactly with the ideal ones, the forearm sits at a slight sideways angle to the upper arm, and the centre of the shoulder can shift as it turns (sections 3.4 and 2.4.4 of the same source). Part 5 replaces each ideal joint with bone surfaces in contact, cartilage between them and ligaments holding them together. Until then the ideal joints are the model.

Joint coordinates

Because the arm has five freedoms, five numbers fix its pose. We choose one angle per freedom:

CoordinateZero means
shoulder: raise forwardupper arm hanging straight down
shoulder: raise sideways
shoulder: twist inward
elbow: bendelbow straight
forearm: turnpalm facing forward

Numbers chosen like this, one per degree of freedom, are joint coordinates. The whole pose is the short list . Nothing else needs storing: the simulator never keeps the position of a bone, only works it out from .

The three shoulder angles are the three-angle description from the last chapter, bad spot included. The simulator builds the ball and socket from three hinges through one point, joined by two links with no size and no mass.

Describing a chain

To build the chain the simulator needs three facts about each joint: which bone it hangs from (its parent), where it sits in the parent’s frame, and which way its axis points in that frame. For the arm of a person 1.75 m tall (the lengths come from Scaling a skeleton to a person), with each bone’s frame at its upper joint and its axis pointing up the bone:

JointParentPosition in the parent’s frame (m)Axis
Shoulder, three hingestrunk, fixed, then , then
Elbowupper arm
Forearm pivotforearmcentre of the head of the radiustoward it from the head of the ulna

The palm is 0.3387 m from the elbow, at in the forearm’s frame.

From angles to the hand

Forward kinematics is the calculation of where every bone is from the joint coordinates. It walks out along the chain carrying two things: a running orientation and a running position .

  1. Start at the trunk: is the identity matrix, is the shoulder.
  2. At each joint, first move to it: .
  3. Then turn: , the rotation about the joint’s axis by its angle.
  4. At the end, the hand is at .

Step 3 multiplies on the right because each joint’s axis is carried by the bones before it.

A fact worth keeping: a turn about takes a bone hanging down, , to .

A worked example

Raise the shoulder forward by 30° and bend the elbow by 60°, with the other three angles zero.

StepCalculationResult
Turn at the shoulder
Move to the elbow
Turn at the elbow
Move to the palmhand at

The forearm ends up level, and the hand is 0.48 m in front of the shoulder and 0.245 m below it.

Try it

The first lab shows each ideal joint on its own. The lines drawn through the joint are the axes it can turn about.

  1. A hinge. The elbow is bent 60°. The hand reads m, which is . Move the first angle: the hand stays 0.339 m from the elbow and never leaves the plane of the page.
  2. A pivot. Choose the forearm. The elbow is held at a right angle so that you can see the motion. Move the first angle from 0° to 150°: the radius rolls over the ulna and the thumb swings round, while the hand moves only a few centimetres.
  3. A ball and socket. Choose the shoulder. Now all three sliders work. However you set them, the hand stays 0.441 m from the shoulder, on a sphere.
  4. Predict, then check. With the ball and socket, set the first angle to 90° and the others to 0°. Where is the hand? The upper arm points forward and the bent forearm points straight up: m.
  5. Press Play to watch each free angle swing in turn.

The second lab joins the three joints into the whole chain.

  1. Check the worked example. The elbow reads m and the hand m. The two arrows are the two “move” steps.
  2. Predict, then check. Straighten the elbow to 0°. The hand goes to the end of a straight line 0.622 m long, 30° forward of straight down: m.
  3. Leave the page. Set raise forward and bend to 0° and raise sideways to 90°. The hand is 0.622 m to the right of the shoulder. Drag the view to look from another side.
  4. Find what sets the reach. Watch the straight-line distance from shoulder to hand as you move each slider. Only the elbow changes it much.
  5. One hand position, many poses. Turn the forearm. The hand hardly moves, but the pose is different. Position alone does not tell you the joint angles.
  6. Press Play. Each angle swings in turn and a thin curve traces the path of the hand: always part of a circle about that joint’s axis.

The calculation is Multibody::kinematics in crates/biomech/src/multibody.rs.

What this model leaves out

  • Real joint surfaces. Real joints are held by contact, cartilage and ligaments, and their axes shift as they move. Part 5 builds them.
  • Limits. An ideal hinge turns for ever. A real elbow stops when straight. The labs keep each slider inside a plausible range, but nothing in the model enforces it.
  • The shoulder blade and collar bone. The socket of the shoulder is itself carried by bones that move on the trunk (Wu et al. 2005, section 2). Here it is fixed.
  • The wrist and fingers. The hand is held in line with the forearm.

Summary

  • A degree of freedom is one independent way to move. A free bone has six.
  • A hinge and a pivot each leave one; a ball and socket leaves three. The arm to the wrist has five.
  • Joint coordinates, one per freedom, are all the simulator stores about a pose.
  • Forward kinematics walks out along the chain: move to the joint, turn about its axis, repeat.

Next: poses are not motion. The equations of a moving chain say how the joint coordinates change when torques act.