public override void SimulationStepCallback()
 {
     //grid.reset_viewed();
     grid.reset_dynamic();
     foreach (Robot r in rbts)
     {
         grid.insert_into_grid(r);
     }
 }
 public override void Initialize(Environment e, SimulatorExperiment _exp, List <Robot> _rbts)
 {
     rbts = _rbts;
     env  = e;
     exp  = _exp;
     if (_exp is MultiAgentExperiment)
     {
         agentCollide = ((MultiAgentExperiment)_exp).agentsCollide;
         agentVisible = ((MultiAgentExperiment)_exp).agentsVisible;
     }
     grid = new collision_grid(e, coarseness);
     foreach (Wall w in env.walls)
     {
         grid.insert_into_grid(w);
     }
 }
示例#3
0
		public override void Initialize (Environment e,SimulatorExperiment _exp,List<Robot> _rbts)
		{
			rbts=_rbts;
			env=e;
			exp=_exp;
            if (_exp is MultiAgentExperiment)
            {
                agentCollide = ((MultiAgentExperiment)_exp).agentsCollide;
                agentVisible = ((MultiAgentExperiment)_exp).agentsVisible;
            }
                grid = new collision_grid(e,coarseness);
			foreach (Wall w in env.walls)
			{
				grid.insert_into_grid(w);
			}
		}