Hi
may be i'm answering u very late, but i'm new to the group.
the normalization is to limit the angles between -180 and 180.
this is useful in comparisons
best,masoud
--- In robocupsimulationclub@yahoogroups.com, "vras_iko
<vras_iko@y...>" <vras_iko@y...> wrote:
> 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!!