Package com.viam.component.base.v1
Class BaseServiceGrpc.BaseServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<BaseServiceGrpc.BaseServiceStub>
com.viam.component.base.v1.BaseServiceGrpc.BaseServiceStub
- Enclosing class:
- BaseServiceGrpc
public static final class BaseServiceGrpc.BaseServiceStub
extends io.grpc.stub.AbstractAsyncStub<BaseServiceGrpc.BaseServiceStub>
A stub to allow clients to do asynchronous rpc calls to service BaseService.
-
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 TypeMethodDescriptionprotected BaseServiceGrpc.BaseServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
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
getProperties
(Base.GetPropertiesRequest request, io.grpc.stub.StreamObserver<Base.GetPropertiesResponse> responseObserver) GetProperties returns the properties of a base in its current configurationvoid
isMoving
(Base.IsMovingRequest request, io.grpc.stub.StreamObserver<Base.IsMovingResponse> responseObserver) IsMoving reports if a component is in motionvoid
moveStraight
(Base.MoveStraightRequest request, io.grpc.stub.StreamObserver<Base.MoveStraightResponse> responseObserver) MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters and a given speed, expressed in millimeters per second This method blocks until completed or cancelledvoid
setPower
(Base.SetPowerRequest request, io.grpc.stub.StreamObserver<Base.SetPowerResponse> responseObserver) SetPower sets the linear and angular power of a base -1 -> 1 in terms of power for each directionvoid
setVelocity
(Base.SetVelocityRequest request, io.grpc.stub.StreamObserver<Base.SetVelocityResponse> responseObserver) SetVelocity sets the linear and angular velocity of a basevoid
spin
(Base.SpinRequest request, io.grpc.stub.StreamObserver<Base.SpinResponse> responseObserver) Spin spins a robot's base by an given angle, expressed in degrees, and a given angular speed, expressed in degrees per second This method blocks until completed or cancelledvoid
stop
(Base.StopRequest request, io.grpc.stub.StreamObserver<Base.StopResponse> responseObserver) Stop stops a robot's baseMethods inherited from class io.grpc.stub.AbstractAsyncStub
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 BaseServiceGrpc.BaseServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<BaseServiceGrpc.BaseServiceStub>
-
moveStraight
public void moveStraight(Base.MoveStraightRequest request, io.grpc.stub.StreamObserver<Base.MoveStraightResponse> responseObserver) MoveStraight moves a robot's base in a straight line by a given distance, expressed in millimeters and a given speed, expressed in millimeters per second This method blocks until completed or cancelled
-
spin
public void spin(Base.SpinRequest request, io.grpc.stub.StreamObserver<Base.SpinResponse> responseObserver) Spin spins a robot's base by an given angle, expressed in degrees, and a given angular speed, expressed in degrees per second This method blocks until completed or cancelled
-
setPower
public void setPower(Base.SetPowerRequest request, io.grpc.stub.StreamObserver<Base.SetPowerResponse> responseObserver) SetPower sets the linear and angular power of a base -1 -> 1 in terms of power for each direction
-
setVelocity
public void setVelocity(Base.SetVelocityRequest request, io.grpc.stub.StreamObserver<Base.SetVelocityResponse> responseObserver) SetVelocity sets the linear and angular velocity of a base
-
stop
public void stop(Base.StopRequest request, io.grpc.stub.StreamObserver<Base.StopResponse> responseObserver) Stop stops a robot's base
-
isMoving
public void isMoving(Base.IsMovingRequest request, io.grpc.stub.StreamObserver<Base.IsMovingResponse> responseObserver) IsMoving reports if a component is in motion
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-
getGeometries
public void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configuration
-
getProperties
public void getProperties(Base.GetPropertiesRequest request, io.grpc.stub.StreamObserver<Base.GetPropertiesResponse> responseObserver) GetProperties returns the properties of a base in its current configuration
-