Class LIDAR.WSLidarSensorConnection

Enclosing class:
LIDAR

public class LIDAR.WSLidarSensorConnection extends WSSensorConnection
The serial connection for the lidar sensor.
  • Constructor Details

    • WSLidarSensorConnection

      public WSLidarSensorConnection()
      Creates a new WSLidarSensorConnection.
  • Method Details

    • onUpdate

      public void onUpdate(int[] data)
      Called when the LIDAR sensor has new data.
      Overrides:
      onUpdate in class WSSensorConnection
      Parameters:
      data - The data from the LIDAR sensor.
    • addResponse

      public void addResponse(LIDAR.WSLidarSensorConnection.Response response)
      Adds a response to the LIDAR sensor.
      Parameters:
      response - The response to add.
    • getId

      public int getId()
      Gets the ID of the sensor.
      Overrides:
      getId in class WSSensorConnection
      Returns:
      The ID of the sensor.