Package com.viam.component.motor.v1
Class MotorServiceGrpc.MotorServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<MotorServiceGrpc.MotorServiceBlockingStub>
com.viam.component.motor.v1.MotorServiceGrpc.MotorServiceBlockingStub
- Enclosing class:
- MotorServiceGrpc
public static final class MotorServiceGrpc.MotorServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<MotorServiceGrpc.MotorServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service MotorService.
A MotorService maintains all motors associated with a robot
-
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 TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandsgetGeometries
(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configurationgetPosition
(Motor.GetPositionRequest request) Position reports the position of the robot's motor relative to its zero position This method will return an error if position reporting is not supportedgetProperties
(Motor.GetPropertiesRequest request) GetProperties returns a message of booleans indicating which optional features the robot's motor supportsgoFor
(Motor.GoForRequest request) GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, for a specified number of rotations relative to its starting position This method will return an error if position reporting is not supported If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in.goTo
(Motor.GoToRequest request) GoTo requests the robot's motor to move to a specific position that is relative to its home position at a specified speed which is expressed in RPM This method will return an error if position reporting is not supportedisMoving
(Motor.IsMovingRequest request) IsMoving reports if a component is in motionisPowered
(Motor.IsPoweredRequest request) IsPowered returns true if the robot's motor is onResetZeroPosition sets the current position of the motor as the new zero position This method will return an error if position reporting is not supportedsetPower
(Motor.SetPowerRequest request) SetPower sets the percentage of the motor's total power that should be employed expressed a value between -1 and 1 where negative values indicate a backwards direction and positive values a forward directionsetRPM
(Motor.SetRPMRequest request) SetRPM instructs the motor to move at the specified RPM indefinitely.stop
(Motor.StopRequest request) Stop turns the robot's motor offMethods inherited from class io.grpc.stub.AbstractBlockingStub
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 MotorServiceGrpc.MotorServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<MotorServiceGrpc.MotorServiceBlockingStub>
-
setPower
SetPower sets the percentage of the motor's total power that should be employed expressed a value between -1 and 1 where negative values indicate a backwards direction and positive values a forward direction
-
goFor
GoFor instructs the motor to turn at a specified speed, which is expressed in RPM, for a specified number of rotations relative to its starting position This method will return an error if position reporting is not supported If revolutions != 0, this will block until the number of revolutions has been completed or another operation comes in. Deprecated: If revolutions is 0, this will run the motor at rpm indefinitely.
-
goTo
GoTo requests the robot's motor to move to a specific position that is relative to its home position at a specified speed which is expressed in RPM This method will return an error if position reporting is not supported
-
setRPM
SetRPM instructs the motor to move at the specified RPM indefinitely.
-
resetZeroPosition
ResetZeroPosition sets the current position of the motor as the new zero position This method will return an error if position reporting is not supported
-
getPosition
Position reports the position of the robot's motor relative to its zero position This method will return an error if position reporting is not supported
-
getProperties
GetProperties returns a message of booleans indicating which optional features the robot's motor supports
-
stop
Stop turns the robot's motor off
-
isPowered
IsPowered returns true if the robot's motor is on
-
isMoving
IsMoving reports if a component is in motion
-
doCommand
DoCommand sends/receives arbitrary commands
-
getGeometries
GetGeometries returns the geometries of the component in their current configuration
-