Package com.viam.component.servo.v1
Class ServoServiceGrpc.ServoServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ServoServiceGrpc.ServoServiceStub>
com.viam.component.servo.v1.ServoServiceGrpc.ServoServiceStub
- Enclosing class:
- ServoServiceGrpc
public static final class ServoServiceGrpc.ServoServiceStub
extends io.grpc.stub.AbstractAsyncStub<ServoServiceGrpc.ServoServiceStub>
A stub to allow clients to do asynchronous 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.ServoServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoid
getGeometries
(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configurationvoid
getPosition
(Servo.GetPositionRequest request, io.grpc.stub.StreamObserver<Servo.GetPositionResponse> responseObserver) GetPosition returns the current set angle (degrees) of the servo of the underlying robot.void
isMoving
(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) IsMoving reports if a component is in motionvoid
move
(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Move requests the servo of the underlying robot to move.void
stop
(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Stop stops a robot's servoMethods 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 ServoServiceGrpc.ServoServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<ServoServiceGrpc.ServoServiceStub>
-
move
public void move(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Move requests the servo of the underlying robot to move. This will block until done or a new operation cancels this one
-
getPosition
public void getPosition(Servo.GetPositionRequest request, io.grpc.stub.StreamObserver<Servo.GetPositionResponse> responseObserver) GetPosition returns the current set angle (degrees) of the servo of the underlying robot.
-
stop
public void stop(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Stop stops a robot's servo
-
isMoving
public void isMoving(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) IsMoving reports if a component is in motion
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-
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
-