Class TrcLidarLite

java.lang.Object
trclib.archive.TrcLidarLite

public class TrcLidarLite extends Object
This class implements the Lidar Lite v3 Laser Ranging sensor.
  • Field Details

  • Constructor Details

    • TrcLidarLite

      public TrcLidarLite(String instanceName, TrcSerialBusDevice device)
      Constructor: Creates an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
      device - specifies the device object.
  • Method Details

    • start

      public void start()
      This method starts the reading device data by queuing the initial read request if not already.
    • writeAcquisitionCommand

      private void writeAcquisitionCommand(byte command)
      This method writes an acquisition command to the device.
      Parameters:
      command - specifies the acquisition command.
    • getDistance

      public TrcSensor.SensorData<Double> getDistance()
      This method returns the distance measurement data with bias correction.
      Returns:
      distance measurement data in cm.
    • notify

      public void notify(Object context)
      This method is called when the read request is completed.
      Parameters:
      context - specifies the read request.