Skip to content

Robotics & Machine Intelligence (WS 2026/27)

WS 2026/27

Interactive academic vault and learning workspace for Robotics and Machine Intelligence (IRMI) taught by Prof. Dr. Artur Andrzejak (Artificial Intelligence for Programming — AIP, Heidelberg University, Wintersemester 2026/27).


Click any tile below to dynamically switch visible page sections live without page reloads:


📐 Mode: Kinematics & Lie Group Explorer 8 Core Operators • SO(3) & SE(3)

Section titled “📐 Mode: Kinematics & Lie Group Explorer ”

Spatial robotics is built on the mathematical foundation of Lie Groups and Lie Algebras. Rather than studying purely theoretical equations, interact with 3D coordinate frames, real-time matrix transformations, and multi-joint robot arms below:

🕹️ Interactive Kinematics Lab

3D Matrix & Robot Arm Kinematics Studio

Visual geometry beyond theory: Experience SO(3) rotation matrices, Degrees of Freedom (DoF), Screw Axes, and Product of Exponentials (PoE) in real time.

SO(3) Frame View🖱️ Drag: Orbit · Scroll: Zoom
SO(3) Lie GroupOrthogonal ✓

Rotation Angles & Orientation

Roll (X) · φ0°
Pitch (Y) · θ0°
Yaw (Z) · ψ0°
Presets:
Rotation Matrix R ∈ SO(3)✍️ Directly Editable
💡 Columns = Basis Vectors!

Type values directly into matrix cells or pick a lecture preset: Euler angles & 3D frame update in real time!

● Col 1: x̂_b (Red)● Col 2: ŷ_b (Green)● Col 3: ẑ_b (Blue)
📚 Lecture Slide Matrices:
det(R):1.000
tr(R):3.000
Angle θ:0.0°
⚙️ Order of Rotations:
📐 Mathematical Foundations

Matrices in Robotics: From Vector Space to Lie Groups

Why standard linear algebra is not enough for robotics: In robotics, matrices are not just tables of numbers, but geometric operators, coordinate frames, and elements of Lie groups.

🎯 Concept 1

Reading a Rotation Matrix R

A 3×3 matrix R_sb describes the orientation of the moving body {b} relative to the base space frame {s}. The columns are the projected unit vectors of {b}:

Rsb=[x^by^bz^b]=[r11r12r13r21r22r23r31r32r33]R_{sb} = \begin{bmatrix} \hat{x}_b & \hat{y}_b & \hat{z}_b \end{bmatrix} = \begin{bmatrix} r_{11} & r_{12} & r_{13} \\ r_{21} & r_{22} & r_{23} \\ r_{31} & r_{32} & r_{33} \end{bmatrix}
💡 Golden Exam Rule:Column 1 is the red x-axis of {b} in {s}-coordinates. Column 2 is the green y-axis. Column 3 is the blue z-axis. Compare with the 3D visualizer above!
⚖️ Concept 2

Valid SO(3) Rotation Invariants

Not every 3×3 matrix represents a rigid rotation. In the Special Orthogonal group SO(3), two conditions must strictly hold:

RTR=I  ⟹  R−1=RTanddet⁡(R)=+1R^T R = I \implies R^{-1} = R^T \quad \text{and} \quad \det(R) = +1
  • 1. OrthogonalitätAll columns are mutually perpendicular unit vectors. Inversion requires only matrix transposition!
  • 2. Rechts-Händigkeit (det = +1)det(R) = -1 indicates a reflection (improper rotation), which is physically impossible for a rigid body.
⚡ Concept 3

Bracket Operator [ω] & Lie Algebra so(3)

The vector cross product a × b can be written as matrix multiplication [a] b. This maps ℝ³ isomorphically onto the Lie algebra so(3):

[ω]=[0−ω3ω2ω30−ω1−ω2ω10]∈so(3)[\omega] = \begin{bmatrix} 0 & -\omega_3 & \omega_2 \\ \omega_3 & 0 & -\omega_1 \\ -\omega_2 & \omega_1 & 0 \end{bmatrix} \in so(3)
Schiefsymmetrie[ω]T=−[ω][\omega]^T = -[\omega]
Zyklische Potenz[ω^]3=−[ω^][\hat{\omega}]^3 = -[\hat{\omega}]
🌀 Concept 4

Matrix Exponential & Rodrigues Formula

A point orbiting an axis satisfies the differential equation ẋ = [ω̂] x. Its analytical closed-form solution is the matrix exponential:

e[ω^]θ=I+sin⁡θ[ω^]+(1−cos⁡θ)[ω^]2∈SO(3)e^{[\hat{\omega}]\theta} = I + \sin\theta [\hat{\omega}] + (1 - \cos\theta) [\hat{\omega}]^2 \in SO(3)

