Package com.viam.component.encoder.v1
Class EncoderServiceGrpc.EncoderServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<EncoderServiceGrpc.EncoderServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<EncoderServiceGrpc.EncoderServiceBlockingV2Stub>
com.viam.component.encoder.v1.EncoderServiceGrpc.EncoderServiceBlockingV2Stub
- Enclosing class:
EncoderServiceGrpc
public static final class EncoderServiceGrpc.EncoderServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<EncoderServiceGrpc.EncoderServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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) doCommand(Common.DoCommandRequest request) getGeometries(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configurationgetPosition(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.Returns a list of all the methods that are supported by a given robot.getStatus(Common.GetStatusRequest request) GetStatus returns the status of the resourceMethods 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 EncoderServiceGrpc.EncoderServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<EncoderServiceGrpc.EncoderServiceBlockingV2Stub>
-
getPosition
public Encoder.GetPositionResponse getPosition(Encoder.GetPositionRequest request) throws io.grpc.StatusException Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.
- Throws:
io.grpc.StatusException
-
resetPosition
public Encoder.ResetPositionResponse resetPosition(Encoder.ResetPositionRequest request) throws io.grpc.StatusException - Throws:
io.grpc.StatusException
-
getProperties
public Encoder.GetPropertiesResponse getProperties(Encoder.GetPropertiesRequest request) throws io.grpc.StatusException Returns a list of all the methods that are supported by a given robot.
- Throws:
io.grpc.StatusException
-
doCommand
public Common.DoCommandResponse doCommand(Common.DoCommandRequest request) throws io.grpc.StatusException - Throws:
io.grpc.StatusException
-
getStatus
public Common.GetStatusResponse getStatus(Common.GetStatusRequest request) throws io.grpc.StatusException GetStatus returns the status of the resource
- Throws:
io.grpc.StatusException
-
getGeometries
public Common.GetGeometriesResponse getGeometries(Common.GetGeometriesRequest request) throws io.grpc.StatusException GetGeometries returns the geometries of the component in their current configuration
- Throws:
io.grpc.StatusException
-