sk.robotics.rlcs.agents.sim
Class SimDetectionAgent2

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent
      extended by sk.robotics.rlcs.agents.sim.SimDetectionAgent2
All Implemented Interfaces:
java.lang.Runnable

public class SimDetectionAgent2
extends Agent

Alternative agent to SimDetectionAgent. This one generates the detection data from ImageLoaderSimAgent output. Therefore, ImageLoaderSimAgent must run too, for this agent to work. The original SimDetectionAgent polls the simulator using TCP to receive a position snapshot. That creates new socket on each sense-select-act cycle iteration, which may be somewhat annoying.


Nested Class Summary
static class SimDetectionAgent2.Cfg
           
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent
Agent.AgentThread, Agent.Hidden, Agent.ThreadCreator, Agent.WorkerThreadGroup
 
Field Summary
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent
logTimeFormat, space, thread, workerThreads
 
Constructor Summary
SimDetectionAgent2(SimDetectionAgent2.Cfg cfg)
           
 
Method Summary
protected  void senseSelectAct()
           
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent
cleanup, exit, getConfig, getIdleTime, getWorkerThreadGroup, isAlive, kill, log, log, log, log, log, run, senseSelectAct, setLogLevel, setPeriodicTrigger, setPeriodicTrigger, sleep, start, startup, toString, trigger, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimDetectionAgent2

public SimDetectionAgent2(SimDetectionAgent2.Cfg cfg)
Method Detail

senseSelectAct

protected void senseSelectAct()
Overrides:
senseSelectAct in class Agent