Class SensorRPCService
java.lang.Object
com.viam.component.sensor.v1.SensorServiceGrpc.SensorServiceImplBase
com.viam.sdk.core.component.sensor.SensorRPCService
- All Implemented Interfaces:
SensorServiceGrpc.AsyncService,ResourceRPCService<Sensor>,io.grpc.BindableService
public class SensorRPCService
extends SensorServiceGrpc.SensorServiceImplBase
implements ResourceRPCService<Sensor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) GetReadings returns the readings of a sensor of the underlying robot.Methods inherited from class com.viam.component.sensor.v1.SensorServiceGrpc.SensorServiceImplBase
bindServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.grpc.BindableService
bindServiceMethods inherited from interface com.viam.sdk.core.resource.ResourceRPCService
getResourceMethods inherited from interface com.viam.component.sensor.v1.SensorServiceGrpc.AsyncService
getGeometries
-
Constructor Details
-
SensorRPCService
-
-
Method Details
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:SensorServiceGrpc.AsyncServiceDoCommand sends/receives arbitrary commands
- Specified by:
doCommandin interfaceSensorServiceGrpc.AsyncService
-
getReadings
public void getReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) Description copied from interface:SensorServiceGrpc.AsyncServiceGetReadings returns the readings of a sensor of the underlying robot.
- Specified by:
getReadingsin interfaceSensorServiceGrpc.AsyncService
-
getResourceClass
- Specified by:
getResourceClassin interfaceResourceRPCService<Sensor>
-
getManager
- Specified by:
getManagerin interfaceResourceRPCService<Sensor>
-