Degrees of Freedom
Introduction
A motor can spin. A robot can reach, turn, and roll. Degrees of freedom (DOF) count the independent ways a mechanism can move. That count tells you what pose you can ask for, which joints you must command, and when a target is simply out of reach.
This article is the mechanical picture behind Motors and actuators. The motor article is how you drive a joint. This one is what the joints mean together: configuration, forward and inverse kinematics, workspace, and the difference between a 6-axis arm and a wheeled robot.
What one degree of freedom is
One degree of freedom is one independent motion. A hinge that only rotates has 1 DOF. Add a second hinge that rotates on its own and you have 2 DOF. The joint angles are the variables you can choose. Call them q1, q2, and so on.
1 2 3 4 5 6 7 8 9 | |
The list of those variables is the configuration:
1 | |
For a simple serial arm, the number of independent joints is the number of DOF. Coupled gears, a closed linkage, or a joint you cannot drive can break that shortcut. The word that matters is independent.
Translation, rotation, and a free body
A rigid object loose in 3D space can move in six independent ways:
| Motion | Axes |
|---|---|
| Translation | along x, y, and z |
| Rotation | roll (around x), pitch (around y), yaw (around z) |
3 translations + 3 rotations = 6 DOF. A pose that names both position and orientation therefore has six numbers:
1 | |
An industrial arm with six independent rotary joints can, in its workspace, aim a tool at a point and also set the tool's orientation. That is why "6-axis robot" and "6-DOF pose" show up together.
Revolute and prismatic joints
Joints connect links (the rigid bars). Two joint types cover most student robots.
| Joint | Motion | Variable | DOF |
|---|---|---|---|
| Revolute | Rotation | angle q = θ |
1 |
| Prismatic | Straight slide | distance q = d |
1 |
A revolute joint is a hinge: a shoulder, an elbow, a wheel steered about a pin. A prismatic joint is a slider: a linear rail, a piston, a leadscrew stage. The links themselves do not add DOF. The joints between them do.
The end effector is the tool on the last link: gripper, suction cup, pen, camera, welder. The joints exist to put that tool in a pose.
Forward kinematics
Forward kinematics answers: given the joint angles, where is the tool?
For a planar arm with two revolute joints and link lengths L1 and L2:
1 2 | |
1 | |
Example: L1 = L2 = 1 m, q1 = 0°, q2 = 0°. Both links lie along x, so the tool is at x = 2 m, y = 0. Bend q2 and the tool moves on an arc. You can compute this before the arm moves, which is how a simulator checks a command.
Inverse kinematics
Inverse kinematics runs the other way: you name the tool pose you want, and you solve for the joint angles.
1 | |
Forward kinematics has one result for one configuration. Inverse kinematics can have:
| Outcome | What it means |
|---|---|
| Several solutions | Elbow-up and elbow-down can both reach the same point |
| One solution | Only one joint set fits |
| No solution | The point is outside the arm, or only reachable by breaking a joint limit |
You pick among the solutions with the limits, the obstacles, and the pose the arm is already in. A mathematical angle that needs q2 = 200° is useless when the joint stops at 90°.
Workspace and joint limits
The workspace is the set of poses the end effector can actually reach. It depends on link lengths, joint type, and joint limits.
A two-link arm with full rotation sweeps a ring (an annulus): too close to the base is a hole, too far is outside the stretched length L1 + L2. If a joint only travels -90° to 90°, that ring shrinks to a sector.
Real joints stop. A typical limit looks like -180° ≤ q1 ≤ 180°. A solution that ignores the stop will command a motor into a hard end, a belt skip, or a stall. Treat joint limits as part of the kinematics, not as a surprise at runtime. Motors and actuators is where stall current and end-stops show up in hardware.
Six-DOF pose
A 6-axis arm is often drawn as six revolute joints from base to gripper:
1 | |
Six independent joints, six DOF. The configuration is q = [q1 … q6]. The pose you care about for a task is still position plus orientation: where the gripper is, and which way it faces. A weld, a screw, and a camera mount all fail if the position is right and the angle is wrong.
Redundancy and underactuation
Redundant means more DOF than the task needs. A 6-value pose with a 7-joint arm leaves one extra motion. You can move the elbow around an obstacle and keep the hand still. Extra joints also help you stay away from joint limits.
Underactuated means fewer actuators than mechanical DOF. A finger with three hinges and one tendon has motions you do not command directly. Springs, contact, and gravity finish the motion. Many grippers and some legs are built this way: fewer motors, less independent control.
| Word | Count |
|---|---|
| Redundant | Actuated DOF above what the task requires |
| Underactuated | Actuators below the mechanical DOF |
Mobile robots
DOF is not only for arms. A robot on a flat floor has a pose with three numbers: x, y, and heading θ. That is 3 DOF of configuration.
The wheels may still refuse to slide sideways. The robot can drive forward and turn, and it reaches a side-step only by a sequence of those motions. Configuration variables and the motions available at one instant are different facts.
A differential-drive base is the usual student case. An omnidirectional base (mecanum or omni wheels) is built so more of those three directions are available at once. Either way, write down the configuration, then write down which directions the wheels actually allow.
Relevant topics
- Motors and actuators
- Vision-guided robotics
- Sensors, actuators & PWM
- ROS development
- Forward kinematics (Wikipedia)
Starting points
- Count the independent joints on a kit arm or a drawing. Write
qand say what motion each entry is (revolute or prismatic). - Compute the planar two-link example with
L1 = L2 = 1and two angle pairs, includingq1 = q2 = 0. - Sketch elbow-up and elbow-down for one target point and mark one pose that a joint limit would forbid.
- Separate configuration from instant motion for a wheeled base: list
x,y,θ, then list which of those the wheels can change directly.
Focus points
- Independent motions count. A joint locked to another joint does not add a DOF.
- Joint limits throw away inverse-kinematics answers that the metal cannot reach.
- Position and orientation are both part of a 6-DOF pose. A gripper at the right point, facing the wrong way, misses the part.
- Redundant and underactuated describe opposite mismatches between joints, actuators, and the task.
- A mobile robot's pose variables can be more than the directions it can move in one step.
Key points
- One DOF is one independent motion. Revolute joints rotate (
θ), prismatic joints slide (d). - Forward kinematics maps joint configuration to tool pose. Inverse kinematics maps a desired pose back to joints, sometimes with several answers or none.
- Workspace and joint limits decide which of those answers are physical.
- A free rigid body has 6 DOF (3 translations + 3 rotations). Extra joints are redundancy. Fewer actuators than DOF is underactuation.