# Module 2.3: Standardized Arm Conventions

- Course: [Course 2: Robot Modeling, Velocities & Physical Structure](https://roboticsconcepts.dev/courses/robot-modeling-velocities-physical-structure.md)
- HTML Page: https://roboticsconcepts.dev/courses/robot-modeling-velocities-physical-structure/standardized-arm-conventions/
- Key Concepts: Denavit-Hartenberg (DH) parameters, Product of Exponentials (PoE), Screw axes in home configuration

If two engineers measure the same 6-DOF robot arm from scratch, they can easily pick completely different places to put their intermediate coordinate frames — and end up with equations that look incompatible even though they describe the same hardware. That frustration is why standardized arm conventions exist.

## Denavit-Hartenberg (DH): four numbers per link

Back in 1955, Jacques Denavit and Richard Hartenberg asked a clever question: what is the bare minimum number of parameters needed to step from one joint axis to the next in 3D? Normally a 3D transform needs 6 numbers (x, y, z, roll, pitch, yaw). By forcing every frame's Z-axis along the joint axis and its X-axis along the common perpendicular to the next joint, they squeezed each link down to just 4 parameters: link length `a`, link twist `α`, link offset `d`, and joint angle `θ`.

DH parameters are still stamped onto spec sheets for classic industrial arms like Universal Robots and KUKA manipulators. Their downside shows up the moment you try to model parallel axes or branched trees: placing frames along common normals can send coordinate origins flying meters away into empty space, and one tiny sign ambiguity between 'standard' and 'modified' DH trips people up constantly.

## Product of Exponentials (PoE): describe everything at home

A cleaner, modern alternative used throughout libraries like Pinocchio, Drake, and Modern Robotics is the Product of Exponentials (PoE) formula. Instead of inventing tricky intermediate frames along every link, you park the robot in one comfortable 'home' posture (`q = 0`), record the end-effector's home pose `M`, and describe each joint simply by where its spin axis sits in space.

Each joint's motion is captured by a 6D screw axis `S_i = (ω_i, v_i)`: a unit direction vector `ω_i` telling you which way the hinge spins, paired with `v_i = -ω_i × p_i` telling you how that hinge moves the origin because of its offset `p_i` in the home posture. Twist every joint by `θ_i` via the matrix exponential `exp([S_i] θ_i)` and multiply them together onto `M`.

## Hands-On Lab

Open the companion notebook for Module 2.3 (`03_standardized_arm_conventions.py`) to compare DH parameter tables side-by-side with Product of Exponentials screw axes on a 3D arm and verify that both formulas land on the exact same end-effector pose.

## Which convention should you reach for today?

Think of DH like an old imperial blueprint you still need to read because factories print it on datasheets, and PoE like a clean geometric tool you use when writing fresh kinematics code.

With PoE, there are no awkward frame-alignment rules to memorize, no division-by-zero surprises when two hinges are parallel, and zero ambiguity between branches — every joint's screw axis is measured directly in one shared base frame while the robot stands still at home.

## Product of Exponentials (Space Frame)

```text
T(θ) = exp([S₁]θ₁) · exp([S₂]θ₂) · … · exp([Sₙ]θₙ) · M
```

`M` is the 4×4 end-effector pose when all joint angles are zero, and each `exp([Sᵢ]θᵢ)` rotates/translates space around joint `i`'s home screw axis `Sᵢ`.

## Check Your Intuition

**Question:** Why do many modern robotics libraries prefer Product of Exponentials (or URDF trees) over classical DH parameters for multi-limbed robots?

- [ ] DH parameters can only represent prismatic joints, not revolute hinges
- [✓] PoE only needs one base frame plus the home pose `M`, avoiding finicky intermediate frame rules and handling parallel or branched axes naturally
- [ ] PoE runs without using sines or cosines

**Explanation:** PoE eliminates ambiguous intermediate frame placement rules and works seamlessly even when joint axes are parallel or part of branching kinematic trees.

## Where You'll See This in Modern Robotics

Every screw axis in PoE isn't just useful for forward kinematics — stack those exact transformed screw axes side-by-side as columns and you immediately get the robot's geometric Jacobian matrix for velocity control.

## Companion Python Notebook: 03 · DH Parameters vs. Product of Exponentials

Build both a Denavit-Hartenberg FK solver and a 2D/3D screw-axis Product of Exponentials solver and assert they agree on tip pose.

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