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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoid
getCurrent
(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) GetCurrent returns the current reading of a power sensor in amperesvoid
getPower
(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) GetPower returns the power reading of a power sensor in wattsvoid
getReadings
(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) GetReadings returns the readings of a sensor of the underlying robot.void
getVoltage
(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
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
-
Constructor Details
-
PowerSensorRPCService
-
-
Method Details
-
getResourceClass
- Specified by:
getResourceClass
in interfaceResourceRPCService<PowerSensor>
-
getManager
- Specified by:
getManager
in interfaceResourceRPCService<PowerSensor>
-
getVoltage
public void getVoltage(Powersensor.GetVoltageRequest request, io.grpc.stub.StreamObserver<Powersensor.GetVoltageResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncService
GetVoltage returns the voltage reading of a power sensor in volts
- Specified by:
getVoltage
in interfacePowerSensorServiceGrpc.AsyncService
-
getCurrent
public void getCurrent(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncService
GetCurrent returns the current reading of a power sensor in amperes
- Specified by:
getCurrent
in interfacePowerSensorServiceGrpc.AsyncService
-
getPower
public void getPower(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncService
GetPower returns the power reading of a power sensor in watts
- Specified by:
getPower
in interfacePowerSensorServiceGrpc.AsyncService
-
getReadings
public void getReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncService
GetReadings returns the readings of a sensor of the underlying robot.
- Specified by:
getReadings
in interfacePowerSensorServiceGrpc.AsyncService
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:PowerSensorServiceGrpc.AsyncService
DoCommand sends/receives arbitrary commands
- Specified by:
doCommand
in interfacePowerSensorServiceGrpc.AsyncService
-