LESSON 05 / 06
Pedro Pathing, localization, and Bézier curves
Build a mental model for pose estimation, paths, and smooth autonomous motion.
Learning Objectives
- Define robot pose and localization
- Explain why paths need tuning
- Use documented Pedro Pathing examples instead of guessing API calls
Explanation
Localization estimates where the robot is on the field using sensors and a model. A path describes how the pose should change over time. Bézier curves are a useful way to shape smooth motion between control points, but the exact builder and follower APIs depend on the documented Pedro Pathing version. Treat the docs as the source of truth and validate one segment at a time.
Example
// Conceptual pseudocode
startPose -> curve(controlPoint, endPose) -> follow
check pose error -> tune -> repeatTry It
Draw a start pose, one control point, and an end pose for a simple scoring route. Note where localization error would show up.
