Class PowerSensorRPCService
java.lang.Object
com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceImplBase
com.viam.sdk.core.component.powersensor.PowerSensorRPCService
- All Implemented Interfaces:
PowerSensorServiceGrpc.AsyncService,ResourceRPCService<PowerSensor>,io.grpc.BindableService
public class PowerSensorRPCService
extends PowerSensorServiceGrpc.PowerSensorServiceImplBase
implements ResourceRPCService<PowerSensor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetCurrent(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) GetCurrent returns the current reading of a power sensor in amperesvoidgetPower(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) GetPower returns the power reading of a power sensor in wattsvoidgetReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) GetReadings returns the readings of a sensor of the underlying robot.voidgetVoltage(Powersensor.GetVoltageRequest request, io.grpc.stub.StreamObserver<Powersensor.GetVoltageResponse> responseObserver) GetVoltage returns the voltage reading of a power sensor in voltsMethods inherited from class com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceImplBase
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
getResource
-
Constructor Details
-
PowerSensorRPCService
-
-
Method Details
-
getResourceClass
- Specified by:
getResourceClassin interfaceResourceRPCService<PowerSensor>
-
getManager
- Specified by:
getManagerin interfaceResourceRPCService<PowerSensor>
-
getVoltage
public void getVoltage(Powersensor.GetVoltageRequest request, io.grpc.stub.StreamObserver<Powersensor.GetVoltageResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncServiceGetVoltage returns the voltage reading of a power sensor in volts
- Specified by:
getVoltagein interfacePowerSensorServiceGrpc.AsyncService
-
getCurrent
public void getCurrent(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncServiceGetCurrent returns the current reading of a power sensor in amperes
- Specified by:
getCurrentin interfacePowerSensorServiceGrpc.AsyncService
-
getPower
public void getPower(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncServiceGetPower returns the power reading of a power sensor in watts
- Specified by:
getPowerin interfacePowerSensorServiceGrpc.AsyncService
-
getReadings
public void getReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncServiceGetReadings returns the readings of a sensor of the underlying robot.
- Specified by:
getReadingsin interfacePowerSensorServiceGrpc.AsyncService
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncServiceDoCommand sends/receives arbitrary commands
- Specified by:
doCommandin interfacePowerSensorServiceGrpc.AsyncService
-