Module 1: Geometry for Robotics
Welcome to Module 1: Geometry for Robotics. This module builds the spatial vocabulary everything else in the curriculum depends on: where things are, how far apart they are, whether a path crosses an obstacle, whether two objects collide, and whether the robot is inside a scoring zone.
Every result here is derived from first principles, and every one of them is reachable with nothing but arithmetic and a square root. Angles and rotation deliberately wait for Module 2: Trigonometry, which picks up exactly where this module stops.
Concepts in this Module
- Concept 01: Coordinates, Poses & Pythagorean Distance
- The Everyday Problem: Where is the robot on the field, and how far is it from the scoring target?
- Core Ideas: Field coordinate conventions, a proof of the Pythagorean theorem, the distance formula, midpoints, squared distance as a cheaper comparison, and the
(x, y, θ)pose.
- Concept 02: Lines, Segments & Intersections
- The Everyday Problem: Does the planned autonomous path cross a field barrier, and if not, by how much does it clear it?
- Core Ideas: Why slope fails on vertical lines, parametric form, the 2D cross product, the orientation test, segment intersection, and point-to-segment clearance.
- Concept 03: Linear Interpolation, Lookup Tables & Blending
- The Everyday Problem: You measured shooter RPM at five distances. What do you command at a distance in between?
- Core Ideas:
lerpnamed and generalized from Concept 02’s parametric form, why one algebraic form is numerically safer than its equal, inverse lerp and remapping, clamping versus extrapolation, interpolating lookup tables, bilinear interpolation, and why angles cannot be lerped naively.
- Concept 04: Bounding Boxes, Overlap & Collision
- The Everyday Problem: The robot is a 0.9 meter box, not a dot. Will its bumpers hit anything?
- Core Ideas: Interval overlap via De Morgan’s law, the separating axis idea, half-extents, Minkowski inflation and configuration space, penetration depth, Intersection over Union, and swept boxes for tunneling.
- Concept 05: Polygons, Areas & Field Zones
- The Everyday Problem: Scoring zones are slanted five-sided regions, not rectangles. Is the robot inside one?
- Core Ideas: Convex versus concave, half-plane membership tests, ray casting and the even-odd rule, the half-open rule for vertex crossings, and the shoelace area formula.
What This Module Deliberately Leaves Out
Rotation. A camera sighting converted into field coordinates needs cos and sin the moment the robot is not facing straight down-field, and the honest place for that is after the trigonometry has been built. Module 2 opens with the unit circle, derives rotation from it, and then does coordinate frames properly.
Oriented bounding boxes are deferred for the same reason, and Concept 04 says where to resume once the tools exist.