Hi everyone.
There is a bug in the viewer that means it cannot read log version 2
files (that's the latest version) in offline mode.
The fix is trivial, so rather than making a whole new bugfix release I'm
just going to post the fix here.
Inside the file programs/viewer/viewer/LogIO.java add the following line:
int size = m_dis.readInt();
between lines 57 and 58 in the file. It should end up looking like this:
if (logHeader.equals(FILE_TYPE_NAME_2)) {
// Show the parameters
int size = m_dis.readInt();
int count = m_dis.readInt();
...
Attached is the output from "svn diff" for the relevant file. You can
probably use this to automatically patch your software but don't ask me how.
If you have any problems then please let me know.
Also, if anyone discovers any other bugs then please use the bug
reporting feature of sourceforge (http://www.sf.net/projects/roborescue)
so that we can make sure that they all get fixed properly.
Cheers,
Cameron.
-- Cameron Skinner Artificial Intelligence Group Department of Computer Science The University of Auckland email: cam@cs.auckland.ac.nz phone: +64 9 3737599 x82924 fax: +64 9 3737453 Post: Department of Computer Science The University of Auckland Private Bag 92019 Auckland New Zealand
Index: programs/viewer/viewer/LogIO.java
===================================================================
--- programs/viewer/viewer/LogIO.java (revision 82)
+++ programs/viewer/viewer/LogIO.java (revision 83)
@@ -55,6 +55,7 @@
}
if (logHeader.equals(FILE_TYPE_NAME_2)) {
// Show the parameters
+ int size = m_dis.readInt();
int count = m_dis.readInt();
System.out.println("Number of entries: "+count);
for (int i=0;i<count;++i) {
_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s@mailman.cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
Received on Wed Mar 15 21:43:08 2006
This archive was generated by hypermail 2.1.8 : Wed 15 Mar 2006 - 20:43:09 GMT