lejos.localization
Interface Map

All Known Implementing Classes:
LineMap

public interface Map

The Map interface supports determining the range to a feature on the map (such as a wall), from an object with a specific pose. It also supports the a method to determine if a point is within the mapped area.

Author:
Lawrie Griffiths

WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.

Method Summary
 Rectangle getBoundingRect()
          Get the bounding rectangle for the mapped area
 boolean inside(Point p)
          Test if a point is within the mapped area
 float range(Pose pose)
          The the range to the nearest wall (or other feature)_
 

Method Detail

range

float range(Pose pose)
The the range to the nearest wall (or other feature)_

Parameters:
pose - the pose of the robot
Returns:
the range

inside

boolean inside(Point p)
Test if a point is within the mapped area

Parameters:
p - the point
Returns:
true iff the point is within the mapped area

getBoundingRect

Rectangle getBoundingRect()
Get the bounding rectangle for the mapped area

Returns:
the bounding rectangle