Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 7be9965d authored by pitiot's avatar pitiot
Browse files

maj scenar 3 et 6

parent ecddc723
......@@ -681,7 +681,7 @@ void Simulator::setupScenario(unsigned int nbMaxAgent, bool pedWay)
TraversorF<PFP::MAP> tF(envMap_.map);
d = tF.begin() ;
unsigned int nbx = (nbMaxAgent / (nb_cells))/5;
unsigned int nbx = nbMaxAgent==0 ? 1 : (nbMaxAgent / (nb_cells))/5;
unsigned int nby = 5;
unsigned int bMax = nbx * nby > 0 ? nbMaxAgent / (nbx * nby) : nbMaxAgent ;
......@@ -746,7 +746,7 @@ void Simulator::setupPlanetScenario(unsigned int nbAgents, unsigned int nbObstac
d=envMap_.map.begin();
CellMarker<FACE> filled(envMap_.map);
unsigned int nbx = (nbAgents / (nb_cells))/5;
unsigned int nbx = nbAgents==0 ? 1 : (nbAgents / (nb_cells))/5;
unsigned int nby = 5;
unsigned int bMax = nbAgents / (nbx*nby);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment