simbad.holodeck
Class NeuralAgent

java.lang.Object
  extended by simbad.sim.BaseObject
      extended by simbad.sim.SimpleAgent
          extended by simbad.sim.Agent
              extended by simbad.holodeck.NeuralAgent

public class NeuralAgent
extends Agent


Field Summary
(package private)  javax.vecmath.Vector3d currentPosition
           
(package private)  double d
           
(package private)  javax.vecmath.Vector3d goal
           
(package private)  java.util.ArrayList<java.lang.Double> inputControllerValuesList
           
(package private)  LampActuator lamp
           
(package private)  int numOfCollisions
           
private  Evaluator_Environment parent
           
(package private)  RangeSensorBelt sonars
           
(package private)  javax.vecmath.Vector3d startPosition
           
 
Fields inherited from class simbad.sim.Agent
frameMeter, kinematicModel, motorsAngularAcceleration, motorsLinearAcceleration
 
Fields inherited from class simbad.sim.SimpleAgent
angularAcceleration, angularVelocity, body, collisionDistance, collisionRadius, dynamicFrictionCoefficient, height, instantRotation, instantTranslation, linearAcceleration, linearVelocity, mass, name, odometer, positionChanged, radius, staticFrictionCoefficient, t3d1, t3d2, t3d3, v1
 
Fields inherited from class simbad.sim.BaseObject
detachedFromSceneGraph, localBounds
 
Constructor Summary
NeuralAgent(javax.vecmath.Vector3d position, javax.vecmath.Vector3d givenGoal, java.lang.String name, Evaluator_Environment theParent)
           
 
Method Summary
 int getCollisionCount()
           
 double getDistanceToGoal()
           
 void initBehavior()
          Initialize Agent's Behavior -- launched before the first performOneStep
 void performBehavior()
          called by simulator.
 void resetCollisionCount()
           
 void resetEvaluation()
          move robot at start position and load the new genome
 
Methods inherited from class simbad.sim.Agent
asString, create3D, dispose, getAgentInspector, getKinematicModel, getOdometer, getRotationalVelocity, getTranslationalVelocity, getUIPanel, initPreBehavior, performPreBehavior, reset, resetPosition, setAgentInspector, setFrameMeterRate, setKinematicModel, setMotorsAcceleration, setRotationalVelocity, setTranslationalVelocity, setUIPanel
 
Methods inherited from class simbad.sim.SimpleAgent
addActuatorDevice, addSensorDevice, anOtherAgentIsVeryNear, checkCollision, clearVeryNear, collisionDetected, create, distanceToGround, getActuatorDevice, getActuatorList, getCoords, getCoords, getCounter, getHeight, getLifeTime, getMass, getName, getRadius, getSensorDevice, getSensorList, getVeryNearAgent, integratesPositionChange, integratesVelocities, interactionDetected, moveToPosition, moveToPosition, moveToStartPosition, resetDevices, resetPositionAt, setSimulator, updateActuators, updateCounters, updatePosition, updateSensors, veryNear
 
Methods inherited from class simbad.sim.BaseObject
addChild, attach, detach, getCanBeTraversed, getRotationTransform, getTranslationTransform, rotateY, setCanBeTraversed, setColor, setWorld, translateTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sonars

RangeSensorBelt sonars

lamp

LampActuator lamp

inputControllerValuesList

java.util.ArrayList<java.lang.Double> inputControllerValuesList

startPosition

javax.vecmath.Vector3d startPosition

goal

javax.vecmath.Vector3d goal

currentPosition

javax.vecmath.Vector3d currentPosition

numOfCollisions

int numOfCollisions

d

double d

parent

private Evaluator_Environment parent
Constructor Detail

NeuralAgent

public NeuralAgent(javax.vecmath.Vector3d position,
                   javax.vecmath.Vector3d givenGoal,
                   java.lang.String name,
                   Evaluator_Environment theParent)
Method Detail

initBehavior

public void initBehavior()
Initialize Agent's Behavior -- launched before the first performOneStep

Overrides:
initBehavior in class Agent

resetEvaluation

public void resetEvaluation()
move robot at start position and load the new genome


getCollisionCount

public int getCollisionCount()

resetCollisionCount

public void resetCollisionCount()

getDistanceToGoal

public double getDistanceToGoal()

performBehavior

public void performBehavior()
Description copied from class: Agent
called by simulator.

Overrides:
performBehavior in class Agent