Class PowerSensorServiceGrpc.PowerSensorServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingStub>
com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceBlockingStub
- Enclosing class:
- PowerSensorServiceGrpc
public static final class PowerSensorServiceGrpc.PowerSensorServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingStub>
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, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PowerSensorServiceGrpc.PowerSensorServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<PowerSensorServiceGrpc.PowerSensorServiceBlockingStub>
-
getVoltage
GetVoltage returns the voltage reading of a power sensor in volts
-
getCurrent
GetCurrent returns the current reading of a power sensor in amperes
-
getPower
GetPower returns the power reading of a power sensor in watts
-
getReadings
GetReadings returns the readings of a sensor of the underlying robot.
-
doCommand
DoCommand sends/receives arbitrary commands
-