Bridges instantaneous angular velocity in so(3) to finite rotation in SO(3). Inverse: The trace tr(R) = 1 + 2 cos θ extracts the rotation angle θ!

🔄 Concept 5

Homogeneous Transformation SE(3) & Inverse

Combines rotation R and translation p into a single 4×4 matrix. Why is the inverse translation -R^T p instead of -p?

T=[Rp0T1]  ⟹  T−1=[RT−RTp0T1]T = \begin{bmatrix} R & p \\ \mathbf{0}^T & 1 \end{bmatrix} \implies T^{-1} = \begin{bmatrix} R^T & -R^T p \\ \mathbf{0}^T & 1 \end{bmatrix}
💡 Geometric Intuition for -R^T p:Vector p points from the space origin to the body origin. In the inverse T_bs, we look from the rotated body frame back to the space origin! Thus the vector must be rotated by R^T into the body frame coordinates.
🦾 Concept 6

Degrees of Freedom (DoF) & Grübler Formula

An unconstrained rigid body has 3 DoF in 2D (x, y, θ) and 6 DoF in 3D (x, y, z, Roll, Pitch, Yaw). For jointed mechanisms, Grübler’s formula determines mobility:

m=6(N−1−J)+∑i=1Jfi(Spatial 3D)m = 6(N - 1 - J) + \sum_{i=1}^J f_i \quad (\text{Spatial 3D})

N = number of links (including base), J = number of joints, f_i = degrees of freedom of joint i. For the 6-axis AR4: N=7, J=6, f_i=1 ⟹ m = 6(7 - 1 - 6) + 6 = 6 DoF!

⚠️ Concept 7

Gimbal Lock & The Robot Arm Principle

Why airplane analogies confuse, but robot arms make it crystal-clear: Consider a robotic arm with 2 links and 3 revolute joints (Base rotates around z, Middle tilts around y, Head rolls around x).

R=Rz(ψ)Ry(90∘)Rx(ϕ)=Rz(ψ+ϕ)Ry(90∘)R = R_z(\psi) R_y(90^\circ) R_x(\phi) = R_z(\psi + \phi) R_y(90^\circ)
💡 The Intuitive Kinematics:When the middle joint tilts to 90°, the arm stands vertically upright. The rotation axis of the head aligns identically with the base z-axis! Turning either joint produces the exact same motion around the vertical axis. 1 DoF is lost!

🗺️ Transform Graph of a Robotic Scene

Section titled “🗺️ Transform Graph of a Robotic Scene”

Every coordinate frame in a robotics workspace is a node; every known rigid transformation is a directed edge:

flowchart LR
S["{s}<br/>Robot Base"] -->|T_se: Forward Kinematics| E["{e}<br/>Gripper / Tool"]
S -->|T_sc: Camera Calibration| C["{c}<br/>Overhead Camera"]
C -->|T_co: Pose Estimation| O["{o}<br/>Object / Cup"]
E -.->|T_eo = inv(T_se) * T_sc * T_co<br/>Grasp Target| O
  • Follow an arrow: Multiply by transformation matrix (Tac=TabTbcT_{ac} = T_{ab} T_{bc}).
  • Go against an arrow: Multiply by inverse matrix (Tba=Tab−1T_{ba} = T_{ab}^{-1}).
  • Grasp target from gripper: Teo=Tse−1TscTcoT_{eo} = T_{se}^{-1} T_{sc} T_{co}.

🗂️ Core Kinematic Transformation Cards

Section titled “🗂️ Core Kinematic Transformation Cards”
Lecture 2 & 3 · MR § 3.2.3SO(3) Rotation

Rodrigues' Rotation Formula

Formula:
R=Rot(ω^,θ)=e[ω^]θ=I+sin⁡θ[ω^]+(1−cos⁡θ)[ω^]2R = \mathrm{Rot}(\hat{\omega}, \theta) = e^{[\hat{\omega}]\theta} = I + \sin\theta [\hat{\omega}] + (1 - \cos\theta)[\hat{\omega}]^2

Closed-form solution for the matrix exponential on SO(3), turning an axis-angle rotation pair (unit vector omega_hat and angle theta) directly into a 3x3 orthogonal rotation matrix.

💡Geometric & Physical Intuition

The identity matrix I preserves the vector component along the axis. The term sin(theta)[omega_hat] pushes sideways along the circle tangent. The term (1 - cos(theta))[omega_hat]^2 pulls radially inwards toward the rotation axis to keep the trajectory on the circle.

