Class Sensor

Direct Known Subclasses:
SensorRPCClient

public abstract class Sensor extends Component
Sensor represents a physical sensing device that can provide measurement readings
  • Field Details

    • SUBTYPE

      public static final Subtype SUBTYPE
  • Constructor Details

    • Sensor

      public Sensor(String name)
  • Method Details

    • named

      public static Common.ResourceName named(String name)
      Get the ResourceName of the component
      Parameters:
      name - the name of the component
      Returns:
      the component's ResourceName
    • fromRobot

      public static Sensor fromRobot(RobotClient robot, String name)
      Get the component with the provided name from the provided robot.
      Parameters:
      robot - the RobotClient
      name - the name of the component
      Returns:
      the component
    • getReadings

      public abstract Common.GetReadingsResponse getReadings(Optional<com.google.protobuf.Struct> extra)