End-to-End Pick and Place Loop
Every piece we've built in Course 1 — degrees of freedom, local frames, TF trees, forward kinematics, and inverse kinematics — comes together in the simplest real manipulation task: spotting an object with a camera, picking it up, and placing it somewhere new.
Core ideas covered in this module
- Camera-to-gripper transform chain
- IK planning & FK verification
- Frame choices in learned policies
Walking the five-stage tabletop loop
Suppose an overhead camera spots an orange block on a lab table. The detector gives pixels or coordinates in the camera's local frame — say, 1.2 m below the lens and 7 cm to the left. Before the robot arm can move, it has to translate that detection through the TF tree into its own shoulder base frame.
From there, IK finds the joint angles needed to reach the block, FK double-checks that those angles actually land within a millimeter of the target without hitting joint limits, the gripper closes, and a second IK call routes the block to the drop zone.
Interactive lab
End-to-End Pick-and-Place Loop & Policy Frames
Canvas / SVG· LiveCamera detects block at (1.20, -0.07) m in camera frame.
How a Learned Policy Uses These Frames
Policy observes and acts relative to the Camera/Wrist frame (1.20, -0.07) m — generalizes immediately when the table shifts.
Where classical pipelines meet modern robot learning
You might wonder: if you train a neural policy or Vision-Language-Action (VLA) model end-to-end, do coordinate frames stop mattering? Quite the opposite. One of the biggest design choices in modern robot learning is picking the policy's observation and action frame.
Predicting raw joint angles is fast and simple, but tied to one specific robot setup. Predicting end-effector deltas in the base frame lets you reuse an IK/PD controller underneath. Predicting actions relative to a wrist camera frame helps the policy generalize when the table height or robot placement changes.
The complete perception-to-action transform chain
p_base = T_base←world · T_world←camera · p_camera → q* = IK(p_base) → verify FK(q*) ≈ p_base
Perception lives in sensor frames, kinematics lives in joint space, and TF trees are the bridge that keeps them talking in the same units.
If you slide the entire workbench 30 cm to the right in the lab without recalibrating the room-to-base transform, which policy representation adapts best using only wrist-camera images?
Next up in Course 2, we scale from single planar arms to full multi-branched robots described in URDF/MJCF and move from static poses to instantaneous velocities and Jacobians.
Hands-On Python Notebook
06 · End-to-End Tabletop Pick-and-Place Loop
Chain camera detection, TF tree lookup, IK solving, and FK verification in Python, and test what happens when the workbench shifts.
Try this on your own inside the notebook
- Add a pre-grasp lift waypoint above the block before placing
- Inject a 2 cm camera calibration offset and measure the grasp miss
In Google Colab, use File → Save a copy in Drive to keep your own edits and notes. Or download the files directly:
uvx marimo edit --sandbox notebooks/course-1/06_end_to_end_pick_and_place.pyWrap up this module
Saved automatically in your browser profile so you can pick up right where you left off.