What is a Robot, and What is Kinematics?
When I first started working on robot arms, I assumed everything useful began with motor torques and differential equations. In practice, half the headaches you run into day-to-day are pure geometry — figuring out how parts are allowed to move before you ever turn a motor on.
Core ideas covered in this module
- Kinematics vs. dynamics
- Rigid links & joints (revolute, prismatic)
- Degrees of freedom (DOF)
Separating motion geometry from forces
Think about opening a heavy door vs. opening a hollow cardboard door. They take very different pushes to swing (that's dynamics — mass, inertia, and torque), yet both doors trace the exact same circular arc around their hinges. Studying that geometric arc without worrying about mass or force is what kinematics means.
Every robot arm, gantry, or legged machine is built from rigid pieces called links connected by moving joints. In software, we treat each link as completely stiff — it doesn't bend or stretch — so all the interesting motion happens at the joints.
Hinges, sliders, and counting degrees of freedom
Even fancy humanoid robots are mostly combinations of just two simple joint types:
- Revolute joints (hinges): one piece rotates around a pin relative to the next — like your elbow, a laptop lid, or a door hinge.
- Prismatic joints (sliders): one piece slides straight along a rail — like a kitchen drawer, a 3D-printer bed, or a telescoping forklift.
Interactive lab
DOF Explorer
Canvas / SVG· Live2 DOF: The tip sweeps a full 2D region, though orientation at each point is fixed.
Why degrees of freedom matter in practice
Each unlocked hinge or slider adds one independent number you have to choose — one degree of freedom (DOF). Lock every joint and you have 0 DOF: a welded sculpture that can only sit at a single point. Unlock one joint and the tip can trace a 1D curve or line. Unlock two and it sweeps out a 2D area.
A free object floating in 3D space needs 6 numbers to describe where it is and how it's tilted (X, Y, Z position plus Roll, Pitch, Yaw orientation). That's why most industrial robot arms have 6 joints: they need at least 6 DOF to place a gripper anywhere inside their workspace at any angle. Add a 7th joint — like your own arm from shoulder to wrist — and you get redundancy, meaning you can keep your hand still while swinging your elbow around an obstacle.
Counting planar vs. 3D degrees of freedom
Pose in 2D = (x, y, φ) → 3 DOF | Pose in 3D = (x, y, z, roll, pitch, yaw) → 6 DOF
If a robot has fewer joints than the space it operates in, some poses are impossible to reach independently. If it has more, it has extra freedom to dodge obstacles.
You have a 2-link planar arm with two revolute hinges, and you weld the elbow joint shut so it cannot bend. How many degrees of freedom does the arm have left?
In modern simulation and RL, your action vector dimension usually equals the robot's active DOF. Before training a policy, knowing which joints are revolute, prismatic, or fixed tells you immediately what the robot can and can't physically express.
Hands-On Python Notebook
01 · Joints, Linkages & Degrees of Freedom Lab
Build forward_chain() and sample_reachable_cloud() in Python/NumPy to experiment with revolute hinges, prismatic sliders, and joint locks.
Try this on your own inside the notebook
- Add a 3rd revolute link and compare the sampled reachable area
- Swap Joint 1 to a prismatic slider and measure its straight-line span
In Google Colab, use File → Save a copy in Drive to keep your own edits and notes. Or download the files directly:
uvx marimo edit --sandbox notebooks/course-1/01_what_is_kinematics_dof.pyWrap up this module
Saved automatically in your browser profile so you can pick up right where you left off.