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