Key Invariants & Properties:
  • ✓For any unit vector: [omega_hat]^3 = -[omega_hat] (powers repeat with alternating signs: +, +, -, -)
  • ✓Orthogonality: R^T R = I and det(R) = +1 (preserves lengths ||Rv|| = ||v|| and right-handedness)
  • ✓Inversion cost is zero: R^{-1} = R^T = Rot(omega_hat, -theta)
▶Special Cases & Boundary Conditions
  • Requires ||omega_hat|| = 1. If speed ||omega|| != 1, time t rescales the angle: theta = ||omega|| * t.
  • For small angles theta << 1, Taylor approximation yields R approx I + theta[omega_hat].
Lecture 2 & 3 · MR § 3.2.2Lie Algebra

Skew-Symmetric Bracket Operator [ · ] (so(3))

Formula:
[a]=(0−a3a2a30−a1−a2a10)∈so(3),[a]b=a×b[a] = \begin{pmatrix} 0 & -a_3 & a_2 \\ a_3 & 0 & -a_1 \\ -a_2 & a_1 & 0 \end{pmatrix} \in so(3), \quad [a]b = a \times b

Maps a 3D vector into a 3x3 skew-symmetric matrix such that matrix-vector multiplication reproduces the cross-product exactly.

💡Geometric & Physical Intuition

Row i of [a] contains the linear coefficients of vector a in component i of the vector cross product a x b. Represents infinitesimal rotations and angular velocity.

Key Invariants & Properties:
  • ✓Skew-symmetry: [a]^T = -[a]
  • ✓Zero trace: tr([a]) = 0
  • ✓For unit vector: [a]^3 = -[a]
  • ✓3 free parameters for 3 DoF
▶Special Cases & Boundary Conditions
  • a x (b x c) = b(a . c) - c(a . b)
  • Cross product of parallel vectors vanishes: [a]a = a x a = 0
Lecture 2 · MR § 3.3.1SE(3) Transform

Homogeneous Transformation Matrix (SE(3))

Formula:
Tsb=(Rsbpsb01)=(r11r12r13p1r21r22r23p2r31r32r33p30001)∈SE(3)T_{sb} = \begin{pmatrix} R_{sb} & p_{sb} \\ \mathbf{0} & 1 \end{pmatrix} = \begin{pmatrix} r_{11} & r_{12} & r_{13} & p_1 \\ r_{21} & r_{22} & r_{23} & p_2 \\ r_{31} & r_{32} & r_{33} & p_3 \\ 0 & 0 & 0 & 1 \end{pmatrix} \in SE(3)

Combines 3D orientation R in SO(3) and 3D translation p in R^3 into a single 4x4 matrix representing rigid body pose in space.

💡Geometric & Physical Intuition

Adding the artificial homogeneous coordinate 1 allows both rotation and translation to be chained via standard associative matrix multiplications.

Key Invariants & Properties:
  • ✓Subscript cancellation rule: T_{ab} T_{bc} = T_{ac}
  • ✓Vector conversion: p_s = R_{sb} p_b + p_{sb}
  • ✓A point gets a 1 appended (shifts); a direction/velocity gets a 0 appended (only rotates)
▶Special Cases & Boundary Conditions
  • Order of composition matters: non-commutative Tab Tbc != Tbc Tab.
  • Subscripts must match identically: if inner subscripts do not cancel, the operation is physically invalid.
Lecture 2 · MR § 3.3.1SE(3) Transform

Closed-Form Inverse of SE(3) Transform

Formula:
Tsb−1=Tbs=(R⊤−R⊤p01)T_{sb}^{-1} = T_{bs} = \begin{pmatrix} R^\top & -R^\top p \\ \mathbf{0} & 1 \end{pmatrix}

Exact algebraic inversion of a homogeneous transformation matrix without performing expensive numerical Gaussian elimination or matrix inversion.

💡Geometric & Physical Intuition

To reverse from {b} to {s}, you un-rotate the world using R^T, and un-shift the origin position: p_{new} = -R^T * p.

Key Invariants & Properties:
  • ✓T_{sb} T_{bs} = I_{4x4}
  • ✓T_{ab}^{-1} = T_{ba}
  • ✓O(1) algebraic computation
▶Special Cases & Boundary Conditions
  • Do not invert p as -p alone! It must be rotated by -R^T p.
  • Check: (R p) * (R^T -R^T p) = R R^T p - R R^T p = 0.
Lecture 3 · MR § 3.3.2Lie Algebra

Screw Axis S and Matrix Bracket [S] in se(3)

Formula:
S=(ω^,v)∈R6,[S]=([ω^]v00)∈se(3)\mathcal{S} = (\hat{\omega}, v) \in \mathbb{R}^6, \quad [\mathcal{S}] = \begin{pmatrix} [\hat{\omega}] & v \\ \mathbf{0} & 0 \end{pmatrix} \in se(3)

