kaos.robots.naimtsimulator
Class GenericImmobileObject

java.lang.Object
  extended by kaos.robots.naimtsimulator.GenericImmobileObject
All Implemented Interfaces:
SimObject
Direct Known Subclasses:
Benign, Mine

public class GenericImmobileObject
extends java.lang.Object
implements SimObject


Constructor Summary
GenericImmobileObject(double x, double y, double width, double height)
           
 
Method Summary
 double distanceFromSonar(double x, double y, double th, double range)
           
 double getHeight()
           
 Pose getPose()
           
 double getWidth()
           
 void setHeight(double height)
           
 void setPose(Pose pose)
           
 void setWidth(double width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericImmobileObject

public GenericImmobileObject(double x,
                             double y,
                             double width,
                             double height)
Method Detail

setWidth

public void setWidth(double width)

setHeight

public void setHeight(double height)

setPose

public void setPose(Pose pose)
Specified by:
setPose in interface SimObject

getPose

public Pose getPose()
Specified by:
getPose in interface SimObject

getWidth

public double getWidth()
Specified by:
getWidth in interface SimObject

getHeight

public double getHeight()
Specified by:
getHeight in interface SimObject

distanceFromSonar

public double distanceFromSonar(double x,
                                double y,
                                double th,
                                double range)
Specified by:
distanceFromSonar in interface SimObject
Parameters:
x - The x location of the sonar.
y - The y location of the sonar.
th - The angle of the sonar.
range - The maximum distance that can be returned.