Robotics & Machine Intelligence (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).
🧭 Study Mode Navigation Dashboard
Section titled “🧭 Study Mode Navigation Dashboard”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:
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.
Rotation Angles & Orientation
Type values directly into matrix cells or pick a lecture preset: Euler angles & 3D frame update in real time!
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.
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}:
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:
- 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.
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):
Matrix Exponential & Rodrigues Formula
A point orbiting an axis satisfies the differential equation ẋ = [ω̂] x. Its analytical closed-form solution is the matrix exponential:
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 θ!
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?
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:
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!
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).
🗺️ 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 ().
- Go against an arrow: Multiply by inverse matrix ().
- Grasp target from gripper: .
🗂️ Core Kinematic Transformation Cards
Section titled “🗂️ Core Kinematic Transformation Cards”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)
▶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].
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
▶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
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)
▶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.
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
▶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.
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)
▶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.
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]]
▶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!
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
▶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.
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
▶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.