A 6-vector packing angular velocity omega_hat and linear velocity v representing spatial rigid body motion. [S] is its 4x4 matrix Lie algebra representation.

💡Geometric & Physical Intuition

For a revolute joint, omega_hat is the unit direction axis, and v = -omega_hat x q is the velocity of the point at the origin of frame {s} if the body were rigidly extended there. Any point q on the axis yields the exact same v.

Key Invariants & Properties:
  • ✓Revolute Joint: ||omega_hat|| = 1, v = -omega_hat x q
  • ✓Prismatic Joint: omega_hat = 0, ||v|| = 1 (linear sliding direction)
  • ✓Matrix exponential of [S]*theta gives rigid spatial displacement in SE(3)
▶Special Cases & Boundary Conditions
  • v is NOT the linear velocity of joint q! It is the linear velocity of the origin {s}.
  • Adding any multiple c * omega_hat to q leaves v invariant since omega_hat x omega_hat = 0.
Lecture 3 · MR § 4.1.1Forward Kinematics

Product of Exponentials (PoE) — Space Form

Formula:
T(θ)=e[S1]θ1e[S2]θ2⋯e[Sn]θnMT(\theta) = e^{[\mathcal{S}_1]\theta_1} e^{[\mathcal{S}_2]\theta_2} \cdots e^{[\mathcal{S}_n]\theta_n} M

Computes forward kinematics for an n-joint robot arm without requiring intermediate link reference frames. Only needs base {s}, home pose M, and screw axes S_i in {s}.

💡Geometric & Physical Intuition

Each joint turns everything downstream of it as a single rigid body. Because downstream joints are evaluated starting from the tip to the base when joints are at zero, each transformation factor multiplies from the LEFT.

Key Invariants & Properties:
  • ✓All screw axes S_i are evaluated at the home pose theta = 0 in base frame {s}
  • ✓M in SE(3) is the end-effector home pose T(0)
  • ✓e^{[S_i]theta_i} = [[Rot(w_i, theta_i), (I - Rot(w_i, theta_i))q_i], [0, 1]]
▶Special Cases & Boundary Conditions
  • Space Form has M on the far RIGHT: T = e^{S1}...e^{Sn} * M.
  • No link frames are needed — eliminates Denavit-Hartenberg (DH) convention confusion!
Lecture 3 · MR § 4.1.2Forward Kinematics

Product of Exponentials (PoE) — Body Form

Formula:
T(θ)=Me[B1]θ1e[B2]θ2⋯e[Bn]θnT(\theta) = M e^{[\mathcal{B}_1]\theta_1} e^{[\mathcal{B}_2]\theta_2} \cdots e^{[\mathcal{B}_n]\theta_n}

PoE formula expressed using body screw axes B_i seen from the tool frame {b} at home pose. Note that home pose M stands on the LEFT.

💡Geometric & Physical Intuition

Each joint rotation is applied relative to the moving tool frame {b}. Because each successive factor describes motion relative to the current frame, factors multiply from the RIGHT.

Key Invariants & Properties:
  • ✓Both Space Form and Body Form produce the exact same physical pose T(theta)
  • ✓Adjoint relationship: B_i = [Ad_{M^{-1}}] S_i
  • ✓Extremely convenient for numerical IK when task errors are measured at the gripper
▶Special Cases & Boundary Conditions
  • Crucial formula difference: In Space form, M is on the right; in Body form, M is on the left.
  • B_i axes are fixed in the tool frame {b} at home pose.
Lecture 3 · MR § 3.2.3.3 & 3.3.3.2Inverse Kinematics

Matrix Logarithm on SO(3) & SE(3)

Formula:
θ=arccos⁡(tr(R)−12),[ω^]=12sin⁡θ(R−R⊤)\theta = \arccos\left(\frac{\mathrm{tr}(R) - 1}{2}\right), \quad [\hat{\omega}] = \frac{1}{2\sin\theta}(R - R^\top)

The mathematical inverse of Rodrigues and the matrix exponential: extracts the rotation axis omega_hat and angle theta from a 3x3 rotation matrix R.

💡Geometric & Physical Intuition

Computes the shortest angular geodesic between two orientations. Essential in numerical inverse kinematics for computing orientation error e_R = log(R^T R_d).

Key Invariants & Properties:
  • ✓Valid for 0 < theta < 180 degrees
  • ✓For theta = 0, R = I, omega is arbitrary
  • ✓For theta = 180 degrees, tr(R) = -1, diagonal formula must be used
▶Special Cases & Boundary Conditions
  • Special care is required near theta = 0 and theta = 180 to avoid division by zero.
  • For SE(3), log(T) yields the 6D twist V = S * theta.