Robotics & Machine Intelligence (WS 2026/27)
Interaktives Studien- und Nachschlagewerk für das Master-Modul Robotics and Machine Intelligence (IRMI) bei Prof. Dr. Artur Andrzejak (Künstliche Intelligenz für Programmierung — AIP, Universität Heidelberg, Wintersemester 2026/27).
🧭 Lernmodus-Dashboard (Study Mode Navigation)
Abschnitt betitelt „🧭 Lernmodus-Dashboard (Study Mode Navigation)“Klicke auf eine der Kacheln unten, um den sichtbaren Inhalt der Seite live umzuschalten:
📐 Modus: Kinematik & Lie-Gruppen Explorer 8 Kern-Operatoren • SO(3) & SE(3)
Abschnitt betitelt „📐 Modus: Kinematik & Lie-Gruppen Explorer “Die Raumkinematik moderner Roboter beruht auf der eleganten Theorie der Lie-Gruppen und Lie-Algebren. Statt rein trockener Gleichungen kannst du hier Koordinaten-Frames im 3D-Raum drehen, Rotationsmatrizen live ablesen und mehrgelenkige Roboterarme mit der Product-of-Exponentials-Formel (PoE) steuern:
3D Matrix- & Roboterarm-Visualisierer
Visuelle Geometrie statt reiner Theorie: Verstehe Drehmatrizen SO(3), Freiheitsgrade (DoF), Schraubenachsen & Product of Exponentials (PoE) in Echtzeit.
Drehachsen & Euler-Winkel
Tippe Werte direkt in die Matrixzellen ein oder wähle eine Vorlesungsmatrix: Eulerwinkel & 3D-Frame passen sich automatisch an!
Matrizen in der Robotik: Vom Vektorraum zur Lie-Gruppe
Warum reicht klassische lineare Algebra für Roboter nicht aus? In der Robotik sind Matrizen nicht bloße Zahlentabellen, sondern geometrische Operatoren, Koordinatentransformationen und Lie-Gruppen-Elemente.
Wie liest man eine Drehmatrix R?
Eine 3×3-Matrix R_sb beschreibt die Orientierung des bewegten Körpers {b} im Basisraum {s}. Die Spalten sind keine zufälligen Zahlen, sondern die projizierten Einheitsvektoren:
Wann ist eine Matrix eine echte Drehung?
Nicht jede 3×3-Matrix ist eine Drehung. In SO(3) (Special Orthogonal Group) müssen zwei fundamentale Bedingungen exakt erfüllt sein:
- 1. OrthogonalitätDie Vektoren stehen paarweise senkrecht aufeinander und haben Einheitslänge. Die Inverse ist schlicht die Transponierte!
- 2. Rechts-Händigkeit (det = +1)det(R) = -1 wäre eine Spiegelung (Improper Rotation), kein physisch möglicher Starrkörper!
Klammer-Operator [ω] & Lie-Algebra so(3)
Das Kreuzprodukt zweier Vektoren a × b kann als Matrixmultiplikation [a] b geschrieben werden. Dies bildet ℝ³ isomorph auf die Lie-Algebra so(3) ab:
Matrix-Exponential & Rodrigues-Formel
Ein Punkt, der um eine Drehachse kreist, erfüllt die Differentialgleichung ẋ = [ω̂] x. Die analytische Lösung ist das Matrix-Exponential:
Verbindet die Drehgeschwindigkeit [ω̂] ∈ so(3) mit der endlichen Drehung R ∈ SO(3). Invers: Über die Spur tr(R) = 1 + 2 cos θ berechnet man den Drehwinkel zurück!
Homogene Transformation SE(3) & Inverse
Kombiniert Drehung R und Verschiebung p in einer einheitlichen 4×4-Matrix. Warum ist die Inverse nicht einfach -p?
Freiheitsgrade (DoF) & Grübler-Formel
Ein freier Starrkörper hat in 2D genau 3 DoF (x, y, θ) und in 3D genau 6 DoF (x, y, z, Roll, Pitch, Yaw). Für vernetzte Gelenke gilt Grüblers Formel:
N = Anzahl Glieder (inkl. Basis), J = Anzahl Gelenke, f_i = Freiheitsgrade des i-ten Gelenks. Für den 6-Achs AR4: N=7, J=6, f_i=1 ⟹ m = 6(7 - 1 - 6) + 6 = 6 DoF!
Gimbal Lock & Das Roboterarm-Prinzip
Warum das Flugzeug-Beispiel oft verwirrt, aber der Roboterarm sofort einleuchtet: Betrachte einen Roboterarm mit 2 Gliedern und 3 Drehgelenken (Basis dreht um z, Mitte kippt um y, Kopf dreht um x).
🗺️ Transformationsgraph einer Roboterszene
Abschnitt betitelt „🗺️ Transformationsgraph einer Roboterszene“Jedes Koordinatensystem (Frame) ist ein Knoten; jede bekannte Starrkörper-Transformation ist eine gerichtete Kante:
flowchart LR S["{s}<br/>Roboter-Basis"] -->|T_se: Vorwärtskinematik| E["{e}<br/>Greifer / Tool"] S -->|T_sc: Kamera-Kalibrierung| C["{c}<br/>Deckenkamera"] C -->|T_co: Posenschätzung| O["{o}<br/>Objekt / Tasse"] E -.->|T_eo = inv(T_se) * T_sc * T_co<br/>Greifziel| O- Mit dem Pfeil multiplizieren: Multiplikation mit Transformationsmatrix ().
- Gegen den Pfeil: Multiplikation mit inverser Matrix ().
- Greifziel vom Greifer aus berechnen: .
🗂️ Kern-Operatoren der Raumkinematik
Abschnitt betitelt „🗂️ Kern-Operatoren der Raumkinematik“Rodrigues' Rotation Formula
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.
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.
- 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)
▶Sonderfälle & Randbedingungen
- 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].
Skew-Symmetric Bracket Operator [ · ] (so(3))
Maps a 3D vector into a 3x3 skew-symmetric matrix such that matrix-vector multiplication reproduces the cross-product exactly.
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.
- Skew-symmetry: [a]^T = -[a]
- Zero trace: tr([a]) = 0
- For unit vector: [a]^3 = -[a]
- 3 free parameters for 3 DoF
▶Sonderfälle & Randbedingungen
- a x (b x c) = b(a . c) - c(a . b)
- Cross product of parallel vectors vanishes: [a]a = a x a = 0
Homogeneous Transformation Matrix (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.
Adding the artificial homogeneous coordinate 1 allows both rotation and translation to be chained via standard associative matrix multiplications.
- 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)
▶Sonderfälle & Randbedingungen
- 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.
Closed-Form Inverse of SE(3) Transform
Exact algebraic inversion of a homogeneous transformation matrix without performing expensive numerical Gaussian elimination or matrix inversion.
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.
- T_{sb} T_{bs} = I_{4x4}
- T_{ab}^{-1} = T_{ba}
- O(1) algebraic computation
▶Sonderfälle & Randbedingungen
- 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.
Screw Axis S and Matrix Bracket [S] 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.
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.
- 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)
▶Sonderfälle & Randbedingungen
- 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.
Product of Exponentials (PoE) — Space Form
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}.
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.
- 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]]
▶Sonderfälle & Randbedingungen
- 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!
Product of Exponentials (PoE) — Body Form
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.
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.
- 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
▶Sonderfälle & Randbedingungen
- 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.
Matrix Logarithm on SO(3) & SE(3)
The mathematical inverse of Rodrigues and the matrix exponential: extracts the rotation axis omega_hat and angle theta from a 3x3 rotation matrix R.
Computes the shortest angular geodesic between two orientations. Essential in numerical inverse kinematics for computing orientation error e_R = log(R^T R_d).
- 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
▶Sonderfälle & Randbedingungen
- 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.