rp1.rossum
Class RsBodyTargetSensor

java.lang.Object
  extended by rp1.rossum.RsComponent
      extended by rp1.rossum.RsBodyPart
          extended by rp1.rossum.RsBodyShape
              extended by rp1.rossum.RsBodySensor
                  extended by rp1.rossum.RsBodyTargetSensor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RsBodyTargetSensor
extends RsBodySensor

A sensor for detecting "target" objects in the simulated floor plan.

See Also:
Serialized Form

Constructor Summary
RsBodyTargetSensor(double[] point, int nPoint, double _xDetector, double _yDetector, double _sightAngle, double _width, double _maxRange, int _nWidthBin, int _nRangeBin)
           
 
Method Summary
 boolean computeAndSetState(double simTime, RsPlan plan, RsTransform transform)
           
 RsSensorEvent getSensorEvent(double simTime)
           
 
Methods inherited from class rp1.rossum.RsBodySensor
didStateChange, getTimeOfLastStateComputation, isASensor
 
Methods inherited from class rp1.rossum.RsBodyShape
checkForOverlap, getSegmentArray, paint
 
Methods inherited from class rp1.rossum.RsBodyPart
copyStateData, getFillColor, getHot, getID, getLineColor, getName, resetStateData, searchForCollisions, setFillColor, setHot, setHotFillColor, setHotLineColor, setLineColor, setName
 
Methods inherited from class rp1.rossum.RsComponent
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RsBodyTargetSensor

public RsBodyTargetSensor(double[] point,
                          int nPoint,
                          double _xDetector,
                          double _yDetector,
                          double _sightAngle,
                          double _width,
                          double _maxRange,
                          int _nWidthBin,
                          int _nRangeBin)
Method Detail

computeAndSetState

public boolean computeAndSetState(double simTime,
                                  RsPlan plan,
                                  RsTransform transform)
Specified by:
computeAndSetState in class RsBodySensor

getSensorEvent

public RsSensorEvent getSensorEvent(double simTime)
Overrides:
getSensorEvent in class RsBodySensor