Class PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub>
com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub
- Enclosing class:
PowerSensorServiceGrpc
public static final class PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PowerSensorService.
PowerSensorService services all power sensors associated with a robot
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandsgetCurrent(Powersensor.GetCurrentRequest request) GetCurrent returns the current reading of a power sensor in amperesgetPower(Powersensor.GetPowerRequest request) GetPower returns the power reading of a power sensor in wattsgetReadings(Common.GetReadingsRequest request) GetReadings returns the readings of a sensor of the underlying robot.getVoltage(Powersensor.GetVoltageRequest request) GetVoltage returns the voltage reading of a power sensor in voltsMethods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingV2Stub>
-
getVoltage
public Powersensor.GetVoltageResponse getVoltage(Powersensor.GetVoltageRequest request) throws io.grpc.StatusException GetVoltage returns the voltage reading of a power sensor in volts
- Throws:
io.grpc.StatusException
-
getCurrent
public Powersensor.GetCurrentResponse getCurrent(Powersensor.GetCurrentRequest request) throws io.grpc.StatusException GetCurrent returns the current reading of a power sensor in amperes
- Throws:
io.grpc.StatusException
-
getPower
public Powersensor.GetPowerResponse getPower(Powersensor.GetPowerRequest request) throws io.grpc.StatusException GetPower returns the power reading of a power sensor in watts
- Throws:
io.grpc.StatusException
-
getReadings
public Common.GetReadingsResponse getReadings(Common.GetReadingsRequest request) throws io.grpc.StatusException GetReadings returns the readings of a sensor of the underlying robot.
- Throws:
io.grpc.StatusException
-
doCommand
public Common.DoCommandResponse doCommand(Common.DoCommandRequest request) throws io.grpc.StatusException DoCommand sends/receives arbitrary commands
- Throws:
io.grpc.StatusException
-