Examples of DomPhysAgent


Examples of eas.users.students.dominikColling.rocket.DomPhysAgent

    net.propagate(ins, outs);
    //System.out.println("Brainoutput: " + outs[0] + " " + outs[1]);

    // Actuatorwerte entsprechend der Outputwerte
    // double antrieb, rotRechts, rotLinks;
    DomPhysAgent myBody = (DomPhysAgent) this.getMyBody();
    double [] actuatorWerte = new double [myBody.getActuators().size()];
   
    // noch nach unter begrenzen!!!
    for (int i = 0; i < myBody.getActuators().size(); i++) {
      actuatorWerte[i] = Math.min(outs[i]* myBody.getMaxActuatorWerte()[i], myBody.getMaxActuatorWerte()[i]);
      //System.out.println("Akt" + i + " " + actuatorWerte[i]);
    }
   
    myBody.setActuatorWerte(actuatorWerte);
    //DomPhysAgent agent = (DomPhysAgent) this.getMyBody();
    //System.out.println("MaxAktWerte: " + agent.getMaxActuatorWerte()[0] + " " + agent.getMaxActuatorWerte()[1]);
   
   
    for(int i = 0; i < getMyBody().getActuators().size(); i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.