Grid MethodGrid method estimates players position as follows:
- Find a line and the nearest flag in the sensor information.
- Calculate hdir from the line information.
- Define a fan-shape area of the possible position from the nearest flag.
- Divide the fan-shape area into grids by a small unit.
- For each flag in the sensor information, check each grid point can be valid as a player's position from which the sensor information can be gotten. If a grid point is possible, then it gets a point into its score.
- Search maximum score and a set of points whose score is equal to the maximum. Then, calculate the center point of the set.
- Calculate the confident value of the position based on the size of the possible grid area.
Alphabetic index Hierarchy of classes