lejos.robotics.mapping
Interface RangeMap

All Known Implementing Classes:
LineMap

public interface RangeMap

The RangeMap 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

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