lejos.robotics.mapping.RangeMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.
The newest version!
package lejos.robotics.mapping;
import lejos.robotics.geometry.*;
import lejos.robotics.navigation.Pose;
/**
* 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
*
*/
public interface RangeMap {
/**
* The the range to the nearest wall (or other feature)
* @param pose the pose of the robot
* @return the range
*/
public float range(Pose pose);
/**
* Test if a point is within the mapped area
*
* @param p the point
* @return true iff the point is within the mapped area
*/
public boolean inside(Point p);
/**
* Get the bounding rectangle for the mapped area
*
* @return the bounding rectangle
*/
public Rectangle getBoundingRect();
}