lejos.robotics.RangeScanner 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;
import lejos.robotics.RangeReadings;
/**
* Abstraction for a single range scanning sensor, rotating platform with a range finder,
* or a complete robot, that obtains a set of range readings at a set of angles to#
* the robot's heading.
*/
public interface RangeScanner {
/**
* Take a set of range readings. The RangeReadings object defines the
* number of readings and their angles to the robot's heading.
* @return the range readings
*/
public RangeReadings getRangeValues();
/**
* Set the array of angles at which range readings are to be taken
* @param angles
*/
public void setAngles(float[] angles);
/**
* Return the range finder for use by other classes
* @return the range finder
*/
public RangeFinder getRangeFinder();
}