Configuration Space (C-Space) Intuition
When I first tried to plan a path for a robot arm around a table, I kept drawing arrows around the table in 3D room coordinates and wondering why the elbow still clipped the lamp. You cannot just steer the fingertips — you have to account for the whole body of the robot.
Core ideas covered in this module
- Workspace vs. Configuration Space
- C-space obstacle inflation
- Shortest path in joint space
Why steering the hand isn't enough
Think about carrying a long wooden ladder through a narrow hallway corner. You can't just trace a neat line for the front tip of the ladder and assume the rest will follow cleanly; the back half swings wide and catches the doorframe.
A robot arm or a mobile base has the exact same problem in what we call the Workspace — the physical 2D or 3D room with tables, walls, and coffee mugs. Because the robot has links, wheels, and elbows sticking out, checking whether a whole multi-part shape fits through every point along a path gets messy fast.
Shrinking the robot to a single point
Here is the mental flip that makes motion planning click: instead of tracking every link in the room, we list the robot's joint angles — say (θ₁, θ₂) for a two-link arm — and treat that pair of numbers as a point in a new map called Configuration Space (or C-space).
- In Workspace, the robot is a complicated multi-link shape moving around simple circles and boxes.
- In C-Space, the entire robot shrinks down to a single dimensionless dot at coordinates (θ₁, θ₂).
- The price we pay for that simplicity is that physical obstacles warp into curved, sometimes surprising forbidden blobs inside C-space.
Interactive lab
Synchronized Workspace & C-Space Obstacle Mapper
Canvas / SVG· LiveDarker red C-space cells = Link 1 collision; lighter red = Link 2 collision.
Reading the obstacle map in joint angles
Try moving the obstacle close to the base joint so Link 1 can hit it. Suddenly a whole vertical stripe across the C-space grid turns red, because once θ₁ aims Link 1 into the obstacle, no value of θ₂ can save you.
Move the obstacle farther out where only Link 2 can reach it, and you get curved diagonal bands instead. Once that C-space map is built, planning a collision-free motion is much simpler: any continuous curve connecting start (θ₁, θ₂) to goal (θ₁*, θ₂*) through the open white cells is guaranteed not to hit anything in the room.
From Workspace collision to C-space
C_free = { q ∈ C | Robot(q) ∩ Obstacles = ∅ }
Every joint vector q maps to a full robot body pose via forward kinematics. The free space C_free is simply the set of joint configurations where no link touches an obstacle.
If an obstacle sits close enough to the shoulder that Link 1 collides with it at θ₁ = 35°, what shape does that collision create on a (θ₁, θ₂) C-space plot?
Modern arm planners like MoveIt, cuRobo, and MuJoCo-based trajectory optimizers never actually draw a full grid in 7D C-space — instead, they query fast signed-distance collision checks at candidate joint vectors q along a path.
Hands-On Python Notebook
01 · Workspace to C-Space Obstacle Mapping Lab
Sample a 2-link arm across (θ₁, θ₂), check segment-circle collisions, and run BFS directly in configuration space to dodge physical obstacles.
Try this on your own inside the notebook
- Add a second circular obstacle and observe how C-space islands merge
- Find the shortest collision-free joint-space path around a barrier
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-3/01_configuration_space_intuition.pyWrap up this module
Saved automatically in your browser profile so you can pick up right where you left off.