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

From: Cameron Skinner (cam@cs.auckland.ac.nz)
Date: Wed 25 May 2005 - 00:17:12 GMT


Fixed. New version will be available soon.

Mohammad Mehdi Saboorian wrote:
> 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

-- 
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 _______________________________________________ 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 : Wed 25 May 2005 - 00:46:53 GMT