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