Localization
Localization
During autonomous mode, your robot needs to navigate the field without any human control. To do that well, it needs to always know where it is. The process of tracking and calculating the robot’s position is called localization.
Think of it like this: if you close your eyes and try to walk to a specific spot in a room, you might get close — but you will probably drift off course. Localization is your robot’s way of keeping its eyes open!
Why does this matter?
Without localization, your autonomous routine is just guessing. Even small errors in position can cause your robot to miss a goal by several inches. Good localization makes autonomous routines reliable and repeatable.
The Three Main Approaches
There are a few different methods for localization, each with different levels of accuracy and complexity:
Dead Reckoning: The simplest method. You tell the robot to run at a set power level for a set amount of time. For example: “drive forward at 80% power for 2 seconds.” This is easy to program but not very accurate. If the battery is slightly lower than expected, or the robot bumps into something, it ends up in the wrong spot. Dead reckoning does not use any sensors for feedback.
Deterministic / Absolute Sensing: The robot uses sensors like distance sensors, vision cameras, or AprilTags to find known landmarks on the field — like a wall, a goal post, or a special marker. Because these landmarks have known, fixed positions, the robot can calculate exactly where it is. This method has zero drift and gives very accurate results whenever a landmark is visible.
Odometry ( Odom): The robot uses motor encoders and an IMU to continuously track how far it has moved and which direction it is pointing. Odometry is excellent for tracking movement in real time but slowly drifts off over a long match.
Combining Methods
The most advanced teams combine multiple methods. For example: use odometry to track position continuously during normal driving, and use AprilTags to “reset” the position whenever the camera spots a known landmark. This gives both continuous tracking and periodic accuracy corrections.