kaos.robots.naimtsimulator
Class GenericImmobileObject
java.lang.Object
kaos.robots.naimtsimulator.GenericImmobileObject
- All Implemented Interfaces:
- SimObject
- Direct Known Subclasses:
- Benign, Mine
public class GenericImmobileObject
- extends java.lang.Object
- implements SimObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericImmobileObject
public GenericImmobileObject(double x,
double y,
double width,
double height)
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.