Manipulator Basics · Lab 02 of 10
Lab 02: Coordinate Frames and Transformations
Move and rotate frames in 3D, compose and invert transforms, and convert a point between frames.
Objective
Build intuition for homogeneous transformations: move and rotate a chain of frames, compose and invert their transforms, and convert a point from one frame to another, checking every number against the matrices on screen.
Brief theory
A frame is a position and an orientation. The pose of frame in frame is the homogeneous transform
It maps coordinates of a point expressed in to coordinates in : . Transforms chain by multiplication, , and invert without a general matrix inverse:
This lab uses four frames: world W, base B, link L and end effector E. Each slider set defines one transform relative to its parent, with orientation given as Z-Y-X Euler angles (yaw, pitch, roll): . See Module 03.
Simulation workspace
Drag the 3D view to orbit, scroll or pinch to zoom. Every number shown is computed live by the simulation engine running in your browser.
Loading the simulation…
Guided tasks
Each task ticks itself when the simulation sees you do it. Progress is saved in this browser.
- Translate and rotate framesChange at least one translation and one rotation of the base or link frame.
- Transform a point from one frame to anotherSet the point’s coordinates in frame E and read them in W, computed in sequence and with the composed transform.
- Calculate the inverse transformCompute the translation part of the world-to-end-effector inverse, −Rᵀp, enter it and check it.
- Compare sequential and composed transformationsUse "Swap rotation and translation order" on the base and see that the result changes: transforms do not commute.
Challenges
Each challenge states an objective, its constraints and how success is measured. The live line under it is computed from the simulation. Hints and full solutions are there when you want them.
Success criteria
- The point’s world coordinates computed in sequence and with the composed matrix agree to the last digit shown.
- Your inverse translation matches the model to within 1 mm.
- You have seen the base frame move when the order of its rotation and translation is swapped.
Explanation of the results
The sequential and composed results are the same number computed two ways: and . Matrix multiplication is associative, so they always agree; the composed form is what robot software stores because it costs one matrix-vector product per point.
The order swap shows the opposite fact: . Translating then rotating moves the frame along the parent’s axes; rotating then translating moves it along its own, already rotated axes. Most frame bugs in real robots are an order or a direction (A-to-B versus B-to-A) mistake of exactly this kind.