# Module 1.1: What is a Robot, and What is Kinematics?

- Course: [Course 1: Frames, Transform Networks & Intro to Kinematics](https://roboticsconcepts.dev/courses/frames-transform-networks-kinematics.md)
- HTML Page: https://roboticsconcepts.dev/courses/frames-transform-networks-kinematics/what-is-a-robot-and-kinematics/
- Key Concepts: Kinematics vs. dynamics, Rigid links & joints (revolute, prismatic), Degrees of freedom (DOF)

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.

## 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 Sandbox: DOF Explorer

Try locking one joint at a time in the DOF Explorer below, or switch Joint 1 to a Prismatic slider. Watch what happens to the blue reachable dot cloud as the active DOF drops from 3 down to 0.

## 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

```text
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.

## Check Your Intuition

**Question:** 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?

- [ ] 0 DOF — the whole arm is stuck
- [✓] 1 DOF — the tip can only trace a circle around the shoulder
- [ ] 2 DOF — it can still reach any point in the plane

**Explanation:** With the elbow locked, the two links behave like one rigid stick pivoting at the shoulder — 1 unlocked joint gives 1 DOF, tracing a circular arc.

## Where You'll See This in Modern Robotics

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.

## Companion 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.

- Open in molab (WASM): https://molab.marimo.io/github/alchemicduncan/robotics-concepts-dev/blob/main/notebooks/course-1/01_what_is_kinematics_dof.py/wasm
- Open in Google Colab: https://colab.research.google.com/github/alchemicduncan/robotics-concepts-dev/blob/main/notebooks/colab/course-1/01_what_is_kinematics_dof.ipynb
- Download .py: https://roboticsconcepts.dev/downloads/notebooks/course-1/01_what_is_kinematics_dof.py
- Download .ipynb: https://roboticsconcepts.dev/downloads/notebooks/colab/course-1/01_what_is_kinematics_dof.ipynb
- Run locally: `uvx marimo edit --sandbox notebooks/course-1/01_what_is_kinematics_dof.py`
