Package com.viam.component.servo.v1
Class ServoServiceGrpc.ServoServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<ServoServiceGrpc.ServoServiceFutureStub>
com.viam.component.servo.v1.ServoServiceGrpc.ServoServiceFutureStub
- Enclosing class:
- ServoServiceGrpc
public static final class ServoServiceGrpc.ServoServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<ServoServiceGrpc.ServoServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service ServoService.
A ServoService maintains all servos 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 TypeMethodDescriptionprotected ServoServiceGrpc.ServoServiceFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandscom.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<Servo.GetPositionResponse>
getPosition
(Servo.GetPositionRequest request) GetPosition returns the current set angle (degrees) of the servo of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Servo.IsMovingResponse>
isMoving
(Servo.IsMovingRequest request) IsMoving reports if a component is in motioncom.google.common.util.concurrent.ListenableFuture<Servo.MoveResponse>
move
(Servo.MoveRequest request) Move requests the servo of the underlying robot to move.com.google.common.util.concurrent.ListenableFuture<Servo.StopResponse>
stop
(Servo.StopRequest request) Stop stops a robot's servoMethods 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 ServoServiceGrpc.ServoServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<ServoServiceGrpc.ServoServiceFutureStub>
-
move
public com.google.common.util.concurrent.ListenableFuture<Servo.MoveResponse> move(Servo.MoveRequest request) Move requests the servo of the underlying robot to move. This will block until done or a new operation cancels this one
-
getPosition
public com.google.common.util.concurrent.ListenableFuture<Servo.GetPositionResponse> getPosition(Servo.GetPositionRequest request) GetPosition returns the current set angle (degrees) of the servo of the underlying robot.
-
stop
public com.google.common.util.concurrent.ListenableFuture<Servo.StopResponse> stop(Servo.StopRequest request) Stop stops a robot's servo
-
isMoving
public com.google.common.util.concurrent.ListenableFuture<Servo.IsMovingResponse> isMoving(Servo.IsMovingRequest request) IsMoving reports if a component is in motion
-
doCommand
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commands
-
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
-