Hi guys and Merry Cristmas.
I am a final year student in Computer Science and my final project is
to develop a soccer team for Robocup.
I am currently working on buibing the skills of a player and I am
mostly using the code of the UVA Robocup team..
I would like to ask if anyone knows why do we have to normalize
angles in the form of the code;
AngDeg VecPosition::normalizeAngle( AngDeg angle )
{
while( angle > 180.0 ) angle -= 360.0;
while( angle < -180.0 ) angle += 360.0;
return ( angle );
}
The AngDeg angle is the angle derived after subtracting the absolute
direction of the player form the direction of the ball.
If anyone knows antything relative I would be grateful.
THanks in advance and have a nice holiday!!