RoboJDETM v2.0

com.ridgesoft.robotics
Interface RangeFinder

All Known Implementing Classes:
DevantechSRF04, DevantechSRF08, ParallaxPing, SharpGP2D12, SharpGP2Y0A02, SharpGP2Y0A21, 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

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

Returns:
distance in centimeters or -1.0 if no data

getDistanceInches

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

Returns:
distance in inches or -1.0 if no data

ping

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


RoboJDETM v2.0

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