Package com.viam.component.servo.v1
Interface ServoServiceGrpc.AsyncService
- All Known Implementing Classes:
ServoRPCService
,ServoServiceGrpc.ServoServiceImplBase
- Enclosing class:
- ServoServiceGrpc
public static interface ServoServiceGrpc.AsyncService
A ServoService maintains all servos associated with a robot
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsdefault void
getGeometries
(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configurationdefault 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.default void
isMoving
(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) IsMoving reports if a component is in motiondefault void
move
(Servo.MoveRequest request, io.grpc.stub.StreamObserver<Servo.MoveResponse> responseObserver) Move requests the servo of the underlying robot to move.default void
stop
(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Stop stops a robot's servo
-
Method Details
-
move
default 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
default 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
default void stop(Servo.StopRequest request, io.grpc.stub.StreamObserver<Servo.StopResponse> responseObserver) Stop stops a robot's servo
-
isMoving
default void isMoving(Servo.IsMovingRequest request, io.grpc.stub.StreamObserver<Servo.IsMovingResponse> responseObserver) IsMoving reports if a component is in motion
-
doCommand
default void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-
getGeometries
default void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configuration
-