Class MovementSensorRPCClient


public class MovementSensorRPCClient extends MovementSensor
gRPC Client for a MovementSensor component
  • Constructor Details

    • MovementSensorRPCClient

      public MovementSensorRPCClient(String name, Channel chan)
  • Method Details

    • doCommand

      public com.google.protobuf.Struct doCommand(Map<String,com.google.protobuf.Value> command)
      Description copied from class: Resource
      Send/Receive arbitrary commands to the Resource
      Overrides:
      doCommand in class Resource
      Parameters:
      command - the command to execute
      Returns:
      result of the executed command
    • getGeometries

      public List<Common.Geometry> getGeometries(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: Component
      Get all geometries associated with the Component, in their current configuration, in the frame of the Component.
      Overrides:
      getGeometries in class Component
      Returns:
      the geometries associated with the Component
    • getLinearVelocity

      public Common.Vector3 getLinearVelocity(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current linear velocity as a Vector3 with x, y, and z axes represented in m/sec
      Specified by:
      getLinearVelocity in class MovementSensor
      Returns:
      the Vector3 representation of the linear velocity in m/sec
    • getAngularVelocity

      public Common.Vector3 getAngularVelocity(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current angular velocity as a Vector3 with x, y, and z axes represented in degrees/sec
      Specified by:
      getAngularVelocity in class MovementSensor
      Returns:
      The Vector3 representation of the angular velocity in degrees/sec
    • getCompassHeading

      public double getCompassHeading(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current compass heading in degrees
      Specified by:
      getCompassHeading in class MovementSensor
      Returns:
      the compass heading in degrees
    • getProperties

      public Movementsensor.GetPropertiesResponse getProperties(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the supported properties of this sensor
      Specified by:
      getProperties in class MovementSensor
      Returns:
      the Properties response
    • getAccuracy

      public Movementsensor.GetAccuracyResponse getAccuracy(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the accuracy of the various sensors
      Specified by:
      getAccuracy in class MovementSensor
      Returns:
      the accuracies of the sensor
    • getLinearAcceleration

      public Common.Vector3 getLinearAcceleration(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current linear acceleration as a Vector3 with x, y, and z axes represented in m/sec^2
      Specified by:
      getLinearAcceleration in class MovementSensor
      Returns:
      the Vector3 representation of the linear acceleration in m/sec^2
    • getOrientation

      public Common.Orientation getOrientation(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current orientation
      Specified by:
      getOrientation in class MovementSensor
      Returns:
      the orientation
    • getPosition

      public Movementsensor.GetPositionResponse getPosition(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Get the current GeoPoint (latitude, longitude) and altitude (m)
      Specified by:
      getPosition in class MovementSensor
      Returns:
      the Position response
    • getReadings

      public Map<String,com.google.protobuf.Value> getReadings(Optional<com.google.protobuf.Struct> extra)
      Description copied from class: MovementSensor
      Obtain the measurements/data specific to this sensor. If a sensor is not configured to have a measurement or fails to read a piece of data, it will not appear in the readings dictionary.
      Specified by:
      getReadings in class MovementSensor
      Returns:
      the readings for the MovementSensor