Class ServoRPCService
java.lang.Object
com.viam.component.servo.v1.ServoServiceGrpc.ServoServiceImplBase
com.viam.sdk.core.component.servo.ServoRPCService
- All Implemented Interfaces:
ServoServiceGrpc.AsyncService
,ResourceRPCService<Servo>
,io.grpc.BindableService
public class ServoRPCService
extends ServoServiceGrpc.ServoServiceImplBase
implements ResourceRPCService<Servo>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 com.viam.component.servo.v1.ServoServiceGrpc.ServoServiceImplBase
bindService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.grpc.BindableService
bindService
Methods inherited from interface com.viam.sdk.core.resource.ResourceRPCService
getResource
-
Constructor Details
-
ServoRPCService
-
-
Method Details
-
getResourceClass
- Specified by:
getResourceClass
in interfaceResourceRPCService<Servo>
-
getManager
- Specified by:
getManager
in interfaceResourceRPCService<Servo>
-
move
public void move(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
Move requests the servo of the underlying robot to move. This will block until done or a new operation cancels this one
- Specified by:
move
in interfaceServoServiceGrpc.AsyncService
-
stop
public void stop(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
Stop stops a robot's servo
- Specified by:
stop
in interfaceServoServiceGrpc.AsyncService
-
getPosition
public void getPosition(Servo.GetPositionRequest request, io.grpc.stub.StreamObserver<Servo.GetPositionResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
GetPosition returns the current set angle (degrees) of the servo of the underlying robot.
- Specified by:
getPosition
in interfaceServoServiceGrpc.AsyncService
-
isMoving
public void isMoving(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
IsMoving reports if a component is in motion
- Specified by:
isMoving
in interfaceServoServiceGrpc.AsyncService
-
getGeometries
public void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
GetGeometries returns the geometries of the component in their current configuration
- Specified by:
getGeometries
in interfaceServoServiceGrpc.AsyncService
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncService
DoCommand sends/receives arbitrary commands
- Specified by:
doCommand
in interfaceServoServiceGrpc.AsyncService
-