[robocup-rescue-s] Bug report! (RANDOM_IDs == false)

From: Mohammad Mehdi Saboorian (saboorian@gmail.com)
Date: Tue 24 May 2005 - 12:52:09 GMT


if you set RANDOM_IDs to false in config file, server behaves strangely!
although gis reports that correct number of agents should be connected,
kernel thinks that there is no need for agents :)
and reports zero for all agents count,
 our recommended solution:
addNew function for objectpool class has been changed since the previous
version of simulator, so it won't increment agent IDs! (actually it was
responsibility of testAdd function)
so every agent has ID = 0 !
 in older versions, there were a variable called m_lastId in ObjectPool
class that was being used like this:
Id id = ++m_lastId;
but this version assumes that gis fills the id field!
so adding a line like this to (gis/main.cxx:27) will solve the problem,
newObject->setId(++lastId);
 of course you have to declare lastId first with zero as initial value.
 have fun,
Mohammad Mehdi Saboorian
member of SBCe_Saviour


_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s@mailman.cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s



This archive was generated by hypermail 2.1.3 : Tue 24 May 2005 - 13:22:35 GMT