sk.robotics.rlcs.agents.robot
Class IdentifyAgent.Cfg

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent.Cfg
      extended by sk.robotics.rlcs.agents.robot.IdentifyAgent.Cfg
Enclosing class:
IdentifyAgent

public static class IdentifyAgent.Cfg
extends Agent.Cfg


Nested Class Summary
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
Agent.Cfg.Limited, Agent.Cfg.NoDefault, Agent.Cfg.Required, Agent.Cfg.Validator
 
Field Summary
 java.lang.String blockActualPos
          Name of block with actual position of the robot.
 java.lang.String blockComm
          Name of block with the robot control object.
 java.lang.String blockDetectedPos
          Name of block with last detected position of the robot.
 java.lang.String blockDetectionData
          Name of block with data from image recognition.
 java.lang.String blockMovement
          Name of block with current desired movement.
 java.lang.String blockPosHistory
          Name of block with history of actual positions.
 boolean exclusive
          Exclusive access to the robot.
 java.lang.Double moveToleranceDistance
          Distance tolerance for comparing detected positions with the actual one, in millimeters.
 java.lang.Double moveToleranceHeading
          Heading tolerance for comparing detected positions with the actual one, in radians.
 java.lang.Integer robotNum
          Identifier, associated upon identification with robot recognized from camera image.
 java.lang.Double turnToleranceDistance
          Distance tolerance for comparing detected positions after turning the robot, in millimeters.
 java.lang.Double turnToleranceHeading
          Heading tolerance for comparing detected positions after turning the robot, in radians.
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
enabled, id, logLevel, timerPeriodMs, triggers
 
Constructor Summary
IdentifyAgent.Cfg()
           
 
Method Summary
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
createAgent, equals, getHiddenFields, hideFields, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

robotNum

public java.lang.Integer robotNum
Identifier, associated upon identification with robot recognized from camera image. This identifier is then stored in the detection, so can be used by other agents.


exclusive

public boolean exclusive
Exclusive access to the robot. True if we can control the robot, false otherwise.


moveToleranceDistance

public java.lang.Double moveToleranceDistance
Distance tolerance for comparing detected positions with the actual one, in millimeters. This is used when tracking position of already identified robot.


moveToleranceHeading

public java.lang.Double moveToleranceHeading
Heading tolerance for comparing detected positions with the actual one, in radians. This is used when tracking position of already identified robot.


turnToleranceDistance

public java.lang.Double turnToleranceDistance
Distance tolerance for comparing detected positions after turning the robot, in millimeters. This is used when identifying robot by turning him.


turnToleranceHeading

public java.lang.Double turnToleranceHeading
Heading tolerance for comparing detected positions after turning the robot, in radians. This is used when identifying robot by turning him.


blockComm

public java.lang.String blockComm
Name of block with the robot control object. The robot control object is used to turn the robot, in order to identify it. Access to the object is synchronized (on the object itself).

Block access:
read
Stored type:
robot.Robot

blockDetectionData

public java.lang.String blockDetectionData
Name of block with data from image recognition.

Block access:
read
Stored type:
sk.robotics.rlcs.data.DetectionData

blockPosHistory

public java.lang.String blockPosHistory
Name of block with history of actual positions. This is used for position tracking purposes (by determining position of the robot from time of detection), and also updated with actual position on sucessfull robot identification.

Block access:
read/write
Stored type:
sk.robotics.rlcs.data.PositionQueue

blockMovement

public java.lang.String blockMovement
Name of block with current desired movement. By deleting this block with high priority and non-zero validity, this agent disables other agents trying to move the robot.

Block access:
write
Stored type:
sk.robotics.rlcs.data.Movement

blockDetectedPos

public java.lang.String blockDetectedPos
Name of block with last detected position of the robot. For use by other agents.

Block access:
write
Stored type:
sk.robotics.rlcs.data.Position

blockActualPos

public java.lang.String blockActualPos
Name of block with actual position of the robot. This agent updates the actual position upon successfull identification.

Block access:
write
Stored type:
sk.robotics.rlcs.data.Position
Constructor Detail

IdentifyAgent.Cfg

public IdentifyAgent.Cfg()