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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configurationvoidgetPosition(Servo.GetPositionRequest request, io.grpc.stub.StreamObserver<Servo.GetPositionResponse> responseObserver) GetPosition returns the current set angle (degrees) of the servo of the underlying robot.voidisMoving(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) IsMoving reports if a component is in motionvoidmove(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Move requests the servo of the underlying robot to move.voidstop(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
bindServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.grpc.BindableService
bindServiceMethods inherited from interface com.viam.sdk.core.resource.ResourceRPCService
getResource
-
Constructor Details
-
ServoRPCService
-
-
Method Details
-
getResourceClass
- Specified by:
getResourceClassin interfaceResourceRPCService<Servo>
-
getManager
- Specified by:
getManagerin interfaceResourceRPCService<Servo>
-
move
public void move(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceMove requests the servo of the underlying robot to move. This will block until done or a new operation cancels this one
- Specified by:
movein interfaceServoServiceGrpc.AsyncService
-
stop
public void stop(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceStop stops a robot's servo
- Specified by:
stopin interfaceServoServiceGrpc.AsyncService
-
getPosition
public void getPosition(Servo.GetPositionRequest request, io.grpc.stub.StreamObserver<Servo.GetPositionResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceGetPosition returns the current set angle (degrees) of the servo of the underlying robot.
- Specified by:
getPositionin interfaceServoServiceGrpc.AsyncService
-
isMoving
public void isMoving(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceIsMoving reports if a component is in motion
- Specified by:
isMovingin interfaceServoServiceGrpc.AsyncService
-
getGeometries
public void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceGetGeometries returns the geometries of the component in their current configuration
- Specified by:
getGeometriesin interfaceServoServiceGrpc.AsyncService
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:ServoServiceGrpc.AsyncServiceDoCommand sends/receives arbitrary commands
- Specified by:
doCommandin interfaceServoServiceGrpc.AsyncService
-