cz.cuni.amis.pogamut.usar2004.agent.module.sensor
Class SensorRFID

Package class diagram package SensorRFID
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SensorRFID

public class SensorRFID
extends SuperSensor

Sensor message representative for RFID sensor.

Author:
vejmanm

Field Summary
static SensorType type
           
 
Fields inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
lastMessage, sensorType
 
Constructor Summary
SensorRFID()
          Ctor.
 
Method Summary
 int getIDAt(int index)
          Used by RFID sensor.
 int getIDSize()
          Returns size of RFID IDs list.
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocationAt(int index)
          List of Locations used by RFID sensor to determine where are various RFID Tags or by Victiom sensor to determine locations of bodys.
 int getLocationsSize()
          Returns Location list size.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
getName, getSensorType, getTime, getType, isReady, updateMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public static final SensorType type
Constructor Detail

SensorRFID

public SensorRFID()
Ctor. Sensor type describes particular subject about which we want to know about. It is used to distinguish incoming message from the server.

Method Detail

getIDAt

public int getIDAt(int index)
Used by RFID sensor. RFID tags are simulated by implementing the class USARBot.RFIDTag class in the Unreal Editor when editing a map. This class contains an integer id and a boolean bSingleshot variable that determines whether the tag is a single shot tag or a multi shot tag. They are deployed by placing them in UnrealEd. If the tag’s id is set to -1 (the default), then the tag id will be set to a unique value automatically. Other values for the id will not be changed. If the tags are within the MaxRange of the RFID sensor mounted on the robot then the server sends the following message to the client:

Parameters:
index -
Returns:
Returns RFID ID at given index..

getLocationAt

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocationAt(int index)
List of Locations used by RFID sensor to determine where are various RFID Tags or by Victiom sensor to determine locations of bodys. Also used by INS sensor to determine robots location

Parameters:
index -
Returns:
Returns Location at given index.

getIDSize

public int getIDSize()
Returns size of RFID IDs list.

Returns:
Returns size of RFID IDs list.

getLocationsSize

public int getLocationsSize()
Returns Location list size.

Returns:
Returns Location list size.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.