RoboJDETM v1.5

com.ridgesoft.robotics
Interface RangeFinder

All Known Implementing Classes:
SharpGP2D12, SonarRangeFinder

public interface RangeFinder

Generic interface to a range finding sensor.


Method Summary
 float getDistanceCm()
          Gets the distance to the nearest object in centimeters.
 float getDistanceInches()
          Gets the distance to the nearest object in inches.
 void ping()
          Generates a ping if the sensor requires it.
 

Method Detail

getDistanceCm

public float getDistanceCm()
Gets the distance to the nearest object in centimeters.

Returns:
distance in centimeters or -1.0 if no data

getDistanceInches

public float getDistanceInches()
Gets the distance to the nearest object in inches.

Returns:
distance in inches or -1.0 if no data

ping

public void ping()
Generates a ping if the sensor requires it.


RoboJDETM v1.5

Copyright (c) 2003-2006 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com