Week 03 | SKILL-023

Week 3 Summary: Mastering Inverse Kinematics

Published: April 13, 2026 | Author: Smartotics Learning Journey | Reading Time: 8 min

This week we tackled one of the most important and challenging topics in robotics: Inverse Kinematics (IK). We went from “what is IK?” to building complete solvers and understanding how they power real robots. Here’s everything we covered.

The Week at a Glance

DayTopicKey Concept
D01IK Series StartThe inverse problem, workspace, multiple solutions
D02Analytical SolutionsClosed-form IK for 2-DOF and 3-DOF arms
D03Jacobian MethodVelocity-based IK with pseudoinverse
D04Numerical MethodsNewton-Raphson, CCD, and convergence
D05Redundancy & OptimizationNull space, joint limits, obstacle avoidance
D06Real-World ApplicationsIndustrial arms, humanoids, surgical robots

Core Concepts Recap

The IK Problem

Forward kinematics asks: “Given joint angles, where is the end-effector?” We learned this in Week 1.

Inverse kinematics asks the reverse: “Given a desired end-effector position, what joint angles achieve it?” This is harder because:

Three Families of Solutions

  1. Analytical (closed-form): Exact, fast, but only works for specific geometries. Uses trigonometry and the law of cosines. Best for: 2-DOF and 3-DOF planar arms, robots with spherical wrists.

  2. Jacobian-based (numerical): Iterative, general-purpose. Uses the relationship between joint velocities and end-effector velocities. The pseudoinverse handles non-square Jacobians. Damped least squares adds singularity robustness.

  3. Heuristic (CCD, FABRIK): Simple, robust, great for real-time. CCD optimizes one joint at a time. FABRIK works with positions instead of angles. Best for: animation and games.

Redundancy as a Superpower

When a robot has more DOF than the task requires, the extra freedom lives in the null space. We can project secondary optimization objectives (joint limit avoidance, obstacle avoidance, singularity avoidance) into this space without affecting the primary task.

This is why 7-DOF arms are popular — that one extra DOF provides enormous practical value.

Code We Built This Week

# Our IK toolkit (summary of all implementations)

# 1. Analytical IK for 2-DOF planar arm
ik_2dof(px, py, L1, L2, elbow='up')

# 2. Analytical IK for 3-DOF with decoupling
ik_3dof(px, py, phi, L1, L2, L3, elbow='up')

# 3. Jacobian pseudoinverse IK
ik_jacobian(target, q_init, L1, L2, alpha=0.5)

# 4. Damped Least Squares IK
ik_damped_ls(target, q_init, L1, L2, lam=0.1)

# 5. Newton-Raphson with line search
ik_newton_raphson(target, q_init, lengths, q_min, q_max)

# 6. Cyclic Coordinate Descent
ik_ccd(target, q_init, lengths)

# 7. Redundancy-aware IK with null space optimization
ik_redundant(target, q_init, lengths, q_min, q_max, obstacle_pos)

These seven functions form a complete IK toolbox. In practice, you’d use libraries like:

What Makes IK Hard in Practice

Understanding the math is one thing. Deploying IK in real robots adds challenges:

  1. Real-time constraints: Industrial controllers solve IK at 1kHz — every millisecond counts
  2. Joint limits and collisions: Every solution must be physically feasible and safe
  3. Dynamic obstacles: The environment changes while the robot is moving
  4. Multi-task coordination: A humanoid must balance while reaching
  5. Precision vs. speed: Higher precision needs more iterations, but you have a time budget

Looking Ahead: Week 4 Preview

Next week we’ll explore Dynamics and Control — the physics of robot motion. Topics include:

If Week 1 was “where is the robot?” and Week 3 was “how do I get there?”, Week 4 answers “how do I get there smoothly and accurately while dealing with physics?”

Your IK Journey Checklist

Before moving on, make sure you can:

If you can check all these boxes, you have a solid foundation in inverse kinematics. Congratulations — this is one of the most mathematically dense topics in introductory robotics, and you’ve conquered it.

See you in Week 4! 🤖