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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoid
getReadings
(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
bindService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.grpc.BindableService
bindService
Methods inherited from interface com.viam.sdk.core.resource.ResourceRPCService
getResource
Methods 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.AsyncService
DoCommand sends/receives arbitrary commands
- Specified by:
doCommand
in interfaceSensorServiceGrpc.AsyncService
-
getReadings
public void getReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) Description copied from interface:SensorServiceGrpc.AsyncService
GetReadings returns the readings of a sensor of the underlying robot.
- Specified by:
getReadings
in interfaceSensorServiceGrpc.AsyncService
-
getResourceClass
- Specified by:
getResourceClass
in interfaceResourceRPCService<Sensor>
-
getManager
- Specified by:
getManager
in interfaceResourceRPCService<Sensor>
-