Package lejos.robotics.mapping
Interface RangeMap
-
- All Known Implementing Classes:
LineMap
public interface RangeMapThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RectanglegetBoundingRect()Get the bounding rectangle for the mapped areabooleaninside(Point p)Test if a point is within the mapped areafloatrange(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
-
-