Class GripperRPCService
java.lang.Object
com.viam.component.gripper.v1.GripperServiceGrpc.GripperServiceImplBase
com.viam.sdk.core.component.gripper.GripperRPCService
- All Implemented Interfaces:
GripperServiceGrpc.AsyncService,ResourceRPCService<Gripper>,io.grpc.BindableService
public class GripperRPCService
extends GripperServiceGrpc.GripperServiceImplBase
implements ResourceRPCService<Gripper>
gRPC Service for a Gripper component
-
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 configurationvoidgrab(Gripper.GrabRequest request, io.grpc.stub.StreamObserver<Gripper.GrabResponse> responseObserver) Grab requests a gripper of the underlying robot to grab.voidisMoving(Gripper.IsMovingRequest request, io.grpc.stub.StreamObserver<Gripper.IsMovingResponse> responseObserver) IsMoving reports if a component is in motionvoidopen(Gripper.OpenRequest request, io.grpc.stub.StreamObserver<Gripper.OpenResponse> responseObserver) Open opens a gripper of the underlying robot.voidstop(Gripper.StopRequest request, io.grpc.stub.StreamObserver<Gripper.StopResponse> responseObserver) Stop stops a robot's gripperMethods inherited from class com.viam.component.gripper.v1.GripperServiceGrpc.GripperServiceImplBase
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.component.gripper.v1.GripperServiceGrpc.AsyncService
getKinematics, isHoldingSomethingMethods inherited from interface com.viam.sdk.core.resource.ResourceRPCService
getResource
-
Constructor Details
-
GripperRPCService
-
-
Method Details
-
open
public void open(Gripper.OpenRequest request, io.grpc.stub.StreamObserver<Gripper.OpenResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceOpen opens a gripper of the underlying robot.
- Specified by:
openin interfaceGripperServiceGrpc.AsyncService
-
grab
public void grab(Gripper.GrabRequest request, io.grpc.stub.StreamObserver<Gripper.GrabResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceGrab requests a gripper of the underlying robot to grab.
- Specified by:
grabin interfaceGripperServiceGrpc.AsyncService
-
stop
public void stop(Gripper.StopRequest request, io.grpc.stub.StreamObserver<Gripper.StopResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceStop stops a robot's gripper
- Specified by:
stopin interfaceGripperServiceGrpc.AsyncService
-
isMoving
public void isMoving(Gripper.IsMovingRequest request, io.grpc.stub.StreamObserver<Gripper.IsMovingResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceIsMoving reports if a component is in motion
- Specified by:
isMovingin interfaceGripperServiceGrpc.AsyncService
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceDoCommand sends/receives arbitrary commands
- Specified by:
doCommandin interfaceGripperServiceGrpc.AsyncService
-
getGeometries
public void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) Description copied from interface:GripperServiceGrpc.AsyncServiceGetGeometries returns the geometries of the component in their current configuration
- Specified by:
getGeometriesin interfaceGripperServiceGrpc.AsyncService
-
getResourceClass
- Specified by:
getResourceClassin interfaceResourceRPCService<Gripper>
-
getManager
- Specified by:
getManagerin interfaceResourceRPCService<Gripper>
-