Package com.viam.component.motor.v1
Interface Motor.StatusOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Motor.Status
,Motor.Status.Builder
- Enclosing class:
- Motor
public static interface Motor.StatusOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the motor is movingboolean
Returns true if the motor is powereddouble
Returns current position of the motor relative to its homeMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getIsPowered
boolean getIsPowered()Returns true if the motor is powered
bool is_powered = 1 [json_name = "isPowered"];
- Returns:
- The isPowered.
-
getPosition
double getPosition()Returns current position of the motor relative to its home
double position = 3 [json_name = "position"];
- Returns:
- The position.
-
getIsMoving
boolean getIsMoving()Returns true if the motor is moving
bool is_moving = 4 [json_name = "isMoving"];
- Returns:
- The isMoving.
-