Private
clientReadonly
methods: { Readonly
doDoCommand sends/receives arbitrary commands
from rpc viam.component.motor.v1.MotorService.DoCommand
Readonly
I: typeof DoCommandRequestReadonly
O: typeof DoCommandResponseReadonly
kind: UnaryReadonly
name: "DoCommand"Readonly
getGetGeometries returns the geometries of the component in their current configuration
from rpc viam.component.motor.v1.MotorService.GetGeometries
Readonly
I: typeof GetGeometriesRequestReadonly
O: typeof GetGeometriesResponseReadonly
kind: UnaryReadonly
name: "GetGeometries"Readonly
getPosition 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
from rpc viam.component.motor.v1.MotorService.GetPosition
Readonly
I: typeof motorApi.GetPositionRequestReadonly
O: typeof motorApi.GetPositionResponseReadonly
kind: UnaryReadonly
name: "GetPosition"Readonly
getGetProperties returns a message of booleans indicating which optional features the robot's motor supports
from rpc viam.component.motor.v1.MotorService.GetProperties
Readonly
I: typeof motorApi.GetPropertiesRequestReadonly
O: typeof motorApi.GetPropertiesResponseReadonly
kind: UnaryReadonly
name: "GetProperties"Readonly
goGoFor 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.
from rpc viam.component.motor.v1.MotorService.GoFor
Readonly
I: typeof GoForRequestReadonly
O: typeof GoForResponseReadonly
kind: UnaryReadonly
name: "GoFor"Readonly
goGoTo 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
from rpc viam.component.motor.v1.MotorService.GoTo
Readonly
I: typeof GoToRequestReadonly
O: typeof GoToResponseReadonly
kind: UnaryReadonly
name: "GoTo"Readonly
isIsMoving reports if a component is in motion
from rpc viam.component.motor.v1.MotorService.IsMoving
Readonly
I: typeof motorApi.IsMovingRequestReadonly
O: typeof motorApi.IsMovingResponseReadonly
kind: UnaryReadonly
name: "IsMoving"Readonly
isIsPowered returns true if the robot's motor is on
from rpc viam.component.motor.v1.MotorService.IsPowered
Readonly
I: typeof IsPoweredRequestReadonly
O: typeof IsPoweredResponseReadonly
kind: UnaryReadonly
name: "IsPowered"Readonly
resetResetZeroPosition sets the current position of the motor as the new zero position This method will return an error if position reporting is not supported
from rpc viam.component.motor.v1.MotorService.ResetZeroPosition
Readonly
I: typeof ResetZeroPositionRequestReadonly
O: typeof ResetZeroPositionResponseReadonly
kind: UnaryReadonly
name: "ResetZeroPosition"Readonly
setSetPower 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
from rpc viam.component.motor.v1.MotorService.SetPower
Readonly
I: typeof motorApi.SetPowerRequestReadonly
O: typeof motorApi.SetPowerResponseReadonly
kind: UnaryReadonly
name: "SetPower"Readonly
setRPM: { SetRPM instructs the motor to move at the specified RPM indefinitely.
from rpc viam.component.motor.v1.MotorService.SetRPM
Readonly
I: typeof SetRPMRequestReadonly
O: typeof SetRPMResponseReadonly
kind: UnaryReadonly
name: "SetRPM"Readonly
stop: { Stop turns the robot's motor off
from rpc viam.component.motor.v1.MotorService.Stop
Readonly
I: typeof motorApi.StopRequestReadonly
O: typeof motorApi.StopResponseReadonly
kind: UnaryReadonly
name: "Stop"Readonly
typePrivate
Readonly
namePrivate
Readonly
optionsTurn the motor at a specified speed for either a specified number of revolutions or indefinitely. Raise an error if position reporting is not supported.
Speed in revolutions per minute.
Number of revolutions relative to the motor's starting position. If this value is 0, this will run the motor at the given rpm indefinitely. If this value is nonzero, this will block until the number of revolutions has been completed or another operation comes in.
Move the motor to a specific position relative to its home position at a specified speed. Raise an error if position reporting is not supported.
Speed in revolutions per minute.
Number of revolutions relative to the motor's home position.
Set the current position of the motor as the new zero position, offset by a given position. Raise an error if position reporting is not supported.
Position from which to offset the current position.
Set the percentage of the motor's total power that should be employed.
A value between -1 and 1 where negative values indicate a backwards direction and positive values a forward direction.
A gRPC-web client for the Motor component.