Fatskills
Practice. Master. Repeat.
Study Guide: AI Foundations: Degrees of freedom and robot motion
Source: https://www.fatskills.com/ai-for-work/chapter/ai-foundations-degrees-of-freedom-and-robot-motion

AI Foundations: Degrees of freedom and robot motion

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~5 min read

Degrees of Freedom and Robot Motion

What This Is

Degrees of freedom (DoF) measure how many independent ways a robot (or any mechanical system) can move in 3D space. In real work, DoF determines a robot’s flexibility—whether it can reach around obstacles, manipulate objects precisely, or adapt to dynamic environments. Example: A robotic arm in a car factory has 6 DoF (3 for position, 3 for orientation), letting it weld seams on curved surfaces without repositioning the car.


Key Facts & Principles

  • Degrees of Freedom (DoF): The number of independent parameters (e.g., joint angles, translations) that define a robot’s pose. Example: A drone has 6 DoF (3D position + 3D rotation), but a wheeled robot on flat ground has only 3 (x, y, yaw).
  • Joint Types: Each joint adds DoF. Revolute joints (rotary, like elbows) add 1 DoF; prismatic joints (linear, like pistons) add 1 DoF. Example: A 2-joint arm with one revolute and one prismatic joint has 2 DoF.
  • Task Space vs. Joint Space: Task space describes motion in real-world coordinates (e.g., "move the gripper to (x=1m, y=0.5m)"). Joint space describes motion in joint angles/positions (e.g., "rotate joint 1 to 30°"). Example: A pick-and-place robot plans in task space but executes in joint space.
  • Redundancy: A robot with more DoF than needed for a task (e.g., a 7-DoF arm for a 6-DoF task) can avoid obstacles or optimize for speed. Example: A surgical robot uses redundancy to reach around a patient’s ribs.
  • Singularities: Configurations where the robot loses DoF (e.g., an arm fully outstretched can’t move sideways). Example: A 6-DoF arm at a singularity may fail to rotate its wrist, even if the task requires it.
  • Workspace: The volume a robot can reach. Reachable workspace includes all positions; dexterous workspace includes positions where the robot can orient its end-effector freely. Example: A 3-DoF SCARA robot has a cylindrical reachable workspace but limited dexterity.
  • Inverse Kinematics (IK): Calculates joint angles needed to reach a desired task-space pose. Example: To place a part at (x=0.8m, y=0.2m), IK solves for the arm’s joint angles.
  • Forward Kinematics (FK): Calculates the end-effector pose from joint angles. Example: Given joint angles [45°, 30°, 0°], FK computes the gripper’s position and orientation.

Step-by-Step Application

  1. Define the Task Requirements
  2. List the minimum DoF needed (e.g., 3 for 2D positioning, 6 for full 3D manipulation).
  3. Example: A bin-picking robot needs 6 DoF to grasp parts at arbitrary angles.

  4. Map DoF to Robot Design

  5. Choose joints to match DoF (e.g., 3 revolute joints for a 3-DoF arm).
  6. Example: A delta robot (3 prismatic + 3 revolute joints) is fast but limited to 3D positioning (no wrist rotation).

  7. Avoid Singularities in Motion Planning

  8. Use IK solvers that detect singularities (e.g., check Jacobian matrix rank).
  9. Example: Add a small offset to joint angles if the arm nears full extension.

  10. Leverage Redundancy for Obstacle Avoidance

  11. For robots with >6 DoF, use null-space optimization to keep joints away from limits.
  12. Example: A 7-DoF arm can adjust its elbow position to avoid a human worker while reaching a target.

  13. Validate Workspace Coverage

  14. Simulate the robot’s reachable workspace (e.g., using ROS or MATLAB).
  15. Example: Ensure a palletizing robot can reach all corners of a 1m×1m pallet.

  16. Test Edge Cases

  17. Manually move the robot to singularities or workspace limits to verify safety stops.
  18. Example: Check if a collaborative robot (cobot) stops when its wrist is fully rotated.

Common Mistakes

  • Mistake: Assuming more DoF always means better performance. Correction: Extra DoF add complexity (cost, control difficulty, maintenance). Example: A 4-DoF arm may suffice for simple pick-and-place tasks—don’t over-engineer.

  • Mistake: Ignoring singularities in motion planning. Correction: Use IK solvers with singularity avoidance (e.g., damped least-squares) or add joint limits. Example: A 6-DoF arm stuck at a singularity may fail to rotate its gripper, causing collisions.

  • Mistake: Confusing task-space and joint-space planning. Correction: Plan in task space (e.g., "move to (x,y,z)") but execute in joint space (e.g., "rotate joint 1 to 45°"). Example: A robot programmed in joint space may take inefficient paths if the task changes.

  • Mistake: Overlooking workspace constraints. Correction: Verify the robot’s reachable workspace matches the task (e.g., a short arm can’t reach high shelves). Example: A 5-DoF arm may struggle to orient a tool in tight spaces.

  • Mistake: Not accounting for payload effects on DoF. Correction: Heavy loads reduce precision or speed, especially at full extension. Example: A robot lifting 10kg at max reach may vibrate or miss targets.


Practical Tips

  • Start with the minimum DoF: Use the fewest joints needed for the task to simplify control and reduce costs. Example: A 3-DoF gantry robot is cheaper and faster for 2D tasks than a 6-DoF arm.
  • Use simulation tools: Test DoF and workspace in software (e.g., CoppeliaSim, Gazebo) before hardware deployment. Example: Simulate a robot arm’s reach to confirm it can access all parts on a conveyor.
  • Monitor joint limits: Set software limits to prevent mechanical damage (e.g., stop a joint at 170° if its hardware limit is 180°). Example: A cobot’s elbow joint may hit its limit if the task requires extreme extension.
  • Combine DoF for hybrid tasks: Use mobile bases (3 DoF) + arms (6 DoF) for large workspaces. Example: An autonomous forklift with a 6-DoF arm can pick items from shelves anywhere in a warehouse.

Quick Practice Scenario

Scenario: You’re designing a robot to assemble smartphones. The task requires placing a camera module into a slot at a fixed position but variable orientation (e.g., portrait or landscape). The module must be inserted straight down without tilting. Question: How many DoF does the robot need, and what joint types would you use? Answer: 4 DoF: 3 revolute joints (for x/y/z positioning) + 1 revolute joint (for wrist rotation). Explanation: 3 DoF position the gripper, and 1 DoF orients it (no tilt needed for straight insertion).


Last-Minute Cram Sheet

  1. DoF = independent ways a robot can move (e.g., 6 for full 3D motion).
  2. Revolute joint = 1 DoF (rotation); prismatic joint = 1 DoF (translation).
  3. Task space = real-world coordinates; joint space = joint angles/positions.
  4. Redundancy = extra DoF for obstacle avoidance or optimization.
  5. Singularity = loss of DoF (e.g., arm fully outstretched). Avoid in motion planning.
  6. Workspace = volume robot can reach; dexterous workspace = where it can orient freely.
  7. IK = solve for joint angles to reach a pose; FK = compute pose from joint angles.
  8. Minimum DoF for 3D positioning = 3; for full 3D manipulation = 6.
  9. Heavy payloads reduce precision, especially at max reach. Test under load.
  10. Simulate before building! Workspace gaps or singularities are costly to fix later.