Package com.viam.component.base.v1
Class BaseServiceGrpc.BaseServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<BaseServiceGrpc.BaseServiceFutureStub>
com.viam.component.base.v1.BaseServiceGrpc.BaseServiceFutureStub
- Enclosing class:
- BaseServiceGrpc
public static final class BaseServiceGrpc.BaseServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<BaseServiceGrpc.BaseServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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.BaseServiceFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandscom.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse>
getGeometries
(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configurationcom.google.common.util.concurrent.ListenableFuture<Base.GetPropertiesResponse>
getProperties
(Base.GetPropertiesRequest request) GetProperties returns the properties of a base in its current configurationcom.google.common.util.concurrent.ListenableFuture<Base.IsMovingResponse>
isMoving
(Base.IsMovingRequest request) IsMoving reports if a component is in motioncom.google.common.util.concurrent.ListenableFuture<Base.MoveStraightResponse>
moveStraight
(Base.MoveStraightRequest request) 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 cancelledcom.google.common.util.concurrent.ListenableFuture<Base.SetPowerResponse>
setPower
(Base.SetPowerRequest request) SetPower sets the linear and angular power of a base -1 -> 1 in terms of power for each directioncom.google.common.util.concurrent.ListenableFuture<Base.SetVelocityResponse>
setVelocity
(Base.SetVelocityRequest request) SetVelocity sets the linear and angular velocity of a basecom.google.common.util.concurrent.ListenableFuture<Base.SpinResponse>
spin
(Base.SpinRequest request) 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 cancelledcom.google.common.util.concurrent.ListenableFuture<Base.StopResponse>
stop
(Base.StopRequest request) Stop stops a robot's baseMethods inherited from class io.grpc.stub.AbstractFutureStub
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.BaseServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<BaseServiceGrpc.BaseServiceFutureStub>
-
moveStraight
public com.google.common.util.concurrent.ListenableFuture<Base.MoveStraightResponse> moveStraight(Base.MoveStraightRequest request) 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 com.google.common.util.concurrent.ListenableFuture<Base.SpinResponse> spin(Base.SpinRequest request) 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 com.google.common.util.concurrent.ListenableFuture<Base.SetPowerResponse> setPower(Base.SetPowerRequest request) SetPower sets the linear and angular power of a base -1 -> 1 in terms of power for each direction
-
setVelocity
public com.google.common.util.concurrent.ListenableFuture<Base.SetVelocityResponse> setVelocity(Base.SetVelocityRequest request) SetVelocity sets the linear and angular velocity of a base
-
stop
public com.google.common.util.concurrent.ListenableFuture<Base.StopResponse> stop(Base.StopRequest request) Stop stops a robot's base
-
isMoving
public com.google.common.util.concurrent.ListenableFuture<Base.IsMovingResponse> isMoving(Base.IsMovingRequest request) IsMoving reports if a component is in motion
-
doCommand
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commands
-
getGeometries
public com.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse> getGeometries(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configuration
-
getProperties
public com.google.common.util.concurrent.ListenableFuture<Base.GetPropertiesResponse> getProperties(Base.GetPropertiesRequest request) GetProperties returns the properties of a base in its current configuration
-