Road Runner Localization
Validate x, y, and heading before trusting paths.
Validate x, y, and heading before trusting paths.
In this lesson, you will:
Localization is the robot’s estimate of where it is. Trajectories depend on this estimate; if pose is wrong, path following will look wrong even with perfect path code.
Pose has x, y, and heading. Students should physically move the robot and predict which value should change.
Print pose, push forward, strafe, and rotate. Confirm signs and units. Then test under low power before running long paths.
PoseTelemetry.javaJava
drive.updatePoseEstimate();
Pose2d pose = drive.pose;
telemetry.addData("x", pose.position.x);
telemetry.addData("y", pose.position.y);
telemetry.addData("heading deg", Math.toDegrees(pose.heading.toDouble()));Swapped encoders, reversed signs, wrong track width, or drifting heading all show up as pose errors. Solve those before tuning complex auto.
Check your understanding before moving on.
Which result best demonstrates completion of “Road Runner Localization”?
Why record the test setup, prediction, and observed result?
0 of 2 answered
Mark this lesson complete — “Road Runner Validation Tests” is up next.