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

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

public class SensorVictim
extends SuperSensor

Sensor message representative for Victim 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
SensorVictim()
          Ctor.
 
Method Summary
 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 getLocationSize()
          Return size of location list.
 String getPartNameAt(int index)
          PartName is the name of the victim part that was discovered by the sensor.
 List<String> getPartNames()
          PartName is the name of the victim part that was discovered by the sensor.
 int getPartNamesSize()
          Return size of victim body part name list.
 String getStatus()
          Status is not in USARSim manual v3.1.3.
 
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

SensorVictim

public SensorVictim()
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

getPartNameAt

public String getPartNameAt(int index)
PartName is the name of the victim part that was discovered by the sensor. It can be one of 7 values: “Head”, “Arm”, “Hand”, “Chest”, “Pelvis”, “Leg”, and “Foot”. Please note that the sensor does not differentiate between real victim’s part and false alarms. It is up to the controller to perform this task.

Parameters:
index -
Returns:
Returns victim body part name 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.

getLocationSize

public int getLocationSize()
Return size of location list.

Returns:
Return size of location list.

getPartNamesSize

public int getPartNamesSize()
Return size of victim body part name list.

Returns:
Return size of victim body part name list.

getPartNames

public List<String> getPartNames()
PartName is the name of the victim part that was discovered by the sensor. It can be one of 7 values: “Head”, “Arm”, “Hand”, “Chest”, “Pelvis”, “Leg”, and “Foot”. Please note that the sensor does not differentiate between real victim’s part and false alarms. It is up to the controller to perform this task.

Returns:
Returns a list of victim body part names.

getStatus

public String getStatus()
Status is not in USARSim manual v3.1.3. And was added to full support of Victim sensor.

Returns:
Returns the status of Victim sensor.


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