Package com.viam.component.encoder.v1
Class EncoderServiceGrpc.EncoderServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<EncoderServiceGrpc.EncoderServiceFutureStub>
com.viam.component.encoder.v1.EncoderServiceGrpc.EncoderServiceFutureStub
- Enclosing class:
- EncoderServiceGrpc
public static final class EncoderServiceGrpc.EncoderServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<EncoderServiceGrpc.EncoderServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service EncoderService.
-
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) com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) com.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse>
getGeometries
(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configurationcom.google.common.util.concurrent.ListenableFuture<Encoder.GetPositionResponse>
getPosition
(Encoder.GetPositionRequest request) Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.com.google.common.util.concurrent.ListenableFuture<Encoder.GetPropertiesResponse>
Returns a list of all the methods that are supported by a given robot.com.google.common.util.concurrent.ListenableFuture<Encoder.ResetPositionResponse>
Methods inherited from class io.grpc.stub.AbstractFutureStub
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 EncoderServiceGrpc.EncoderServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<EncoderServiceGrpc.EncoderServiceFutureStub>
-
getPosition
public com.google.common.util.concurrent.ListenableFuture<Encoder.GetPositionResponse> getPosition(Encoder.GetPositionRequest request) Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.
-
resetPosition
public com.google.common.util.concurrent.ListenableFuture<Encoder.ResetPositionResponse> resetPosition(Encoder.ResetPositionRequest request) -
getProperties
public com.google.common.util.concurrent.ListenableFuture<Encoder.GetPropertiesResponse> getProperties(Encoder.GetPropertiesRequest request) Returns a list of all the methods that are supported by a given robot.
-
doCommand
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) -
getGeometries
public com.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse> getGeometries(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configuration
-