Examples of addCollidingAgent()


Examples of eas.simulation.spatial.sim2D.standardEnvironments.AbstractEnvironment2DFast.addCollidingAgent()

        for (int i = 0; i < 20; i++) {
            Roboter r = new Roboter(10 + i, env, rand, params, false, 360);
            MARBBrain<Roboter> b = new MARBBrain<Roboter>(r, params);
            b.getMarb().erzeugeAusStdSequenz("002, 003, 003, 250, 000, 012, 001, 002, 000, 005, 000, 012, 004, 004, 000, 007, 000, 011, 000, 012, 001, 002, 000, 005, 000, 012, 004, 000, 012, 005, 000, 006, 000, 010, 000, 012, 003, 001, 000, 004, 000, 011, 000, 011, 000, 000, 005, 001, 000, 000, 000, 005, 004, 001, 001, 000, 000, 000");
            r.implantBrain(b);
            env.addCollidingAgent(r, new Vector2D(400 + i * 30, 200 - i * 30), rand.nextDouble() * 360);
        }
       
        return new AbstractEnvironment2DFast[] {env};
    }

View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardEnvironments.WandaEnvironment.addCollidingAgent()

   
    WandaAgent pointer = new WandaAgent(0, env, params);
    pointer.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(pointer,
        new File("eas/users/students/danielFunke/wandaTest/pointer.xml")));
    pointer.addActuator(new APOINTTO());
    env.addCollidingAgent(pointer, new Vector2D(-100,100), 0, null);
   
    WandaAgent mover = new WandaAgent(1, env, params);
    mover.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(mover,
        new File("eas/users/students/danielFunke/wandaTest/mover.xml")));
    mover.addActuator(new APOINTTO());
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardEnvironments.WandaEnvironment.addCollidingAgent()

   
    WandaAgent mover = new WandaAgent(1, env, params);
    mover.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(mover,
        new File("eas/users/students/danielFunke/wandaTest/mover.xml")));
    mover.addActuator(new APOINTTO());
    env.addCollidingAgent(mover, Vector2D.NULL_VECTOR, 0, null);
   
    /*Random rand = new Random(params.getSeed());
        env.addScene(new ObstacleRectangularScene(1, params, rand));
   
    WandaAgent sensorTester = new WandaAgent(0, env, params);
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardScenes.ObstacleRectangularScene.addCollidingAgent()

       
        double breite = obstacleScene.getBoundingBox().getWidth();
        double hoehe = obstacleScene.getBoundingBox().getHeight();
       
        for (int i = 0; i < 7; i++) {
            obstacleScene.addCollidingAgent(
                    new PacmanGhostAgent(1, world, params),
                    new Vector2D(
                            rand.nextDouble() * breite - breite / 2,
                            rand.nextDouble() * hoehe - hoehe / 2),
                    rand.nextDouble() * 360,
View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.gateEnvironment.GateEnvironment.addCollidingAgent()

            ParCollection params) {
        GateEnvironment env = new GateEnvironment(0, params);
        NeuroAgent agent = new NeuroAgent(0, env, params);
        NeuroBrain<NeuroAgent> brain = new NeuroBrain<NeuroAgent>(agent, params);
        agent.implantBrain(brain);
        env.addCollidingAgent(agent, Vector2D.NULL_VECTOR, 10, new Vector2D(20, 20));
       
        return new AbstractEnvironment2DFast<?>[] {env};
    }

    @Override
View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.gateEnvironment.GateEnvironment.addCollidingAgent()

        GateEnvironment env = new GateEnvironment(0, params);
        for (int i = 0; i < 15; i++) {
            NeuroAgent agent = new NeuroAgent(i, env, params);
            NeuroBrain<NeuroAgent> brain = new NeuroBrain<NeuroAgent>(agent, params);
            agent.implantBrain(brain);
            env.addCollidingAgent(agent, new Vector2D(i * 40 - 500, i * 40 - 500), 10, new Vector2D(20, 20));
        }
       
        return new AbstractEnvironment2DFast<?>[] {env};
    }

View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.MARBFastEnvironment.addCollidingAgent()

            pos = new Vector2D(
                    rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                    rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
            richt = rand.nextDouble() * 360;
           
            while (!env.addCollidingAgent(
                    agent,
                    pos, richt)) {
                pos = new Vector2D(
                        rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                        rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.MARBFastEnvironment.addCollidingAgent()

            pos = new Vector2D(
                    rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                    rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
            richt = rand.nextDouble() * 360;
           
            while (!env.addCollidingAgent(
                    agent,
                    pos, richt)) {
                pos = new Vector2D(
                        rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                        rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.MARBFastEnvironment.addCollidingAgent()

            pos = new Vector2D(
                    rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                    rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
            richt = rand.nextDouble() * 360;
           
            while (!env.addCollidingAgent(
                    agent,
                    pos, richt)) {
                pos = new Vector2D(
                        rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                        rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
View Full Code Here

Examples of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.MARBFastEnvironment.addCollidingAgent()

            pos = new Vector2D(
                    rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                    rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
            richt = rand.nextDouble() * 360;
           
            while (!env.addCollidingAgent(
                    agent,
                    pos, richt)) {
                pos = new Vector2D(
                        rand.nextDouble() * (bound.lowerRightCorner().x - bound.upperLeftCorner().x) + bound.upperLeftCorner().x,
                        rand.nextDouble() * (bound.lowerRightCorner().y - bound.upperLeftCorner().y) + bound.upperLeftCorner().y);
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.