reading files online & barbie
"Raoul Schmidiger" <[email protected]>
| Newsgroups | gmane.comp.cybernetics.webot.contest |
|---|---|
| Message-ID | <009c01c3ad3e$5cce7e00$7c00a8c0@mongo> |
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.
2. The webot environment has some bugs concerning the "jury". when both bots are on the ground, distance is not taken into account and when both bots do nothing at all, one of them still wins.
regards raoul