Zum Inhalt springen

Robotics & Machine Intelligence (WS 2026/27)

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).


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:

🕹️ Interaktives Kinematik-Labor

3D Matrix- & Roboterarm-Visualisierer

Visuelle Geometrie statt reiner Theorie: Verstehe Drehmatrizen SO(3), Freiheitsgrade (DoF), Schraubenachsen & Product of Exponentials (PoE) in Echtzeit.

SO(3) Frame View🖱️ Ziehen: Drehen · Rad: Zoom
SO(3) Lie GroupOrthogonal ✓

Drehachsen & Euler-Winkel

Roll (X) · φ0°
Pitch (Y) · θ0°
Yaw (Z) · ψ0°
Presets:
Rotation Matrix R ∈ SO(3)✍️ Interaktiv editierbar
💡 Spalten = Einheitsvektoren!

Tippe Werte direkt in die Matrixzellen ein oder wähle eine Vorlesungsmatrix: Eulerwinkel & 3D-Frame passen sich automatisch an!

● Col 1: x̂_b (Red)● Col 2: ŷ_b (Green)● Col 3: ẑ_b (Blue)
📚 Matrizen aus den Vorlesungsfolien:
det(R):1.000
tr(R):3.000
Angle θ:0.0°
⚙️ Rotationsreihenfolge:
📐 Mathematische Grundlagen

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.

🎯 Konzept 1

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:

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}
💡 Goldene Examens-Regel:Spalte 1 ist der rote x-Vektor von {b} in {s}-Koordinaten. Spalte 2 ist der grüne y-Vektor. Spalte 3 ist der blaue z-Vektor. Siehe Visualisierer oben!
⚖️ Konzept 2

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:

RTR=I  ⟹  R−1=RTanddet⁡(R)=+1R^T R = I \implies R^{-1} = R^T \quad \text{and} \quad \det(R) = +1
  • 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!
⚡ Konzept 3

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:

[ω]=[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}]
🌀 Konzept 4

Matrix-Exponential & Rodrigues-Formel

Ein Punkt, der um eine Drehachse kreist, erfüllt die Differentialgleichung ẋ = [ω̂] x. Die analytische Lösung ist das 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)

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!

🔄 Konzept 5

Homogene Transformation SE(3) & Inverse

Kombiniert Drehung R und Verschiebung p in einer einheitlichen 4×4-Matrix. Warum ist die Inverse nicht einfach -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}
💡 Geometrische Erklärung für -R^T p:Vektor p zeigt vom Raum-Ursprung zum Roboter-Ursprung. In der Inversen T_bs schauen wir aber vom gedrehten Roboter-Frame zurück zum Raum-Ursprung! Daher muss der Translationsvektor mit R^T in die Roboterachsen zurückgedreht werden.
🦾 Konzept 6

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:

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 = 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!

⚠️ Konzept 7

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).

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)
💡 Die anschauliche Kinematik:Macht das Mittelgelenk 90°, zeigt der Arm kerzengerade senkrecht nach oben. Die Drehachse am Kopf fällt exakt mit der z-Drehachse an der Basis zusammen! Ob du an der Basis oder am Kopf drehst: Beide drehen um exakt dieselbe vertikale Raumachse. 1 Rotations-DoF geht verloren!

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 (Tac=TabTbcT_{ac} = T_{ab} T_{bc}).
  • Gegen den Pfeil: Multiplikation mit inverser Matrix (Tba=Tab−1T_{ba} = T_{ab}^{-1}).
  • Greifziel vom Greifer aus berechnen: Teo=Tse−1TscTcoT_{eo} = T_{se}^{-1} T_{sc} T_{co}.

Lecture 2 & 3 · MR § 3.2.3SO(3) Rotation

Rodrigues' Rotation Formula

Formel:
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.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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].
Lecture 2 & 3 · MR § 3.2.2Lie Algebra

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

Formel:
[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.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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
Lecture 2 · MR § 3.3.1SE(3) Transform

Homogeneous Transformation Matrix (SE(3))

Formel:
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.

💡Geometrische Intuition

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

Wichtige Invarianten & Eigenschaften:
  • ✓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.
Lecture 2 · MR § 3.3.1SE(3) Transform

Closed-Form Inverse of SE(3) Transform

Formel:
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.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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.
Lecture 3 · MR § 3.3.2Lie Algebra

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

Formel:
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.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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.
Lecture 3 · MR § 4.1.1Forward Kinematics

Product of Exponentials (PoE) — Space Form

Formel:
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}.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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!
Lecture 3 · MR § 4.1.2Forward Kinematics

Product of Exponentials (PoE) — Body Form

Formel:
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.

💡Geometrische 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.

Wichtige Invarianten & Eigenschaften:
  • ✓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.
Lecture 3 · MR § 3.2.3.3 & 3.3.3.2Inverse Kinematics

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

Formel:
θ=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.

💡Geometrische 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).

Wichtige Invarianten & Eigenschaften:
  • ✓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.