Re: Problem with distance display in contest

Benoît Pothier <[email protected]>
Newsgroups gmane.comp.cybernetics.webot.contest
Message-ID <[email protected]>
Hello,

Why not summing the projection of the robot move vector along the robot z axis?
A robot running around the tatami would be greatly rewarded, thus allowing
other strategies than direct fight. 

something like
at each time increment :
            prev_X -= X; //absolute coordonates
            prev_Z -= Z;
            // distance_increment contributions on robot's z axis
            distance_increment=prev_X*sin(compass)+prev_Z*cos(compass);
            distance += distance_increment;
            prev_X = X;
            prev_Z = Z;

contest_distance=max(distance, radial_distance); //backward going robots wont
be too much penalized

side steps won't increase the distance and going backward will lower the
distance preventing forward/backward strategies.

-- 
Benoît Pothier (gollum) -+- [email protected]


* Olivier Michel <[email protected]> [040119 11:01]:
> Hi,
> 
> Yes, David is right. I choose this maximum radial distance from the 
> start point to avoid annoying behaviors such as go forward 0.5 meters 
> and backwards 0.5 meter and repeat this as long as possible to gather a 
> maximum path length. The radial distance rule avoid such problems but it 
> doesn't reflect the miles counter of the robot which is not what we want.
> 
> -Olivier
> 
> David Weber wrote:
> 
> >hi mike
> >  
> >
> >>The distance displayed during the contest seems to be the maximum radial
> >>distance the robot has attained from its start point and not the total
> >>distance the robot has traveled.
> >>    
> >>
> >
> >i think that's how it should be!
> >
> >greetz david

 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/webots-contest/

To unsubscribe from this group, send an email to:
 [email protected]

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.