Re: reading files online & barbie

Olivier Michel <[email protected]>
Newsgroups gmane.comp.cybernetics.webot.contest
Organization Cyberbotics Ltd.
Message-ID <[email protected]>
Raoul Schmidiger wrote:

> hello,
>  
> i introduced my bot doing some silly movements today. it seems to have 
> won 8 places. but when looking at the videos, it just doesn nothing. 
> so 2 issues come out of that:
>  
> 1. locally i can read in my movement definition file like this:
>  
> ...
> BufferedReader in = new BufferedReader(new FileReader("mvdata.txt"));
> ...
>  
> in the competition i got the exception thrown:
>  
> Cannot read mvdata.txt file: java.io.FileNotFoundException: mvdata.txt 
> (No such file or directory)
>  
> obviously the file path is not correct like that. Anyone has an idea 
> how to code that better? the data file is in the same directory as my 
> class files obviously.

It seems that no file called mvdata.txt is currently present in the any 
controller directory (including Barbie). Maybe you forgot to upload it ?

> 2. The webot environment has some bugs concerning the "jury". when 
> both bots are on the ground, distance is not taken into account

In case the two robots fall down, the distance rule is not used. Instead 
the first robot that fell down is considered to be defeated.

> and when both bots do nothing at all, one of them still wins.

Yes, that's because he moved from an unperceptible amount of distance...

-Olivier


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/pU_rlB/TM
---------------------------------------------------------------------~->

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.