Package eas.users.students.fabian.diplomarbeit.EvolvableBoxAgents3D.Utilities

Examples of eas.users.students.fabian.diplomarbeit.EvolvableBoxAgents3D.Utilities.EvolvableBoxAgent3DTrack


      env.addAgent(championAgent);
      // Drop agent
      env.stepPhysicalSimulationBy10Seconds();
      // Start fitness measurement
      championAgent.setFitnessRelevantStartingPosition();
      EvolvableBoxAgent3DTrack track = new EvolvableBoxAgent3DTrack(championAgent);
      // example: 600 steps à 2*1/60s --> 600 * 1/30s = 20s
      for (int j = 0; j < numberOf60HertzSteps; j++) {
        track.addTrackPoint();
        //env.stepPhysicalSimulationAt60Hertz();
        env.step(simZyk);
        if (j % whichStepToThinkAt == 0) {
          championAgent.getBrain().decideAndReact(simZyk);
        }
View Full Code Here


        env, genome);
    // Add agent to environment.
    env.addAgent(agent);
    // Create new track so that the agent's motion can be visualized later
    // on.
    track = new EvolvableBoxAgent3DTrack(agent);
    // Set the plugin to follow the agent.
    VideoPlugin3D.setCameraToFollowAgentPosition(agent);
    // Print info.
    System.out.println("\n\nNow simulating an agent with the genome:");
    System.out.println(genome.toString());
View Full Code Here

        //genome = EvolvableBoxAgent3DGenomeHandler.createRandomGenome();
        agent = EvolvableBoxAgent3DGenomeHandler.createAgentFromGenome(0, null, env, genome);
      }
      env.addAgent(agent);
      System.out.println("\nAgent successfully added. Genome: " + genome.toString());
      track = new EvolvableBoxAgent3DTrack(agent);
      VideoPlugin3D.setCameraToFollowAgentPosition(agent);
      env.stepPhysicalSimulationBy10Seconds();
      agent.setFitnessRelevantStartingPosition();
    }
   
View Full Code Here

TOP

Related Classes of eas.users.students.fabian.diplomarbeit.EvolvableBoxAgents3D.Utilities.EvolvableBoxAgent3DTrack

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.