|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uwcse.location.core.WorldMap
The WorldMap class describes a coordinate system in which location computations occur.
| Constructor Summary | |
WorldMap()
Create an empty world map 1 cubic unit in size. |
|
WorldMap(byte[][] grid,
Vector3d gridResolution,
Vector3d gridOriginTranslation)
Creates a world map defined by the given obstacle grid and transform. |
|
WorldMap(Tuple3d lowerCorner,
Tuple3d upperCorner)
Creates a world map defined by the given lower and upper bounding corners. |
|
WorldMap(WorldMap wm)
Creates a map measurement as a copy of the given one. |
|
| Method Summary | |
Object |
clone()
Return a cloned copy of this world map. |
int |
getGridHeight()
Return the width of the obstacle grid. |
int |
getGridWidth()
Return the width of the obstacle grid. |
Point3d |
getLowerCorner()
Get the lower corner of the bounding box of this map. |
Point3d |
getUpperCorner()
Get the upper corner of the bounding box of this map. |
Vector3d |
getWorldSize()
Get the size of the world. |
boolean |
isConsistent(Tuple3d position)
Return true if the given world position is consistent with this world map. |
boolean |
isConsistent(State s)
Return true if the given State is consistent with this world map. |
boolean |
isConsistentGridFrame(Tuple3d pos)
Returns true if the given position, already transformed to the grid reference frame, is consistent with this world map (i.e. not off the map, or in an obstacle). |
double |
obstacleDistance(Point3d position,
Vector3d heading)
Returns the maximum distance that can be traveled from the given position along the given heading before leaving the bounds of the world map or hitting an obstacle. |
double |
obstacleDistance(State s)
Returns the maximum distance that can be traveled from the given State's position along its heading before leaving bounds of the world map or hitting an obstacle. |
String |
toString()
Return a string representation of this WorldMap. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WorldMap()
public WorldMap(Tuple3d lowerCorner,
Tuple3d upperCorner)
public WorldMap(byte[][] grid,
Vector3d gridResolution,
Vector3d gridOriginTranslation)
public WorldMap(WorldMap wm)
| Method Detail |
public Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic Point3d getLowerCorner()
public Point3d getUpperCorner()
public Vector3d getWorldSize()
public int getGridWidth()
public int getGridHeight()
public boolean isConsistent(State s)
public boolean isConsistent(Tuple3d position)
public boolean isConsistentGridFrame(Tuple3d pos)
isConsistent(State),
isConsistent(Tuple3d)public double obstacleDistance(State s)
public double obstacleDistance(Point3d position,
Vector3d heading)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||