1 package cz.cuni.amis.pogamut.usar2004.agent.module.sensor; 2 3 import cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.SensorType; 4 5 /** 6 * Sensor message representative for Human motion detector. 7 * 8 * @author vejmanm 9 */ 10 public class SensorHumanMotionDetector extends SuperSensor 11 { 12 //public static final String type="HumanMotion"; 13 public static final SensorType type = SensorType.HUMAN_MOTION_DETECTION; 14 15 /** 16 * Ctor. Sensor type describes particular subject about which we want to 17 * know about. It is used to distinguish incoming message from the server. 18 */ 19 public SensorHumanMotionDetector() 20 { 21 super(type); 22 } 23 24 /** 25 * Prob is the probability of it’s human motion. 26 * 27 * @return Returns the probability of Human motion detector. 28 */ 29 public double getProbability() 30 { 31 return lastMessage.getProb(); 32 } 33 }